2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for fontconfig 2.14.2.
5 # Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
289 SHELL=${CONFIG_SHELL-/bin/sh}
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
300 # Portably unset VAR.
303 { eval $1=; unset $1;}
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
327 # Do nothing but, unlike ":", preserve the value of $?.
336 # Create "$as_dir" as a directory, including parents if necessary.
341 -*) as_dir=./$as_dir;;
343 test -d "$as_dir" || eval $as_mkdir_p || {
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
374 test -d "$as_dir" && break
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
397 eval 'as_fn_append ()
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
422 as_val=`expr "$@" || test $? -eq 1`
428 # Do nothing but, unlike ":", preserve the value of $?.
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
442 as_status=$1; test $as_status -eq 0 && as_status=1
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
528 # Exit status is that of the last command.
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
561 mkdir conf$$.dir 2>/dev/null
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
572 elif ln conf$$.file conf$$ 2>/dev/null; then
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
586 test -d ./-p && rmdir ./-p
591 as_executable_p=as_fn_executable_p
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
599 SHELL=${CONFIG_SHELL-/bin/sh}
602 test -n "$DJDIR" || exec 7<&0 </dev/null
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
613 ac_default_prefix=/usr/local
615 ac_config_libobj_dir=.
622 # Identity of this package.
623 PACKAGE_NAME='fontconfig'
624 PACKAGE_TARNAME='fontconfig'
625 PACKAGE_VERSION='2.14.2'
626 PACKAGE_STRING='fontconfig 2.14.2'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new'
630 # Factoring default headers for most tests.
631 ac_includes_default="\
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
664 ac_subst_vars='am__EXEEXT_FALSE
668 PKGCONFIG_REQUIRES_PRIVATELY
670 ENABLE_CACHE_BUILD_FALSE
671 ENABLE_CACHE_BUILD_TRUE
695 PREFERRED_SUB_PIXEL_RENDERING
707 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE
708 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE
715 CROSS_COMPILING_FALSE
720 MS_LIB_AVAILABLE_FALSE
721 MS_LIB_AVAILABLE_TRUE
731 XGETTEXT_EXTRA_OPTIONS
739 GETTEXT_MACRO_VERSION
746 LIBT_CURRENT_MINUS_AGE
829 INSTALL_STRIP_PROGRAM
872 program_transform_name
886 enable_option_checking
888 enable_dependency_tracking
891 with_python_sys_prefix
893 with_python_exec_prefix
909 with_libiconv_includes
915 with_default_sub_pixel_rendering
928 ac_precious_vars='build_alias
953 # Initialize some variables set by options.
955 ac_init_version=false
956 ac_unrecognized_opts=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
967 program_transform_name=s,x,x,
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 runstatedir='${localstatedir}/run'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1014 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 case $ac_dashdash$ac_option in
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_$ac_useropt"
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1069 eval enable_$ac_useropt=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126 htmldir=$ac_optarg ;;
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1140 -libdir | --libdir | --libdi | --libd)
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1231 -psdir | --psdir | --psdi | --psd | --ps)
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1240 -runstatedir | --runstatedir | --runstatedi | --runstated \
1241 | --runstate | --runstat | --runsta | --runst | --runs \
1242 | --run | --ru | --r)
1243 ac_prev=runstatedir ;;
1244 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1245 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1246 | --run=* | --ru=* | --r=*)
1247 runstatedir=$ac_optarg ;;
1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253 sbindir=$ac_optarg ;;
1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257 | --sharedst | --shareds | --shared | --share | --shar \
1259 ac_prev=sharedstatedir ;;
1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264 sharedstatedir=$ac_optarg ;;
1266 -site | --site | --sit)
1268 -site=* | --site=* | --sit=*)
1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274 srcdir=$ac_optarg ;;
1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277 | --syscon | --sysco | --sysc | --sys | --sy)
1278 ac_prev=sysconfdir ;;
1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281 sysconfdir=$ac_optarg ;;
1283 -target | --target | --targe | --targ | --tar | --ta | --t)
1284 ac_prev=target_alias ;;
1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286 target_alias=$ac_optarg ;;
1288 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1291 -version | --version | --versio | --versi | --vers | -V)
1292 ac_init_version=: ;;
1295 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: \`$ac_useropt'"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1308 eval with_$ac_useropt=\$ac_optarg ;;
1310 -without-* | --without-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error $? "invalid package name: \`$ac_useropt'"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1324 eval with_$ac_useropt=no ;;
1327 # Obsolete; use --with-x.
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1344 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1345 Try \`$0 --help' for more information"
1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
1351 case $ac_envvar in #(
1352 '' | [0-9]* | *[!_$as_cr_alnum]* )
1353 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1359 # FIXME: should be removed in autoconf 3.0.
1360 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 as_fn_error $? "missing argument to $ac_option"
1374 if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1377 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1378 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1382 # Check all directory arguments for consistency.
1383 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir runstatedir
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1395 # Be sure to have absolute directory names.
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1400 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1408 target=$target_alias
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x; then
1412 if test "x$build_alias" = x; then
1413 cross_compiling=maybe
1414 elif test "x$build_alias" != "x$host_alias"; then
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422 test "$silent" = yes && exec 6>/dev/null
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error $? "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error $? "pwd does not report name of working directory"
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 printf "%s\n" X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1465 ac_srcdir_defaulted=no
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1499 \`configure' configures fontconfig 2.14.2 to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking ...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/fontconfig]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1563 --build=BUILD configure for building on BUILD [guessed]
1564 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1568 if test -n "$ac_init_help"; then
1569 case $ac_init_help in
1570 short | recursive ) echo "Configuration of fontconfig 2.14.2:";;
1575 --disable-option-checking ignore unrecognized --enable/--with options
1576 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1577 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1578 --enable-silent-rules less verbose build output (undo: "make V=1")
1579 --disable-silent-rules verbose build output (undo: "make V=0")
1580 --enable-dependency-tracking
1581 do not reject slow dependency extractors
1582 --disable-dependency-tracking
1583 speeds up one-time build
1584 --disable-largefile omit support for large files
1585 --enable-static[=PKGS] build static libraries [default=no]
1586 --enable-shared[=PKGS] build shared libraries [default=yes]
1587 --enable-fast-install[=PKGS]
1588 optimize for fast installation [default=yes]
1589 --disable-libtool-lock avoid locking (might break parallel builds)
1590 --disable-nls do not use Native Language Support
1591 --disable-rpath do not hardcode runtime library paths
1592 --enable-iconv Use iconv to support non-Unicode SFNT name
1593 --enable-libxml2 Use libxml2 instead of Expat
1594 --disable-docbook Disable building docs with docbook2html (default:
1596 --disable-docs Don't build and install documentation
1597 --disable-cache-build Don't run fc-cache during the build
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-pkgconfigdir pkg-config installation directory
1603 ['${libdir}/pkgconfig']
1604 --with-python-sys-prefix
1605 use Python's sys.prefix and sys.exec_prefix values
1606 --with-python_prefix override the default PYTHON_PREFIX
1607 --with-python_exec_prefix
1608 override the default PYTHON_EXEC_PREFIX
1609 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1611 --with-aix-soname=aix|svr4|both
1612 shared library versioning (aka "SONAME") variant to
1613 provide on AIX, [default=aix].
1614 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1615 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1616 compiler's sysroot if not specified).
1617 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1618 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1619 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1620 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1621 --without-libintl-prefix don't search for libintl in includedir and libdir
1622 --with-arch=ARCH Force architecture to ARCH
1623 --with-libiconv=DIR Use libiconv in DIR
1624 --with-libiconv-includes=DIR
1625 Use libiconv includes in DIR
1626 --with-libiconv-lib=DIR Use libiconv library in DIR
1627 --with-expat=DIR Use Expat in DIR
1628 --with-expat-includes=DIR
1629 Use Expat includes in DIR
1630 --with-expat-lib=DIR
1631 --with-default-sub-pixel-rendering=NAME
1632 Enable your preferred sub-pixel rendering
1633 configuration (none/bgr/rgb/vbgr/vrgb)
1635 --with-default-hinting=NAME
1636 Enable your preferred hinting configuration
1637 (none/slight/medium/full) [default=slight]
1638 --with-default-fonts=DIR1,DIR2,...
1639 Use fonts from DIR1,DIR2,... when config is busted
1640 --with-add-fonts=DIR1,DIR2,...
1641 Find additional fonts in DIR1,DIR2,...
1642 --with-cache-dir=DIR Use DIR to store cache files
1643 [default=LOCALSTATEDIR/cache/fontconfig]
1644 --with-templatedir=DIR Use DIR to store the configuration template files
1645 [default=DATADIR/fontconfig/conf.avail]
1646 --with-baseconfigdir=DIR
1647 Use DIR to store the base configuration files
1648 [default=SYSCONFDIR/fonts]
1649 --with-configdir=DIR Use DIR to store active configuration files
1650 [default=BASECONFIGDIR/conf.d]
1651 --with-xmldir=DIR Use DIR to store XML schema files
1652 [default=DATADIR/xml/fontconfig]
1654 Some influential environment variables:
1655 CC C compiler command
1656 CFLAGS C compiler flags
1657 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1658 nonstandard directory <lib dir>
1659 LIBS libraries to pass to the linker, e.g. -l<library>
1660 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1661 you have headers in a nonstandard directory <include dir>
1662 PKG_CONFIG path to pkg-config utility
1664 directories to add to pkg-config's search path
1666 path overriding pkg-config's built-in search path
1667 PYTHON the Python interpreter
1669 User-defined run-time library search path.
1672 build system C compiler
1674 C compiler flags for FREETYPE, overriding pkg-config
1676 linker flags for FREETYPE, overriding pkg-config
1678 C compiler flags for EXPAT, overriding pkg-config
1679 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config
1681 C compiler flags for LIBXML2, overriding pkg-config
1683 linker flags for LIBXML2, overriding pkg-config
1685 C compiler flags for JSONC, overriding pkg-config
1686 JSONC_LIBS linker flags for JSONC, overriding pkg-config
1688 Use these variables to override the choices made by `configure' or to help
1689 it to find libraries and programs with nonstandard names/locations.
1691 Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>.
1696 if test "$ac_init_help" = "recursive"; then
1697 # If there are subdirs, report their specific --help.
1698 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699 test -d "$ac_dir" ||
1700 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1707 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1708 # A ".." for each directory in $ac_dir_suffix.
1709 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710 case $ac_top_builddir_sub in
1711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1721 .) # We are building in place.
1723 ac_top_srcdir=$ac_top_builddir_sub
1724 ac_abs_top_srcdir=$ac_pwd ;;
1725 [\\/]* | ?:[\\/]* ) # Absolute name.
1726 ac_srcdir=$srcdir$ac_dir_suffix;
1727 ac_top_srcdir=$srcdir
1728 ac_abs_top_srcdir=$srcdir ;;
1730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731 ac_top_srcdir=$ac_top_build_prefix$srcdir
1732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1736 cd "$ac_dir" || { ac_status=$?; continue; }
1737 # Check for configure.gnu first; this name is used for a wrapper for
1738 # Metaconfig's "Configure" on case-insensitive file systems.
1739 if test -f "$ac_srcdir/configure.gnu"; then
1741 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1742 elif test -f "$ac_srcdir/configure"; then
1744 $SHELL "$ac_srcdir/configure" --help=recursive
1746 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1748 cd "$ac_pwd" || { ac_status=$?; break; }
1752 test -n "$ac_init_help" && exit $ac_status
1753 if $ac_init_version; then
1755 fontconfig configure 2.14.2
1756 generated by GNU Autoconf 2.71
1758 Copyright (C) 2021 Free Software Foundation, Inc.
1759 This configure script is free software; the Free Software Foundation
1760 gives unlimited permission to copy, distribute and modify it.
1765 ## ------------------------ ##
1766 ## Autoconf initialization. ##
1767 ## ------------------------ ##
1769 # ac_fn_c_try_compile LINENO
1770 # --------------------------
1771 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1772 ac_fn_c_try_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 rm -f conftest.$ac_objext conftest.beam
1776 if { { ac_try="$ac_compile"
1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779 *) ac_try_echo=$ac_try;;
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 printf "%s\n" "$ac_try_echo"; } >&5
1783 (eval "$ac_compile") 2>conftest.err
1785 if test -s conftest.err; then
1786 grep -v '^ *+' conftest.err >conftest.er1
1787 cat conftest.er1 >&5
1788 mv -f conftest.er1 conftest.err
1790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791 test $ac_status = 0; } && {
1792 test -z "$ac_c_werror_flag" ||
1793 test ! -s conftest.err
1794 } && test -s conftest.$ac_objext
1798 printf "%s\n" "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1806 } # ac_fn_c_try_compile
1808 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1809 # -------------------------------------------------------
1810 # Tests whether HEADER exists and can be compiled using the include files in
1811 # INCLUDES, setting the cache variable VAR accordingly.
1812 ac_fn_c_check_header_compile ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 printf %s "checking for $2... " >&6; }
1817 if eval test \${$3+y}
1819 printf %s "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1826 if ac_fn_c_try_compile "$LINENO"
1832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 printf "%s\n" "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 } # ac_fn_c_check_header_compile
1841 # ac_fn_c_try_link LINENO
1842 # -----------------------
1843 # Try to link conftest.$ac_ext, and return whether this succeeded.
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1848 if { { ac_try="$ac_link"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 printf "%s\n" "$ac_try_echo"; } >&5
1855 (eval "$ac_link") 2>conftest.err
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest$ac_exeext && {
1867 test "$cross_compiling" = yes ||
1868 test -x conftest$ac_exeext
1873 printf "%s\n" "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884 as_fn_set_status $ac_retval
1886 } # ac_fn_c_try_link
1888 # ac_fn_c_check_func LINENO FUNC VAR
1889 # ----------------------------------
1890 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1891 ac_fn_c_check_func ()
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 printf %s "checking for $2... " >&6; }
1896 if eval test \${$3+y}
1898 printf %s "(cached) " >&6
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1904 #define $2 innocuous_$2
1906 /* System header to define __stub macros and hopefully few prototypes,
1907 which can conflict with char $2 (); below. */
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1934 if ac_fn_c_try_link "$LINENO"
1940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1941 conftest$ac_exeext conftest.$ac_ext
1944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 printf "%s\n" "$ac_res" >&6; }
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 } # ac_fn_c_check_func
1950 # ac_fn_c_try_cpp LINENO
1951 # ----------------------
1952 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 if { { ac_try="$ac_cpp conftest.$ac_ext"
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 printf "%s\n" "$ac_try_echo"; } >&5
1963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } > conftest.i && {
1972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1973 test ! -s conftest.err
1978 printf "%s\n" "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 as_fn_set_status $ac_retval
1988 # ac_fn_c_try_run LINENO
1989 # ----------------------
1990 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1991 # executables *can* be run.
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if { { ac_try="$ac_link"
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 printf "%s\n" "$ac_try_echo"; } >&5
2002 (eval "$ac_link") 2>&5
2004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2006 { { case "(($ac_try" in
2007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008 *) ac_try_echo=$ac_try;;
2010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011 printf "%s\n" "$ac_try_echo"; } >&5
2012 (eval "$ac_try") 2>&5
2014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; }; }
2019 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2020 printf "%s\n" "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2023 ac_retval=$ac_status
2025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2031 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2032 # ------------------------------------------------------------------
2033 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2034 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 as_decl_name=`echo $2|sed 's/ *(.*//'`
2039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2040 printf %s "checking whether $as_decl_name is declared... " >&6; }
2041 if eval test \${$3+y}
2043 printf %s "(cached) " >&6
2045 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2046 eval ac_save_FLAGS=\$$6
2047 as_fn_append $6 " $5"
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2054 #ifndef $as_decl_name
2056 (void) $as_decl_use;
2058 (void) $as_decl_name;
2066 if ac_fn_c_try_compile "$LINENO"
2072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2073 eval $6=\$ac_save_FLAGS
2077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 printf "%s\n" "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 } # ac_fn_check_decl
2083 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2084 # -------------------------------------------
2085 # Tests whether TYPE exists after having included INCLUDES, setting cache
2086 # variable VAR accordingly.
2087 ac_fn_c_check_type ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 printf %s "checking for $2... " >&6; }
2092 if eval test \${$3+y}
2094 printf %s "(cached) " >&6
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2109 if ac_fn_c_try_compile "$LINENO"
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2123 if ac_fn_c_try_compile "$LINENO"
2129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 printf "%s\n" "$ac_res" >&6; }
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 } # ac_fn_c_check_type
2140 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2141 # --------------------------------------------
2142 # Tries to find the compile-time value of EXPR in a program that includes
2143 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2145 ac_fn_c_compute_int ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if test "$cross_compiling" = yes; then
2149 # Depending upon the size, compute the lo and hi bounds.
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2156 static int test_array [1 - 2 * !(($2) >= 0)];
2158 return test_array [0];
2164 if ac_fn_c_try_compile "$LINENO"
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2176 return test_array [0];
2182 if ac_fn_c_try_compile "$LINENO"
2184 ac_hi=$ac_mid; break
2186 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2187 if test $ac_lo -le $ac_mid; then
2191 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2202 static int test_array [1 - 2 * !(($2) < 0)];
2204 return test_array [0];
2210 if ac_fn_c_try_compile "$LINENO"
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2220 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2222 return test_array [0];
2228 if ac_fn_c_try_compile "$LINENO"
2230 ac_lo=$ac_mid; break
2232 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2233 if test $ac_mid -le $ac_hi; then
2237 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2247 # Binary search between lo and hi bounds.
2248 while test "x$ac_lo" != "x$ac_hi"; do
2249 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2256 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2258 return test_array [0];
2264 if ac_fn_c_try_compile "$LINENO"
2268 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2273 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2280 static long int longval (void) { return $2; }
2281 static unsigned long int ulongval (void) { return $2; }
2288 FILE *f = fopen ("conftest.val", "w");
2293 long int i = longval ();
2296 fprintf (f, "%ld", i);
2300 unsigned long int i = ulongval ();
2303 fprintf (f, "%lu", i);
2305 /* Do not output a trailing newline, as this causes \r\n confusion
2306 on some platforms. */
2307 return ferror (f) || fclose (f) != 0;
2313 if ac_fn_c_try_run "$LINENO"
2315 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2320 conftest.$ac_objext conftest.beam conftest.$ac_ext
2324 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2325 as_fn_set_status $ac_retval
2327 } # ac_fn_c_compute_int
2329 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2330 # ----------------------------------------------------
2331 # Tries to find if the field MEMBER exists in type AGGR, after including
2332 # INCLUDES, setting cache variable VAR accordingly.
2333 ac_fn_c_check_member ()
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2337 printf %s "checking for $2.$3... " >&6; }
2338 if eval test \${$4+y}
2340 printf %s "(cached) " >&6
2342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2343 /* end confdefs.h. */
2355 if ac_fn_c_try_compile "$LINENO"
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2366 if (sizeof ac_aggr.$3)
2372 if ac_fn_c_try_compile "$LINENO"
2378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 printf "%s\n" "$ac_res" >&6; }
2385 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387 } # ac_fn_c_check_member
2388 ac_configure_args_raw=
2393 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395 as_fn_append ac_configure_args_raw " '$ac_arg'"
2398 case $ac_configure_args_raw in
2402 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2403 ac_unsafe_a="$ac_unsafe_z#~"
2404 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2405 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2408 cat >config.log <<_ACEOF
2409 This file contains any messages produced by compilers while
2410 running configure, to aid debugging if configure makes a mistake.
2412 It was created by fontconfig $as_me 2.14.2, which was
2413 generated by GNU Autoconf 2.71. Invocation command line was
2415 $ $0$ac_configure_args_raw
2425 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2426 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2427 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2428 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2429 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2431 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2432 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2434 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2435 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2436 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2437 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2438 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2439 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2440 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 case $as_dir in #(((
2451 *) as_dir=$as_dir/ ;;
2453 printf "%s\n" "PATH: $as_dir"
2469 # Keep a trace of the command line.
2470 # Strip out --no-create and --no-recursion so they do not pile up.
2471 # Strip out --silent because we don't want to record it for future runs.
2472 # Also quote any args containing shell meta-characters.
2473 # Make two passes to allow for proper duplicate-argument suppression.
2477 ac_must_keep_next=false
2483 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2485 | -silent | --silent | --silen | --sile | --sil)
2488 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2491 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2493 as_fn_append ac_configure_args1 " '$ac_arg'"
2494 if test $ac_must_keep_next = true; then
2495 ac_must_keep_next=false # Got value, back to normal.
2498 *=* | --config-cache | -C | -disable-* | --disable-* \
2499 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2500 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2501 | -with-* | --with-* | -without-* | --without-* | --x)
2502 case "$ac_configure_args0 " in
2503 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2506 -* ) ac_must_keep_next=true ;;
2509 as_fn_append ac_configure_args " '$ac_arg'"
2514 { ac_configure_args0=; unset ac_configure_args0;}
2515 { ac_configure_args1=; unset ac_configure_args1;}
2517 # When interrupted or exit'd, cleanup temporary files, and complete
2518 # config.log. We remove comments because anyway the quotes in there
2519 # would cause problems or look ugly.
2520 # WARNING: Use '\'' to represent an apostrophe within the trap.
2521 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2522 trap 'exit_status=$?
2525 # Save into config.log some information that might help in debugging.
2529 printf "%s\n" "## ---------------- ##
2530 ## Cache variables. ##
2531 ## ---------------- ##"
2533 # The following way of writing the cache mishandles newlines in values,
2535 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2536 eval ac_val=\$$ac_var
2540 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2541 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2544 _ | IFS | as_nl) ;; #(
2545 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2546 *) { eval $ac_var=; unset $ac_var;} ;;
2551 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2552 *${as_nl}ac_space=\ *)
2554 "s/'\''/'\''\\\\'\'''\''/g;
2555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2565 printf "%s\n" "## ----------------- ##
2566 ## Output variables. ##
2567 ## ----------------- ##"
2569 for ac_var in $ac_subst_vars
2571 eval ac_val=\$$ac_var
2573 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2575 printf "%s\n" "$ac_var='\''$ac_val'\''"
2579 if test -n "$ac_subst_files"; then
2580 printf "%s\n" "## ------------------- ##
2581 ## File substitutions. ##
2582 ## ------------------- ##"
2584 for ac_var in $ac_subst_files
2586 eval ac_val=\$$ac_var
2588 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2590 printf "%s\n" "$ac_var='\''$ac_val'\''"
2595 if test -s confdefs.h; then
2596 printf "%s\n" "## ----------- ##
2603 test "$ac_signal" != 0 &&
2604 printf "%s\n" "$as_me: caught signal $ac_signal"
2605 printf "%s\n" "$as_me: exit $exit_status"
2607 rm -f core *.core core.conftest.* &&
2608 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2611 for ac_signal in 1 2 13 15; do
2612 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2616 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2617 rm -f -r conftest* confdefs.h
2619 printf "%s\n" "/* confdefs.h */" > confdefs.h
2621 # Predefined preprocessor variables.
2623 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2625 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2627 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2629 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2631 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2633 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2636 # Let the site file select an alternate cache file if it wants to.
2637 # Prefer an explicitly selected file to automatically selected ones.
2638 if test -n "$CONFIG_SITE"; then
2639 ac_site_files="$CONFIG_SITE"
2640 elif test "x$prefix" != xNONE; then
2641 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2643 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2646 for ac_site_file in $ac_site_files
2648 case $ac_site_file in #(
2652 ac_site_file=./$ac_site_file ;;
2654 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2656 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2657 sed 's/^/| /' "$ac_site_file" >&5
2659 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2661 as_fn_error $? "failed to load site script $ac_site_file
2662 See \`config.log' for more details" "$LINENO" 5; }
2666 if test -r "$cache_file"; then
2667 # Some versions of bash will fail to source /dev/null (special files
2668 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2669 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2671 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2673 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2674 *) . "./$cache_file";;
2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2679 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2683 # Test code for whether the C compiler supports C89 (global declarations)
2684 ac_c_conftest_c89_globals='
2685 /* Does the compiler advertise C89 conformance?
2686 Do not test the value of __STDC__, because some compilers set it to 0
2687 while being otherwise adequately conformant. */
2688 #if !defined __STDC__
2689 # error "Compiler does not advertise C89 conformance"
2695 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2696 struct buf { int x; };
2697 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2698 static char *e (p, i)
2704 static char *f (char * (*g) (char **, int), char **p, ...)
2709 s = g (p, va_arg (v,int));
2714 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2715 function prototypes and stuff, but not \xHH hex character constants.
2716 These do not provoke an error unfortunately, instead are silently treated
2717 as an "x". The following induces an error, until -std is added to get
2718 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2719 array size at least. It is necessary to write \x00 == 0 to get something
2720 that is true only with -std. */
2721 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2723 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2724 inside strings and character constants. */
2725 #define FOO(x) '\''x'\''
2726 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2728 int test (int i, double x);
2729 struct s1 {int (*f) (int a);};
2730 struct s2 {int (*f) (double a);};
2731 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2734 # Test code for whether the C compiler supports C89 (body of main).
2735 ac_c_conftest_c89_main='
2736 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2739 # Test code for whether the C compiler supports C99 (global declarations)
2740 ac_c_conftest_c99_globals='
2741 // Does the compiler advertise C99 conformance?
2742 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2743 # error "Compiler does not advertise C99 conformance"
2746 #include <stdbool.h>
2747 extern int puts (const char *);
2748 extern int printf (const char *, ...);
2749 extern int dprintf (int, const char *, ...);
2750 extern void *malloc (size_t);
2752 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2753 // dprintf is used instead of fprintf to avoid needing to declare
2755 #define debug(...) dprintf (2, __VA_ARGS__)
2756 #define showlist(...) puts (#__VA_ARGS__)
2757 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2759 test_varargs_macros (void)
2764 debug ("X = %d\n", x);
2765 showlist (The first, second, and third items.);
2766 report (x>y, "x is %d but y is %d", x, y);
2769 // Check long long types.
2770 #define BIG64 18446744073709551615ull
2771 #define BIG32 4294967295ul
2772 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2774 #error "your preprocessor is broken"
2778 #error "your preprocessor is broken"
2780 static long long int bignum = -9223372036854775807LL;
2781 static unsigned long long int ubignum = BIG64;
2783 struct incomplete_array
2791 const wchar_t *name;
2795 typedef const char *ccp;
2798 test_restrict (ccp restrict text)
2800 // See if C++-style comments work.
2801 // Iterate through items via the restricted pointer.
2802 // Also check for declarations in for loops.
2803 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2808 // Check varargs and va_copy.
2810 test_varargs (const char *format, ...)
2813 va_start (args, format);
2815 va_copy (args_copy, args);
2817 const char *str = "";
2825 case '\''s'\'': // string
2826 str = va_arg (args_copy, const char *);
2828 case '\''d'\'': // int
2829 number = va_arg (args_copy, int);
2831 case '\''f'\'': // float
2832 fnumber = va_arg (args_copy, double);
2841 return *str && number && fnumber;
2845 # Test code for whether the C compiler supports C99 (body of main).
2846 ac_c_conftest_c99_main='
2848 _Bool success = false;
2849 success |= (argc != 0);
2852 if (test_restrict ("String literal") == 0)
2854 char *restrict newvar = "Another string";
2857 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2858 test_varargs_macros ();
2860 // Check flexible array members.
2861 struct incomplete_array *ia =
2862 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2864 for (int i = 0; i < ia->datasize; ++i)
2865 ia->data[i] = i * 1.234;
2867 // Check named initializers.
2868 struct named_init ni = {
2870 .name = L"Test wide string",
2871 .average = 543.34343,
2876 int dynamic_array[ni.number];
2877 dynamic_array[0] = argv[0][0];
2878 dynamic_array[ni.number - 1] = 543;
2880 // work around unused variable warnings
2881 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2882 || dynamic_array[ni.number - 1] != 543);
2885 # Test code for whether the C compiler supports C11 (global declarations)
2886 ac_c_conftest_c11_globals='
2887 // Does the compiler advertise C11 conformance?
2888 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2889 # error "Compiler does not advertise C11 conformance"
2893 char _Alignas (double) aligned_as_double;
2894 char _Alignas (0) no_special_alignment;
2895 extern char aligned_as_int;
2896 char _Alignas (0) _Alignas (int) aligned_as_int;
2901 int_alignment = _Alignof (int),
2902 int_array_alignment = _Alignof (int[100]),
2903 char_alignment = _Alignof (char)
2905 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2908 int _Noreturn does_not_return (void) { for (;;) continue; }
2910 // Check _Static_assert.
2911 struct test_static_assert
2914 _Static_assert (sizeof (int) <= sizeof (long int),
2915 "_Static_assert does not work in struct");
2919 // Check UTF-8 literals.
2920 #define u8 syntax error!
2921 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2923 // Check duplicate typedefs.
2924 typedef long *long_ptr;
2925 typedef long int *long_ptr;
2926 typedef long_ptr long_ptr;
2928 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2932 struct { int i; int j; };
2933 struct { int k; long int l; } w;
2939 # Test code for whether the C compiler supports C11 (body of main).
2940 ac_c_conftest_c11_main='
2941 _Static_assert ((offsetof (struct anonymous, i)
2942 == offsetof (struct anonymous, w.k)),
2943 "Anonymous union alignment botch");
2949 # Test code for whether the C compiler supports C11 (complete).
2950 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2951 ${ac_c_conftest_c99_globals}
2952 ${ac_c_conftest_c11_globals}
2955 main (int argc, char **argv)
2958 ${ac_c_conftest_c89_main}
2959 ${ac_c_conftest_c99_main}
2960 ${ac_c_conftest_c11_main}
2965 # Test code for whether the C compiler supports C99 (complete).
2966 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2967 ${ac_c_conftest_c99_globals}
2970 main (int argc, char **argv)
2973 ${ac_c_conftest_c89_main}
2974 ${ac_c_conftest_c99_main}
2979 # Test code for whether the C compiler supports C89 (complete).
2980 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2983 main (int argc, char **argv)
2986 ${ac_c_conftest_c89_main}
2991 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2992 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2993 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2994 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2995 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2996 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2997 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2998 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2999 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3000 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3001 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3002 gt_needs="$gt_needs "
3003 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3004 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3005 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
3007 # Auxiliary files required by this configure script.
3008 ac_aux_files="config.rpath config.guess config.sub ltmain.sh compile missing install-sh"
3010 # Locations in which to look for auxiliary files.
3011 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3013 # Search for a directory containing all of the required auxiliary files,
3014 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3015 # If we don't find one directory that contains all the files we need,
3016 # we report the set of missing files from the *first* directory in
3017 # $ac_aux_dir_candidates and give up.
3018 ac_missing_aux_files=""
3019 ac_first_candidate=:
3020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $ac_aux_dir_candidates
3026 case $as_dir in #(((
3029 *) as_dir=$as_dir/ ;;
3033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3034 ac_aux_dir_found=yes
3036 for ac_aux in $ac_aux_files
3038 # As a special case, if "install-sh" is required, that requirement
3039 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3040 # and $ac_install_sh is set appropriately for whichever one is found.
3041 if test x"$ac_aux" = x"install-sh"
3043 if test -f "${as_dir}install-sh"; then
3044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3045 ac_install_sh="${as_dir}install-sh -c"
3046 elif test -f "${as_dir}install.sh"; then
3047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3048 ac_install_sh="${as_dir}install.sh -c"
3049 elif test -f "${as_dir}shtool"; then
3050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3051 ac_install_sh="${as_dir}shtool install -c"
3054 if $ac_first_candidate; then
3055 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3061 if test -f "${as_dir}${ac_aux}"; then
3062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3065 if $ac_first_candidate; then
3066 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3073 if test "$ac_aux_dir_found" = yes; then
3074 ac_aux_dir="$as_dir"
3077 ac_first_candidate=false
3086 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3090 # These three variables are undocumented and unsupported,
3091 # and are intended to be withdrawn in a future Autoconf release.
3092 # They can cause serious problems if a builder's source tree is in a directory
3093 # whose full name contains unusual characters.
3094 if test -f "${ac_aux_dir}config.guess"; then
3095 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3097 if test -f "${ac_aux_dir}config.sub"; then
3098 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3100 if test -f "$ac_aux_dir/configure"; then
3101 ac_configure="$SHELL ${ac_aux_dir}configure"
3104 # Check that the precious variables saved in the cache have kept the same
3106 ac_cache_corrupted=false
3107 for ac_var in $ac_precious_vars; do
3108 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3109 eval ac_new_set=\$ac_env_${ac_var}_set
3110 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3111 eval ac_new_val=\$ac_env_${ac_var}_value
3112 case $ac_old_set,$ac_new_set in
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3115 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3116 ac_cache_corrupted=: ;;
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3119 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3120 ac_cache_corrupted=: ;;
3123 if test "x$ac_old_val" != "x$ac_new_val"; then
3124 # differences in whitespace do not lead to failure.
3125 ac_old_val_w=`echo x $ac_old_val`
3126 ac_new_val_w=`echo x $ac_new_val`
3127 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3129 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3130 ac_cache_corrupted=:
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3133 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3134 eval $ac_var=\$ac_old_val
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3137 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3139 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3142 # Pass precious variables to config.status.
3143 if test "$ac_new_set" = set; then
3145 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3146 *) ac_arg=$ac_var=$ac_new_val ;;
3148 case " $ac_configure_args " in
3149 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3150 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3154 if $ac_cache_corrupted; then
3155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3156 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3158 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3159 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3160 and start over" "$LINENO" 5
3162 ## -------------------- ##
3163 ## Main body of script. ##
3164 ## -------------------- ##
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 am__api_version='1.16'
3177 # Find a good install program. We prefer a C program (faster),
3178 # so one script is as good as another. But avoid the broken or
3179 # incompatible versions:
3180 # SysV /etc/install, /usr/sbin/install
3181 # SunOS /usr/etc/install
3182 # IRIX /sbin/install
3184 # AmigaOS /C/install, which installs bootblocks on floppy discs
3185 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3186 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3187 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3188 # OS/2's system install, which has a completely different semantic
3189 # ./install, which can be erroneously created by make from ./install.sh.
3190 # Reject install programs that cannot install multiple files.
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3192 printf %s "checking for a BSD-compatible install... " >&6; }
3193 if test -z "$INSTALL"; then
3194 if test ${ac_cv_path_install+y}
3196 printf %s "(cached) " >&6
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 case $as_dir in #(((
3205 *) as_dir=$as_dir/ ;;
3207 # Account for fact that we put trailing slashes in our PATH walk.
3210 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3211 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3214 # OSF1 and SCO ODT 3.0 have their own names for install.
3215 # Don't use installbsd from OSF since it installs stuff as root
3217 for ac_prog in ginstall scoinst install; do
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3220 if test $ac_prog = install &&
3221 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3222 # AIX install. It has an incompatible calling convention.
3224 elif test $ac_prog = install &&
3225 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3226 # program-specific install script used by HP pwplus--don't use.
3229 rm -rf conftest.one conftest.two conftest.dir
3230 echo one > conftest.one
3231 echo two > conftest.two
3233 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3234 test -s conftest.one && test -s conftest.two &&
3235 test -s conftest.dir/conftest.one &&
3236 test -s conftest.dir/conftest.two
3238 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3251 rm -rf conftest.one conftest.two conftest.dir
3254 if test ${ac_cv_path_install+y}; then
3255 INSTALL=$ac_cv_path_install
3257 # As a last resort, use the slow shell script. Don't cache a
3258 # value for INSTALL within a source directory, because that will
3259 # break other packages using the cache if that directory is
3260 # removed, or if the value is a relative name.
3261 INSTALL=$ac_install_sh
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3265 printf "%s\n" "$INSTALL" >&6; }
3267 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3268 # It thinks the first close brace ends the variable substitution.
3269 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3271 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3273 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3276 printf %s "checking whether build environment is sane... " >&6; }
3277 # Reject unsafe characters in $srcdir or the absolute working directory
3278 # name. Accept space and tab only in the latter.
3282 *[\\\"\#\$\&\'\`$am_lf]*)
3283 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3286 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3287 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3290 # Do 'set' in a subshell so we don't clobber the current shell's
3291 # arguments. Must try -L first in case configure is actually a
3292 # symlink; some systems play weird games with the mod time of symlinks
3293 # (eg FreeBSD returns the mod time of the symlink's containing
3297 for am_try in 1 2; do
3298 echo "timestamp, slept: $am_has_slept" > conftest.file
3299 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3300 if test "$*" = "X"; then
3302 set X `ls -t "$srcdir/configure" conftest.file`
3304 if test "$*" != "X $srcdir/configure conftest.file" \
3305 && test "$*" != "X conftest.file $srcdir/configure"; then
3307 # If neither matched, then we have a broken ls. This can happen
3308 # if, for instance, CONFIG_SHELL is bash and it inherits a
3309 # broken ls alias from the environment. This has actually
3310 # happened. Such a system could not be considered "sane".
3311 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3312 alias in your environment" "$LINENO" 5
3314 if test "$2" = conftest.file || test $am_try -eq 2; then
3321 test "$2" = conftest.file
3327 as_fn_error $? "newly created file is older than distributed files!
3328 Check your system clock" "$LINENO" 5
3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331 printf "%s\n" "yes" >&6; }
3332 # If we didn't sleep, we still need to ensure time stamps of config.status and
3333 # generated files are strictly newer.
3335 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3342 test "$program_prefix" != NONE &&
3343 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3344 # Use a double $ so make ignores it.
3345 test "$program_suffix" != NONE &&
3346 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3347 # Double any \ or $.
3348 # By default was `s,x,x', remove it if useless.
3349 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3350 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3353 # Expand $ac_aux_dir to an absolute path.
3354 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3357 if test x"${MISSING+set}" != xset; then
3358 MISSING="\${SHELL} '$am_aux_dir/missing'"
3360 # Use eval to expand $SHELL
3361 if eval "$MISSING --is-lightweight"; then
3362 am_missing_run="$MISSING "
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3366 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3369 if test x"${install_sh+set}" != xset; then
3372 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3374 install_sh="\${SHELL} $am_aux_dir/install-sh"
3378 # Installed binaries are usually stripped using 'strip' when the user
3379 # run "make install-strip". However 'strip' might not be the right
3380 # tool to use in cross-compilation environments, therefore Automake
3381 # will honor the 'STRIP' environment variable to overrule this program.
3382 if test "$cross_compiling" != no; then
3383 if test -n "$ac_tool_prefix"; then
3384 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3385 set dummy ${ac_tool_prefix}strip; ac_word=$2
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 printf %s "checking for $ac_word... " >&6; }
3388 if test ${ac_cv_prog_STRIP+y}
3390 printf %s "(cached) " >&6
3392 if test -n "$STRIP"; then
3393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 case $as_dir in #(((
3402 *) as_dir=$as_dir/ ;;
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3406 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3416 STRIP=$ac_cv_prog_STRIP
3417 if test -n "$STRIP"; then
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3419 printf "%s\n" "$STRIP" >&6; }
3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 printf "%s\n" "no" >&6; }
3427 if test -z "$ac_cv_prog_STRIP"; then
3429 # Extract the first word of "strip", so it can be a program name with args.
3430 set dummy strip; ac_word=$2
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 printf %s "checking for $ac_word... " >&6; }
3433 if test ${ac_cv_prog_ac_ct_STRIP+y}
3435 printf %s "(cached) " >&6
3437 if test -n "$ac_ct_STRIP"; then
3438 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 case $as_dir in #(((
3447 *) as_dir=$as_dir/ ;;
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3451 ac_cv_prog_ac_ct_STRIP="strip"
3452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3461 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3462 if test -n "$ac_ct_STRIP"; then
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3464 printf "%s\n" "$ac_ct_STRIP" >&6; }
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 printf "%s\n" "no" >&6; }
3470 if test "x$ac_ct_STRIP" = x; then
3473 case $cross_compiling:$ac_tool_warned in
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3476 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3477 ac_tool_warned=yes ;;
3482 STRIP="$ac_cv_prog_STRIP"
3486 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3490 printf %s "checking for a race-free mkdir -p... " >&6; }
3491 if test -z "$MKDIR_P"; then
3492 if test ${ac_cv_path_mkdir+y}
3494 printf %s "(cached) " >&6
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3500 case $as_dir in #(((
3503 *) as_dir=$as_dir/ ;;
3505 for ac_prog in mkdir gmkdir; do
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3508 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3509 'mkdir ('*'coreutils) '* | \
3511 'mkdir (fileutils) '4.1*)
3512 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3522 test -d ./--version && rmdir ./--version
3523 if test ${ac_cv_path_mkdir+y}; then
3524 MKDIR_P="$ac_cv_path_mkdir -p"
3526 # As a last resort, use the slow shell script. Don't cache a
3527 # value for MKDIR_P within a source directory, because that will
3528 # break other packages using the cache if that directory is
3529 # removed, or if the value is a relative name.
3530 MKDIR_P="$ac_install_sh -d"
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3534 printf "%s\n" "$MKDIR_P" >&6; }
3536 for ac_prog in gawk mawk nawk awk
3538 # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 printf %s "checking for $ac_word... " >&6; }
3542 if test ${ac_cv_prog_AWK+y}
3544 printf %s "(cached) " >&6
3546 if test -n "$AWK"; then
3547 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 case $as_dir in #(((
3556 *) as_dir=$as_dir/ ;;
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_AWK="$ac_prog"
3561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3571 if test -n "$AWK"; then
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3573 printf "%s\n" "$AWK" >&6; }
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 printf "%s\n" "no" >&6; }
3580 test -n "$AWK" && break
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3584 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3586 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3587 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3589 printf %s "(cached) " >&6
3591 cat >conftest.make <<\_ACEOF
3594 @echo '@@@%%%=$(MAKE)=@@@%%%'
3596 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3597 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3599 eval ac_cv_prog_make_${ac_make}_set=yes;;
3601 eval ac_cv_prog_make_${ac_make}_set=no;;
3605 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3607 printf "%s\n" "yes" >&6; }
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 printf "%s\n" "no" >&6; }
3612 SET_MAKE="MAKE=${MAKE-make}"
3615 rm -rf .tst 2>/dev/null
3616 mkdir .tst 2>/dev/null
3617 if test -d .tst; then
3622 rmdir .tst 2>/dev/null
3624 # Check whether --enable-silent-rules was given.
3625 if test ${enable_silent_rules+y}
3627 enableval=$enable_silent_rules;
3630 case $enable_silent_rules in # (((
3631 yes) AM_DEFAULT_VERBOSITY=0;;
3632 no) AM_DEFAULT_VERBOSITY=1;;
3633 *) AM_DEFAULT_VERBOSITY=1;;
3635 am_make=${MAKE-make}
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3637 printf %s "checking whether $am_make supports nested variables... " >&6; }
3638 if test ${am_cv_make_support_nested_variables+y}
3640 printf %s "(cached) " >&6
3642 if printf "%s\n" 'TRUE=$(BAR$(V))
3648 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3649 am_cv_make_support_nested_variables=yes
3651 am_cv_make_support_nested_variables=no
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3655 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3656 if test $am_cv_make_support_nested_variables = yes; then
3658 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3660 AM_V=$AM_DEFAULT_VERBOSITY
3661 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3665 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3666 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3667 # is not polluted with repeated "-I."
3668 am__isrc=' -I$(srcdir)'
3669 # test to see if srcdir already configured
3670 if test -f $srcdir/config.status; then
3671 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3675 # test whether we have cygpath
3676 if test -z "$CYGPATH_W"; then
3677 if (cygpath --version) >/dev/null 2>/dev/null; then
3678 CYGPATH_W='cygpath -w'
3685 # Define the identity of the package.
3686 PACKAGE='fontconfig'
3690 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3693 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3695 # Some tools Automake needs.
3697 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3700 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3703 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3706 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3709 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3711 # For better backward compatibility. To be removed once Automake 1.9.x
3712 # dies out for good. For more background, see:
3713 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3714 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3715 mkdir_p='$(MKDIR_P)'
3717 # We need awk for the "check" target (and possibly the TAP driver). The
3718 # system "awk" is bad on some platforms.
3719 # Always define AMTAR for backward compatibility. Yes, it's still used
3720 # in the wild :-( We should find a proper way to deprecate it ...
3724 # We'll loop over all known methods to create a tar archive until one works.
3725 _am_tools='gnutar pax cpio none'
3727 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3733 # Variables for tags utilities; see am/tags.am
3734 if test -z "$CTAGS"; then
3738 if test -z "$ETAGS"; then
3742 if test -z "$CSCOPE"; then
3748 # POSIX will say in a future version that running "rm -f" with no argument
3749 # is OK; and we want to be able to make that assumption in our Makefile
3750 # recipes. So use an aggressive probe to check that the usage we want is
3751 # actually supported "in the wild" to an acceptable degree.
3752 # See automake bug#10828.
3753 # To make any issue more visible, cause the running configure to be aborted
3754 # by default if the 'rm' program in use doesn't match our expectations; the
3755 # user can still override this though.
3756 if rm -f && rm -fr && rm -rf; then : OK; else
3760 Your 'rm' program seems unable to run without file operands specified
3761 on the command line, even when the '-f' option is present. This is contrary
3762 to the behaviour of most rm programs out there, and not conforming with
3763 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3765 Please tell bug-automake@gnu.org about your system, including the value
3766 of your $PATH and any error possibly output before this message. This
3767 can help us improve future automake versions.
3770 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3771 echo 'Configuration will proceed anyway, since you have set the' >&2
3772 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3776 Aborting the configuration process, to ensure you take notice of the issue.
3778 You can download and install GNU coreutils to get an 'rm' implementation
3779 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3781 If you want to complete the configuration process using your problematic
3782 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3783 to "yes", and re-run configure.
3786 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3790 # Check whether --enable-silent-rules was given.
3791 if test ${enable_silent_rules+y}
3793 enableval=$enable_silent_rules;
3796 case $enable_silent_rules in # (((
3797 yes) AM_DEFAULT_VERBOSITY=0;;
3798 no) AM_DEFAULT_VERBOSITY=1;;
3799 *) AM_DEFAULT_VERBOSITY=0;;
3801 am_make=${MAKE-make}
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3803 printf %s "checking whether $am_make supports nested variables... " >&6; }
3804 if test ${am_cv_make_support_nested_variables+y}
3806 printf %s "(cached) " >&6
3808 if printf "%s\n" 'TRUE=$(BAR$(V))
3814 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3815 am_cv_make_support_nested_variables=yes
3817 am_cv_make_support_nested_variables=no
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3821 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3822 if test $am_cv_make_support_nested_variables = yes; then
3824 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3826 AM_V=$AM_DEFAULT_VERBOSITY
3827 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3833 ac_config_headers="$ac_config_headers config.h"
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3853 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855 printf %s "checking for $ac_word... " >&6; }
3856 if test ${ac_cv_prog_CC+y}
3858 printf %s "(cached) " >&6
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 case $as_dir in #(((
3870 *) as_dir=$as_dir/ ;;
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3885 if test -n "$CC"; then
3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3887 printf "%s\n" "$CC" >&6; }
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 printf "%s\n" "no" >&6; }
3895 if test -z "$ac_cv_prog_CC"; then
3897 # Extract the first word of "gcc", so it can be a program name with args.
3898 set dummy gcc; ac_word=$2
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900 printf %s "checking for $ac_word... " >&6; }
3901 if test ${ac_cv_prog_ac_ct_CC+y}
3903 printf %s "(cached) " >&6
3905 if test -n "$ac_ct_CC"; then
3906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 case $as_dir in #(((
3915 *) as_dir=$as_dir/ ;;
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3919 ac_cv_prog_ac_ct_CC="gcc"
3920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3929 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3930 if test -n "$ac_ct_CC"; then
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3932 printf "%s\n" "$ac_ct_CC" >&6; }
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 printf "%s\n" "no" >&6; }
3938 if test "x$ac_ct_CC" = x; then
3941 case $cross_compiling:$ac_tool_warned in
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3945 ac_tool_warned=yes ;;
3953 if test -z "$CC"; then
3954 if test -n "$ac_tool_prefix"; then
3955 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3956 set dummy ${ac_tool_prefix}cc; ac_word=$2
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 printf %s "checking for $ac_word... " >&6; }
3959 if test ${ac_cv_prog_CC+y}
3961 printf %s "(cached) " >&6
3963 if test -n "$CC"; then
3964 ac_cv_prog_CC="$CC" # Let the user override the test.
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 case $as_dir in #(((
3973 *) as_dir=$as_dir/ ;;
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_CC="${ac_tool_prefix}cc"
3978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3988 if test -n "$CC"; then
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990 printf "%s\n" "$CC" >&6; }
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 printf "%s\n" "no" >&6; }
3999 if test -z "$CC"; then
4000 # Extract the first word of "cc", so it can be a program name with args.
4001 set dummy cc; ac_word=$2
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 printf %s "checking for $ac_word... " >&6; }
4004 if test ${ac_cv_prog_CC+y}
4006 printf %s "(cached) " >&6
4008 if test -n "$CC"; then
4009 ac_cv_prog_CC="$CC" # Let the user override the test.
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 case $as_dir in #(((
4019 *) as_dir=$as_dir/ ;;
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4023 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4024 ac_prog_rejected=yes
4028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4035 if test $ac_prog_rejected = yes; then
4036 # We found a bogon in the path, so make sure we never use it.
4037 set dummy $ac_cv_prog_CC
4039 if test $# != 0; then
4040 # We chose a different compiler from the bogus one.
4041 # However, it has the same basename, so the bogon will be chosen
4042 # first if we set CC to just the basename; use the full file name.
4044 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4050 if test -n "$CC"; then
4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052 printf "%s\n" "$CC" >&6; }
4054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 printf "%s\n" "no" >&6; }
4060 if test -z "$CC"; then
4061 if test -n "$ac_tool_prefix"; then
4062 for ac_prog in cl.exe
4064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067 printf %s "checking for $ac_word... " >&6; }
4068 if test ${ac_cv_prog_CC+y}
4070 printf %s "(cached) " >&6
4072 if test -n "$CC"; then
4073 ac_cv_prog_CC="$CC" # Let the user override the test.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 case $as_dir in #(((
4082 *) as_dir=$as_dir/ ;;
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4097 if test -n "$CC"; then
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 printf "%s\n" "$CC" >&6; }
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 printf "%s\n" "no" >&6; }
4106 test -n "$CC" && break
4109 if test -z "$CC"; then
4111 for ac_prog in cl.exe
4113 # Extract the first word of "$ac_prog", so it can be a program name with args.
4114 set dummy $ac_prog; ac_word=$2
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 printf %s "checking for $ac_word... " >&6; }
4117 if test ${ac_cv_prog_ac_ct_CC+y}
4119 printf %s "(cached) " >&6
4121 if test -n "$ac_ct_CC"; then
4122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 case $as_dir in #(((
4131 *) as_dir=$as_dir/ ;;
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_ac_ct_CC="$ac_prog"
4136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146 if test -n "$ac_ct_CC"; then
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4148 printf "%s\n" "$ac_ct_CC" >&6; }
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 printf "%s\n" "no" >&6; }
4155 test -n "$ac_ct_CC" && break
4158 if test "x$ac_ct_CC" = x; then
4161 case $cross_compiling:$ac_tool_warned in
4163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4164 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4165 ac_tool_warned=yes ;;
4172 if test -z "$CC"; then
4173 if test -n "$ac_tool_prefix"; then
4174 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4175 set dummy ${ac_tool_prefix}clang; ac_word=$2
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 printf %s "checking for $ac_word... " >&6; }
4178 if test ${ac_cv_prog_CC+y}
4180 printf %s "(cached) " >&6
4182 if test -n "$CC"; then
4183 ac_cv_prog_CC="$CC" # Let the user override the test.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 case $as_dir in #(((
4192 *) as_dir=$as_dir/ ;;
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_CC="${ac_tool_prefix}clang"
4197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4207 if test -n "$CC"; then
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209 printf "%s\n" "$CC" >&6; }
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 printf "%s\n" "no" >&6; }
4217 if test -z "$ac_cv_prog_CC"; then
4219 # Extract the first word of "clang", so it can be a program name with args.
4220 set dummy clang; ac_word=$2
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 printf %s "checking for $ac_word... " >&6; }
4223 if test ${ac_cv_prog_ac_ct_CC+y}
4225 printf %s "(cached) " >&6
4227 if test -n "$ac_ct_CC"; then
4228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 case $as_dir in #(((
4237 *) as_dir=$as_dir/ ;;
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_ac_ct_CC="clang"
4242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4252 if test -n "$ac_ct_CC"; then
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4254 printf "%s\n" "$ac_ct_CC" >&6; }
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 printf "%s\n" "no" >&6; }
4260 if test "x$ac_ct_CC" = x; then
4263 case $cross_compiling:$ac_tool_warned in
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned=yes ;;
4278 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4279 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4280 as_fn_error $? "no acceptable C compiler found in \$PATH
4281 See \`config.log' for more details" "$LINENO" 5; }
4283 # Provide some information about the compiler.
4284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4287 for ac_option in --version -v -V -qversion -version; do
4288 { { ac_try="$ac_compiler $ac_option >&5"
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 printf "%s\n" "$ac_try_echo"; } >&5
4295 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4297 if test -s conftest.err; then
4299 ... rest of stderr output deleted ...
4300 10q' conftest.err >conftest.er1
4301 cat conftest.er1 >&5
4303 rm -f conftest.er1 conftest.err
4304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4305 test $ac_status = 0; }
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4319 ac_clean_files_save=$ac_clean_files
4320 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4321 # Try to create an executable without -o first, disregard a.out.
4322 # It will help us diagnose broken compilers, and finding out an intuition
4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4325 printf %s "checking whether the C compiler works... " >&6; }
4326 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4328 # The possible output files:
4329 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4332 for ac_file in $ac_files
4335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4336 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4341 if { { ac_try="$ac_link_default"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 printf "%s\n" "$ac_try_echo"; } >&5
4348 (eval "$ac_link_default") 2>&5
4350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }
4353 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4354 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4355 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4356 # so that the user can short-circuit this test for compilers unknown to
4358 for ac_file in $ac_files ''
4360 test -f "$ac_file" || continue
4362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4365 # We found the default executable, but exeext='' is most
4369 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4371 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4373 # We set ac_cv_exeext here because the later test for it is not
4374 # safe: cross compilers may not add the suffix if given an `-o'
4375 # argument, so we may need to know it at that point already.
4376 # Even if this section looks crufty: it has the advantage of
4383 test "$ac_cv_exeext" = no && ac_cv_exeext=
4388 if test -z "$ac_file"
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 printf "%s\n" "no" >&6; }
4392 printf "%s\n" "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4396 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4397 as_fn_error 77 "C compiler cannot create executables
4398 See \`config.log' for more details" "$LINENO" 5; }
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4401 printf "%s\n" "yes" >&6; }
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4404 printf %s "checking for C compiler default output file name... " >&6; }
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4406 printf "%s\n" "$ac_file" >&6; }
4407 ac_exeext=$ac_cv_exeext
4409 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4410 ac_clean_files=$ac_clean_files_save
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4412 printf %s "checking for suffix of executables... " >&6; }
4413 if { { ac_try="$ac_link"
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 printf "%s\n" "$ac_try_echo"; } >&5
4420 (eval "$ac_link") 2>&5
4422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423 test $ac_status = 0; }
4425 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4426 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4427 # work properly (i.e., refer to `conftest.exe'), while it won't with
4429 for ac_file in conftest.exe conftest conftest.*; do
4430 test -f "$ac_file" || continue
4432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4433 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4439 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4441 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4442 See \`config.log' for more details" "$LINENO" 5; }
4444 rm -f conftest conftest$ac_cv_exeext
4445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4446 printf "%s\n" "$ac_cv_exeext" >&6; }
4448 rm -f conftest.$ac_ext
4449 EXEEXT=$ac_cv_exeext
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4457 FILE *f = fopen ("conftest.out", "w");
4458 return ferror (f) || fclose (f) != 0;
4464 ac_clean_files="$ac_clean_files conftest.out"
4465 # Check that the compiler produces executables we can run. If not, either
4466 # the compiler is broken, or we cross compile.
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4468 printf %s "checking whether we are cross compiling... " >&6; }
4469 if test "$cross_compiling" != yes; then
4470 { { ac_try="$ac_link"
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4476 printf "%s\n" "$ac_try_echo"; } >&5
4477 (eval "$ac_link") 2>&5
4479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4480 test $ac_status = 0; }
4481 if { ac_try='./conftest$ac_cv_exeext'
4482 { { case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487 printf "%s\n" "$ac_try_echo"; } >&5
4488 (eval "$ac_try") 2>&5
4490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491 test $ac_status = 0; }; }; then
4494 if test "$cross_compiling" = maybe; then
4497 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4498 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4499 as_fn_error 77 "cannot run C compiled programs.
4500 If you meant to cross compile, use \`--host'.
4501 See \`config.log' for more details" "$LINENO" 5; }
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4506 printf "%s\n" "$cross_compiling" >&6; }
4508 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4509 ac_clean_files=$ac_clean_files_save
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4511 printf %s "checking for suffix of object files... " >&6; }
4512 if test ${ac_cv_objext+y}
4514 printf %s "(cached) " >&6
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4527 rm -f conftest.o conftest.obj
4528 if { { ac_try="$ac_compile"
4530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531 *) ac_try_echo=$ac_try;;
4533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4534 printf "%s\n" "$ac_try_echo"; } >&5
4535 (eval "$ac_compile") 2>&5
4537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538 test $ac_status = 0; }
4540 for ac_file in conftest.o conftest.obj conftest.*; do
4541 test -f "$ac_file" || continue;
4543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4544 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4549 printf "%s\n" "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4552 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4554 as_fn_error $? "cannot compute suffix of object files: cannot compile
4555 See \`config.log' for more details" "$LINENO" 5; }
4557 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4560 printf "%s\n" "$ac_cv_objext" >&6; }
4561 OBJEXT=$ac_cv_objext
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4564 printf %s "checking whether the compiler supports GNU C... " >&6; }
4565 if test ${ac_cv_c_compiler_gnu+y}
4567 printf %s "(cached) " >&6
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4583 if ac_fn_c_try_compile "$LINENO"
4589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4594 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597 if test $ac_compiler_gnu = yes; then
4602 ac_test_CFLAGS=${CFLAGS+y}
4603 ac_save_CFLAGS=$CFLAGS
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4605 printf %s "checking whether $CC accepts -g... " >&6; }
4606 if test ${ac_cv_prog_cc_g+y}
4608 printf %s "(cached) " >&6
4610 ac_save_c_werror_flag=$ac_c_werror_flag
4611 ac_c_werror_flag=yes
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4625 if ac_fn_c_try_compile "$LINENO"
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4641 if ac_fn_c_try_compile "$LINENO"
4645 ac_c_werror_flag=$ac_save_c_werror_flag
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4658 if ac_fn_c_try_compile "$LINENO"
4662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4667 ac_c_werror_flag=$ac_save_c_werror_flag
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4670 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4671 if test $ac_test_CFLAGS; then
4672 CFLAGS=$ac_save_CFLAGS
4673 elif test $ac_cv_prog_cc_g = yes; then
4674 if test "$GCC" = yes; then
4680 if test "$GCC" = yes; then
4687 if test x$ac_prog_cc_stdc = xno
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4690 printf %s "checking for $CC option to enable C11 features... " >&6; }
4691 if test ${ac_cv_prog_cc_c11+y}
4693 printf %s "(cached) " >&6
4695 ac_cv_prog_cc_c11=no
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 $ac_c_conftest_c11_program
4701 for ac_arg in '' -std=gnu11
4703 CC="$ac_save_CC $ac_arg"
4704 if ac_fn_c_try_compile "$LINENO"
4706 ac_cv_prog_cc_c11=$ac_arg
4708 rm -f core conftest.err conftest.$ac_objext conftest.beam
4709 test "x$ac_cv_prog_cc_c11" != "xno" && break
4711 rm -f conftest.$ac_ext
4715 if test "x$ac_cv_prog_cc_c11" = xno
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4718 printf "%s\n" "unsupported" >&6; }
4720 if test "x$ac_cv_prog_cc_c11" = x
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4723 printf "%s\n" "none needed" >&6; }
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4726 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4727 CC="$CC $ac_cv_prog_cc_c11"
4729 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4733 if test x$ac_prog_cc_stdc = xno
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4736 printf %s "checking for $CC option to enable C99 features... " >&6; }
4737 if test ${ac_cv_prog_cc_c99+y}
4739 printf %s "(cached) " >&6
4741 ac_cv_prog_cc_c99=no
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 $ac_c_conftest_c99_program
4747 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4749 CC="$ac_save_CC $ac_arg"
4750 if ac_fn_c_try_compile "$LINENO"
4752 ac_cv_prog_cc_c99=$ac_arg
4754 rm -f core conftest.err conftest.$ac_objext conftest.beam
4755 test "x$ac_cv_prog_cc_c99" != "xno" && break
4757 rm -f conftest.$ac_ext
4761 if test "x$ac_cv_prog_cc_c99" = xno
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4764 printf "%s\n" "unsupported" >&6; }
4766 if test "x$ac_cv_prog_cc_c99" = x
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4769 printf "%s\n" "none needed" >&6; }
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4772 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4773 CC="$CC $ac_cv_prog_cc_c99"
4775 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4779 if test x$ac_prog_cc_stdc = xno
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4782 printf %s "checking for $CC option to enable C89 features... " >&6; }
4783 if test ${ac_cv_prog_cc_c89+y}
4785 printf %s "(cached) " >&6
4787 ac_cv_prog_cc_c89=no
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791 $ac_c_conftest_c89_program
4793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4795 CC="$ac_save_CC $ac_arg"
4796 if ac_fn_c_try_compile "$LINENO"
4798 ac_cv_prog_cc_c89=$ac_arg
4800 rm -f core conftest.err conftest.$ac_objext conftest.beam
4801 test "x$ac_cv_prog_cc_c89" != "xno" && break
4803 rm -f conftest.$ac_ext
4807 if test "x$ac_cv_prog_cc_c89" = xno
4809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4810 printf "%s\n" "unsupported" >&6; }
4812 if test "x$ac_cv_prog_cc_c89" = x
4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4815 printf "%s\n" "none needed" >&6; }
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4818 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4819 CC="$CC $ac_cv_prog_cc_c89"
4821 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4827 ac_cpp='$CPP $CPPFLAGS'
4828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834 ac_cpp='$CPP $CPPFLAGS'
4835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4839 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4840 if test ${am_cv_prog_cc_c_o+y}
4842 printf %s "(cached) " >&6
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4855 # Make sure it works both with $CC and with simple cc.
4856 # Following AC_PROG_CC_C_O, we do the test twice because some
4857 # compilers refuse to overwrite an existing .o file with -o,
4858 # though they will create one.
4859 am_cv_prog_cc_c_o=yes
4861 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4862 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } \
4866 && test -f conftest2.$ac_objext; then
4869 am_cv_prog_cc_c_o=no
4873 rm -f core conftest*
4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4877 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4878 if test "$am_cv_prog_cc_c_o" != yes; then
4879 # Losing compiler, so override with the script.
4880 # FIXME: It is wrong to rewrite CC.
4881 # But if we don't then we get into trouble of one sort or another.
4882 # A longer-term fix would be to have automake use am__CC in this case,
4883 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4884 CC="$am_aux_dir/compile $CC"
4887 ac_cpp='$CPP $CPPFLAGS'
4888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892 DEPDIR="${am__leading_dot}deps"
4894 ac_config_commands="$ac_config_commands depfiles"
4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4897 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4898 cat > confinc.mk << 'END'
4900 @echo this is the am__doit target >confinc.out
4905 # BSD make does it like this.
4906 echo '.include "confinc.mk" # ignored' > confmf.BSD
4907 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4908 echo 'include confinc.mk # ignored' > confmf.GNU
4910 for s in GNU BSD; do
4911 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4912 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }
4916 case $?:`cat confinc.out 2>/dev/null` in #(
4917 '0:this is the am__doit target') :
4920 am__include='.include' am__quote='"' ;; #(
4922 am__include='include' am__quote='' ;;
4927 if test "$am__include" != "#"; then
4928 _am_result="yes ($s style)"
4932 rm -f confinc.* confmf.*
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4934 printf "%s\n" "${_am_result}" >&6; }
4936 # Check whether --enable-dependency-tracking was given.
4937 if test ${enable_dependency_tracking+y}
4939 enableval=$enable_dependency_tracking;
4942 if test "x$enable_dependency_tracking" != xno; then
4943 am_depcomp="$ac_aux_dir/depcomp"
4947 if test "x$enable_dependency_tracking" != xno; then
4957 depcc="$CC" am_compiler_list=
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4960 printf %s "checking dependency style of $depcc... " >&6; }
4961 if test ${am_cv_CC_dependencies_compiler_type+y}
4963 printf %s "(cached) " >&6
4965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4966 # We make a subdir and do the tests there. Otherwise we can end up
4967 # making bogus files that we don't know about and never remove. For
4968 # instance it was reported that on HP-UX the gcc test will end up
4969 # making a dummy file named 'D' -- because '-MD' means "put the output
4973 # Copy depcomp to subdir because otherwise we won't find it if we're
4974 # using a relative directory.
4975 cp "$am_depcomp" conftest.dir
4977 # We will build objects and dependencies in a subdirectory because
4978 # it helps to detect inapplicable dependency modes. For instance
4979 # both Tru64's cc and ICC support -MD to output dependencies as a
4980 # side effect of compilation, but ICC will put the dependencies in
4981 # the current directory while Tru64 will put them in the object
4985 am_cv_CC_dependencies_compiler_type=none
4986 if test "$am_compiler_list" = ""; then
4987 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990 case " $depcc " in #(
4991 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4994 for depmode in $am_compiler_list; do
4995 # Setup a source with many dependencies, because some compilers
4996 # like to wrap large dependency lists on column 80 (with \), and
4997 # we should not choose a depcomp mode which is confused by this.
4999 # We need to recreate these files for each test, as the compiler may
5000 # overwrite some of them when testing with obscure command lines.
5001 # This happens at least with the AIX C compiler.
5003 for i in 1 2 3 4 5 6; do
5004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5005 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5006 # Solaris 10 /bin/sh.
5007 echo '/* dummy */' > sub/conftst$i.h
5009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5011 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5012 # mode. It turns out that the SunPro C++ compiler does not properly
5013 # handle '-M -o', and we need to detect this. Also, some Intel
5014 # versions had trouble with output in subdirs.
5015 am__obj=sub/conftest.${OBJEXT-o}
5016 am__minus_obj="-o $am__obj"
5019 # This depmode causes a compiler race in universal mode.
5020 test "$am__universal" = false || continue
5023 # After this tag, mechanisms are not by side-effect, so they'll
5024 # only be used when explicitly requested.
5025 if test "x$enable_dependency_tracking" = xyes; then
5031 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5032 # This compiler won't grok '-c -o', but also, the minuso test has
5033 # not run yet. These depmodes are late enough in the game, and
5034 # so weak that their functioning should not be impacted.
5035 am__obj=conftest.${OBJEXT-o}
5040 if depmode=$depmode \
5041 source=sub/conftest.c object=$am__obj \
5042 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5043 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5044 >/dev/null 2>conftest.err &&
5045 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5047 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5049 # icc doesn't choke on unknown options, it will just issue warnings
5050 # or remarks (even with -Werror). So we grep stderr for any message
5051 # that says an option was ignored or not supported.
5052 # When given -MP, icc 7.0 and 7.1 complain thusly:
5053 # icc: Command line warning: ignoring option '-M'; no argument required
5054 # The diagnosis changed in icc 8.0:
5055 # icc: Command line remark: option '-MP' not supported
5056 if (grep 'ignoring option' conftest.err ||
5057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5058 am_cv_CC_dependencies_compiler_type=$depmode
5067 am_cv_CC_dependencies_compiler_type=none
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5072 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5073 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5076 test "x$enable_dependency_tracking" != xno \
5077 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5079 am__fastdepCC_FALSE='#'
5081 am__fastdepCC_TRUE='#'
5082 am__fastdepCC_FALSE=
5087 ac_header= ac_cache=
5088 for ac_item in $ac_header_c_list
5090 if test $ac_cache; then
5091 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5092 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5093 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5095 ac_header= ac_cache=
5096 elif test $ac_header; then
5110 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5113 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5123 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5124 if test ${ac_cv_safe_to_define___extensions__+y}
5126 printf %s "(cached) " >&6
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5131 # define __EXTENSIONS__ 1
5132 $ac_includes_default
5141 if ac_fn_c_try_compile "$LINENO"
5143 ac_cv_safe_to_define___extensions__=yes
5145 ac_cv_safe_to_define___extensions__=no
5147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5150 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5153 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5154 if test ${ac_cv_should_define__xopen_source+y}
5156 printf %s "(cached) " >&6
5158 ac_cv_should_define__xopen_source=no
5159 if test $ac_cv_header_wchar_h = yes
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5174 if ac_fn_c_try_compile "$LINENO"
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5181 #define _XOPEN_SOURCE 500
5192 if ac_fn_c_try_compile "$LINENO"
5194 ac_cv_should_define__xopen_source=yes
5196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5202 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5204 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5206 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5208 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5210 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5212 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5214 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5216 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5218 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5220 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5222 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5224 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5226 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5228 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5230 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5232 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5234 if test $ac_cv_header_minix_config_h = yes
5237 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5239 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5241 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5246 if test $ac_cv_safe_to_define___extensions__ = yes
5248 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5251 if test $ac_cv_should_define__xopen_source = yes
5253 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5257 # Check whether --enable-largefile was given.
5258 if test ${enable_largefile+y}
5260 enableval=$enable_largefile;
5263 if test "$enable_largefile" != no; then
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5266 printf %s "checking for special C compiler options needed for large files... " >&6; }
5267 if test ${ac_cv_sys_largefile_CC+y}
5269 printf %s "(cached) " >&6
5271 ac_cv_sys_largefile_CC=no
5272 if test "$GCC" != yes; then
5275 # IRIX 6.2 and later do not support large files by default,
5276 # so use the C compiler's -n32 option if that helps.
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279 #include <sys/types.h>
5280 /* Check that off_t can represent 2**63 - 1 correctly.
5281 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5282 since some C++ compilers masquerading as C compilers
5283 incorrectly reject 9223372036854775807. */
5284 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5286 && LARGE_OFF_T % 2147483647 == 1)
5296 if ac_fn_c_try_compile "$LINENO"
5300 rm -f core conftest.err conftest.$ac_objext conftest.beam
5302 if ac_fn_c_try_compile "$LINENO"
5304 ac_cv_sys_largefile_CC=' -n32'; break
5306 rm -f core conftest.err conftest.$ac_objext conftest.beam
5310 rm -f conftest.$ac_ext
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5314 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
5315 if test "$ac_cv_sys_largefile_CC" != no; then
5316 CC=$CC$ac_cv_sys_largefile_CC
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5320 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5321 if test ${ac_cv_sys_file_offset_bits+y}
5323 printf %s "(cached) " >&6
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5328 #include <sys/types.h>
5329 /* Check that off_t can represent 2**63 - 1 correctly.
5330 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5331 since some C++ compilers masquerading as C compilers
5332 incorrectly reject 9223372036854775807. */
5333 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5335 && LARGE_OFF_T % 2147483647 == 1)
5345 if ac_fn_c_try_compile "$LINENO"
5347 ac_cv_sys_file_offset_bits=no; break
5349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5352 #define _FILE_OFFSET_BITS 64
5353 #include <sys/types.h>
5354 /* Check that off_t can represent 2**63 - 1 correctly.
5355 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5356 since some C++ compilers masquerading as C compilers
5357 incorrectly reject 9223372036854775807. */
5358 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5359 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5360 && LARGE_OFF_T % 2147483647 == 1)
5370 if ac_fn_c_try_compile "$LINENO"
5372 ac_cv_sys_file_offset_bits=64; break
5374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5375 ac_cv_sys_file_offset_bits=unknown
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5380 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5381 case $ac_cv_sys_file_offset_bits in #(
5384 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5388 if test $ac_cv_sys_file_offset_bits = unknown; then
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5390 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5391 if test ${ac_cv_sys_large_files+y}
5393 printf %s "(cached) " >&6
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 #include <sys/types.h>
5399 /* Check that off_t can represent 2**63 - 1 correctly.
5400 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5401 since some C++ compilers masquerading as C compilers
5402 incorrectly reject 9223372036854775807. */
5403 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5405 && LARGE_OFF_T % 2147483647 == 1)
5415 if ac_fn_c_try_compile "$LINENO"
5417 ac_cv_sys_large_files=no; break
5419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #define _LARGE_FILES 1
5423 #include <sys/types.h>
5424 /* Check that off_t can represent 2**63 - 1 correctly.
5425 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5426 since some C++ compilers masquerading as C compilers
5427 incorrectly reject 9223372036854775807. */
5428 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5430 && LARGE_OFF_T % 2147483647 == 1)
5440 if ac_fn_c_try_compile "$LINENO"
5442 ac_cv_sys_large_files=1; break
5444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5445 ac_cv_sys_large_files=unknown
5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5450 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5451 case $ac_cv_sys_large_files in #(
5454 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5463 printf %s "checking whether ln -s works... " >&6; }
5465 if test "$LN_S" = "ln -s"; then
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5467 printf "%s\n" "yes" >&6; }
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5470 printf "%s\n" "no, using $LN_S" >&6; }
5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5474 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5476 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5477 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5479 printf %s "(cached) " >&6
5481 cat >conftest.make <<\_ACEOF
5484 @echo '@@@%%%=$(MAKE)=@@@%%%'
5486 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5487 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5489 eval ac_cv_prog_make_${ac_make}_set=yes;;
5491 eval ac_cv_prog_make_${ac_make}_set=no;;
5495 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5497 printf "%s\n" "yes" >&6; }
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 printf "%s\n" "no" >&6; }
5502 SET_MAKE="MAKE=${MAKE-make}"
5512 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5513 if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5515 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517 printf %s "checking for $ac_word... " >&6; }
5518 if test ${ac_cv_path_PKG_CONFIG+y}
5520 printf %s "(cached) " >&6
5524 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 case $as_dir in #(((
5534 *) as_dir=$as_dir/ ;;
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5538 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5549 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5550 if test -n "$PKG_CONFIG"; then
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5552 printf "%s\n" "$PKG_CONFIG" >&6; }
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 printf "%s\n" "no" >&6; }
5560 if test -z "$ac_cv_path_PKG_CONFIG"; then
5561 ac_pt_PKG_CONFIG=$PKG_CONFIG
5562 # Extract the first word of "pkg-config", so it can be a program name with args.
5563 set dummy pkg-config; ac_word=$2
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 printf %s "checking for $ac_word... " >&6; }
5566 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5568 printf %s "(cached) " >&6
5570 case $ac_pt_PKG_CONFIG in
5572 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 case $as_dir in #(((
5582 *) as_dir=$as_dir/ ;;
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5586 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5597 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5598 if test -n "$ac_pt_PKG_CONFIG"; then
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5600 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 printf "%s\n" "no" >&6; }
5606 if test "x$ac_pt_PKG_CONFIG" = x; then
5609 case $cross_compiling:$ac_tool_warned in
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613 ac_tool_warned=yes ;;
5615 PKG_CONFIG=$ac_pt_PKG_CONFIG
5618 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5622 if test -n "$PKG_CONFIG"; then
5623 _pkg_min_version=0.9.0
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5625 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5626 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5628 printf "%s\n" "yes" >&6; }
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 printf "%s\n" "no" >&6; }
5638 # Check whether --with-pkgconfigdir was given.
5639 if test ${with_pkgconfigdir+y}
5641 withval=$with_pkgconfigdir;
5643 with_pkgconfigdir='${libdir}/pkgconfig'
5646 pkgconfigdir=$with_pkgconfigdir
5653 GIT=${GIT-"${am_missing_run}git"}
5656 GPERF=${GPERF-"${am_missing_run}gperf"}
5664 if test -n "$PYTHON"; then
5665 # If the user set $PYTHON, use it and don't search something else.
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
5667 printf %s "checking whether $PYTHON version is >= 3... " >&6; }
5669 # split strings by '.' and convert to numeric. Append some zeros
5670 # because we need at least 4 digits for the hex conversion.
5671 # map returns an iterator in Python 3.0 and a list in 2.x
5672 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
5674 # xrange is not present in Python 3.0 and range returns an iterator
5675 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5676 sys.exit(sys.hexversion < minverhex)"
5677 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5678 ($PYTHON -c "$prog") >&5 2>&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5684 printf "%s\n" "yes" >&6; }
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5687 printf "%s\n" "no" >&6; }
5688 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
5690 am_display_PYTHON=$PYTHON
5692 # Otherwise, try each interpreter until we find one that satisfies
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
5695 printf %s "checking for a Python interpreter with version >= 3... " >&6; }
5696 if test ${am_cv_pathless_PYTHON+y}
5698 printf %s "(cached) " >&6
5701 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5702 test "$am_cv_pathless_PYTHON" = none && break
5704 # split strings by '.' and convert to numeric. Append some zeros
5705 # because we need at least 4 digits for the hex conversion.
5706 # map returns an iterator in Python 3.0 and a list in 2.x
5707 minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
5709 # xrange is not present in Python 3.0 and range returns an iterator
5710 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
5711 sys.exit(sys.hexversion < minverhex)"
5712 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5713 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }
5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5723 printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5724 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5725 if test "$am_cv_pathless_PYTHON" = none; then
5728 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5729 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 printf %s "checking for $ac_word... " >&6; }
5732 if test ${ac_cv_path_PYTHON+y}
5734 printf %s "(cached) " >&6
5738 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 case $as_dir in #(((
5748 *) as_dir=$as_dir/ ;;
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5752 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
5753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5763 PYTHON=$ac_cv_path_PYTHON
5764 if test -n "$PYTHON"; then
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5766 printf "%s\n" "$PYTHON" >&6; }
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 printf "%s\n" "no" >&6; }
5774 am_display_PYTHON=$am_cv_pathless_PYTHON
5778 if test "$PYTHON" = :; then
5779 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5783 printf %s "checking for $am_display_PYTHON version... " >&6; }
5784 if test ${am_cv_python_version+y}
5786 printf %s "(cached) " >&6
5788 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5791 printf "%s\n" "$am_cv_python_version" >&6; }
5792 PYTHON_VERSION=$am_cv_python_version
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5796 printf %s "checking for $am_display_PYTHON platform... " >&6; }
5797 if test ${am_cv_python_platform+y}
5799 printf %s "(cached) " >&6
5801 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5804 printf "%s\n" "$am_cv_python_platform" >&6; }
5805 PYTHON_PLATFORM=$am_cv_python_platform
5808 if test "x$prefix" = xNONE; then
5809 am__usable_prefix=$ac_default_prefix
5811 am__usable_prefix=$prefix
5814 # Allow user to request using sys.* values from Python,
5815 # instead of the GNU $prefix values.
5817 # Check whether --with-python-sys-prefix was given.
5818 if test ${with_python_sys_prefix+y}
5820 withval=$with_python_sys_prefix; am_use_python_sys=:
5822 am_use_python_sys=false
5826 # Allow user to override whatever the default Python prefix is.
5828 # Check whether --with-python_prefix was given.
5829 if test ${with_python_prefix+y}
5831 withval=$with_python_prefix; am_python_prefix_subst=$withval
5832 am_cv_python_prefix=$withval
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
5834 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5836 printf "%s\n" "$am_cv_python_prefix" >&6; }
5839 if $am_use_python_sys; then
5840 # using python sys.prefix value, not GNU
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
5842 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
5843 if test ${am_cv_python_prefix+y}
5845 printf %s "(cached) " >&6
5847 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
5850 printf "%s\n" "$am_cv_python_prefix" >&6; }
5852 case $am_cv_python_prefix in
5853 $am__usable_prefix*)
5854 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
5855 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
5858 am_python_prefix_subst=$am_cv_python_prefix
5861 else # using GNU prefix value, not python sys.prefix
5862 am_python_prefix_subst='${prefix}'
5863 am_python_prefix=$am_python_prefix_subst
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
5865 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
5867 printf "%s\n" "$am_python_prefix" >&6; }
5871 # Substituting python_prefix_subst value.
5872 PYTHON_PREFIX=$am_python_prefix_subst
5875 # emacs-page Now do it all over again for Python exec_prefix, but with yet
5876 # another conditional: fall back to regular prefix if that was specified.
5878 # Check whether --with-python_exec_prefix was given.
5879 if test ${with_python_exec_prefix+y}
5881 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
5882 am_cv_python_exec_prefix=$withval
5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
5884 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5886 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5889 # no explicit --with-python_exec_prefix, but if
5890 # --with-python_prefix was given, use its value for python_exec_prefix too.
5891 if test -n "$with_python_prefix"
5893 am_python_exec_prefix_subst=$with_python_prefix
5894 am_cv_python_exec_prefix=$with_python_prefix
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
5896 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5898 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5901 # Set am__usable_exec_prefix whether using GNU or Python values,
5902 # since we use that variable for pyexecdir.
5903 if test "x$exec_prefix" = xNONE; then
5904 am__usable_exec_prefix=$am__usable_prefix
5906 am__usable_exec_prefix=$exec_prefix
5909 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
5911 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
5912 if test ${am_cv_python_exec_prefix+y}
5914 printf %s "(cached) " >&6
5916 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
5919 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
5920 case $am_cv_python_exec_prefix in
5921 $am__usable_exec_prefix*)
5922 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
5923 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
5926 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
5929 else # using GNU $exec_prefix, not python sys.exec_prefix
5930 am_python_exec_prefix_subst='${exec_prefix}'
5931 am_python_exec_prefix=$am_python_exec_prefix_subst
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
5933 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
5935 printf "%s\n" "$am_python_exec_prefix" >&6; }
5940 # Substituting python_exec_prefix_subst.
5941 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
5944 # Factor out some code duplication into this shell variable.
5945 am_python_setup_sysconfig="\
5947 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5948 # with python 3.x. See automake bug#10227.
5952 can_use_sysconfig = 0
5954 can_use_sysconfig = 1
5955 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5956 # <https://github.com/pypa/virtualenv/issues/118>
5958 from platform import python_implementation
5959 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5960 can_use_sysconfig = 0
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
5966 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
5967 if test ${am_cv_python_pythondir+y}
5969 printf %s "(cached) " >&6
5971 if test "x$am_cv_python_prefix" = x; then
5972 am_py_prefix=$am__usable_prefix
5974 am_py_prefix=$am_cv_python_prefix
5976 am_cv_python_pythondir=`$PYTHON -c "
5977 $am_python_setup_sysconfig
5978 if can_use_sysconfig:
5979 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5981 from distutils import sysconfig
5982 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5983 sys.stdout.write(sitedir)"`
5985 case $am_cv_python_pythondir in
5987 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5988 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
5991 case $am_py_prefix in
5993 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
6001 printf "%s\n" "$am_cv_python_pythondir" >&6; }
6002 pythondir=$am_cv_python_pythondir
6005 pkgpythondir=\${pythondir}/$PACKAGE
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
6009 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
6010 if test ${am_cv_python_pyexecdir+y}
6012 printf %s "(cached) " >&6
6014 if test "x$am_cv_python_exec_prefix" = x; then
6015 am_py_exec_prefix=$am__usable_exec_prefix
6017 am_py_exec_prefix=$am_cv_python_exec_prefix
6019 am_cv_python_pyexecdir=`$PYTHON -c "
6020 $am_python_setup_sysconfig
6021 if can_use_sysconfig:
6022 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
6024 from distutils import sysconfig
6025 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
6026 sys.stdout.write(sitedir)"`
6028 case $am_cv_python_pyexecdir in
6029 $am_py_exec_prefix*)
6030 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
6031 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
6034 case $am_py_exec_prefix in
6036 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
6044 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
6045 pyexecdir=$am_cv_python_pyexecdir
6048 pkgpyexecdir=\${pyexecdir}/$PACKAGE
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
6056 printf %s "checking for RM macro... " >&6; }
6057 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
6058 if test "x$_predefined_rm" = "x"; then
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
6060 printf "%s\n" "no predefined RM" >&6; }
6061 # Extract the first word of "rm", so it can be a program name with args.
6062 set dummy rm; ac_word=$2
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 printf %s "checking for $ac_word... " >&6; }
6065 if test ${ac_cv_prog_RM+y}
6067 printf %s "(cached) " >&6
6069 if test -n "$RM"; then
6070 ac_cv_prog_RM="$RM" # Let the user override the test.
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 case $as_dir in #(((
6079 *) as_dir=$as_dir/ ;;
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6083 ac_cv_prog_RM="rm -f"
6084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6094 if test -n "$RM"; then
6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6096 printf "%s\n" "$RM" >&6; }
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 printf "%s\n" "no" >&6; }
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
6105 printf "%s\n" "$_predefined_rm" >&6; }
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6112 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6117 macro_version='2.4.7'
6118 macro_revision='2.4.7'
6133 ltmain=$ac_aux_dir/ltmain.sh
6137 # Make sure we can run config.sub.
6138 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6139 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6142 printf %s "checking build system type... " >&6; }
6143 if test ${ac_cv_build+y}
6145 printf %s "(cached) " >&6
6147 ac_build_alias=$build_alias
6148 test "x$ac_build_alias" = x &&
6149 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6150 test "x$ac_build_alias" = x &&
6151 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6152 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6153 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6157 printf "%s\n" "$ac_cv_build" >&6; }
6158 case $ac_cv_build in
6160 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6163 ac_save_IFS=$IFS; IFS='-'
6169 # Remember, the first character of IFS is used to create $*,
6170 # except with old shells:
6173 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6177 printf %s "checking host system type... " >&6; }
6178 if test ${ac_cv_host+y}
6180 printf %s "(cached) " >&6
6182 if test "x$host_alias" = x; then
6183 ac_cv_host=$ac_cv_build
6185 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6186 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6191 printf "%s\n" "$ac_cv_host" >&6; }
6194 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6197 ac_save_IFS=$IFS; IFS='-'
6203 # Remember, the first character of IFS is used to create $*,
6204 # except with old shells:
6207 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6210 # Backslashify metacharacters that are still active within
6211 # double-quoted strings.
6212 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6214 # Same as above, but do not quote variable references.
6215 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6217 # Sed substitution to delay expansion of an escaped shell variable in a
6218 # double_quote_subst'ed string.
6219 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6221 # Sed substitution to delay expansion of an escaped single quote.
6222 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6224 # Sed substitution to avoid accidental globbing in evaled expressions
6225 no_glob_subst='s/\*/\\\*/g'
6227 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6228 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6229 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6232 printf %s "checking how to print strings... " >&6; }
6233 # Test print first, because it will be a builtin if present.
6234 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6235 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6237 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6240 # Use this function as a fallback that always works.
6241 func_fallback_echo ()
6243 eval 'cat <<_LTECHO_EOF
6247 ECHO='func_fallback_echo'
6250 # func_echo_all arg...
6251 # Invoke $ECHO with all args, space-separated.
6258 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6259 printf "%s\n" "printf" >&6; } ;;
6260 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6261 printf "%s\n" "print -r" >&6; } ;;
6262 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6263 printf "%s\n" "cat" >&6; } ;;
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6280 printf %s "checking for a sed that does not truncate output... " >&6; }
6281 if test ${ac_cv_path_SED+y}
6283 printf %s "(cached) " >&6
6285 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6286 for ac_i in 1 2 3 4 5 6 7; do
6287 ac_script="$ac_script$as_nl$ac_script"
6289 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6290 { ac_script=; unset ac_script;}
6291 if test -z "$SED"; then
6292 ac_path_SED_found=false
6293 # Loop through the user's path and test for each of PROGNAME-LIST
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 case $as_dir in #(((
6301 *) as_dir=$as_dir/ ;;
6303 for ac_prog in sed gsed
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6307 as_fn_executable_p "$ac_path_SED" || continue
6308 # Check for GNU ac_path_SED and select it if it is found.
6309 # Check for GNU $ac_path_SED
6310 case `"$ac_path_SED" --version 2>&1` in
6312 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6315 printf %s 0123456789 >"conftest.in"
6318 cat "conftest.in" "conftest.in" >"conftest.tmp"
6319 mv "conftest.tmp" "conftest.in"
6320 cp "conftest.in" "conftest.nl"
6321 printf "%s\n" '' >> "conftest.nl"
6322 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6324 as_fn_arith $ac_count + 1 && ac_count=$as_val
6325 if test $ac_count -gt ${ac_path_SED_max-0}; then
6326 # Best one so far, save it but keep looking for a better one
6327 ac_cv_path_SED="$ac_path_SED"
6328 ac_path_SED_max=$ac_count
6330 # 10*(2^10) chars as input seems more than enough
6331 test $ac_count -gt 10 && break
6333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6336 $ac_path_SED_found && break 3
6341 if test -z "$ac_cv_path_SED"; then
6342 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6350 printf "%s\n" "$ac_cv_path_SED" >&6; }
6351 SED="$ac_cv_path_SED"
6354 test -z "$SED" && SED=sed
6355 Xsed="$SED -e 1s/^X//"
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6368 printf %s "checking for grep that handles long lines and -e... " >&6; }
6369 if test ${ac_cv_path_GREP+y}
6371 printf %s "(cached) " >&6
6373 if test -z "$GREP"; then
6374 ac_path_GREP_found=false
6375 # Loop through the user's path and test for each of PROGNAME-LIST
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6380 case $as_dir in #(((
6383 *) as_dir=$as_dir/ ;;
6385 for ac_prog in grep ggrep
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6389 as_fn_executable_p "$ac_path_GREP" || continue
6390 # Check for GNU ac_path_GREP and select it if it is found.
6391 # Check for GNU $ac_path_GREP
6392 case `"$ac_path_GREP" --version 2>&1` in
6394 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6397 printf %s 0123456789 >"conftest.in"
6400 cat "conftest.in" "conftest.in" >"conftest.tmp"
6401 mv "conftest.tmp" "conftest.in"
6402 cp "conftest.in" "conftest.nl"
6403 printf "%s\n" 'GREP' >> "conftest.nl"
6404 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6406 as_fn_arith $ac_count + 1 && ac_count=$as_val
6407 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6408 # Best one so far, save it but keep looking for a better one
6409 ac_cv_path_GREP="$ac_path_GREP"
6410 ac_path_GREP_max=$ac_count
6412 # 10*(2^10) chars as input seems more than enough
6413 test $ac_count -gt 10 && break
6415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6418 $ac_path_GREP_found && break 3
6423 if test -z "$ac_cv_path_GREP"; then
6424 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6427 ac_cv_path_GREP=$GREP
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6432 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6433 GREP="$ac_cv_path_GREP"
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6437 printf %s "checking for egrep... " >&6; }
6438 if test ${ac_cv_path_EGREP+y}
6440 printf %s "(cached) " >&6
6442 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6443 then ac_cv_path_EGREP="$GREP -E"
6445 if test -z "$EGREP"; then
6446 ac_path_EGREP_found=false
6447 # Loop through the user's path and test for each of PROGNAME-LIST
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6452 case $as_dir in #(((
6455 *) as_dir=$as_dir/ ;;
6457 for ac_prog in egrep
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6461 as_fn_executable_p "$ac_path_EGREP" || continue
6462 # Check for GNU ac_path_EGREP and select it if it is found.
6463 # Check for GNU $ac_path_EGREP
6464 case `"$ac_path_EGREP" --version 2>&1` in
6466 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6469 printf %s 0123456789 >"conftest.in"
6472 cat "conftest.in" "conftest.in" >"conftest.tmp"
6473 mv "conftest.tmp" "conftest.in"
6474 cp "conftest.in" "conftest.nl"
6475 printf "%s\n" 'EGREP' >> "conftest.nl"
6476 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6478 as_fn_arith $ac_count + 1 && ac_count=$as_val
6479 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6480 # Best one so far, save it but keep looking for a better one
6481 ac_cv_path_EGREP="$ac_path_EGREP"
6482 ac_path_EGREP_max=$ac_count
6484 # 10*(2^10) chars as input seems more than enough
6485 test $ac_count -gt 10 && break
6487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6490 $ac_path_EGREP_found && break 3
6495 if test -z "$ac_cv_path_EGREP"; then
6496 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6499 ac_cv_path_EGREP=$EGREP
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6505 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6506 EGREP="$ac_cv_path_EGREP"
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6510 printf %s "checking for fgrep... " >&6; }
6511 if test ${ac_cv_path_FGREP+y}
6513 printf %s "(cached) " >&6
6515 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6516 then ac_cv_path_FGREP="$GREP -F"
6518 if test -z "$FGREP"; then
6519 ac_path_FGREP_found=false
6520 # Loop through the user's path and test for each of PROGNAME-LIST
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6525 case $as_dir in #(((
6528 *) as_dir=$as_dir/ ;;
6530 for ac_prog in fgrep
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6534 as_fn_executable_p "$ac_path_FGREP" || continue
6535 # Check for GNU ac_path_FGREP and select it if it is found.
6536 # Check for GNU $ac_path_FGREP
6537 case `"$ac_path_FGREP" --version 2>&1` in
6539 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6542 printf %s 0123456789 >"conftest.in"
6545 cat "conftest.in" "conftest.in" >"conftest.tmp"
6546 mv "conftest.tmp" "conftest.in"
6547 cp "conftest.in" "conftest.nl"
6548 printf "%s\n" 'FGREP' >> "conftest.nl"
6549 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6551 as_fn_arith $ac_count + 1 && ac_count=$as_val
6552 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6553 # Best one so far, save it but keep looking for a better one
6554 ac_cv_path_FGREP="$ac_path_FGREP"
6555 ac_path_FGREP_max=$ac_count
6557 # 10*(2^10) chars as input seems more than enough
6558 test $ac_count -gt 10 && break
6560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6563 $ac_path_FGREP_found && break 3
6568 if test -z "$ac_cv_path_FGREP"; then
6569 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6572 ac_cv_path_FGREP=$FGREP
6577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6578 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6579 FGREP="$ac_cv_path_FGREP"
6582 test -z "$GREP" && GREP=grep
6602 # Check whether --with-gnu-ld was given.
6603 if test ${with_gnu_ld+y}
6605 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6611 if test yes = "$GCC"; then
6612 # Check if gcc -print-prog-name=ld gives a path.
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6614 printf %s "checking for ld used by $CC... " >&6; }
6617 # gcc leaves a trailing carriage return, which upsets mingw
6618 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6620 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6623 # Accept absolute paths.
6625 re_direlt='/[^/][^/]*/\.\./'
6626 # Canonicalize the pathname of ld
6627 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6628 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6629 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6631 test -z "$LD" && LD=$ac_prog
6634 # If it fails, then pretend we aren't using GCC.
6638 # If it is relative, then search for the first ld in PATH.
6642 elif test yes = "$with_gnu_ld"; then
6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6644 printf %s "checking for GNU ld... " >&6; }
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6647 printf %s "checking for non-GNU ld... " >&6; }
6649 if test ${lt_cv_path_LD+y}
6651 printf %s "(cached) " >&6
6653 if test -z "$LD"; then
6654 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6655 for ac_dir in $PATH; do
6657 test -z "$ac_dir" && ac_dir=.
6658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6659 lt_cv_path_LD=$ac_dir/$ac_prog
6660 # Check to see if the program is GNU ld. I'd rather use --version,
6661 # but apparently some variants of GNU ld only accept -v.
6662 # Break only if it was the GNU/non-GNU ld that we prefer.
6663 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6664 *GNU* | *'with BFD'*)
6665 test no != "$with_gnu_ld" && break
6668 test yes != "$with_gnu_ld" && break
6675 lt_cv_path_LD=$LD # Let the user override the test with a path.
6680 if test -n "$LD"; then
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6682 printf "%s\n" "$LD" >&6; }
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 printf "%s\n" "no" >&6; }
6687 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6689 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6690 if test ${lt_cv_prog_gnu_ld+y}
6692 printf %s "(cached) " >&6
6694 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6695 case `$LD -v 2>&1 </dev/null` in
6696 *GNU* | *'with BFD'*)
6697 lt_cv_prog_gnu_ld=yes
6700 lt_cv_prog_gnu_ld=no
6704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6705 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6706 with_gnu_ld=$lt_cv_prog_gnu_ld
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6717 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6718 if test ${lt_cv_path_NM+y}
6720 printf %s "(cached) " >&6
6722 if test -n "$NM"; then
6723 # Let the user override the test.
6726 lt_nm_to_check=${ac_tool_prefix}nm
6727 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6728 lt_nm_to_check="$lt_nm_to_check nm"
6730 for lt_tmp_nm in $lt_nm_to_check; do
6731 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6732 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6734 test -z "$ac_dir" && ac_dir=.
6735 tmp_nm=$ac_dir/$lt_tmp_nm
6736 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6737 # Check to see if the nm accepts a BSD-compat flag.
6738 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6739 # nm: unknown option "B" ignored
6740 # Tru64's nm complains that /dev/null is an invalid object file
6741 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6743 mingw*) lt_bad_file=conftest.nm/nofile ;;
6744 *) lt_bad_file=/dev/null ;;
6746 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6747 *$lt_bad_file* | *'Invalid file or object type'*)
6748 lt_cv_path_NM="$tmp_nm -B"
6752 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6754 lt_cv_path_NM="$tmp_nm -p"
6758 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6759 continue # so that we can try to find one that supports BSD flags
6768 : ${lt_cv_path_NM=no}
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6772 printf "%s\n" "$lt_cv_path_NM" >&6; }
6773 if test no != "$lt_cv_path_NM"; then
6776 # Didn't find any BSD compatible name lister, look for dumpbin.
6777 if test -n "$DUMPBIN"; then :
6778 # Let the user override the test.
6780 if test -n "$ac_tool_prefix"; then
6781 for ac_prog in dumpbin "link -dump"
6783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 printf %s "checking for $ac_word... " >&6; }
6787 if test ${ac_cv_prog_DUMPBIN+y}
6789 printf %s "(cached) " >&6
6791 if test -n "$DUMPBIN"; then
6792 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 case $as_dir in #(((
6801 *) as_dir=$as_dir/ ;;
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6805 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6815 DUMPBIN=$ac_cv_prog_DUMPBIN
6816 if test -n "$DUMPBIN"; then
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6818 printf "%s\n" "$DUMPBIN" >&6; }
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 printf "%s\n" "no" >&6; }
6825 test -n "$DUMPBIN" && break
6828 if test -z "$DUMPBIN"; then
6829 ac_ct_DUMPBIN=$DUMPBIN
6830 for ac_prog in dumpbin "link -dump"
6832 # Extract the first word of "$ac_prog", so it can be a program name with args.
6833 set dummy $ac_prog; ac_word=$2
6834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6835 printf %s "checking for $ac_word... " >&6; }
6836 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6838 printf %s "(cached) " >&6
6840 if test -n "$ac_ct_DUMPBIN"; then
6841 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 case $as_dir in #(((
6850 *) as_dir=$as_dir/ ;;
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6864 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6865 if test -n "$ac_ct_DUMPBIN"; then
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6867 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 printf "%s\n" "no" >&6; }
6874 test -n "$ac_ct_DUMPBIN" && break
6877 if test "x$ac_ct_DUMPBIN" = x; then
6880 case $cross_compiling:$ac_tool_warned in
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6883 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6884 ac_tool_warned=yes ;;
6886 DUMPBIN=$ac_ct_DUMPBIN
6890 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6892 DUMPBIN="$DUMPBIN -symbols -headers"
6900 if test : != "$DUMPBIN"; then
6904 test -z "$NM" && NM=nm
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6912 printf %s "checking the name lister ($NM) interface... " >&6; }
6913 if test ${lt_cv_nm_interface+y}
6915 printf %s "(cached) " >&6
6917 lt_cv_nm_interface="BSD nm"
6918 echo "int some_variable = 0;" > conftest.$ac_ext
6919 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6920 (eval "$ac_compile" 2>conftest.err)
6921 cat conftest.err >&5
6922 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6923 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6924 cat conftest.err >&5
6925 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6926 cat conftest.out >&5
6927 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6928 lt_cv_nm_interface="MS dumpbin"
6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6933 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6935 # find the maximum length of command line arguments
6936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6937 printf %s "checking the maximum length of command line arguments... " >&6; }
6938 if test ${lt_cv_sys_max_cmd_len+y}
6940 printf %s "(cached) " >&6
6947 # On DJGPP, this test can blow up pretty badly due to problems in libc
6948 # (any single argument exceeding 2000 bytes causes a buffer overrun
6949 # during glob expansion). Even if it were fixed, the result of this
6950 # check would be larger than it should be.
6951 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6955 # Under GNU Hurd, this test is not required because there is
6956 # no limit to the length of command line arguments.
6957 # Libtool will interpret -1 as no limit whatsoever
6958 lt_cv_sys_max_cmd_len=-1;
6961 cygwin* | mingw* | cegcc*)
6962 # On Win9x/ME, this test blows up -- it succeeds, but takes
6963 # about 5 minutes as the teststring grows exponentially.
6964 # Worse, since 9x/ME are not pre-emptively multitasking,
6965 # you end up with a "frozen" computer, even though with patience
6966 # the test eventually succeeds (with a max line length of 256k).
6967 # Instead, let's just punt: use the minimum linelength reported by
6968 # all of the supported platforms: 8192 (on NT/2K/XP).
6969 lt_cv_sys_max_cmd_len=8192;
6973 # On MiNT this can take a long time and run out of memory.
6974 lt_cv_sys_max_cmd_len=8192;
6978 # On AmigaOS with pdksh, this test takes hours, literally.
6979 # So we just punt and use a minimum line length of 8192.
6980 lt_cv_sys_max_cmd_len=8192;
6983 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6984 # This has been around since 386BSD, at least. Likely further.
6985 if test -x /sbin/sysctl; then
6986 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6987 elif test -x /usr/sbin/sysctl; then
6988 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6990 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6992 # And add a safety zone
6993 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6994 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6998 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6999 lt_cv_sys_max_cmd_len=196608
7003 # The test takes a long time on OS/2.
7004 lt_cv_sys_max_cmd_len=8192
7008 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7009 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7010 # nice to cause kernel panics so lets avoid the loop below.
7011 # First set a reasonable default.
7012 lt_cv_sys_max_cmd_len=16384
7014 if test -x /sbin/sysconfig; then
7015 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7016 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7021 lt_cv_sys_max_cmd_len=102400
7023 sysv5* | sco5v6* | sysv4.2uw2*)
7024 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7025 if test -n "$kargmax"; then
7026 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7028 lt_cv_sys_max_cmd_len=32768
7032 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7033 if test -n "$lt_cv_sys_max_cmd_len" && \
7034 test undefined != "$lt_cv_sys_max_cmd_len"; then
7035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7036 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7038 # Make teststring a little bigger before we do anything with it.
7039 # a 1K string should be a reasonable start.
7040 for i in 1 2 3 4 5 6 7 8; do
7041 teststring=$teststring$teststring
7043 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7044 # If test is not a shell built-in, we'll probably end up computing a
7045 # maximum length that is only half of the actual maximum length, but
7047 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7048 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7049 test 17 != "$i" # 1/2 MB should be enough
7052 teststring=$teststring$teststring
7054 # Only check the string length outside the loop.
7055 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7057 # Add a significant safety factor because C++ compilers can tack on
7058 # massive amounts of additional arguments before passing them to the
7059 # linker. It appears as though 1/2 is a usable value.
7060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7067 if test -n "$lt_cv_sys_max_cmd_len"; then
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7069 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7072 printf "%s\n" "none" >&6; }
7074 max_cmd_len=$lt_cv_sys_max_cmd_len
7085 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7095 # test EBCDIC or ASCII
7096 case `echo X|tr X '\101'` in
7097 A) # ASCII based system
7098 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7099 lt_SP2NL='tr \040 \012'
7100 lt_NL2SP='tr \015\012 \040\040'
7102 *) # EBCDIC based system
7103 lt_SP2NL='tr \100 \n'
7104 lt_NL2SP='tr \r\n \100\100'
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7117 printf %s "checking how to convert $build file names to $host format... " >&6; }
7118 if test ${lt_cv_to_host_file_cmd+y}
7120 printf %s "(cached) " >&6
7125 *-*-mingw* ) # actually msys
7126 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7129 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7131 * ) # otherwise, assume *nix
7132 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7138 *-*-mingw* ) # actually msys
7139 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7142 lt_cv_to_host_file_cmd=func_convert_file_noop
7144 * ) # otherwise, assume *nix
7145 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7149 * ) # unhandled hosts (and "normal" native builds)
7150 lt_cv_to_host_file_cmd=func_convert_file_noop
7156 to_host_file_cmd=$lt_cv_to_host_file_cmd
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7158 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7165 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7166 if test ${lt_cv_to_tool_file_cmd+y}
7168 printf %s "(cached) " >&6
7170 #assume ordinary cross tools, or native build.
7171 lt_cv_to_tool_file_cmd=func_convert_file_noop
7175 *-*-mingw* ) # actually msys
7176 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7184 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7186 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7193 printf %s "checking for $LD option to reload object files... " >&6; }
7194 if test ${lt_cv_ld_reload_flag+y}
7196 printf %s "(cached) " >&6
7198 lt_cv_ld_reload_flag='-r'
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7201 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7202 reload_flag=$lt_cv_ld_reload_flag
7203 case $reload_flag in
7205 *) reload_flag=" $reload_flag" ;;
7207 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7209 cygwin* | mingw* | pw32* | cegcc*)
7210 if test yes != "$GCC"; then
7215 if test yes = "$GCC"; then
7216 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7218 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7231 if test -n "$ac_tool_prefix"; then
7232 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
7233 set dummy ${ac_tool_prefix}file; ac_word=$2
7234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 printf %s "checking for $ac_word... " >&6; }
7236 if test ${ac_cv_prog_FILECMD+y}
7238 printf %s "(cached) " >&6
7240 if test -n "$FILECMD"; then
7241 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 case $as_dir in #(((
7250 *) as_dir=$as_dir/ ;;
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
7255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7264 FILECMD=$ac_cv_prog_FILECMD
7265 if test -n "$FILECMD"; then
7266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7267 printf "%s\n" "$FILECMD" >&6; }
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 printf "%s\n" "no" >&6; }
7275 if test -z "$ac_cv_prog_FILECMD"; then
7276 ac_ct_FILECMD=$FILECMD
7277 # Extract the first word of "file", so it can be a program name with args.
7278 set dummy file; ac_word=$2
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 printf %s "checking for $ac_word... " >&6; }
7281 if test ${ac_cv_prog_ac_ct_FILECMD+y}
7283 printf %s "(cached) " >&6
7285 if test -n "$ac_ct_FILECMD"; then
7286 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 case $as_dir in #(((
7295 *) as_dir=$as_dir/ ;;
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_ac_ct_FILECMD="file"
7300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7309 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
7310 if test -n "$ac_ct_FILECMD"; then
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
7312 printf "%s\n" "$ac_ct_FILECMD" >&6; }
7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 printf "%s\n" "no" >&6; }
7318 if test "x$ac_ct_FILECMD" = x; then
7321 case $cross_compiling:$ac_tool_warned in
7323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned=yes ;;
7327 FILECMD=$ac_ct_FILECMD
7330 FILECMD="$ac_cv_prog_FILECMD"
7339 if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 printf %s "checking for $ac_word... " >&6; }
7344 if test ${ac_cv_prog_OBJDUMP+y}
7346 printf %s "(cached) " >&6
7348 if test -n "$OBJDUMP"; then
7349 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 case $as_dir in #(((
7358 *) as_dir=$as_dir/ ;;
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7372 OBJDUMP=$ac_cv_prog_OBJDUMP
7373 if test -n "$OBJDUMP"; then
7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7375 printf "%s\n" "$OBJDUMP" >&6; }
7377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 printf "%s\n" "no" >&6; }
7383 if test -z "$ac_cv_prog_OBJDUMP"; then
7384 ac_ct_OBJDUMP=$OBJDUMP
7385 # Extract the first word of "objdump", so it can be a program name with args.
7386 set dummy objdump; ac_word=$2
7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 printf %s "checking for $ac_word... " >&6; }
7389 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7391 printf %s "(cached) " >&6
7393 if test -n "$ac_ct_OBJDUMP"; then
7394 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 case $as_dir in #(((
7403 *) as_dir=$as_dir/ ;;
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7407 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7417 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7418 if test -n "$ac_ct_OBJDUMP"; then
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7420 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 printf "%s\n" "no" >&6; }
7426 if test "x$ac_ct_OBJDUMP" = x; then
7429 case $cross_compiling:$ac_tool_warned in
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7435 OBJDUMP=$ac_ct_OBJDUMP
7438 OBJDUMP="$ac_cv_prog_OBJDUMP"
7441 test -z "$OBJDUMP" && OBJDUMP=objdump
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7449 printf %s "checking how to recognize dependent libraries... " >&6; }
7450 if test ${lt_cv_deplibs_check_method+y}
7452 printf %s "(cached) " >&6
7454 lt_cv_file_magic_cmd='$MAGIC_CMD'
7455 lt_cv_file_magic_test_file=
7456 lt_cv_deplibs_check_method='unknown'
7457 # Need to set the preceding variable on all platforms that support
7458 # interlibrary dependencies.
7459 # 'none' -- dependencies not supported.
7460 # 'unknown' -- same as none, but documents that we really don't know.
7461 # 'pass_all' -- all dependencies passed with no checks.
7462 # 'test_compile' -- check by making test program.
7463 # 'file_magic [[regex]]' -- check by looking for files in library path
7464 # that responds to the $file_magic_cmd with a given extended regex.
7465 # If you have 'file' or equivalent on your system and you're not sure
7466 # whether 'pass_all' will *always* work, you probably want this one.
7470 lt_cv_deplibs_check_method=pass_all
7474 lt_cv_deplibs_check_method=pass_all
7478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7479 lt_cv_file_magic_cmd='$FILECMD -L'
7480 lt_cv_file_magic_test_file=/shlib/libc.so
7484 # func_win32_libid is a shell function defined in ltmain.sh
7485 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7486 lt_cv_file_magic_cmd='func_win32_libid'
7490 # Base MSYS/MinGW do not provide the 'file' command needed by
7491 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7492 # unless we find 'file', for example because we are cross-compiling.
7493 if ( file / ) >/dev/null 2>&1; then
7494 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7495 lt_cv_file_magic_cmd='func_win32_libid'
7497 # Keep this pattern in sync with the one in func_win32_libid.
7498 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7499 lt_cv_file_magic_cmd='$OBJDUMP -f'
7504 # use the weaker test based on 'objdump'. See mingw*.
7505 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7506 lt_cv_file_magic_cmd='$OBJDUMP -f'
7509 darwin* | rhapsody*)
7510 lt_cv_deplibs_check_method=pass_all
7513 freebsd* | dragonfly* | midnightbsd*)
7514 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7517 # Not sure whether the presence of OpenBSD here was a mistake.
7518 # Let's accept both of them until this is cleared up.
7519 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7520 lt_cv_file_magic_cmd=$FILECMD
7521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7525 lt_cv_deplibs_check_method=pass_all
7530 lt_cv_deplibs_check_method=pass_all
7533 hpux10.20* | hpux11*)
7534 lt_cv_file_magic_cmd=$FILECMD
7537 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7538 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7541 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]'
7542 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7546 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7552 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7556 irix5* | irix6* | nonstopux*)
7558 *-32|*"-32 ") libmagic=32-bit;;
7559 *-n32|*"-n32 ") libmagic=N32;;
7560 *-64|*"-64 ") libmagic=64-bit;;
7561 *) libmagic=never-match;;
7563 lt_cv_deplibs_check_method=pass_all
7566 # This must be glibc/ELF.
7567 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7568 lt_cv_deplibs_check_method=pass_all
7572 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7581 lt_cv_file_magic_cmd=$FILECMD
7582 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7586 lt_cv_deplibs_check_method=pass_all
7590 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7591 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7597 osf3* | osf4* | osf5*)
7598 lt_cv_deplibs_check_method=pass_all
7602 lt_cv_deplibs_check_method=pass_all
7606 lt_cv_deplibs_check_method=pass_all
7609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7610 lt_cv_deplibs_check_method=pass_all
7614 case $host_vendor in
7616 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]'
7617 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7620 lt_cv_deplibs_check_method=pass_all
7623 lt_cv_file_magic_cmd='/bin/file'
7624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7627 lt_cv_file_magic_cmd='/bin/file'
7628 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7629 lt_cv_file_magic_test_file=/lib/libc.so
7632 lt_cv_deplibs_check_method=pass_all
7635 lt_cv_deplibs_check_method=pass_all
7641 lt_cv_deplibs_check_method=pass_all
7644 lt_cv_deplibs_check_method=pass_all
7649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7650 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7654 if test "$build" = "$host"; then
7657 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7660 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7666 file_magic_cmd=$lt_cv_file_magic_cmd
7667 deplibs_check_method=$lt_cv_deplibs_check_method
7668 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7691 if test -n "$ac_tool_prefix"; then
7692 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 printf %s "checking for $ac_word... " >&6; }
7696 if test ${ac_cv_prog_DLLTOOL+y}
7698 printf %s "(cached) " >&6
7700 if test -n "$DLLTOOL"; then
7701 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707 case $as_dir in #(((
7710 *) as_dir=$as_dir/ ;;
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7724 DLLTOOL=$ac_cv_prog_DLLTOOL
7725 if test -n "$DLLTOOL"; then
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7727 printf "%s\n" "$DLLTOOL" >&6; }
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730 printf "%s\n" "no" >&6; }
7735 if test -z "$ac_cv_prog_DLLTOOL"; then
7736 ac_ct_DLLTOOL=$DLLTOOL
7737 # Extract the first word of "dlltool", so it can be a program name with args.
7738 set dummy dlltool; ac_word=$2
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 printf %s "checking for $ac_word... " >&6; }
7741 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7743 printf %s "(cached) " >&6
7745 if test -n "$ac_ct_DLLTOOL"; then
7746 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 case $as_dir in #(((
7755 *) as_dir=$as_dir/ ;;
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7759 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7769 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7770 if test -n "$ac_ct_DLLTOOL"; then
7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7772 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 printf "%s\n" "no" >&6; }
7778 if test "x$ac_ct_DLLTOOL" = x; then
7781 case $cross_compiling:$ac_tool_warned in
7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7784 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7785 ac_tool_warned=yes ;;
7787 DLLTOOL=$ac_ct_DLLTOOL
7790 DLLTOOL="$ac_cv_prog_DLLTOOL"
7793 test -z "$DLLTOOL" && DLLTOOL=dlltool
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7802 printf %s "checking how to associate runtime and link libraries... " >&6; }
7803 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7805 printf %s "(cached) " >&6
7807 lt_cv_sharedlib_from_linklib_cmd='unknown'
7810 cygwin* | mingw* | pw32* | cegcc*)
7811 # two different shell functions defined in ltmain.sh;
7812 # decide which one to use based on capabilities of $DLLTOOL
7813 case `$DLLTOOL --help 2>&1` in
7814 *--identify-strict*)
7815 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7818 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7823 # fallback: assume linklib IS sharedlib
7824 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7830 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7831 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7832 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7840 if test -n "$ac_tool_prefix"; then
7843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7846 printf %s "checking for $ac_word... " >&6; }
7847 if test ${ac_cv_prog_AR+y}
7849 printf %s "(cached) " >&6
7851 if test -n "$AR"; then
7852 ac_cv_prog_AR="$AR" # Let the user override the test.
7854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 case $as_dir in #(((
7861 *) as_dir=$as_dir/ ;;
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7865 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7876 if test -n "$AR"; then
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7878 printf "%s\n" "$AR" >&6; }
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 printf "%s\n" "no" >&6; }
7885 test -n "$AR" && break
7888 if test -z "$AR"; then
7892 # Extract the first word of "$ac_prog", so it can be a program name with args.
7893 set dummy $ac_prog; ac_word=$2
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 printf %s "checking for $ac_word... " >&6; }
7896 if test ${ac_cv_prog_ac_ct_AR+y}
7898 printf %s "(cached) " >&6
7900 if test -n "$ac_ct_AR"; then
7901 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 case $as_dir in #(((
7910 *) 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_ac_ct_AR="$ac_prog"
7915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7924 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7925 if test -n "$ac_ct_AR"; then
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7927 printf "%s\n" "$ac_ct_AR" >&6; }
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 printf "%s\n" "no" >&6; }
7934 test -n "$ac_ct_AR" && break
7937 if test "x$ac_ct_AR" = x; then
7940 case $cross_compiling:$ac_tool_warned in
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7943 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7944 ac_tool_warned=yes ;;
7957 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7958 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7959 # higher priority because thats what people were doing historically (setting
7960 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7961 # variable obsoleted/removed.
7963 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7964 lt_ar_flags=$AR_FLAGS
7971 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7972 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7980 printf %s "checking for archiver @FILE support... " >&6; }
7981 if test ${lt_cv_ar_at_file+y}
7983 printf %s "(cached) " >&6
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7997 if ac_fn_c_try_compile "$LINENO"
7999 echo conftest.$ac_objext > conftest.lst
8000 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8002 (eval $lt_ar_try) 2>&5
8004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8005 test $ac_status = 0; }
8006 if test 0 -eq "$ac_status"; then
8007 # Ensure the archiver fails upon bogus file names.
8008 rm -f conftest.$ac_objext libconftest.a
8009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8010 (eval $lt_ar_try) 2>&5
8012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8013 test $ac_status = 0; }
8014 if test 0 -ne "$ac_status"; then
8018 rm -f conftest.* libconftest.a
8021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8025 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8027 if test no = "$lt_cv_ar_at_file"; then
8030 archiver_list_spec=$lt_cv_ar_at_file
8039 if test -n "$ac_tool_prefix"; then
8040 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}strip; ac_word=$2
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 printf %s "checking for $ac_word... " >&6; }
8044 if test ${ac_cv_prog_STRIP+y}
8046 printf %s "(cached) " >&6
8048 if test -n "$STRIP"; then
8049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 case $as_dir in #(((
8058 *) as_dir=$as_dir/ ;;
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8072 STRIP=$ac_cv_prog_STRIP
8073 if test -n "$STRIP"; then
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8075 printf "%s\n" "$STRIP" >&6; }
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078 printf "%s\n" "no" >&6; }
8083 if test -z "$ac_cv_prog_STRIP"; then
8085 # Extract the first word of "strip", so it can be a program name with args.
8086 set dummy strip; ac_word=$2
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 printf %s "checking for $ac_word... " >&6; }
8089 if test ${ac_cv_prog_ac_ct_STRIP+y}
8091 printf %s "(cached) " >&6
8093 if test -n "$ac_ct_STRIP"; then
8094 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 case $as_dir in #(((
8103 *) as_dir=$as_dir/ ;;
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_ac_ct_STRIP="strip"
8108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8117 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8118 if test -n "$ac_ct_STRIP"; then
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8120 printf "%s\n" "$ac_ct_STRIP" >&6; }
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 printf "%s\n" "no" >&6; }
8126 if test "x$ac_ct_STRIP" = x; then
8129 case $cross_compiling:$ac_tool_warned in
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8133 ac_tool_warned=yes ;;
8138 STRIP="$ac_cv_prog_STRIP"
8141 test -z "$STRIP" && STRIP=:
8148 if test -n "$ac_tool_prefix"; then
8149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 printf %s "checking for $ac_word... " >&6; }
8153 if test ${ac_cv_prog_RANLIB+y}
8155 printf %s "(cached) " >&6
8157 if test -n "$RANLIB"; then
8158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164 case $as_dir in #(((
8167 *) as_dir=$as_dir/ ;;
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8171 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8181 RANLIB=$ac_cv_prog_RANLIB
8182 if test -n "$RANLIB"; then
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8184 printf "%s\n" "$RANLIB" >&6; }
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 printf "%s\n" "no" >&6; }
8192 if test -z "$ac_cv_prog_RANLIB"; then
8193 ac_ct_RANLIB=$RANLIB
8194 # Extract the first word of "ranlib", so it can be a program name with args.
8195 set dummy ranlib; ac_word=$2
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 printf %s "checking for $ac_word... " >&6; }
8198 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8200 printf %s "(cached) " >&6
8202 if test -n "$ac_ct_RANLIB"; then
8203 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209 case $as_dir in #(((
8212 *) as_dir=$as_dir/ ;;
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8216 ac_cv_prog_ac_ct_RANLIB="ranlib"
8217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8226 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8227 if test -n "$ac_ct_RANLIB"; then
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8229 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 printf "%s\n" "no" >&6; }
8235 if test "x$ac_ct_RANLIB" = x; then
8238 case $cross_compiling:$ac_tool_warned in
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8241 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8242 ac_tool_warned=yes ;;
8244 RANLIB=$ac_ct_RANLIB
8247 RANLIB="$ac_cv_prog_RANLIB"
8250 test -z "$RANLIB" && RANLIB=:
8257 # Determine commands to create old-style static archives.
8258 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8259 old_postinstall_cmds='chmod 644 $oldlib'
8260 old_postuninstall_cmds=
8262 if test -n "$RANLIB"; then
8265 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8271 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8276 lock_old_archive_extraction=yes ;;
8278 lock_old_archive_extraction=no ;;
8319 # If no C compiler was specified, use CC.
8322 # If no C compiler flags were specified, use CFLAGS.
8323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8325 # Allow CC to be a program name with arguments.
8329 # Check for command to grab the raw symbol name followed by C symbol from nm.
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8331 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8332 if test ${lt_cv_sys_global_symbol_pipe+y}
8334 printf %s "(cached) " >&6
8337 # These are sane defaults that work on at least a few old systems.
8338 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8340 # Character class describing NM global symbol codes.
8341 symcode='[BCDEGRST]'
8343 # Regexp to match symbols that can be accessed directly from C.
8344 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8346 # Define system-specific variables.
8351 cygwin* | mingw* | pw32* | cegcc*)
8352 symcode='[ABCDGISTW]'
8355 if test ia64 = "$host_cpu"; then
8356 symcode='[ABCDEGRST]'
8360 symcode='[BCDEGRST]'
8363 symcode='[BCDEGQRST]'
8374 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8382 # If we're using GNU nm, then use its standard symbol codes.
8383 case `$NM -V 2>&1` in
8384 *GNU* | *'with BFD'*)
8385 symcode='[ABCDGIRSTW]' ;;
8388 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8389 # Gets list of data symbols to import.
8390 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8391 # Adjust the below global symbol transforms to fixup imported variables.
8392 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8393 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8394 lt_c_name_lib_hook="\
8395 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8396 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8398 # Disable hooks by default.
8399 lt_cv_sys_global_symbol_to_import=
8405 # Transform an extracted symbol line into a proper C declaration.
8406 # Some systems (esp. on ia64) link data and code symbols differently,
8407 # so use this general approach.
8408 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8410 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8411 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8413 # Transform an extracted symbol line into symbol name and symbol address
8414 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8416 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8417 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8419 # Transform an extracted symbol line into symbol name with lib prefix and
8421 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8422 $lt_c_name_lib_hook\
8423 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8424 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8425 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8427 # Handle CRLF in mingw tool chain
8431 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8435 # Try without a prefix underscore, then with it.
8436 for ac_symprfx in "" "_"; do
8438 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8439 symxfrm="\\1 $ac_symprfx\\2 \\2"
8441 # Write the raw and C identifiers.
8442 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8443 # Fake it for dumpbin and say T for any non-static function,
8444 # D for any global variable and I for any imported variable.
8445 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8446 # which start with @ or ?.
8447 lt_cv_sys_global_symbol_pipe="$AWK '"\
8448 " {last_section=section; section=\$ 3};"\
8449 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8450 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8451 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8452 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8453 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8454 " \$ 0!~/External *\|/{next};"\
8455 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8456 " {if(hide[section]) next};"\
8457 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8458 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8459 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8460 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8461 " ' prfx=^$ac_symprfx"
8463 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8465 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8467 # Check to see that the pipe works correctly.
8471 cat > conftest.$ac_ext <<_LT_EOF
8476 void nm_test_func(void);
8477 void nm_test_func(void){}
8481 int main(){nm_test_var='a';nm_test_func();return(0);}
8484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8485 (eval $ac_compile) 2>&5
8487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8488 test $ac_status = 0; }; then
8489 # Now try to grab the symbols.
8491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8492 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8495 test $ac_status = 0; } && test -s "$nlist"; then
8496 # Try sorting and uniquifying the output.
8497 if sort "$nlist" | uniq > "$nlist"T; then
8498 mv -f "$nlist"T "$nlist"
8503 # Make sure that we snagged all the symbols we need.
8504 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8505 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8506 cat <<_LT_EOF > conftest.$ac_ext
8507 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8508 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8509 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8510 relocations are performed -- see ld's documentation on pseudo-relocs. */
8511 # define LT_DLSYM_CONST
8512 #elif defined __osf__
8513 /* This system does not cope well with relocations in const data. */
8514 # define LT_DLSYM_CONST
8516 # define LT_DLSYM_CONST const
8524 # Now generate the symbol file.
8525 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8527 cat <<_LT_EOF >> conftest.$ac_ext
8529 /* The mapping between symbol names and symbols. */
8530 LT_DLSYM_CONST struct {
8534 lt__PROGRAM__LTX_preloaded_symbols[] =
8536 { "@PROGRAM@", (void *) 0 },
8538 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8539 cat <<\_LT_EOF >> conftest.$ac_ext
8543 /* This works around a problem in FreeBSD linker */
8544 #ifdef FREEBSD_WORKAROUND
8545 static const void *lt_preloaded_setup() {
8546 return lt__PROGRAM__LTX_preloaded_symbols;
8554 # Now try linking the two files.
8555 mv conftest.$ac_objext conftstm.$ac_objext
8556 lt_globsym_save_LIBS=$LIBS
8557 lt_globsym_save_CFLAGS=$CFLAGS
8558 LIBS=conftstm.$ac_objext
8559 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8561 (eval $ac_link) 2>&5
8563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8564 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8567 LIBS=$lt_globsym_save_LIBS
8568 CFLAGS=$lt_globsym_save_CFLAGS
8570 echo "cannot find nm_test_func in $nlist" >&5
8573 echo "cannot find nm_test_var in $nlist" >&5
8576 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8579 echo "$progname: failed program was:" >&5
8580 cat conftest.$ac_ext >&5
8582 rm -rf conftest* conftst*
8584 # Do not use the global_symbol_pipe unless it works.
8585 if test yes = "$pipe_works"; then
8588 lt_cv_sys_global_symbol_pipe=
8594 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8595 lt_cv_sys_global_symbol_to_cdecl=
8597 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8599 printf "%s\n" "failed" >&6; }
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8602 printf "%s\n" "ok" >&6; }
8605 # Response file support.
8606 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8607 nm_file_list_spec='@'
8608 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8609 nm_file_list_spec='@'
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8649 printf %s "checking for sysroot... " >&6; }
8651 # Check whether --with-sysroot was given.
8652 if test ${with_sysroot+y}
8654 withval=$with_sysroot;
8661 case $with_sysroot in #(
8663 if test yes = "$GCC"; then
8664 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8668 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8674 printf "%s\n" "$with_sysroot" >&6; }
8675 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8680 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8687 printf %s "checking for a working dd... " >&6; }
8688 if test ${ac_cv_path_lt_DD+y}
8690 printf %s "(cached) " >&6
8692 printf 0123456789abcdef0123456789abcdef >conftest.i
8693 cat conftest.i conftest.i >conftest2.i
8695 if test -z "$lt_DD"; then
8696 ac_path_lt_DD_found=false
8697 # Loop through the user's path and test for each of PROGNAME-LIST
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 case $as_dir in #(((
8705 *) as_dir=$as_dir/ ;;
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8711 as_fn_executable_p "$ac_path_lt_DD" || continue
8712 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8713 cmp -s conftest.i conftest.out \
8714 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8716 $ac_path_lt_DD_found && break 3
8721 if test -z "$ac_cv_path_lt_DD"; then
8725 ac_cv_path_lt_DD=$lt_DD
8728 rm -f conftest.i conftest2.i conftest.out
8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8731 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8735 printf %s "checking how to truncate binary pipes... " >&6; }
8736 if test ${lt_cv_truncate_bin+y}
8738 printf %s "(cached) " >&6
8740 printf 0123456789abcdef0123456789abcdef >conftest.i
8741 cat conftest.i conftest.i >conftest2.i
8743 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8744 cmp -s conftest.i conftest.out \
8745 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8747 rm -f conftest.i conftest2.i conftest.out
8748 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8751 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8759 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8762 for cc_temp in $*""; do
8764 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8765 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8770 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8773 # Check whether --enable-libtool-lock was given.
8774 if test ${enable_libtool_lock+y}
8776 enableval=$enable_libtool_lock;
8779 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8781 # Some flags need to be propagated to the compiler or linker for good
8785 # Find out what ABI is being produced by ac_compile, and set mode
8786 # options accordingly.
8787 echo 'int i;' > conftest.$ac_ext
8788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8789 (eval $ac_compile) 2>&5
8791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8792 test $ac_status = 0; }; then
8793 case `$FILECMD conftest.$ac_objext` in
8805 # Find out what ABI is being produced by ac_compile, and set linker
8806 # options accordingly.
8807 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8809 (eval $ac_compile) 2>&5
8811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8812 test $ac_status = 0; }; then
8813 if test yes = "$lt_cv_prog_gnu_ld"; then
8814 case `$FILECMD conftest.$ac_objext` in
8816 LD="${LD-ld} -melf32bsmip"
8819 LD="${LD-ld} -melf32bmipn32"
8822 LD="${LD-ld} -melf64bmip"
8826 case `$FILECMD conftest.$ac_objext` in
8843 # Find out what ABI is being produced by ac_compile, and set linker
8844 # options accordingly.
8845 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8847 (eval $ac_compile) 2>&5
8849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8850 test $ac_status = 0; }; then
8852 case `$FILECMD conftest.$ac_objext` in
8860 case `$FILECMD conftest.$ac_objext` in
8862 emul="${emul}btsmip"
8865 emul="${emul}ltsmip"
8868 case `$FILECMD conftest.$ac_objext` in
8873 LD="${LD-ld} -m $emul"
8878 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8879 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8880 # Find out what ABI is being produced by ac_compile, and set linker
8881 # options accordingly. Note that the listed cases only cover the
8882 # situations where additional linker options are needed (such as when
8883 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8884 # vice versa); the common cases where no linker options are needed do
8885 # not appear in the list.
8886 echo 'int i;' > conftest.$ac_ext
8887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8888 (eval $ac_compile) 2>&5
8890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8891 test $ac_status = 0; }; then
8892 case `$FILECMD conftest.o` in
8895 x86_64-*kfreebsd*-gnu)
8896 LD="${LD-ld} -m elf_i386_fbsd"
8899 case `$FILECMD conftest.o` in
8901 LD="${LD-ld} -m elf32_x86_64"
8904 LD="${LD-ld} -m elf_i386"
8908 powerpc64le-*linux*)
8909 LD="${LD-ld} -m elf32lppclinux"
8912 LD="${LD-ld} -m elf32ppclinux"
8915 LD="${LD-ld} -m elf_s390"
8918 LD="${LD-ld} -m elf32_sparc"
8924 x86_64-*kfreebsd*-gnu)
8925 LD="${LD-ld} -m elf_x86_64_fbsd"
8928 LD="${LD-ld} -m elf_x86_64"
8931 LD="${LD-ld} -m elf64lppc"
8934 LD="${LD-ld} -m elf64ppc"
8936 s390*-*linux*|s390*-*tpf*)
8937 LD="${LD-ld} -m elf64_s390"
8940 LD="${LD-ld} -m elf64_sparc"
8950 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8952 CFLAGS="$CFLAGS -belf"
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8954 printf %s "checking whether the C compiler needs -belf... " >&6; }
8955 if test ${lt_cv_cc_needs_belf+y}
8957 printf %s "(cached) " >&6
8960 ac_cpp='$CPP $CPPFLAGS'
8961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8976 if ac_fn_c_try_link "$LINENO"
8978 lt_cv_cc_needs_belf=yes
8980 lt_cv_cc_needs_belf=no
8982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8983 conftest$ac_exeext conftest.$ac_ext
8985 ac_cpp='$CPP $CPPFLAGS'
8986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8992 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8993 if test yes != "$lt_cv_cc_needs_belf"; then
8994 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8999 # Find out what ABI is being produced by ac_compile, and set linker
9000 # options accordingly.
9001 echo 'int i;' > conftest.$ac_ext
9002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9003 (eval $ac_compile) 2>&5
9005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9006 test $ac_status = 0; }; then
9007 case `$FILECMD conftest.o` in
9009 case $lt_cv_prog_gnu_ld in
9012 i?86-*-solaris*|x86_64-*-solaris*)
9013 LD="${LD-ld} -m elf_x86_64"
9016 LD="${LD-ld} -m elf64_sparc"
9019 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9020 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9025 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9037 need_locks=$enable_libtool_lock
9039 if test -n "$ac_tool_prefix"; then
9040 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9041 set dummy ${ac_tool_prefix}mt; ac_word=$2
9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 printf %s "checking for $ac_word... " >&6; }
9044 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9046 printf %s "(cached) " >&6
9048 if test -n "$MANIFEST_TOOL"; then
9049 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9055 case $as_dir in #(((
9058 *) as_dir=$as_dir/ ;;
9060 for ac_exec_ext in '' $ac_executable_extensions; do
9061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9062 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9072 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9073 if test -n "$MANIFEST_TOOL"; then
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9075 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078 printf "%s\n" "no" >&6; }
9083 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9084 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9085 # Extract the first word of "mt", so it can be a program name with args.
9086 set dummy mt; ac_word=$2
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 printf %s "checking for $ac_word... " >&6; }
9089 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9091 printf %s "(cached) " >&6
9093 if test -n "$ac_ct_MANIFEST_TOOL"; then
9094 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 case $as_dir in #(((
9103 *) as_dir=$as_dir/ ;;
9105 for ac_exec_ext in '' $ac_executable_extensions; do
9106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9107 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9117 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9118 if test -n "$ac_ct_MANIFEST_TOOL"; then
9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9120 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 printf "%s\n" "no" >&6; }
9126 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9129 case $cross_compiling:$ac_tool_warned in
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9133 ac_tool_warned=yes ;;
9135 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9138 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9141 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9143 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9144 if test ${lt_cv_path_mainfest_tool+y}
9146 printf %s "(cached) " >&6
9148 lt_cv_path_mainfest_tool=no
9149 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9150 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9151 cat conftest.err >&5
9152 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9153 lt_cv_path_mainfest_tool=yes
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9158 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9159 if test yes != "$lt_cv_path_mainfest_tool"; then
9169 rhapsody* | darwin*)
9170 if test -n "$ac_tool_prefix"; then
9171 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9172 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174 printf %s "checking for $ac_word... " >&6; }
9175 if test ${ac_cv_prog_DSYMUTIL+y}
9177 printf %s "(cached) " >&6
9179 if test -n "$DSYMUTIL"; then
9180 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186 case $as_dir in #(((
9189 *) as_dir=$as_dir/ ;;
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9193 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9203 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9204 if test -n "$DSYMUTIL"; then
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9206 printf "%s\n" "$DSYMUTIL" >&6; }
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 printf "%s\n" "no" >&6; }
9214 if test -z "$ac_cv_prog_DSYMUTIL"; then
9215 ac_ct_DSYMUTIL=$DSYMUTIL
9216 # Extract the first word of "dsymutil", so it can be a program name with args.
9217 set dummy dsymutil; ac_word=$2
9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219 printf %s "checking for $ac_word... " >&6; }
9220 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9222 printf %s "(cached) " >&6
9224 if test -n "$ac_ct_DSYMUTIL"; then
9225 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9231 case $as_dir in #(((
9234 *) as_dir=$as_dir/ ;;
9236 for ac_exec_ext in '' $ac_executable_extensions; do
9237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9238 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9248 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9249 if test -n "$ac_ct_DSYMUTIL"; then
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9251 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 printf "%s\n" "no" >&6; }
9257 if test "x$ac_ct_DSYMUTIL" = x; then
9260 case $cross_compiling:$ac_tool_warned in
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9263 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9264 ac_tool_warned=yes ;;
9266 DSYMUTIL=$ac_ct_DSYMUTIL
9269 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9272 if test -n "$ac_tool_prefix"; then
9273 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9274 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9276 printf %s "checking for $ac_word... " >&6; }
9277 if test ${ac_cv_prog_NMEDIT+y}
9279 printf %s "(cached) " >&6
9281 if test -n "$NMEDIT"; then
9282 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288 case $as_dir in #(((
9291 *) as_dir=$as_dir/ ;;
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9295 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9305 NMEDIT=$ac_cv_prog_NMEDIT
9306 if test -n "$NMEDIT"; then
9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9308 printf "%s\n" "$NMEDIT" >&6; }
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 printf "%s\n" "no" >&6; }
9316 if test -z "$ac_cv_prog_NMEDIT"; then
9317 ac_ct_NMEDIT=$NMEDIT
9318 # Extract the first word of "nmedit", so it can be a program name with args.
9319 set dummy nmedit; ac_word=$2
9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321 printf %s "checking for $ac_word... " >&6; }
9322 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9324 printf %s "(cached) " >&6
9326 if test -n "$ac_ct_NMEDIT"; then
9327 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333 case $as_dir in #(((
9336 *) as_dir=$as_dir/ ;;
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9340 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9350 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9351 if test -n "$ac_ct_NMEDIT"; then
9352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9353 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356 printf "%s\n" "no" >&6; }
9359 if test "x$ac_ct_NMEDIT" = x; then
9362 case $cross_compiling:$ac_tool_warned in
9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9365 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9366 ac_tool_warned=yes ;;
9368 NMEDIT=$ac_ct_NMEDIT
9371 NMEDIT="$ac_cv_prog_NMEDIT"
9374 if test -n "$ac_tool_prefix"; then
9375 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9376 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378 printf %s "checking for $ac_word... " >&6; }
9379 if test ${ac_cv_prog_LIPO+y}
9381 printf %s "(cached) " >&6
9383 if test -n "$LIPO"; then
9384 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 case $as_dir in #(((
9393 *) as_dir=$as_dir/ ;;
9395 for ac_exec_ext in '' $ac_executable_extensions; do
9396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9397 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9407 LIPO=$ac_cv_prog_LIPO
9408 if test -n "$LIPO"; then
9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9410 printf "%s\n" "$LIPO" >&6; }
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413 printf "%s\n" "no" >&6; }
9418 if test -z "$ac_cv_prog_LIPO"; then
9420 # Extract the first word of "lipo", so it can be a program name with args.
9421 set dummy lipo; ac_word=$2
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 printf %s "checking for $ac_word... " >&6; }
9424 if test ${ac_cv_prog_ac_ct_LIPO+y}
9426 printf %s "(cached) " >&6
9428 if test -n "$ac_ct_LIPO"; then
9429 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435 case $as_dir in #(((
9438 *) as_dir=$as_dir/ ;;
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9442 ac_cv_prog_ac_ct_LIPO="lipo"
9443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9452 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9453 if test -n "$ac_ct_LIPO"; then
9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9455 printf "%s\n" "$ac_ct_LIPO" >&6; }
9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458 printf "%s\n" "no" >&6; }
9461 if test "x$ac_ct_LIPO" = x; then
9464 case $cross_compiling:$ac_tool_warned in
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9467 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9468 ac_tool_warned=yes ;;
9473 LIPO="$ac_cv_prog_LIPO"
9476 if test -n "$ac_tool_prefix"; then
9477 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9478 set dummy ${ac_tool_prefix}otool; ac_word=$2
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 printf %s "checking for $ac_word... " >&6; }
9481 if test ${ac_cv_prog_OTOOL+y}
9483 printf %s "(cached) " >&6
9485 if test -n "$OTOOL"; then
9486 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9492 case $as_dir in #(((
9495 *) as_dir=$as_dir/ ;;
9497 for ac_exec_ext in '' $ac_executable_extensions; do
9498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9499 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9509 OTOOL=$ac_cv_prog_OTOOL
9510 if test -n "$OTOOL"; then
9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9512 printf "%s\n" "$OTOOL" >&6; }
9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 printf "%s\n" "no" >&6; }
9520 if test -z "$ac_cv_prog_OTOOL"; then
9522 # Extract the first word of "otool", so it can be a program name with args.
9523 set dummy otool; ac_word=$2
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9525 printf %s "checking for $ac_word... " >&6; }
9526 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9528 printf %s "(cached) " >&6
9530 if test -n "$ac_ct_OTOOL"; then
9531 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537 case $as_dir in #(((
9540 *) as_dir=$as_dir/ ;;
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9544 ac_cv_prog_ac_ct_OTOOL="otool"
9545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9554 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9555 if test -n "$ac_ct_OTOOL"; then
9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9557 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560 printf "%s\n" "no" >&6; }
9563 if test "x$ac_ct_OTOOL" = x; then
9566 case $cross_compiling:$ac_tool_warned in
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9569 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9570 ac_tool_warned=yes ;;
9575 OTOOL="$ac_cv_prog_OTOOL"
9578 if test -n "$ac_tool_prefix"; then
9579 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9580 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582 printf %s "checking for $ac_word... " >&6; }
9583 if test ${ac_cv_prog_OTOOL64+y}
9585 printf %s "(cached) " >&6
9587 if test -n "$OTOOL64"; then
9588 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594 case $as_dir in #(((
9597 *) as_dir=$as_dir/ ;;
9599 for ac_exec_ext in '' $ac_executable_extensions; do
9600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9601 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9611 OTOOL64=$ac_cv_prog_OTOOL64
9612 if test -n "$OTOOL64"; then
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9614 printf "%s\n" "$OTOOL64" >&6; }
9616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617 printf "%s\n" "no" >&6; }
9622 if test -z "$ac_cv_prog_OTOOL64"; then
9623 ac_ct_OTOOL64=$OTOOL64
9624 # Extract the first word of "otool64", so it can be a program name with args.
9625 set dummy otool64; ac_word=$2
9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9627 printf %s "checking for $ac_word... " >&6; }
9628 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9630 printf %s "(cached) " >&6
9632 if test -n "$ac_ct_OTOOL64"; then
9633 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 case $as_dir in #(((
9642 *) as_dir=$as_dir/ ;;
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9646 ac_cv_prog_ac_ct_OTOOL64="otool64"
9647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9656 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9657 if test -n "$ac_ct_OTOOL64"; then
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9659 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 printf "%s\n" "no" >&6; }
9665 if test "x$ac_ct_OTOOL64" = x; then
9668 case $cross_compiling:$ac_tool_warned in
9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9671 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9672 ac_tool_warned=yes ;;
9674 OTOOL64=$ac_ct_OTOOL64
9677 OTOOL64="$ac_cv_prog_OTOOL64"
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9707 printf %s "checking for -single_module linker flag... " >&6; }
9708 if test ${lt_cv_apple_cc_single_mod+y}
9710 printf %s "(cached) " >&6
9712 lt_cv_apple_cc_single_mod=no
9713 if test -z "$LT_MULTI_MODULE"; then
9714 # By default we will add the -single_module flag. You can override
9715 # by either setting the environment variable LT_MULTI_MODULE
9716 # non-empty at configure time, or by adding -multi_module to the
9718 rm -rf libconftest.dylib*
9719 echo "int foo(void){return 1;}" > conftest.c
9720 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9721 -dynamiclib -Wl,-single_module conftest.c" >&5
9722 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9723 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9725 # If there is a non-empty error log, and "single_module"
9726 # appears in it, assume the flag caused a linker warning
9727 if test -s conftest.err && $GREP single_module conftest.err; then
9728 cat conftest.err >&5
9729 # Otherwise, if the output was created with a 0 exit code from
9730 # the compiler, it worked.
9731 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9732 lt_cv_apple_cc_single_mod=yes
9734 cat conftest.err >&5
9736 rm -rf libconftest.dylib*
9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9741 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9744 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9745 if test ${lt_cv_ld_exported_symbols_list+y}
9747 printf %s "(cached) " >&6
9749 lt_cv_ld_exported_symbols_list=no
9750 save_LDFLAGS=$LDFLAGS
9751 echo "_main" > conftest.sym
9752 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9764 if ac_fn_c_try_link "$LINENO"
9766 lt_cv_ld_exported_symbols_list=yes
9768 lt_cv_ld_exported_symbols_list=no
9770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9771 conftest$ac_exeext conftest.$ac_ext
9772 LDFLAGS=$save_LDFLAGS
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9776 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9779 printf %s "checking for -force_load linker flag... " >&6; }
9780 if test ${lt_cv_ld_force_load+y}
9782 printf %s "(cached) " >&6
9784 lt_cv_ld_force_load=no
9785 cat > conftest.c << _LT_EOF
9786 int forced_loaded() { return 2;}
9788 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9789 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9790 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9791 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9792 echo "$RANLIB libconftest.a" >&5
9793 $RANLIB libconftest.a 2>&5
9794 cat > conftest.c << _LT_EOF
9795 int main() { return 0;}
9797 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9798 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9800 if test -s conftest.err && $GREP force_load conftest.err; then
9801 cat conftest.err >&5
9802 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9803 lt_cv_ld_force_load=yes
9805 cat conftest.err >&5
9807 rm -f conftest.err libconftest.a conftest conftest.c
9808 rm -rf conftest.dSYM
9811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9812 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9814 rhapsody* | darwin1.[012])
9815 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9817 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9819 case $MACOSX_DEPLOYMENT_TARGET,$host in
9820 10.[012],*|,*powerpc*-darwin[5-8]*)
9821 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9823 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9827 if test yes = "$lt_cv_apple_cc_single_mod"; then
9828 _lt_dar_single_mod='$single_module'
9830 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9831 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9833 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9835 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9836 _lt_dsymutil='~$DSYMUTIL $lib || :'
9843 # func_munge_path_list VARIABLE PATH
9844 # -----------------------------------
9845 # VARIABLE is name of variable containing _space_ separated list of
9846 # directories to be munged by the contents of PATH, which is string
9849 # string "DIR[ DIR]" will be prepended to VARIABLE
9851 # string "DIR[ DIR]" will be appended to VARIABLE
9852 # "DIRP[:DIRP]::[DIRA:]DIRA"
9853 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9854 # "DIRA[ DIRA]" will be appended to VARIABLE
9856 # VARIABLE will be replaced by "DIR[ DIR]"
9857 func_munge_path_list ()
9863 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9866 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9869 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9870 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9873 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9878 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9880 if test "x$ac_cv_header_dlfcn_h" = xyes
9882 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9891 # Check whether --enable-static was given.
9892 if test ${enable_static+y}
9894 enableval=$enable_static; p=${PACKAGE-default}
9896 yes) enable_static=yes ;;
9897 no) enable_static=no ;;
9900 # Look at the argument we got. We use all the common list separators.
9901 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9902 for pkg in $enableval; do
9904 if test "X$pkg" = "X$p"; then
9921 enable_win32_dll=yes
9924 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9925 if test -n "$ac_tool_prefix"; then
9926 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9927 set dummy ${ac_tool_prefix}as; ac_word=$2
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 printf %s "checking for $ac_word... " >&6; }
9930 if test ${ac_cv_prog_AS+y}
9932 printf %s "(cached) " >&6
9934 if test -n "$AS"; then
9935 ac_cv_prog_AS="$AS" # Let the user override the test.
9937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941 case $as_dir in #(((
9944 *) as_dir=$as_dir/ ;;
9946 for ac_exec_ext in '' $ac_executable_extensions; do
9947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9948 ac_cv_prog_AS="${ac_tool_prefix}as"
9949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9959 if test -n "$AS"; then
9960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9961 printf "%s\n" "$AS" >&6; }
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 printf "%s\n" "no" >&6; }
9969 if test -z "$ac_cv_prog_AS"; then
9971 # Extract the first word of "as", so it can be a program name with args.
9972 set dummy as; ac_word=$2
9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974 printf %s "checking for $ac_word... " >&6; }
9975 if test ${ac_cv_prog_ac_ct_AS+y}
9977 printf %s "(cached) " >&6
9979 if test -n "$ac_ct_AS"; then
9980 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 case $as_dir in #(((
9989 *) as_dir=$as_dir/ ;;
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9993 ac_cv_prog_ac_ct_AS="as"
9994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10003 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10004 if test -n "$ac_ct_AS"; then
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10006 printf "%s\n" "$ac_ct_AS" >&6; }
10008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009 printf "%s\n" "no" >&6; }
10012 if test "x$ac_ct_AS" = x; then
10015 case $cross_compiling:$ac_tool_warned in
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10018 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10019 ac_tool_warned=yes ;;
10024 AS="$ac_cv_prog_AS"
10027 if test -n "$ac_tool_prefix"; then
10028 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10029 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 printf %s "checking for $ac_word... " >&6; }
10032 if test ${ac_cv_prog_DLLTOOL+y}
10034 printf %s "(cached) " >&6
10036 if test -n "$DLLTOOL"; then
10037 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040 for as_dir in $PATH
10043 case $as_dir in #(((
10046 *) as_dir=$as_dir/ ;;
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10050 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10060 DLLTOOL=$ac_cv_prog_DLLTOOL
10061 if test -n "$DLLTOOL"; then
10062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10063 printf "%s\n" "$DLLTOOL" >&6; }
10065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10066 printf "%s\n" "no" >&6; }
10071 if test -z "$ac_cv_prog_DLLTOOL"; then
10072 ac_ct_DLLTOOL=$DLLTOOL
10073 # Extract the first word of "dlltool", so it can be a program name with args.
10074 set dummy dlltool; ac_word=$2
10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076 printf %s "checking for $ac_word... " >&6; }
10077 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10079 printf %s "(cached) " >&6
10081 if test -n "$ac_ct_DLLTOOL"; then
10082 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085 for as_dir in $PATH
10088 case $as_dir in #(((
10091 *) as_dir=$as_dir/ ;;
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10095 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10105 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10106 if test -n "$ac_ct_DLLTOOL"; then
10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10108 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 printf "%s\n" "no" >&6; }
10114 if test "x$ac_ct_DLLTOOL" = x; then
10117 case $cross_compiling:$ac_tool_warned in
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10120 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10121 ac_tool_warned=yes ;;
10123 DLLTOOL=$ac_ct_DLLTOOL
10126 DLLTOOL="$ac_cv_prog_DLLTOOL"
10129 if test -n "$ac_tool_prefix"; then
10130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10131 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133 printf %s "checking for $ac_word... " >&6; }
10134 if test ${ac_cv_prog_OBJDUMP+y}
10136 printf %s "(cached) " >&6
10138 if test -n "$OBJDUMP"; then
10139 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10145 case $as_dir in #(((
10148 *) as_dir=$as_dir/ ;;
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10152 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10162 OBJDUMP=$ac_cv_prog_OBJDUMP
10163 if test -n "$OBJDUMP"; then
10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10165 printf "%s\n" "$OBJDUMP" >&6; }
10167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 printf "%s\n" "no" >&6; }
10173 if test -z "$ac_cv_prog_OBJDUMP"; then
10174 ac_ct_OBJDUMP=$OBJDUMP
10175 # Extract the first word of "objdump", so it can be a program name with args.
10176 set dummy objdump; ac_word=$2
10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 printf %s "checking for $ac_word... " >&6; }
10179 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10181 printf %s "(cached) " >&6
10183 if test -n "$ac_ct_OBJDUMP"; then
10184 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187 for as_dir in $PATH
10190 case $as_dir in #(((
10193 *) as_dir=$as_dir/ ;;
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10197 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10207 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10208 if test -n "$ac_ct_OBJDUMP"; then
10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10210 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213 printf "%s\n" "no" >&6; }
10216 if test "x$ac_ct_OBJDUMP" = x; then
10219 case $cross_compiling:$ac_tool_warned in
10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10223 ac_tool_warned=yes ;;
10225 OBJDUMP=$ac_ct_OBJDUMP
10228 OBJDUMP="$ac_cv_prog_OBJDUMP"
10234 test -z "$AS" && AS=as
10240 test -z "$DLLTOOL" && DLLTOOL=dlltool
10246 test -z "$OBJDUMP" && OBJDUMP=objdump
10258 # Check whether --enable-shared was given.
10259 if test ${enable_shared+y}
10261 enableval=$enable_shared; p=${PACKAGE-default}
10263 yes) enable_shared=yes ;;
10264 no) enable_shared=no ;;
10267 # Look at the argument we got. We use all the common list separators.
10268 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10269 for pkg in $enableval; do
10271 if test "X$pkg" = "X$p"; then
10292 # Check whether --with-pic was given.
10293 if test ${with_pic+y}
10295 withval=$with_pic; lt_p=${PACKAGE-default}
10297 yes|no) pic_mode=$withval ;;
10300 # Look at the argument we got. We use all the common list separators.
10301 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10302 for lt_pkg in $withval; do
10304 if test "X$lt_pkg" = "X$lt_p"; then
10322 # Check whether --enable-fast-install was given.
10323 if test ${enable_fast_install+y}
10325 enableval=$enable_fast_install; p=${PACKAGE-default}
10327 yes) enable_fast_install=yes ;;
10328 no) enable_fast_install=no ;;
10330 enable_fast_install=no
10331 # Look at the argument we got. We use all the common list separators.
10332 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10333 for pkg in $enableval; do
10335 if test "X$pkg" = "X$p"; then
10336 enable_fast_install=yes
10343 enable_fast_install=yes
10353 shared_archive_member_spec=
10354 case $host,$enable_shared in
10355 power*-*-aix[5-9]*,yes)
10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10357 printf %s "checking which variant of shared library versioning to provide... " >&6; }
10359 # Check whether --with-aix-soname was given.
10360 if test ${with_aix_soname+y}
10362 withval=$with_aix_soname; case $withval in
10366 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10369 lt_cv_with_aix_soname=$with_aix_soname
10371 if test ${lt_cv_with_aix_soname+y}
10373 printf %s "(cached) " >&6
10375 lt_cv_with_aix_soname=aix
10378 with_aix_soname=$lt_cv_with_aix_soname
10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10382 printf "%s\n" "$with_aix_soname" >&6; }
10383 if test aix != "$with_aix_soname"; then
10384 # For the AIX way of multilib, we name the shared archive member
10385 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10386 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10387 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10388 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10389 if test 64 = "${OBJECT_MODE-32}"; then
10390 shared_archive_member_spec=shr_64
10392 shared_archive_member_spec=shr
10397 with_aix_soname=aix
10410 # This can be used to rebuild libtool when needed
10411 LIBTOOL_DEPS=$ltmain
10413 # Always use our own libtool.
10414 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10445 test -z "$LN_S" && LN_S="ln -s"
10460 if test -n "${ZSH_VERSION+set}"; then
10461 setopt NO_GLOB_SUBST
10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10465 printf %s "checking for objdir... " >&6; }
10466 if test ${lt_cv_objdir+y}
10468 printf %s "(cached) " >&6
10470 rm -f .libs 2>/dev/null
10471 mkdir .libs 2>/dev/null
10472 if test -d .libs; then
10475 # MS-DOS does not allow filenames that begin with a dot.
10478 rmdir .libs 2>/dev/null
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10481 printf "%s\n" "$lt_cv_objdir" >&6; }
10482 objdir=$lt_cv_objdir
10488 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10495 # AIX sometimes has problems with the GCC collect2 program. For some
10496 # reason, if we set the COLLECT_NAMES environment variable, the problems
10497 # vanish in a puff of smoke.
10498 if test set != "${COLLECT_NAMES+set}"; then
10500 export COLLECT_NAMES
10505 # Global variables:
10507 can_build_shared=yes
10509 # All known linkers require a '.a' archive for static linking (except MSVC and
10510 # ICC, which need '.lib').
10513 with_gnu_ld=$lt_cv_prog_gnu_ld
10518 # Set sane defaults for various variables
10519 test -z "$CC" && CC=cc
10520 test -z "$LTCC" && LTCC=$CC
10521 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10522 test -z "$LD" && LD=ld
10523 test -z "$ac_objext" && ac_objext=o
10525 func_cc_basename $compiler
10526 cc_basename=$func_cc_basename_result
10529 # Only perform the check for file, if the check method requires it
10530 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10531 case $deplibs_check_method in
10533 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10535 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10536 if test ${lt_cv_path_MAGIC_CMD+y}
10538 printf %s "(cached) " >&6
10542 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10545 lt_save_MAGIC_CMD=$MAGIC_CMD
10546 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10547 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10548 for ac_dir in $ac_dummy; do
10550 test -z "$ac_dir" && ac_dir=.
10551 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10552 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10553 if test -n "$file_magic_test_file"; then
10554 case $deplibs_check_method in
10556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10557 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10559 $EGREP "$file_magic_regex" > /dev/null; then
10564 *** Warning: the command libtool uses to detect shared libraries,
10565 *** $file_magic_cmd, produces output that libtool cannot recognize.
10566 *** The result is that libtool may fail to recognize shared libraries
10567 *** as such. This will affect the creation of libtool libraries that
10568 *** depend on shared libraries, but programs linked with such libtool
10569 *** libraries will work regardless of this problem. Nevertheless, you
10570 *** may want to report the problem to your system manager and/or to
10571 *** bug-libtool@gnu.org
10581 MAGIC_CMD=$lt_save_MAGIC_CMD
10586 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10587 if test -n "$MAGIC_CMD"; then
10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10589 printf "%s\n" "$MAGIC_CMD" >&6; }
10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 printf "%s\n" "no" >&6; }
10599 if test -z "$lt_cv_path_MAGIC_CMD"; then
10600 if test -n "$ac_tool_prefix"; then
10601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10602 printf %s "checking for file... " >&6; }
10603 if test ${lt_cv_path_MAGIC_CMD+y}
10605 printf %s "(cached) " >&6
10609 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10612 lt_save_MAGIC_CMD=$MAGIC_CMD
10613 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10614 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10615 for ac_dir in $ac_dummy; do
10617 test -z "$ac_dir" && ac_dir=.
10618 if test -f "$ac_dir/file"; then
10619 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10620 if test -n "$file_magic_test_file"; then
10621 case $deplibs_check_method in
10623 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10624 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10625 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10626 $EGREP "$file_magic_regex" > /dev/null; then
10631 *** Warning: the command libtool uses to detect shared libraries,
10632 *** $file_magic_cmd, produces output that libtool cannot recognize.
10633 *** The result is that libtool may fail to recognize shared libraries
10634 *** as such. This will affect the creation of libtool libraries that
10635 *** depend on shared libraries, but programs linked with such libtool
10636 *** libraries will work regardless of this problem. Nevertheless, you
10637 *** may want to report the problem to your system manager and/or to
10638 *** bug-libtool@gnu.org
10648 MAGIC_CMD=$lt_save_MAGIC_CMD
10653 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10654 if test -n "$MAGIC_CMD"; then
10655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10656 printf "%s\n" "$MAGIC_CMD" >&6; }
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659 printf "%s\n" "no" >&6; }
10672 # Use C for the default configuration in the libtool script
10676 ac_cpp='$CPP $CPPFLAGS'
10677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10682 # Source file extension for C test sources.
10685 # Object file extension for compiled C test sources.
10689 # Code to be used in simple compile tests
10690 lt_simple_compile_test_code="int some_variable = 0;"
10692 # Code to be used in simple link tests
10693 lt_simple_link_test_code='int main(){return(0);}'
10701 # If no C compiler was specified, use CC.
10704 # If no C compiler flags were specified, use CFLAGS.
10705 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10707 # Allow CC to be a program name with arguments.
10710 # Save the default compiler, since it gets overwritten when the other
10711 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10712 compiler_DEFAULT=$CC
10714 # save warnings/boilerplate of simple test code
10715 ac_outfile=conftest.$ac_objext
10716 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10717 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10718 _lt_compiler_boilerplate=`cat conftest.err`
10721 ac_outfile=conftest.$ac_objext
10722 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10723 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10724 _lt_linker_boilerplate=`cat conftest.err`
10729 ## There is no encapsulation within the following macros, do not change
10730 ## the running order or otherwise move them around unless you know exactly
10731 ## what you are doing...
10732 if test -n "$compiler"; then
10734 lt_prog_compiler_no_builtin_flag=
10736 if test yes = "$GCC"; then
10737 case $cc_basename in
10739 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10741 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10745 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10746 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10748 printf %s "(cached) " >&6
10750 lt_cv_prog_compiler_rtti_exceptions=no
10751 ac_outfile=conftest.$ac_objext
10752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10753 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10754 # Insert the option either (1) after the last *FLAGS variable, or
10755 # (2) before a word containing "conftest.", or (3) at the end.
10756 # Note that $ac_compile itself does not contain backslashes and begins
10757 # with a dollar sign (not a hyphen), so the echo should work correctly.
10758 # The option is referenced via a variable to avoid confusing sed.
10759 lt_compile=`echo "$ac_compile" | $SED \
10760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10762 -e 's:$: $lt_compiler_flag:'`
10763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10764 (eval "$lt_compile" 2>conftest.err)
10766 cat conftest.err >&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 if (exit $ac_status) && test -s "$ac_outfile"; then
10769 # The compiler can only warn and ignore the option if not recognized
10770 # So say no if there are warnings other than the usual output.
10771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10774 lt_cv_prog_compiler_rtti_exceptions=yes
10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10781 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10783 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10784 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10796 lt_prog_compiler_wl=
10797 lt_prog_compiler_pic=
10798 lt_prog_compiler_static=
10801 if test yes = "$GCC"; then
10802 lt_prog_compiler_wl='-Wl,'
10803 lt_prog_compiler_static='-static'
10807 # All AIX code is PIC.
10808 if test ia64 = "$host_cpu"; then
10809 # AIX 5 now supports IA64 processor
10810 lt_prog_compiler_static='-Bstatic'
10812 lt_prog_compiler_pic='-fPIC'
10818 # see comment about AmigaOS4 .so support
10819 lt_prog_compiler_pic='-fPIC'
10822 # FIXME: we need at least 68020 code to build shared libraries, but
10823 # adding the '-m68020' flag to GCC prevents building anything better,
10825 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10830 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10831 # PIC is the default for these OSes.
10834 mingw* | cygwin* | pw32* | os2* | cegcc*)
10835 # This hack is so that the source file can tell whether it is being
10836 # built for inclusion in a dll (and should export symbols for example).
10837 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10838 # (--disable-auto-import) libraries
10839 lt_prog_compiler_pic='-DDLL_EXPORT'
10842 lt_prog_compiler_static='$wl-static'
10847 darwin* | rhapsody*)
10848 # PIC is the default on this platform
10849 # Common symbols not allowed in MH_DYLIB files
10850 lt_prog_compiler_pic='-fno-common'
10854 # PIC is the default for Haiku.
10855 # The "-static" flag exists, but is broken.
10856 lt_prog_compiler_static=
10860 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10861 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10862 # sets the default TLS model and affects inlining.
10868 lt_prog_compiler_pic='-fPIC'
10874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10875 # Instead, we relocate shared libraries at runtime.
10879 # Just because we use GCC doesn't mean we suddenly get shared libraries
10880 # on systems that don't support them.
10881 lt_prog_compiler_can_build_shared=no
10886 # QNX uses GNU C++, but need to define -shared option too, otherwise
10887 # it will coredump.
10888 lt_prog_compiler_pic='-fPIC -shared'
10892 if test -d /usr/nec; then
10893 lt_prog_compiler_pic=-Kconform_pic
10898 lt_prog_compiler_pic='-fPIC'
10902 case $cc_basename in
10903 nvcc*) # Cuda Compiler Driver 2.2
10904 lt_prog_compiler_wl='-Xlinker '
10905 if test -n "$lt_prog_compiler_pic"; then
10906 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10911 # PORTME Check for flag to pass linker flags through the system compiler.
10914 lt_prog_compiler_wl='-Wl,'
10915 if test ia64 = "$host_cpu"; then
10916 # AIX 5 now supports IA64 processor
10917 lt_prog_compiler_static='-Bstatic'
10919 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10923 darwin* | rhapsody*)
10924 # PIC is the default on this platform
10925 # Common symbols not allowed in MH_DYLIB files
10926 lt_prog_compiler_pic='-fno-common'
10927 case $cc_basename in
10929 # NAG Fortran compiler
10930 lt_prog_compiler_wl='-Wl,-Wl,,'
10931 lt_prog_compiler_pic='-PIC'
10932 lt_prog_compiler_static='-Bstatic'
10937 mingw* | cygwin* | pw32* | os2* | cegcc*)
10938 # This hack is so that the source file can tell whether it is being
10939 # built for inclusion in a dll (and should export symbols for example).
10940 lt_prog_compiler_pic='-DDLL_EXPORT'
10943 lt_prog_compiler_static='$wl-static'
10948 hpux9* | hpux10* | hpux11*)
10949 lt_prog_compiler_wl='-Wl,'
10950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10951 # not for PA HP-UX.
10957 lt_prog_compiler_pic='+Z'
10960 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10961 lt_prog_compiler_static='$wl-a ${wl}archive'
10964 irix5* | irix6* | nonstopux*)
10965 lt_prog_compiler_wl='-Wl,'
10966 # PIC (with -KPIC) is the default.
10967 lt_prog_compiler_static='-non_shared'
10970 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10971 case $cc_basename in
10972 # old Intel for x86_64, which still supported -KPIC.
10974 lt_prog_compiler_wl='-Wl,'
10975 lt_prog_compiler_pic='-KPIC'
10976 lt_prog_compiler_static='-static'
10978 # icc used to be incompatible with GCC.
10979 # ICC 10 doesn't accept -KPIC any more.
10981 lt_prog_compiler_wl='-Wl,'
10982 lt_prog_compiler_pic='-fPIC'
10983 lt_prog_compiler_static='-static'
10985 # Lahey Fortran 8.1.
10987 lt_prog_compiler_wl='-Wl,'
10988 lt_prog_compiler_pic='--shared'
10989 lt_prog_compiler_static='--static'
10992 # NAG Fortran compiler
10993 lt_prog_compiler_wl='-Wl,-Wl,,'
10994 lt_prog_compiler_pic='-PIC'
10995 lt_prog_compiler_static='-Bstatic'
10998 # Fabrice Bellard et al's Tiny C Compiler
10999 lt_prog_compiler_wl='-Wl,'
11000 lt_prog_compiler_pic='-fPIC'
11001 lt_prog_compiler_static='-static'
11003 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11004 # Portland Group compilers (*not* the Pentium gcc compiler,
11005 # which looks to be a dead project)
11006 lt_prog_compiler_wl='-Wl,'
11007 lt_prog_compiler_pic='-fpic'
11008 lt_prog_compiler_static='-Bstatic'
11011 lt_prog_compiler_wl='-Wl,'
11012 # All Alpha code is PIC.
11013 lt_prog_compiler_static='-non_shared'
11015 xl* | bgxl* | bgf* | mpixl*)
11016 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11017 lt_prog_compiler_wl='-Wl,'
11018 lt_prog_compiler_pic='-qpic'
11019 lt_prog_compiler_static='-qstaticlink'
11022 case `$CC -V 2>&1 | $SED 5q` in
11023 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11024 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11025 lt_prog_compiler_pic='-KPIC'
11026 lt_prog_compiler_static='-Bstatic'
11027 lt_prog_compiler_wl=''
11029 *Sun\ F* | *Sun*Fortran*)
11030 lt_prog_compiler_pic='-KPIC'
11031 lt_prog_compiler_static='-Bstatic'
11032 lt_prog_compiler_wl='-Qoption ld '
11036 lt_prog_compiler_pic='-KPIC'
11037 lt_prog_compiler_static='-Bstatic'
11038 lt_prog_compiler_wl='-Wl,'
11040 *Intel*\ [CF]*Compiler*)
11041 lt_prog_compiler_wl='-Wl,'
11042 lt_prog_compiler_pic='-fPIC'
11043 lt_prog_compiler_static='-static'
11046 lt_prog_compiler_wl='-Wl,'
11047 lt_prog_compiler_pic='-fpic'
11048 lt_prog_compiler_static='-Bstatic'
11056 lt_prog_compiler_pic='-KPIC'
11057 lt_prog_compiler_static='-Bstatic'
11061 # QNX uses GNU C++, but need to define -shared option too, otherwise
11062 # it will coredump.
11063 lt_prog_compiler_pic='-fPIC -shared'
11066 osf3* | osf4* | osf5*)
11067 lt_prog_compiler_wl='-Wl,'
11068 # All OSF/1 code is PIC.
11069 lt_prog_compiler_static='-non_shared'
11073 lt_prog_compiler_static='-non_shared'
11077 lt_prog_compiler_pic='-KPIC'
11078 lt_prog_compiler_static='-Bstatic'
11079 case $cc_basename in
11080 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11081 lt_prog_compiler_wl='-Qoption ld ';;
11083 lt_prog_compiler_wl='-Wl,';;
11088 lt_prog_compiler_wl='-Qoption ld '
11089 lt_prog_compiler_pic='-PIC'
11090 lt_prog_compiler_static='-Bstatic'
11093 sysv4 | sysv4.2uw2* | sysv4.3*)
11094 lt_prog_compiler_wl='-Wl,'
11095 lt_prog_compiler_pic='-KPIC'
11096 lt_prog_compiler_static='-Bstatic'
11100 if test -d /usr/nec; then
11101 lt_prog_compiler_pic='-Kconform_pic'
11102 lt_prog_compiler_static='-Bstatic'
11106 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11107 lt_prog_compiler_wl='-Wl,'
11108 lt_prog_compiler_pic='-KPIC'
11109 lt_prog_compiler_static='-Bstatic'
11113 lt_prog_compiler_wl='-Wl,'
11114 lt_prog_compiler_can_build_shared=no
11118 lt_prog_compiler_pic='-pic'
11119 lt_prog_compiler_static='-Bstatic'
11123 lt_prog_compiler_can_build_shared=no
11129 # For platforms that do not support PIC, -DPIC is meaningless:
11131 lt_prog_compiler_pic=
11134 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11139 printf %s "checking for $compiler option to produce PIC... " >&6; }
11140 if test ${lt_cv_prog_compiler_pic+y}
11142 printf %s "(cached) " >&6
11144 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11147 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11148 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11151 # Check to make sure the PIC flag actually works.
11153 if test -n "$lt_prog_compiler_pic"; then
11154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11155 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11156 if test ${lt_cv_prog_compiler_pic_works+y}
11158 printf %s "(cached) " >&6
11160 lt_cv_prog_compiler_pic_works=no
11161 ac_outfile=conftest.$ac_objext
11162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11163 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11164 # Insert the option either (1) after the last *FLAGS variable, or
11165 # (2) before a word containing "conftest.", or (3) at the end.
11166 # Note that $ac_compile itself does not contain backslashes and begins
11167 # with a dollar sign (not a hyphen), so the echo should work correctly.
11168 # The option is referenced via a variable to avoid confusing sed.
11169 lt_compile=`echo "$ac_compile" | $SED \
11170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11172 -e 's:$: $lt_compiler_flag:'`
11173 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11174 (eval "$lt_compile" 2>conftest.err)
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 if (exit $ac_status) && test -s "$ac_outfile"; then
11179 # The compiler can only warn and ignore the option if not recognized
11180 # So say no if there are warnings other than the usual output.
11181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11184 lt_cv_prog_compiler_pic_works=yes
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11191 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11193 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11194 case $lt_prog_compiler_pic in
11196 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11199 lt_prog_compiler_pic=
11200 lt_prog_compiler_can_build_shared=no
11216 # Check to make sure the static flag actually works.
11218 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11220 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11221 if test ${lt_cv_prog_compiler_static_works+y}
11223 printf %s "(cached) " >&6
11225 lt_cv_prog_compiler_static_works=no
11226 save_LDFLAGS=$LDFLAGS
11227 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11228 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11229 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11230 # The linker can only warn and ignore the option if not recognized
11231 # So say no if there are warnings
11232 if test -s conftest.err; then
11233 # Append any errors to the config.log.
11234 cat conftest.err 1>&5
11235 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11237 if diff conftest.exp conftest.er2 >/dev/null; then
11238 lt_cv_prog_compiler_static_works=yes
11241 lt_cv_prog_compiler_static_works=yes
11245 LDFLAGS=$save_LDFLAGS
11248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11249 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
11251 if test yes = "$lt_cv_prog_compiler_static_works"; then
11254 lt_prog_compiler_static=
11263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11264 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11265 if test ${lt_cv_prog_compiler_c_o+y}
11267 printf %s "(cached) " >&6
11269 lt_cv_prog_compiler_c_o=no
11270 $RM -r conftest 2>/dev/null
11274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11276 lt_compiler_flag="-o out/conftest2.$ac_objext"
11277 # Insert the option either (1) after the last *FLAGS variable, or
11278 # (2) before a word containing "conftest.", or (3) at the end.
11279 # Note that $ac_compile itself does not contain backslashes and begins
11280 # with a dollar sign (not a hyphen), so the echo should work correctly.
11281 lt_compile=`echo "$ac_compile" | $SED \
11282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11284 -e 's:$: $lt_compiler_flag:'`
11285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11286 (eval "$lt_compile" 2>out/conftest.err)
11288 cat out/conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11292 # The compiler can only warn and ignore the option if not recognized
11293 # So say no if there are warnings
11294 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11295 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11296 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11297 lt_cv_prog_compiler_c_o=yes
11302 # SGI C++ compiler will create directory out/ii_files/ for
11303 # template instantiation
11304 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11305 $RM out/* && rmdir out
11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11312 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11320 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11321 if test ${lt_cv_prog_compiler_c_o+y}
11323 printf %s "(cached) " >&6
11325 lt_cv_prog_compiler_c_o=no
11326 $RM -r conftest 2>/dev/null
11330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11332 lt_compiler_flag="-o out/conftest2.$ac_objext"
11333 # Insert the option either (1) after the last *FLAGS variable, or
11334 # (2) before a word containing "conftest.", or (3) at the end.
11335 # Note that $ac_compile itself does not contain backslashes and begins
11336 # with a dollar sign (not a hyphen), so the echo should work correctly.
11337 lt_compile=`echo "$ac_compile" | $SED \
11338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11340 -e 's:$: $lt_compiler_flag:'`
11341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11342 (eval "$lt_compile" 2>out/conftest.err)
11344 cat out/conftest.err >&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11348 # The compiler can only warn and ignore the option if not recognized
11349 # So say no if there are warnings
11350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11351 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11352 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11353 lt_cv_prog_compiler_c_o=yes
11358 # SGI C++ compiler will create directory out/ii_files/ for
11359 # template instantiation
11360 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11361 $RM out/* && rmdir out
11367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11368 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
11373 hard_links=nottested
11374 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
11375 # do not overwrite the value of need_locks provided by the user
11376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11377 printf %s "checking if we can lock with hard links... " >&6; }
11380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11382 ln conftest.a conftest.b 2>&5 || hard_links=no
11383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11385 printf "%s\n" "$hard_links" >&6; }
11386 if test no = "$hard_links"; then
11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11388 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11401 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11404 allow_undefined_flag=
11405 always_export_symbols=no
11407 archive_expsym_cmds=
11408 compiler_needs_object=no
11409 enable_shared_with_static_runtimes=no
11410 export_dynamic_flag_spec=
11411 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11412 hardcode_automatic=no
11414 hardcode_direct_absolute=no
11415 hardcode_libdir_flag_spec=
11416 hardcode_libdir_separator=
11417 hardcode_minus_L=no
11418 hardcode_shlibpath_var=unsupported
11420 link_all_deplibs=unknown
11422 module_expsym_cmds=
11423 old_archive_from_new_cmds=
11424 old_archive_from_expsyms_cmds=
11425 thread_safe_flag_spec=
11426 whole_archive_flag_spec=
11427 # include_expsyms should be a list of space-separated symbols to be *always*
11428 # included in the symbol list
11430 # exclude_expsyms can be an extended regexp of symbols to exclude
11431 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11432 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11433 # as well as any symbol that contains 'd'.
11434 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11435 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11436 # platforms (ab)use it in PIC code, but their linkers get confused if
11437 # the symbol is explicitly referenced. Since portable code cannot
11438 # rely on this symbol name, it's probably fine to never include it in
11439 # preloaded symbol tables.
11440 # Exclude shared library initialization/finalization symbols.
11441 extract_expsyms_cmds=
11444 cygwin* | mingw* | pw32* | cegcc*)
11445 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
11446 # When not using gcc, we currently assume that we are using
11447 # Microsoft Visual C++ or Intel C++ Compiler.
11448 if test yes != "$GCC"; then
11453 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
11456 openbsd* | bitrig*)
11463 # On some targets, GNU ld is compatible enough with the native linker
11464 # that we're better off using the native interface for both.
11465 lt_use_gnu_ld_interface=no
11466 if test yes = "$with_gnu_ld"; then
11469 # The AIX port of GNU ld has always aspired to compatibility
11470 # with the native linker. However, as the warning in the GNU ld
11471 # block says, versions before 2.19.5* couldn't really create working
11472 # shared libraries, regardless of the interface used.
11473 case `$LD -v 2>&1` in
11474 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11475 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11476 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11478 lt_use_gnu_ld_interface=yes
11483 lt_use_gnu_ld_interface=yes
11488 if test yes = "$lt_use_gnu_ld_interface"; then
11489 # If archive_cmds runs LD, not CC, wlarc should be empty
11492 # Set some defaults for GNU ld with shared library support. These
11493 # are reset later if shared libraries are not supported. Putting them
11494 # here allows them to be overridden if necessary.
11495 runpath_var=LD_RUN_PATH
11496 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11497 export_dynamic_flag_spec='$wl--export-dynamic'
11498 # ancient GNU ld didn't support --whole-archive et. al.
11499 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11500 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11502 whole_archive_flag_spec=
11504 supports_anon_versioning=no
11505 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
11506 *GNU\ gold*) supports_anon_versioning=yes ;;
11507 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11508 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11509 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11510 *\ 2.11.*) ;; # other 2.11 versions
11511 *) supports_anon_versioning=yes ;;
11514 # See if GNU ld supports shared libraries.
11517 # On AIX/PPC, the GNU linker is very broken
11518 if test ia64 != "$host_cpu"; then
11522 *** Warning: the GNU linker, at least up to release 2.19, is reported
11523 *** to be unable to reliably create shared libraries on AIX.
11524 *** Therefore, libtool is disabling shared libraries support. If you
11525 *** really care for shared libraries, you may want to install binutils
11526 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11527 *** You will then need to restart the configuration process.
11536 # see comment about AmigaOS4 .so support
11537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11538 archive_expsym_cmds=''
11541 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)'
11542 hardcode_libdir_flag_spec='-L$libdir'
11543 hardcode_minus_L=yes
11549 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11550 allow_undefined_flag=unsupported
11551 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11552 # support --undefined. This deserves some investigation. FIXME
11553 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11559 cygwin* | mingw* | pw32* | cegcc*)
11560 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11561 # as there is no search path for DLLs.
11562 hardcode_libdir_flag_spec='-L$libdir'
11563 export_dynamic_flag_spec='$wl--export-all-symbols'
11564 allow_undefined_flag=unsupported
11565 always_export_symbols=no
11566 enable_shared_with_static_runtimes=yes
11567 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'
11568 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11570 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11572 # If the export-symbols file already is a .def file, use it as
11573 # is; otherwise, prepend EXPORTS...
11574 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11575 cp $export_symbols $output_objdir/$soname.def;
11577 echo EXPORTS > $output_objdir/$soname.def;
11578 cat $export_symbols >> $output_objdir/$soname.def;
11580 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11588 link_all_deplibs=yes
11592 hardcode_libdir_flag_spec='-L$libdir'
11593 hardcode_minus_L=yes
11594 allow_undefined_flag=unsupported
11596 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11597 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11598 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11599 $ECHO EXPORTS >> $output_objdir/$libname.def~
11600 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11601 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11602 emximp -o $lib $output_objdir/$libname.def'
11603 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11604 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11605 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11606 $ECHO EXPORTS >> $output_objdir/$libname.def~
11607 prefix_cmds="$SED"~
11608 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11609 prefix_cmds="$prefix_cmds -e 1d";
11611 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11612 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11613 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11614 emximp -o $lib $output_objdir/$libname.def'
11615 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11616 enable_shared_with_static_runtimes=yes
11622 hardcode_shlibpath_var=no
11623 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11624 export_dynamic_flag_spec='$wl-E'
11625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11626 # Instead, shared libraries are loaded at an image base (0x10000000 by
11627 # default) and relocated if they conflict, which is a slow very memory
11628 # consuming and fragmenting process. To avoid this, we pick a random,
11629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11632 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'
11635 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11637 if test linux-dietlibc = "$host_os"; then
11638 case $cc_basename in
11639 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11642 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11643 && test no = "$tmp_diet"
11645 tmp_addflag=' $pic_flag'
11646 tmp_sharedflag='-shared'
11647 case $cc_basename,$host_cpu in
11648 pgcc*) # Portland Group C compiler
11649 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'
11650 tmp_addflag=' $pic_flag'
11652 pgf77* | pgf90* | pgf95* | pgfortran*)
11653 # Portland Group f77 and f90 compilers
11654 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'
11655 tmp_addflag=' $pic_flag -Mnomain' ;;
11656 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11657 tmp_addflag=' -i_dynamic' ;;
11658 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11659 tmp_addflag=' -i_dynamic -nofor_main' ;;
11660 ifc* | ifort*) # Intel Fortran compiler
11661 tmp_addflag=' -nofor_main' ;;
11662 lf95*) # Lahey Fortran 8.1
11663 whole_archive_flag_spec=
11664 tmp_sharedflag='--shared' ;;
11665 nagfor*) # NAGFOR 5.3
11666 tmp_sharedflag='-Wl,-shared' ;;
11667 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11668 tmp_sharedflag='-qmkshrobj'
11670 nvcc*) # Cuda Compiler Driver 2.2
11671 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'
11672 compiler_needs_object=yes
11675 case `$CC -V 2>&1 | $SED 5q` in
11676 *Sun\ C*) # Sun C 5.9
11677 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'
11678 compiler_needs_object=yes
11679 tmp_sharedflag='-G' ;;
11680 *Sun\ F*) # Sun Fortran 8.3
11681 tmp_sharedflag='-G' ;;
11683 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11685 if test yes = "$supports_anon_versioning"; then
11686 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11687 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11688 echo "local: *; };" >> $output_objdir/$libname.ver~
11689 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11692 case $cc_basename in
11694 export_dynamic_flag_spec='-rdynamic'
11696 xlf* | bgf* | bgxlf* | mpixlf*)
11697 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11698 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11699 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11700 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11701 if test yes = "$supports_anon_versioning"; then
11702 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11703 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11704 echo "local: *; };" >> $output_objdir/$libname.ver~
11705 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11716 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11720 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11725 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11729 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11730 *** create shared libraries on Solaris systems. Therefore, libtool
11731 *** is disabling shared libraries support. We urge you to upgrade GNU
11732 *** binutils to release 2.9.1 or newer. Another option is to modify
11733 *** your PATH or compiler configuration so that the native linker is
11734 *** used, and then restart.
11737 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11738 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11739 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11746 case `$LD -v 2>&1` in
11747 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11751 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11752 *** reliably create shared libraries on SCO systems. Therefore, libtool
11753 *** is disabling shared libraries support. We urge you to upgrade GNU
11754 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11755 *** your PATH or compiler configuration so that the native linker is
11756 *** used, and then restart.
11761 # For security reasons, it is highly recommended that you always
11762 # use absolute paths for naming shared libraries, and exclude the
11763 # DT_RUNPATH tag from executables and libraries. But doing so
11764 # requires that you compile everything twice, which is a pain.
11765 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11766 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11768 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11777 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11779 hardcode_direct=yes
11780 hardcode_shlibpath_var=no
11784 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11786 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11793 if test no = "$ld_shlibs"; then
11795 hardcode_libdir_flag_spec=
11796 export_dynamic_flag_spec=
11797 whole_archive_flag_spec=
11800 # PORTME fill in a description of your system's linker (not GNU ld)
11803 allow_undefined_flag=unsupported
11804 always_export_symbols=yes
11805 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'
11806 # Note: this linker hardcodes the directories in LIBPATH if there
11807 # are no directories specified by -L.
11808 hardcode_minus_L=yes
11809 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11810 # Neither direct hardcoding nor static linking is supported with a
11812 hardcode_direct=unsupported
11817 if test ia64 = "$host_cpu"; then
11818 # On IA64, the linker does run time linking by default, so we don't
11819 # have to do anything special.
11820 aix_use_runtimelinking=no
11821 exp_sym_flag='-Bexport'
11824 # If we're using GNU nm, then we don't want the "-C" option.
11825 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11826 # Without the "-l" option, or with the "-B" option, AIX nm treats
11827 # weak defined symbols like other global defined symbols, whereas
11828 # GNU nm marks them as "W".
11829 # While the 'weak' keyword is ignored in the Export File, we need
11830 # it in the Import File for the 'aix-soname' feature, so we have
11831 # to replace the "-B" option with "-P" for AIX nm.
11832 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11833 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11835 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11837 aix_use_runtimelinking=no
11839 # Test if we are trying to use run time linking or normal
11840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11841 # have runtime linking enabled, and use it for executables.
11842 # For shared libraries, we enable/disable runtime linking
11843 # depending on the kind of the shared library created -
11844 # when "with_aix_soname,aix_use_runtimelinking" is:
11845 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11846 # "aix,yes" lib.so shared, rtl:yes, for executables
11847 # lib.a static archive
11848 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11849 # lib.a(lib.so.V) shared, rtl:no, for executables
11850 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11851 # lib.a(lib.so.V) shared, rtl:no
11852 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11853 # lib.a static archive
11854 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11855 for ld_flag in $LDFLAGS; do
11856 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11857 aix_use_runtimelinking=yes
11861 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11862 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11863 # so we don't have lib.a shared libs to link our executables.
11864 # We have to force runtime linking in this case.
11865 aix_use_runtimelinking=yes
11866 LDFLAGS="$LDFLAGS -Wl,-brtl"
11871 exp_sym_flag='-bexport'
11872 no_entry_flag='-bnoentry'
11875 # When large executables or shared objects are built, AIX ld can
11876 # have problems creating the table of contents. If linking a library
11877 # or program results in "error TOC overflow" add -mminimal-toc to
11878 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11879 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11882 hardcode_direct=yes
11883 hardcode_direct_absolute=yes
11884 hardcode_libdir_separator=':'
11885 link_all_deplibs=yes
11886 file_list_spec='$wl-f,'
11887 case $with_aix_soname,$aix_use_runtimelinking in
11888 aix,*) ;; # traditional, no import file
11889 svr4,* | *,yes) # use import file
11890 # The Import File defines what to hardcode.
11892 hardcode_direct_absolute=no
11896 if test yes = "$GCC"; then
11897 case $host_os in aix4.[012]|aix4.[012].*)
11898 # We only want to do this on AIX 4.2 and lower, the check
11899 # below for broken collect2 doesn't work under 4.3+
11900 collect2name=`$CC -print-prog-name=collect2`
11901 if test -f "$collect2name" &&
11902 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11904 # We have reworked collect2
11907 # We have old collect2
11908 hardcode_direct=unsupported
11909 # It fails to find uninstalled libraries when the uninstalled
11910 # path is not listed in the libpath. Setting hardcode_minus_L
11911 # to unsupported forces relinking
11912 hardcode_minus_L=yes
11913 hardcode_libdir_flag_spec='-L$libdir'
11914 hardcode_libdir_separator=
11918 shared_flag='-shared'
11919 if test yes = "$aix_use_runtimelinking"; then
11920 shared_flag="$shared_flag "'$wl-G'
11922 # Need to ensure runtime linking is disabled for the traditional
11923 # shared library, or the linker may eventually find shared libraries
11924 # /with/ Import File - we do not want to mix them.
11925 shared_flag_aix='-shared'
11926 shared_flag_svr4='-shared $wl-G'
11929 if test ia64 = "$host_cpu"; then
11930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11931 # chokes on -Wl,-G. The following line is correct:
11934 if test yes = "$aix_use_runtimelinking"; then
11935 shared_flag='$wl-G'
11937 shared_flag='$wl-bM:SRE'
11939 shared_flag_aix='$wl-bM:SRE'
11940 shared_flag_svr4='$wl-G'
11944 export_dynamic_flag_spec='$wl-bexpall'
11945 # It seems that -bexpall does not export symbols beginning with
11946 # underscore (_), so it is better to generate a list of symbols to export.
11947 always_export_symbols=yes
11948 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11949 # Warning - without using the other runtime loading flags (-brtl),
11950 # -berok will link without error, but may produce a broken library.
11951 allow_undefined_flag='-berok'
11952 # Determine the default libpath from the value encoded in an
11953 # empty executable.
11954 if test set = "${lt_cv_aix_libpath+set}"; then
11955 aix_libpath=$lt_cv_aix_libpath
11957 if test ${lt_cv_aix_libpath_+y}
11959 printf %s "(cached) " >&6
11961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11972 if ac_fn_c_try_link "$LINENO"
11975 lt_aix_libpath_sed='
11976 /Import File Strings/,/^$/ {
11978 s/^0 *\([^ ]*\) *$/\1/
11982 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11983 # Check for a 64-bit object if we didn't find anything.
11984 if test -z "$lt_cv_aix_libpath_"; then
11985 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11989 conftest$ac_exeext conftest.$ac_ext
11990 if test -z "$lt_cv_aix_libpath_"; then
11991 lt_cv_aix_libpath_=/usr/lib:/lib
11996 aix_libpath=$lt_cv_aix_libpath_
11999 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12000 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12002 if test ia64 = "$host_cpu"; then
12003 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12004 allow_undefined_flag="-z nodefs"
12005 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"
12007 # Determine the default libpath from the value encoded in an
12008 # empty executable.
12009 if test set = "${lt_cv_aix_libpath+set}"; then
12010 aix_libpath=$lt_cv_aix_libpath
12012 if test ${lt_cv_aix_libpath_+y}
12014 printf %s "(cached) " >&6
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12027 if ac_fn_c_try_link "$LINENO"
12030 lt_aix_libpath_sed='
12031 /Import File Strings/,/^$/ {
12033 s/^0 *\([^ ]*\) *$/\1/
12037 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12038 # Check for a 64-bit object if we didn't find anything.
12039 if test -z "$lt_cv_aix_libpath_"; then
12040 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12044 conftest$ac_exeext conftest.$ac_ext
12045 if test -z "$lt_cv_aix_libpath_"; then
12046 lt_cv_aix_libpath_=/usr/lib:/lib
12051 aix_libpath=$lt_cv_aix_libpath_
12054 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12055 # Warning - without using the other run time loading flags,
12056 # -berok will link without error, but may produce a broken library.
12057 no_undefined_flag=' $wl-bernotok'
12058 allow_undefined_flag=' $wl-berok'
12059 if test yes = "$with_gnu_ld"; then
12060 # We only use this code for GNU lds that support --whole-archive.
12061 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12063 # Exported symbols can be pulled into shared objects from archives
12064 whole_archive_flag_spec='$convenience'
12066 archive_cmds_need_lc=yes
12067 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12068 # -brtl affects multiple linker settings, -berok does not and is overridden later
12069 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12070 if test svr4 != "$with_aix_soname"; then
12071 # This is similar to how AIX traditionally builds its shared libraries.
12072 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12074 if test aix != "$with_aix_soname"; then
12075 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12077 # used by -dlpreopen to get the symbols
12078 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12080 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12088 # see comment about AmigaOS4 .so support
12089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12090 archive_expsym_cmds=''
12093 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)'
12094 hardcode_libdir_flag_spec='-L$libdir'
12095 hardcode_minus_L=yes
12101 export_dynamic_flag_spec=-rdynamic
12104 cygwin* | mingw* | pw32* | cegcc*)
12105 # When not using gcc, we currently assume that we are using
12106 # Microsoft Visual C++ or Intel C++ Compiler.
12107 # hardcode_libdir_flag_spec is actually meaningless, as there is
12108 # no search path for DLLs.
12109 case $cc_basename in
12111 # Native MSVC or ICC
12112 hardcode_libdir_flag_spec=' '
12113 allow_undefined_flag=unsupported
12114 always_export_symbols=yes
12116 # Tell ltmain to make .lib files, not .a files.
12118 # Tell ltmain to make .dll files, not .so files.
12120 # FIXME: Setting linknames here is a bad hack.
12121 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12122 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12123 cp "$export_symbols" "$output_objdir/$soname.def";
12124 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12126 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12128 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12130 # The linker will not automatically build a static lib if we build a DLL.
12131 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12132 enable_shared_with_static_runtimes=yes
12133 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12136 old_postinstall_cmds='chmod 644 $oldlib'
12137 postlink_cmds='lt_outputfile="@OUTPUT@"~
12138 lt_tool_outputfile="@TOOL_OUTPUT@"~
12139 case $lt_outputfile in
12142 lt_outputfile=$lt_outputfile.exe
12143 lt_tool_outputfile=$lt_tool_outputfile.exe
12146 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12147 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12148 $RM "$lt_outputfile.manifest";
12152 # Assume MSVC and ICC wrapper
12153 hardcode_libdir_flag_spec=' '
12154 allow_undefined_flag=unsupported
12155 # Tell ltmain to make .lib files, not .a files.
12157 # Tell ltmain to make .dll files, not .so files.
12159 # FIXME: Setting linknames here is a bad hack.
12160 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12161 # The linker will automatically build a .lib file if we build a DLL.
12162 old_archive_from_new_cmds='true'
12163 # FIXME: Should let the user specify the lib program.
12164 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12165 enable_shared_with_static_runtimes=yes
12170 darwin* | rhapsody*)
12173 archive_cmds_need_lc=no
12175 hardcode_automatic=yes
12176 hardcode_shlibpath_var=unsupported
12177 if test yes = "$lt_cv_ld_force_load"; then
12178 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\"`'
12181 whole_archive_flag_spec=''
12183 link_all_deplibs=yes
12184 allow_undefined_flag=$_lt_dar_allow_undefined
12185 case $cc_basename in
12186 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12187 *) _lt_dar_can_shared=$GCC ;;
12189 if test yes = "$_lt_dar_can_shared"; then
12190 output_verbose_link_cmd=func_echo_all
12191 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12192 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12193 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"
12194 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"
12203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12204 hardcode_libdir_flag_spec='-L$libdir'
12205 hardcode_shlibpath_var=no
12208 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12209 # support. Future versions do this automatically, but an explicit c++rt0.o
12210 # does not break anything, and helps significantly (at the cost of a little
12213 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12214 hardcode_libdir_flag_spec='-R$libdir'
12215 hardcode_direct=yes
12216 hardcode_shlibpath_var=no
12219 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12222 hardcode_direct=yes
12223 hardcode_minus_L=yes
12224 hardcode_shlibpath_var=no
12227 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12228 freebsd* | dragonfly* | midnightbsd*)
12229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12230 hardcode_libdir_flag_spec='-R$libdir'
12231 hardcode_direct=yes
12232 hardcode_shlibpath_var=no
12236 if test yes = "$GCC"; then
12237 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12239 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
12241 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12242 hardcode_libdir_separator=:
12243 hardcode_direct=yes
12245 # hardcode_minus_L: Not really in the search PATH,
12246 # but as the default location of the library.
12247 hardcode_minus_L=yes
12248 export_dynamic_flag_spec='$wl-E'
12252 if test yes,no = "$GCC,$with_gnu_ld"; then
12253 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12255 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12257 if test no = "$with_gnu_ld"; then
12258 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12259 hardcode_libdir_separator=:
12260 hardcode_direct=yes
12261 hardcode_direct_absolute=yes
12262 export_dynamic_flag_spec='$wl-E'
12263 # hardcode_minus_L: Not really in the search PATH,
12264 # but as the default location of the library.
12265 hardcode_minus_L=yes
12270 if test yes,no = "$GCC,$with_gnu_ld"; then
12273 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12276 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12279 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12285 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12288 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12292 # Older versions of the 11.00 compiler do not understand -b yet
12293 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12295 printf %s "checking if $CC understands -b... " >&6; }
12296 if test ${lt_cv_prog_compiler__b+y}
12298 printf %s "(cached) " >&6
12300 lt_cv_prog_compiler__b=no
12301 save_LDFLAGS=$LDFLAGS
12302 LDFLAGS="$LDFLAGS -b"
12303 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12304 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12305 # The linker can only warn and ignore the option if not recognized
12306 # So say no if there are warnings
12307 if test -s conftest.err; then
12308 # Append any errors to the config.log.
12309 cat conftest.err 1>&5
12310 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12312 if diff conftest.exp conftest.er2 >/dev/null; then
12313 lt_cv_prog_compiler__b=yes
12316 lt_cv_prog_compiler__b=yes
12320 LDFLAGS=$save_LDFLAGS
12323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12324 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
12326 if test yes = "$lt_cv_prog_compiler__b"; then
12327 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12329 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12335 if test no = "$with_gnu_ld"; then
12336 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
12337 hardcode_libdir_separator=:
12342 hardcode_shlibpath_var=no
12345 hardcode_direct=yes
12346 hardcode_direct_absolute=yes
12347 export_dynamic_flag_spec='$wl-E'
12349 # hardcode_minus_L: Not really in the search PATH,
12350 # but as the default location of the library.
12351 hardcode_minus_L=yes
12357 irix5* | irix6* | nonstopux*)
12358 if test yes = "$GCC"; then
12359 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'
12360 # Try to use the -exported_symbol ld option, if it does not
12361 # work, assume that -exports_file does not work either and
12362 # implicitly export all symbols.
12363 # This should be the same for all languages, so no per-tag cache variable.
12364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12365 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12366 if test ${lt_cv_irix_exported_symbol+y}
12368 printf %s "(cached) " >&6
12370 save_LDFLAGS=$LDFLAGS
12371 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374 int foo (void) { return 0; }
12376 if ac_fn_c_try_link "$LINENO"
12378 lt_cv_irix_exported_symbol=yes
12380 lt_cv_irix_exported_symbol=no
12382 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12383 conftest$ac_exeext conftest.$ac_ext
12384 LDFLAGS=$save_LDFLAGS
12386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12387 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12388 if test yes = "$lt_cv_irix_exported_symbol"; then
12389 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'
12392 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'
12393 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'
12395 archive_cmds_need_lc='no'
12396 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12397 hardcode_libdir_separator=:
12399 link_all_deplibs=yes
12403 case $cc_basename in
12405 # Fabrice Bellard et al's Tiny C Compiler
12407 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12414 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12416 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12418 hardcode_libdir_flag_spec='-R$libdir'
12419 hardcode_direct=yes
12420 hardcode_shlibpath_var=no
12424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12425 hardcode_direct=yes
12426 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12427 hardcode_libdir_separator=:
12428 hardcode_shlibpath_var=no
12434 openbsd* | bitrig*)
12435 if test -f /usr/libexec/ld.so; then
12436 hardcode_direct=yes
12437 hardcode_shlibpath_var=no
12438 hardcode_direct_absolute=yes
12439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12440 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12441 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12442 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12443 export_dynamic_flag_spec='$wl-E'
12445 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12446 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12454 hardcode_libdir_flag_spec='-L$libdir'
12455 hardcode_minus_L=yes
12456 allow_undefined_flag=unsupported
12458 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12459 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12460 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12461 $ECHO EXPORTS >> $output_objdir/$libname.def~
12462 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12463 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12464 emximp -o $lib $output_objdir/$libname.def'
12465 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12466 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12467 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12468 $ECHO EXPORTS >> $output_objdir/$libname.def~
12469 prefix_cmds="$SED"~
12470 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12471 prefix_cmds="$prefix_cmds -e 1d";
12473 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12474 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12475 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12476 emximp -o $lib $output_objdir/$libname.def'
12477 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12478 enable_shared_with_static_runtimes=yes
12483 if test yes = "$GCC"; then
12484 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12485 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'
12487 allow_undefined_flag=' -expect_unresolved \*'
12488 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'
12490 archive_cmds_need_lc='no'
12491 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12492 hardcode_libdir_separator=:
12495 osf4* | osf5*) # as osf3* with the addition of -msym flag
12496 if test yes = "$GCC"; then
12497 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12498 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'
12499 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12501 allow_undefined_flag=' -expect_unresolved \*'
12502 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'
12503 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~
12504 $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'
12506 # Both c and cxx compiler support -rpath directly
12507 hardcode_libdir_flag_spec='-rpath $libdir'
12509 archive_cmds_need_lc='no'
12510 hardcode_libdir_separator=:
12514 no_undefined_flag=' -z defs'
12515 if test yes = "$GCC"; then
12517 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12518 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12519 $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'
12521 case `$CC -V 2>&1` in
12524 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12525 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12526 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12530 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12531 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12532 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12536 hardcode_libdir_flag_spec='-R$libdir'
12537 hardcode_shlibpath_var=no
12539 solaris2.[0-5] | solaris2.[0-5].*) ;;
12541 # The compiler driver will combine and reorder linker options,
12542 # but understands '-z linker_flag'. GCC discards it without '$wl',
12543 # but is careful enough not to reorder.
12544 # Supported since Solaris 2.6 (maybe 2.5.1?)
12545 if test yes = "$GCC"; then
12546 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12548 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12552 link_all_deplibs=yes
12556 if test sequent = "$host_vendor"; then
12557 # Use $CC to link under sequent, because it throws in some extra .o
12558 # files that make .init and .fini sections work.
12559 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12561 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12563 hardcode_libdir_flag_spec='-L$libdir'
12564 hardcode_direct=yes
12565 hardcode_minus_L=yes
12566 hardcode_shlibpath_var=no
12570 case $host_vendor in
12572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12573 hardcode_direct=yes # is this really true???
12576 ## LD is ld it makes a PLAMLIB
12577 ## CC just makes a GrossModule.
12578 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12579 reload_cmds='$CC -r -o $output$reload_objs'
12583 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12584 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12587 runpath_var='LD_RUN_PATH'
12588 hardcode_shlibpath_var=no
12592 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12593 hardcode_shlibpath_var=no
12594 export_dynamic_flag_spec='-Bexport'
12598 if test -d /usr/nec; then
12599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12600 hardcode_shlibpath_var=no
12601 runpath_var=LD_RUN_PATH
12602 hardcode_runpath_var=yes
12607 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12608 no_undefined_flag='$wl-z,text'
12609 archive_cmds_need_lc=no
12610 hardcode_shlibpath_var=no
12611 runpath_var='LD_RUN_PATH'
12613 if test yes = "$GCC"; then
12614 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12615 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12617 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12618 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12622 sysv5* | sco3.2v5* | sco5v6*)
12623 # Note: We CANNOT use -z defs as we might desire, because we do not
12624 # link with -lc, and that would cause any symbols used from libc to
12625 # always be unresolved, which means just about no library would
12626 # ever link correctly. If we're not using GNU ld we use -z text
12627 # though, which does catch some bad symbols but isn't as heavy-handed
12629 no_undefined_flag='$wl-z,text'
12630 allow_undefined_flag='$wl-z,nodefs'
12631 archive_cmds_need_lc=no
12632 hardcode_shlibpath_var=no
12633 hardcode_libdir_flag_spec='$wl-R,$libdir'
12634 hardcode_libdir_separator=':'
12635 link_all_deplibs=yes
12636 export_dynamic_flag_spec='$wl-Bexport'
12637 runpath_var='LD_RUN_PATH'
12639 if test yes = "$GCC"; then
12640 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12641 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12643 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12644 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12650 hardcode_libdir_flag_spec='-L$libdir'
12651 hardcode_shlibpath_var=no
12659 if test sni = "$host_vendor"; then
12661 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12662 export_dynamic_flag_spec='$wl-Blargedynsym'
12668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12669 printf "%s\n" "$ld_shlibs" >&6; }
12670 test no = "$ld_shlibs" && can_build_shared=no
12672 with_gnu_ld=$with_gnu_ld
12689 # Do we need to explicitly link libc?
12691 case "x$archive_cmds_need_lc" in
12693 # Assume -lc should be added
12694 archive_cmds_need_lc=yes
12696 if test yes,yes = "$GCC,$enable_shared"; then
12697 case $archive_cmds in
12699 # FIXME: we may have to deal with multi-command sequences.
12702 # Test whether the compiler implicitly links with -lc since on some
12703 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12704 # to ld, don't add -lc before -lgcc.
12705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12706 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12707 if test ${lt_cv_archive_cmds_need_lc+y}
12709 printf %s "(cached) " >&6
12712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12715 (eval $ac_compile) 2>&5
12717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718 test $ac_status = 0; } 2>conftest.err; then
12721 libobjs=conftest.$ac_objext
12723 wl=$lt_prog_compiler_wl
12724 pic_flag=$lt_prog_compiler_pic
12730 lt_save_allow_undefined_flag=$allow_undefined_flag
12731 allow_undefined_flag=
12732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12733 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12736 test $ac_status = 0; }
12738 lt_cv_archive_cmds_need_lc=no
12740 lt_cv_archive_cmds_need_lc=yes
12742 allow_undefined_flag=$lt_save_allow_undefined_flag
12744 cat conftest.err 1>&5
12749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12750 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12751 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12910 printf %s "checking dynamic linker characteristics... " >&6; }
12912 if test yes = "$GCC"; then
12914 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12915 *) lt_awk_arg='/^libraries:/' ;;
12918 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12919 *) lt_sed_strip_eq='s|=/|/|g' ;;
12921 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12922 case $lt_search_path_spec in
12924 # if the path contains ";" then we assume it to be the separator
12925 # otherwise default to the standard path separator (i.e. ":") - it is
12926 # assumed that no part of a normal pathname contains ";" but that should
12927 # okay in the real world where ";" in dirpaths is itself problematic.
12928 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12931 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12934 # Ok, now we have the path, separated by spaces, we can step through it
12935 # and add multilib dir if necessary...
12936 lt_tmp_lt_search_path_spec=
12937 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12938 # ...but if some path component already ends with the multilib dir we assume
12939 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12940 case "$lt_multi_os_dir; $lt_search_path_spec " in
12941 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12945 for lt_sys_path in $lt_search_path_spec; do
12946 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12947 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12948 elif test -n "$lt_multi_os_dir"; then
12949 test -d "$lt_sys_path" && \
12950 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12953 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12954 BEGIN {RS = " "; FS = "/|\n";} {
12957 for (lt_i = NF; lt_i > 0; lt_i--) {
12958 if ($lt_i != "" && $lt_i != ".") {
12959 if ($lt_i == "..") {
12962 if (lt_count == 0) {
12963 lt_foo = "/" $lt_i lt_foo;
12970 if (lt_foo != "") { lt_freq[lt_foo]++; }
12971 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12973 # AWK program above erroneously prepends '/' to C:/dos/paths
12976 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12977 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12979 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12983 library_names_spec=
12984 libname_spec='lib$name'
12988 postuninstall_cmds=
12992 shlibpath_overrides_runpath=unknown
12994 dynamic_linker="$host_os ld.so"
12995 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12996 need_lib_prefix=unknown
12997 hardcode_into_libs=no
12999 # when you set need_version to no, make sure it does not cause -set_version
13000 # flags to be left without arguments
13001 need_version=unknown
13007 version_type=linux # correct to gnu/linux during the next big refactor
13008 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13009 shlibpath_var=LIBPATH
13011 # AIX 3 has no versioning support, so we append a major version to the name.
13012 soname_spec='$libname$release$shared_ext$major'
13016 version_type=linux # correct to gnu/linux during the next big refactor
13019 hardcode_into_libs=yes
13020 if test ia64 = "$host_cpu"; then
13021 # AIX 5 supports IA64
13022 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13023 shlibpath_var=LD_LIBRARY_PATH
13025 # With GCC up to 2.95.x, collect2 would create an import file
13026 # for dependence libraries. The import file would start with
13027 # the line '#! .'. This would cause the generated library to
13028 # depend on '.', always an invalid library. This was fixed in
13029 # development snapshots of GCC prior to 3.0.
13031 aix4 | aix4.[01] | aix4.[01].*)
13032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13034 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13037 can_build_shared=no
13041 # Using Import Files as archive members, it is possible to support
13042 # filename-based versioning of shared library archives on AIX. While
13043 # this would work for both with and without runtime linking, it will
13044 # prevent static linking of such archives. So we do filename-based
13045 # shared library versioning with .so extension only, which is used
13046 # when both runtime linking and shared linking is enabled.
13047 # Unfortunately, runtime linking may impact performance, so we do
13048 # not want this to be the default eventually. Also, we use the
13049 # versioned .so libs for executables only if there is the -brtl
13050 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13051 # To allow for filename-based versioning support, we need to create
13052 # libNAME.so.V as an archive file, containing:
13053 # *) an Import File, referring to the versioned filename of the
13054 # archive as well as the shared archive member, telling the
13055 # bitwidth (32 or 64) of that shared object, and providing the
13056 # list of exported symbols of that shared object, eventually
13057 # decorated with the 'weak' keyword
13058 # *) the shared object with the F_LOADONLY flag set, to really avoid
13059 # it being seen by the linker.
13060 # At run time we better use the real file rather than another symlink,
13061 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13063 case $with_aix_soname,$aix_use_runtimelinking in
13064 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13065 # soname into executable. Probably we can add versioning support to
13066 # collect2, so additional links can be useful in future.
13067 aix,yes) # traditional libtool
13068 dynamic_linker='AIX unversionable lib.so'
13069 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13070 # instead of lib<name>.a to let people know that these are not
13071 # typical AIX shared libraries.
13072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13074 aix,no) # traditional AIX only
13075 dynamic_linker='AIX lib.a(lib.so.V)'
13076 # We preserve .a as extension for shared libraries through AIX4.2
13077 # and later when we are not doing run time linking.
13078 library_names_spec='$libname$release.a $libname.a'
13079 soname_spec='$libname$release$shared_ext$major'
13081 svr4,*) # full svr4 only
13082 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13083 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13084 # We do not specify a path in Import Files, so LIBPATH fires.
13085 shlibpath_overrides_runpath=yes
13087 *,yes) # both, prefer svr4
13088 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13089 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13090 # unpreferred sharedlib libNAME.a needs extra handling
13091 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13092 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13093 # We do not specify a path in Import Files, so LIBPATH fires.
13094 shlibpath_overrides_runpath=yes
13096 *,no) # both, prefer aix
13097 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13098 library_names_spec='$libname$release.a $libname.a'
13099 soname_spec='$libname$release$shared_ext$major'
13100 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13101 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13102 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13105 shlibpath_var=LIBPATH
13112 # Since July 2007 AmigaOS4 officially supports .so libraries.
13113 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13117 library_names_spec='$libname.ixlibrary $libname.a'
13118 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13119 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13125 library_names_spec='$libname$shared_ext'
13126 dynamic_linker="$host_os ld.so"
13127 shlibpath_var=LIBRARY_PATH
13131 version_type=linux # correct to gnu/linux during the next big refactor
13133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13134 soname_spec='$libname$release$shared_ext$major'
13135 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13136 shlibpath_var=LD_LIBRARY_PATH
13137 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13138 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13139 # the default ld.so.conf also contains /usr/contrib/lib and
13140 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13141 # libtool to hard-code these into programs
13144 cygwin* | mingw* | pw32* | cegcc*)
13145 version_type=windows
13150 case $GCC,$cc_basename in
13153 library_names_spec='$libname.dll.a'
13154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13155 postinstall_cmds='base_file=`basename \$file`~
13156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13157 dldir=$destdir/`dirname \$dlpath`~
13158 test -d \$dldir || mkdir -p \$dldir~
13159 $install_prog $dir/$dlname \$dldir/$dlname~
13160 chmod a+x \$dldir/$dlname~
13161 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13162 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13164 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13165 dlpath=$dir/\$dldll~
13167 shlibpath_overrides_runpath=yes
13171 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13172 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13174 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13177 # MinGW DLLs use traditional 'lib' prefix
13178 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13181 # pw32 DLLs use 'pw' prefix rather than 'lib'
13182 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13185 dynamic_linker='Win32 ld.exe'
13189 # Native MSVC or ICC
13190 libname_spec='$name'
13191 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13192 library_names_spec='$libname.dll.lib'
13196 sys_lib_search_path_spec=
13199 for lt_path in $LIB
13202 # Let DOS variable expansion print the short 8.3 style file name.
13203 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13204 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13207 # Convert to MSYS style.
13208 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13211 # Convert to unix form, then to dos form, then back to unix form
13212 # but this time dos style (no spaces!) so that the unix form looks
13213 # like /cygdrive/c/PROGRA~1:/cygdr...
13214 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13215 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13216 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13219 sys_lib_search_path_spec=$LIB
13220 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13221 # It is most probably a Windows format PATH.
13222 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13224 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13226 # FIXME: find the short name or the path components, as spaces are
13227 # common. (e.g. "Program Files" -> "PROGRA~1")
13231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13232 postinstall_cmds='base_file=`basename \$file`~
13233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13234 dldir=$destdir/`dirname \$dlpath`~
13235 test -d \$dldir || mkdir -p \$dldir~
13236 $install_prog $dir/$dlname \$dldir/$dlname'
13237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13238 dlpath=$dir/\$dldll~
13240 shlibpath_overrides_runpath=yes
13241 dynamic_linker='Win32 link.exe'
13245 # Assume MSVC and ICC wrapper
13246 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
13247 dynamic_linker='Win32 ld.exe'
13250 # FIXME: first we should search . and the directory the executable is in
13254 darwin* | rhapsody*)
13255 dynamic_linker="$host_os dyld"
13256 version_type=darwin
13259 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13260 soname_spec='$libname$release$major$shared_ext'
13261 shlibpath_overrides_runpath=yes
13262 shlibpath_var=DYLD_LIBRARY_PATH
13263 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13265 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13266 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13270 version_type=linux # correct to gnu/linux during the next big refactor
13273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13274 soname_spec='$libname$release$shared_ext$major'
13275 shlibpath_var=LD_LIBRARY_PATH
13278 freebsd* | dragonfly* | midnightbsd*)
13279 # DragonFly does not have aout. When/if they implement a new
13280 # versioning mechanism, adjust this.
13281 if test -x /usr/bin/objformat; then
13282 objformat=`/usr/bin/objformat`
13285 freebsd[23].*) objformat=aout ;;
13286 *) objformat=elf ;;
13289 version_type=freebsd-$objformat
13290 case $version_type in
13292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13293 soname_spec='$libname$release$shared_ext$major'
13298 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13302 shlibpath_var=LD_LIBRARY_PATH
13305 shlibpath_overrides_runpath=yes
13307 freebsd3.[01]* | freebsdelf3.[01]*)
13308 shlibpath_overrides_runpath=yes
13309 hardcode_into_libs=yes
13311 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13312 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13313 shlibpath_overrides_runpath=no
13314 hardcode_into_libs=yes
13316 *) # from 4.6 on, and DragonFly
13317 shlibpath_overrides_runpath=yes
13318 hardcode_into_libs=yes
13324 version_type=linux # correct to gnu/linux during the next big refactor
13327 dynamic_linker="$host_os runtime_loader"
13328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13329 soname_spec='$libname$release$shared_ext$major'
13330 shlibpath_var=LIBRARY_PATH
13331 shlibpath_overrides_runpath=no
13332 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13333 hardcode_into_libs=yes
13336 hpux9* | hpux10* | hpux11*)
13337 # Give a soname corresponding to the major version so that dld.sl refuses to
13338 # link against other versions.
13345 hardcode_into_libs=yes
13346 dynamic_linker="$host_os dld.so"
13347 shlibpath_var=LD_LIBRARY_PATH
13348 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13350 soname_spec='$libname$release$shared_ext$major'
13351 if test 32 = "$HPUX_IA64_MODE"; then
13352 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13353 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
13355 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13356 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
13361 hardcode_into_libs=yes
13362 dynamic_linker="$host_os dld.sl"
13363 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13366 soname_spec='$libname$release$shared_ext$major'
13367 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13372 dynamic_linker="$host_os dld.sl"
13373 shlibpath_var=SHLIB_PATH
13374 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13376 soname_spec='$libname$release$shared_ext$major'
13379 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13380 postinstall_cmds='chmod 555 $lib'
13381 # or fails outright, so override atomically:
13382 install_override_mode=555
13386 version_type=linux # correct to gnu/linux during the next big refactor
13389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13390 soname_spec='$libname$release$shared_ext$major'
13391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13392 shlibpath_var=LD_LIBRARY_PATH
13393 shlibpath_overrides_runpath=no
13394 hardcode_into_libs=yes
13397 irix5* | irix6* | nonstopux*)
13399 nonstopux*) version_type=nonstopux ;;
13401 if test yes = "$lt_cv_prog_gnu_ld"; then
13402 version_type=linux # correct to gnu/linux during the next big refactor
13409 soname_spec='$libname$release$shared_ext$major'
13410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13412 irix5* | nonstopux*)
13413 libsuff= shlibsuff=
13416 case $LD in # libtool.m4 will add one of these switches to LD
13417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13418 libsuff= shlibsuff= libmagic=32-bit;;
13419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13420 libsuff=32 shlibsuff=N32 libmagic=N32;;
13421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13423 *) libsuff= shlibsuff= libmagic=never-match;;
13427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13428 shlibpath_overrides_runpath=no
13429 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13430 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13431 hardcode_into_libs=yes
13434 # No shared lib support for Linux oldld, aout, or coff.
13435 linux*oldld* | linux*aout* | linux*coff*)
13440 version_type=none # Android doesn't support versioned libraries.
13443 library_names_spec='$libname$release$shared_ext'
13444 soname_spec='$libname$release$shared_ext'
13446 shlibpath_var=LD_LIBRARY_PATH
13447 shlibpath_overrides_runpath=yes
13449 # This implies no fast_install, which is unacceptable.
13450 # Some rework will be needed to allow for fast_install
13451 # before this can be enabled.
13452 hardcode_into_libs=yes
13454 dynamic_linker='Android linker'
13455 # Don't embed -rpath directories since the linker doesn't support them.
13456 hardcode_libdir_flag_spec='-L$libdir'
13459 # This must be glibc/ELF.
13460 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13461 version_type=linux # correct to gnu/linux during the next big refactor
13464 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13465 soname_spec='$libname$release$shared_ext$major'
13466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=no
13470 # Some binutils ld are patched to set DT_RUNPATH
13471 if test ${lt_cv_shlibpath_overrides_runpath+y}
13473 printf %s "(cached) " >&6
13475 lt_cv_shlibpath_overrides_runpath=no
13476 save_LDFLAGS=$LDFLAGS
13477 save_libdir=$libdir
13478 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13479 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13491 if ac_fn_c_try_link "$LINENO"
13493 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13495 lt_cv_shlibpath_overrides_runpath=yes
13498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13499 conftest$ac_exeext conftest.$ac_ext
13500 LDFLAGS=$save_LDFLAGS
13501 libdir=$save_libdir
13505 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13507 # This implies no fast_install, which is unacceptable.
13508 # Some rework will be needed to allow for fast_install
13509 # before this can be enabled.
13510 hardcode_into_libs=yes
13512 # Add ABI-specific directories to the system library path.
13513 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13515 # Ideally, we could use ldconfig to report *all* directores which are
13516 # searched for libraries, however this is still not possible. Aside from not
13517 # being certain /sbin/ldconfig is available, command
13518 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13519 # even though it is searched at run-time. Try to do the best guess by
13520 # appending ld.so.conf contents (and includes) to the search path.
13521 if test -f /etc/ld.so.conf; then
13522 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' ' '`
13523 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13526 # We used to test for /lib/ld.so.1 and disable shared libraries on
13527 # powerpc, because MkLinux only supported shared libraries with the
13528 # GNU dynamic linker. Since this was broken with cross compilers,
13529 # most powerpc-linux boxes support dynamic linking these days and
13530 # people can always --disable-shared, the test was removed, and we
13531 # assume the GNU/Linux dynamic linker is in use.
13532 dynamic_linker='GNU/Linux ld.so'
13539 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13540 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13542 dynamic_linker='NetBSD (a.out) ld.so'
13544 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13545 soname_spec='$libname$release$shared_ext$major'
13546 dynamic_linker='NetBSD ld.elf_so'
13548 shlibpath_var=LD_LIBRARY_PATH
13549 shlibpath_overrides_runpath=yes
13550 hardcode_into_libs=yes
13554 version_type=linux # correct to gnu/linux during the next big refactor
13555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13556 shlibpath_var=LD_LIBRARY_PATH
13557 shlibpath_overrides_runpath=yes
13564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13565 soname_spec='$libname$release$shared_ext$major'
13566 shlibpath_var=LD_LIBRARY_PATH
13567 shlibpath_overrides_runpath=no
13568 hardcode_into_libs=yes
13569 dynamic_linker='ldqnx.so'
13572 openbsd* | bitrig*)
13574 sys_lib_dlsearch_path_spec=/usr/lib
13576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13581 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13582 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13583 shlibpath_var=LD_LIBRARY_PATH
13584 shlibpath_overrides_runpath=yes
13588 libname_spec='$name'
13589 version_type=windows
13593 # OS/2 can only load a DLL with a base name of 8 characters or less.
13594 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13595 v=$($ECHO $release$versuffix | tr -d .-);
13596 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13597 $ECHO $n$v`$shared_ext'
13598 library_names_spec='${libname}_dll.$libext'
13599 dynamic_linker='OS/2 ld.exe'
13600 shlibpath_var=BEGINLIBPATH
13601 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13602 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13603 postinstall_cmds='base_file=`basename \$file`~
13604 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13605 dldir=$destdir/`dirname \$dlpath`~
13606 test -d \$dldir || mkdir -p \$dldir~
13607 $install_prog $dir/$dlname \$dldir/$dlname~
13608 chmod a+x \$dldir/$dlname~
13609 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13610 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13612 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13613 dlpath=$dir/\$dldll~
13617 osf3* | osf4* | osf5*)
13621 soname_spec='$libname$release$shared_ext$major'
13622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13623 shlibpath_var=LD_LIBRARY_PATH
13624 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13625 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13633 version_type=linux # correct to gnu/linux during the next big refactor
13636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13637 soname_spec='$libname$release$shared_ext$major'
13638 shlibpath_var=LD_LIBRARY_PATH
13639 shlibpath_overrides_runpath=yes
13640 hardcode_into_libs=yes
13641 # ldd complains unless libraries are executable
13642 postinstall_cmds='chmod +x $lib'
13647 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13648 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=yes
13651 if test yes = "$with_gnu_ld"; then
13658 version_type=linux # correct to gnu/linux during the next big refactor
13659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13660 soname_spec='$libname$release$shared_ext$major'
13661 shlibpath_var=LD_LIBRARY_PATH
13662 case $host_vendor in
13664 shlibpath_overrides_runpath=no
13666 runpath_var=LD_RUN_PATH
13674 shlibpath_overrides_runpath=no
13675 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13681 if test -d /usr/nec; then
13682 version_type=linux # correct to gnu/linux during the next big refactor
13683 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13684 soname_spec='$libname$shared_ext.$major'
13685 shlibpath_var=LD_LIBRARY_PATH
13689 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13694 soname_spec='$libname$release$shared_ext$major'
13695 shlibpath_var=LD_LIBRARY_PATH
13696 shlibpath_overrides_runpath=yes
13697 hardcode_into_libs=yes
13698 if test yes = "$with_gnu_ld"; then
13699 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13701 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13704 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13708 sys_lib_dlsearch_path_spec='/usr/lib'
13712 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13713 version_type=linux # correct to gnu/linux during the next big refactor
13716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13717 shlibpath_var=LD_LIBRARY_PATH
13718 shlibpath_overrides_runpath=no
13719 hardcode_into_libs=yes
13723 version_type=linux # correct to gnu/linux during the next big refactor
13724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13725 soname_spec='$libname$release$shared_ext$major'
13726 shlibpath_var=LD_LIBRARY_PATH
13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13734 printf "%s\n" "$dynamic_linker" >&6; }
13735 test no = "$dynamic_linker" && can_build_shared=no
13737 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13738 if test yes = "$GCC"; then
13739 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13742 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13743 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13746 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13747 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13750 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13751 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13753 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13754 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13756 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13757 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13856 printf %s "checking how to hardcode library paths into programs... " >&6; }
13858 if test -n "$hardcode_libdir_flag_spec" ||
13859 test -n "$runpath_var" ||
13860 test yes = "$hardcode_automatic"; then
13862 # We can hardcode non-existent directories.
13863 if test no != "$hardcode_direct" &&
13864 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13865 # have to relink, otherwise we might link with an installed library
13866 # when we should be linking with a yet-to-be-installed one
13867 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13868 test no != "$hardcode_minus_L"; then
13869 # Linking always hardcodes the temporary library directory.
13870 hardcode_action=relink
13872 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13873 hardcode_action=immediate
13876 # We cannot hardcode anything, or else we can only hardcode existing
13878 hardcode_action=unsupported
13880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13881 printf "%s\n" "$hardcode_action" >&6; }
13883 if test relink = "$hardcode_action" ||
13884 test yes = "$inherit_rpath"; then
13885 # Fast installation is not supported
13886 enable_fast_install=no
13887 elif test yes = "$shlibpath_overrides_runpath" ||
13888 test no = "$enable_shared"; then
13889 # Fast installation is not necessary
13890 enable_fast_install=needless
13898 if test yes != "$enable_dlopen"; then
13899 enable_dlopen=unknown
13900 enable_dlopen_self=unknown
13901 enable_dlopen_self_static=unknown
13908 lt_cv_dlopen=load_add_on
13910 lt_cv_dlopen_self=yes
13913 mingw* | pw32* | cegcc*)
13914 lt_cv_dlopen=LoadLibrary
13919 lt_cv_dlopen=dlopen
13924 # if libdl is installed we need to link against it
13925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13926 printf %s "checking for dlopen in -ldl... " >&6; }
13927 if test ${ac_cv_lib_dl_dlopen+y}
13929 printf %s "(cached) " >&6
13931 ac_check_lib_save_LIBS=$LIBS
13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h. */
13936 /* Override any GCC internal prototype to avoid an error.
13937 Use char because int might match the return type of a GCC
13938 builtin and then its argument prototype would still apply. */
13948 if ac_fn_c_try_link "$LINENO"
13950 ac_cv_lib_dl_dlopen=yes
13952 ac_cv_lib_dl_dlopen=no
13954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13955 conftest$ac_exeext conftest.$ac_ext
13956 LIBS=$ac_check_lib_save_LIBS
13958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13959 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13960 if test "x$ac_cv_lib_dl_dlopen" = xyes
13962 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13967 lt_cv_dlopen_self=yes
13974 # Don't try to run any link tests for TPF. We know it's impossible
13975 # because TPF is a cross-compiler, and we know how we open DSOs.
13976 lt_cv_dlopen=dlopen
13978 lt_cv_dlopen_self=no
13982 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13983 if test "x$ac_cv_func_shl_load" = xyes
13985 lt_cv_dlopen=shl_load
13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13988 printf %s "checking for shl_load in -ldld... " >&6; }
13989 if test ${ac_cv_lib_dld_shl_load+y}
13991 printf %s "(cached) " >&6
13993 ac_check_lib_save_LIBS=$LIBS
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13998 /* Override any GCC internal prototype to avoid an error.
13999 Use char because int might match the return type of a GCC
14000 builtin and then its argument prototype would still apply. */
14005 return shl_load ();
14010 if ac_fn_c_try_link "$LINENO"
14012 ac_cv_lib_dld_shl_load=yes
14014 ac_cv_lib_dld_shl_load=no
14016 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14017 conftest$ac_exeext conftest.$ac_ext
14018 LIBS=$ac_check_lib_save_LIBS
14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14021 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14022 if test "x$ac_cv_lib_dld_shl_load" = xyes
14024 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14026 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14027 if test "x$ac_cv_func_dlopen" = xyes
14029 lt_cv_dlopen=dlopen
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14032 printf %s "checking for dlopen in -ldl... " >&6; }
14033 if test ${ac_cv_lib_dl_dlopen+y}
14035 printf %s "(cached) " >&6
14037 ac_check_lib_save_LIBS=$LIBS
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14042 /* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
14054 if ac_fn_c_try_link "$LINENO"
14056 ac_cv_lib_dl_dlopen=yes
14058 ac_cv_lib_dl_dlopen=no
14060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14061 conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14065 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14066 if test "x$ac_cv_lib_dl_dlopen" = xyes
14068 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14071 printf %s "checking for dlopen in -lsvld... " >&6; }
14072 if test ${ac_cv_lib_svld_dlopen+y}
14074 printf %s "(cached) " >&6
14076 ac_check_lib_save_LIBS=$LIBS
14077 LIBS="-lsvld $LIBS"
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14081 /* Override any GCC internal prototype to avoid an error.
14082 Use char because int might match the return type of a GCC
14083 builtin and then its argument prototype would still apply. */
14093 if ac_fn_c_try_link "$LINENO"
14095 ac_cv_lib_svld_dlopen=yes
14097 ac_cv_lib_svld_dlopen=no
14099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14100 conftest$ac_exeext conftest.$ac_ext
14101 LIBS=$ac_check_lib_save_LIBS
14103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14104 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14105 if test "x$ac_cv_lib_svld_dlopen" = xyes
14107 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14110 printf %s "checking for dld_link in -ldld... " >&6; }
14111 if test ${ac_cv_lib_dld_dld_link+y}
14113 printf %s "(cached) " >&6
14115 ac_check_lib_save_LIBS=$LIBS
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14120 /* Override any GCC internal prototype to avoid an error.
14121 Use char because int might match the return type of a GCC
14122 builtin and then its argument prototype would still apply. */
14127 return dld_link ();
14132 if ac_fn_c_try_link "$LINENO"
14134 ac_cv_lib_dld_dld_link=yes
14136 ac_cv_lib_dld_dld_link=no
14138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14139 conftest$ac_exeext conftest.$ac_ext
14140 LIBS=$ac_check_lib_save_LIBS
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14143 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14144 if test "x$ac_cv_lib_dld_dld_link" = xyes
14146 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14167 if test no = "$lt_cv_dlopen"; then
14173 case $lt_cv_dlopen in
14175 save_CPPFLAGS=$CPPFLAGS
14176 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14178 save_LDFLAGS=$LDFLAGS
14179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14182 LIBS="$lt_cv_dlopen_libs $LIBS"
14184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14185 printf %s "checking whether a program can dlopen itself... " >&6; }
14186 if test ${lt_cv_dlopen_self+y}
14188 printf %s "(cached) " >&6
14190 if test yes = "$cross_compiling"; then :
14191 lt_cv_dlopen_self=cross
14193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14194 lt_status=$lt_dlunknown
14195 cat > conftest.$ac_ext <<_LT_EOF
14196 #line $LINENO "configure"
14197 #include "confdefs.h"
14206 # define LT_DLGLOBAL RTLD_GLOBAL
14209 # define LT_DLGLOBAL DL_GLOBAL
14211 # define LT_DLGLOBAL 0
14215 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14216 find out it does not work in some platform. */
14217 #ifndef LT_DLLAZY_OR_NOW
14219 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14222 # define LT_DLLAZY_OR_NOW DL_LAZY
14225 # define LT_DLLAZY_OR_NOW RTLD_NOW
14228 # define LT_DLLAZY_OR_NOW DL_NOW
14230 # define LT_DLLAZY_OR_NOW 0
14237 /* When -fvisibility=hidden is used, assume the code has been annotated
14238 correspondingly for the symbols needed. */
14239 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14240 int fnord () __attribute__((visibility("default")));
14243 int fnord () { return 42; }
14246 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14247 int status = $lt_dlunknown;
14251 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14254 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14255 else puts (dlerror ());
14257 /* dlclose (self); */
14265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14266 (eval $ac_link) 2>&5
14268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14269 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14270 (./conftest; exit; ) >&5 2>/dev/null
14272 case x$lt_status in
14273 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14274 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14275 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14278 # compilation failed
14279 lt_cv_dlopen_self=no
14286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14287 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14289 if test yes = "$lt_cv_dlopen_self"; then
14290 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14292 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14293 if test ${lt_cv_dlopen_self_static+y}
14295 printf %s "(cached) " >&6
14297 if test yes = "$cross_compiling"; then :
14298 lt_cv_dlopen_self_static=cross
14300 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14301 lt_status=$lt_dlunknown
14302 cat > conftest.$ac_ext <<_LT_EOF
14303 #line $LINENO "configure"
14304 #include "confdefs.h"
14313 # define LT_DLGLOBAL RTLD_GLOBAL
14316 # define LT_DLGLOBAL DL_GLOBAL
14318 # define LT_DLGLOBAL 0
14322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14323 find out it does not work in some platform. */
14324 #ifndef LT_DLLAZY_OR_NOW
14326 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14329 # define LT_DLLAZY_OR_NOW DL_LAZY
14332 # define LT_DLLAZY_OR_NOW RTLD_NOW
14335 # define LT_DLLAZY_OR_NOW DL_NOW
14337 # define LT_DLLAZY_OR_NOW 0
14344 /* When -fvisibility=hidden is used, assume the code has been annotated
14345 correspondingly for the symbols needed. */
14346 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14347 int fnord () __attribute__((visibility("default")));
14350 int fnord () { return 42; }
14353 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14354 int status = $lt_dlunknown;
14358 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14361 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14362 else puts (dlerror ());
14364 /* dlclose (self); */
14372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14373 (eval $ac_link) 2>&5
14375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14376 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14377 (./conftest; exit; ) >&5 2>/dev/null
14379 case x$lt_status in
14380 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14381 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14382 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14385 # compilation failed
14386 lt_cv_dlopen_self_static=no
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14394 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14397 CPPFLAGS=$save_CPPFLAGS
14398 LDFLAGS=$save_LDFLAGS
14403 case $lt_cv_dlopen_self in
14404 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14405 *) enable_dlopen_self=unknown ;;
14408 case $lt_cv_dlopen_self_static in
14409 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14410 *) enable_dlopen_self_static=unknown ;;
14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14433 printf %s "checking whether stripping libraries is possible... " >&6; }
14434 if test -z "$STRIP"; then
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 printf "%s\n" "no" >&6; }
14438 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14439 old_striplib="$STRIP --strip-debug"
14440 striplib="$STRIP --strip-unneeded"
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14442 printf "%s\n" "yes" >&6; }
14446 # FIXME - insert some real tests, host_os isn't really good enough
14447 striplib="$STRIP -x"
14448 old_striplib="$STRIP -S"
14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14450 printf "%s\n" "yes" >&6; }
14453 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14454 old_striplib="$STRIP --strip-debug"
14455 striplib="$STRIP --strip-unneeded"
14456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14457 printf "%s\n" "yes" >&6; }
14459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14460 printf "%s\n" "no" >&6; }
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465 printf "%s\n" "no" >&6; }
14482 # Report what library types will actually be built
14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14484 printf %s "checking if libtool supports shared libraries... " >&6; }
14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14486 printf "%s\n" "$can_build_shared" >&6; }
14488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14489 printf %s "checking whether to build shared libraries... " >&6; }
14490 test no = "$can_build_shared" && enable_shared=no
14492 # On AIX, shared libraries and static libraries use the same namespace, and
14493 # are all built from PIC.
14496 test yes = "$enable_shared" && enable_static=no
14497 if test -n "$RANLIB"; then
14498 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14499 postinstall_cmds='$RANLIB $lib'
14504 if test ia64 != "$host_cpu"; then
14505 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14506 yes,aix,yes) ;; # shared object as lib.so file only
14507 yes,svr4,*) ;; # shared object as lib.so archive member only
14508 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14514 printf "%s\n" "$enable_shared" >&6; }
14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14517 printf %s "checking whether to build static libraries... " >&6; }
14518 # Make sure either enable_shared or enable_static is yes.
14519 test yes = "$enable_shared" || enable_static=yes
14520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14521 printf "%s\n" "$enable_static" >&6; }
14528 ac_cpp='$CPP $CPPFLAGS'
14529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14549 ac_config_commands="$ac_config_commands libtool"
14554 # Only expand once:
14565 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
14568 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
14571 PKGCONFIG_REQUIRES=
14572 PKGCONFIG_REQUIRES_PRIVATELY=
14577 case "${host_os}" in
14585 if test "$os_win32" = "yes"; then
14593 if test "$os_darwin" = "yes"; then
14595 OS_DARWIN_FALSE='#'
14602 GETTEXT_PACKAGE=$PACKAGE
14605 printf "%s\n" "#define GETTEXT_PACKAGE \"$GETTEXT_PACKAGE\"" >>confdefs.h
14610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14611 printf %s "checking whether NLS is requested... " >&6; }
14612 # Check whether --enable-nls was given.
14613 if test ${enable_nls+y}
14615 enableval=$enable_nls; USE_NLS=$enableval
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14621 printf "%s\n" "$USE_NLS" >&6; }
14626 GETTEXT_MACRO_VERSION=0.19
14631 # Prepare PATH_SEPARATOR.
14632 # The user is always right.
14633 if test "${PATH_SEPARATOR+set}" != set; then
14634 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14635 # contains only /bin. Note that ksh looks also at the FPATH variable,
14636 # so we have to set that as well for the test.
14638 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14639 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14640 || PATH_SEPARATOR=';'
14644 # Find out how to test for executable files. Don't use a zero-byte file,
14645 # as systems may use methods other than mode bits to determine executability.
14646 cat >conf$$.file <<_ASEOF
14650 chmod +x conf$$.file
14651 if test -x conf$$.file >/dev/null 2>&1; then
14652 ac_executable_p="test -x"
14654 ac_executable_p="test -f"
14658 # Extract the first word of "msgfmt", so it can be a program name with args.
14659 set dummy msgfmt; ac_word=$2
14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661 printf %s "checking for $ac_word... " >&6; }
14662 if test ${ac_cv_path_MSGFMT+y}
14664 printf %s "(cached) " >&6
14668 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14671 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14672 for ac_dir in $PATH; do
14674 test -z "$ac_dir" && ac_dir=.
14675 for ac_exec_ext in '' $ac_executable_extensions; do
14676 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14677 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14678 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14679 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14680 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14687 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14691 MSGFMT="$ac_cv_path_MSGFMT"
14692 if test "$MSGFMT" != ":"; then
14693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14694 printf "%s\n" "$MSGFMT" >&6; }
14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 printf "%s\n" "no" >&6; }
14700 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14701 set dummy gmsgfmt; ac_word=$2
14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14703 printf %s "checking for $ac_word... " >&6; }
14704 if test ${ac_cv_path_GMSGFMT+y}
14706 printf %s "(cached) " >&6
14710 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714 for as_dir in $PATH
14717 case $as_dir in #(((
14720 *) as_dir=$as_dir/ ;;
14722 for ac_exec_ext in '' $ac_executable_extensions; do
14723 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14724 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
14725 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14732 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14736 GMSGFMT=$ac_cv_path_GMSGFMT
14737 if test -n "$GMSGFMT"; then
14738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14739 printf "%s\n" "$GMSGFMT" >&6; }
14741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14742 printf "%s\n" "no" >&6; }
14747 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14748 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14749 *) MSGFMT_015=$MSGFMT ;;
14752 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14753 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14754 *) GMSGFMT_015=$GMSGFMT ;;
14759 # Prepare PATH_SEPARATOR.
14760 # The user is always right.
14761 if test "${PATH_SEPARATOR+set}" != set; then
14762 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14763 # contains only /bin. Note that ksh looks also at the FPATH variable,
14764 # so we have to set that as well for the test.
14766 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14767 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14768 || PATH_SEPARATOR=';'
14772 # Find out how to test for executable files. Don't use a zero-byte file,
14773 # as systems may use methods other than mode bits to determine executability.
14774 cat >conf$$.file <<_ASEOF
14778 chmod +x conf$$.file
14779 if test -x conf$$.file >/dev/null 2>&1; then
14780 ac_executable_p="test -x"
14782 ac_executable_p="test -f"
14786 # Extract the first word of "xgettext", so it can be a program name with args.
14787 set dummy xgettext; ac_word=$2
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14789 printf %s "checking for $ac_word... " >&6; }
14790 if test ${ac_cv_path_XGETTEXT+y}
14792 printf %s "(cached) " >&6
14794 case "$XGETTEXT" in
14796 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14799 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14800 for ac_dir in $PATH; do
14802 test -z "$ac_dir" && ac_dir=.
14803 for ac_exec_ext in '' $ac_executable_extensions; do
14804 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14805 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14806 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14807 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14808 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14815 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14819 XGETTEXT="$ac_cv_path_XGETTEXT"
14820 if test "$XGETTEXT" != ":"; then
14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14822 printf "%s\n" "$XGETTEXT" >&6; }
14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825 printf "%s\n" "no" >&6; }
14830 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14831 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14832 *) XGETTEXT_015=$XGETTEXT ;;
14837 # Prepare PATH_SEPARATOR.
14838 # The user is always right.
14839 if test "${PATH_SEPARATOR+set}" != set; then
14840 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14841 # contains only /bin. Note that ksh looks also at the FPATH variable,
14842 # so we have to set that as well for the test.
14844 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14845 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14846 || PATH_SEPARATOR=';'
14850 # Find out how to test for executable files. Don't use a zero-byte file,
14851 # as systems may use methods other than mode bits to determine executability.
14852 cat >conf$$.file <<_ASEOF
14856 chmod +x conf$$.file
14857 if test -x conf$$.file >/dev/null 2>&1; then
14858 ac_executable_p="test -x"
14860 ac_executable_p="test -f"
14864 # Extract the first word of "msgmerge", so it can be a program name with args.
14865 set dummy msgmerge; ac_word=$2
14866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14867 printf %s "checking for $ac_word... " >&6; }
14868 if test ${ac_cv_path_MSGMERGE+y}
14870 printf %s "(cached) " >&6
14872 case "$MSGMERGE" in
14874 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14877 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14878 for ac_dir in $PATH; do
14880 test -z "$ac_dir" && ac_dir=.
14881 for ac_exec_ext in '' $ac_executable_extensions; do
14882 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14883 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14884 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14885 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14892 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14896 MSGMERGE="$ac_cv_path_MSGMERGE"
14897 if test "$MSGMERGE" != ":"; then
14898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14899 printf "%s\n" "$MSGMERGE" >&6; }
14901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902 printf "%s\n" "no" >&6; }
14906 test -n "$localedir" || localedir='${datadir}/locale'
14909 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14912 ac_config_commands="$ac_config_commands po-directories"
14916 if test "X$prefix" = "XNONE"; then
14917 acl_final_prefix="$ac_default_prefix"
14919 acl_final_prefix="$prefix"
14921 if test "X$exec_prefix" = "XNONE"; then
14922 acl_final_exec_prefix='${prefix}'
14924 acl_final_exec_prefix="$exec_prefix"
14926 acl_save_prefix="$prefix"
14927 prefix="$acl_final_prefix"
14928 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14929 prefix="$acl_save_prefix"
14933 # Check whether --with-gnu-ld was given.
14934 if test ${with_gnu_ld+y}
14936 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14941 # Prepare PATH_SEPARATOR.
14942 # The user is always right.
14943 if test "${PATH_SEPARATOR+set}" != set; then
14944 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14945 # contains only /bin. Note that ksh looks also at the FPATH variable,
14946 # so we have to set that as well for the test.
14948 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14949 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14950 || PATH_SEPARATOR=';'
14955 if test "$GCC" = yes; then
14956 # Check if gcc -print-prog-name=ld gives a path.
14957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14958 printf %s "checking for ld used by $CC... " >&6; }
14961 # gcc leaves a trailing carriage return which upsets mingw
14962 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14964 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14967 # Accept absolute paths.
14969 re_direlt='/[^/][^/]*/\.\./'
14970 # Canonicalize the pathname of ld
14971 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
14972 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
14973 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14975 test -z "$LD" && LD="$ac_prog"
14978 # If it fails, then pretend we aren't using GCC.
14982 # If it is relative, then search for the first ld in PATH.
14983 with_gnu_ld=unknown
14986 elif test "$with_gnu_ld" = yes; then
14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14988 printf %s "checking for GNU ld... " >&6; }
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14991 printf %s "checking for non-GNU ld... " >&6; }
14993 if test ${acl_cv_path_LD+y}
14995 printf %s "(cached) " >&6
14997 if test -z "$LD"; then
14998 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14999 for ac_dir in $PATH; do
15000 IFS="$acl_save_ifs"
15001 test -z "$ac_dir" && ac_dir=.
15002 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15003 acl_cv_path_LD="$ac_dir/$ac_prog"
15004 # Check to see if the program is GNU ld. I'd rather use --version,
15005 # but apparently some variants of GNU ld only accept -v.
15006 # Break only if it was the GNU/non-GNU ld that we prefer.
15007 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
15008 *GNU* | *'with BFD'*)
15009 test "$with_gnu_ld" != no && break
15012 test "$with_gnu_ld" != yes && break
15017 IFS="$acl_save_ifs"
15019 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15023 LD="$acl_cv_path_LD"
15024 if test -n "$LD"; then
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15026 printf "%s\n" "$LD" >&6; }
15028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 printf "%s\n" "no" >&6; }
15031 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15033 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15034 if test ${acl_cv_prog_gnu_ld+y}
15036 printf %s "(cached) " >&6
15038 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15039 case `$LD -v 2>&1 </dev/null` in
15040 *GNU* | *'with BFD'*)
15041 acl_cv_prog_gnu_ld=yes
15044 acl_cv_prog_gnu_ld=no
15048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15049 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
15050 with_gnu_ld=$acl_cv_prog_gnu_ld
15056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15057 printf %s "checking for shared library run path origin... " >&6; }
15058 if test ${acl_cv_rpath+y}
15060 printf %s "(cached) " >&6
15063 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15064 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15066 rm -f ./conftest.sh
15070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15071 printf "%s\n" "$acl_cv_rpath" >&6; }
15073 acl_libext="$acl_cv_libext"
15074 acl_shlibext="$acl_cv_shlibext"
15075 acl_libname_spec="$acl_cv_libname_spec"
15076 acl_library_names_spec="$acl_cv_library_names_spec"
15077 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15078 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15079 acl_hardcode_direct="$acl_cv_hardcode_direct"
15080 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15081 # Check whether --enable-rpath was given.
15082 if test ${enable_rpath+y}
15084 enableval=$enable_rpath; :
15091 ac_cpp='$CPP $CPPFLAGS'
15092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15096 printf %s "checking how to run the C preprocessor... " >&6; }
15097 # On Suns, sometimes $CPP names a directory.
15098 if test -n "$CPP" && test -d "$CPP"; then
15101 if test -z "$CPP"; then
15102 if test ${ac_cv_prog_CPP+y}
15104 printf %s "(cached) " >&6
15106 # Double quotes because $CC needs to be expanded
15107 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
15109 ac_preproc_ok=false
15110 for ac_c_preproc_warn_flag in '' yes
15112 # Use a header file that comes with gcc, so configuring glibc
15113 # with a fresh cross-compiler works.
15114 # On the NeXT, cc -E runs the code through the compiler's parser,
15115 # not just through cpp. "Syntax error" is here to catch this case.
15116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15117 /* end confdefs.h. */
15118 #include <limits.h>
15121 if ac_fn_c_try_cpp "$LINENO"
15125 # Broken: fails on valid input.
15128 rm -f conftest.err conftest.i conftest.$ac_ext
15130 # OK, works on sane cases. Now check whether nonexistent headers
15131 # can be detected and how.
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15134 #include <ac_nonexistent.h>
15136 if ac_fn_c_try_cpp "$LINENO"
15138 # Broken: success on invalid input.
15141 # Passes both tests.
15145 rm -f conftest.err conftest.i conftest.$ac_ext
15148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15149 rm -f conftest.i conftest.err conftest.$ac_ext
15156 ac_cv_prog_CPP=$CPP
15159 CPP=$ac_cv_prog_CPP
15161 ac_cv_prog_CPP=$CPP
15163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15164 printf "%s\n" "$CPP" >&6; }
15165 ac_preproc_ok=false
15166 for ac_c_preproc_warn_flag in '' yes
15168 # Use a header file that comes with gcc, so configuring glibc
15169 # with a fresh cross-compiler works.
15170 # On the NeXT, cc -E runs the code through the compiler's parser,
15171 # not just through cpp. "Syntax error" is here to catch this case.
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15174 #include <limits.h>
15177 if ac_fn_c_try_cpp "$LINENO"
15181 # Broken: fails on valid input.
15184 rm -f conftest.err conftest.i conftest.$ac_ext
15186 # OK, works on sane cases. Now check whether nonexistent headers
15187 # can be detected and how.
15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15189 /* end confdefs.h. */
15190 #include <ac_nonexistent.h>
15192 if ac_fn_c_try_cpp "$LINENO"
15194 # Broken: success on invalid input.
15197 # Passes both tests.
15201 rm -f conftest.err conftest.i conftest.$ac_ext
15204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15205 rm -f conftest.i conftest.err conftest.$ac_ext
15210 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15211 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15212 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
15213 See \`config.log' for more details" "$LINENO" 5; }
15217 ac_cpp='$CPP $CPPFLAGS'
15218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15230 printf %s "checking for 64-bit host... " >&6; }
15231 if test ${gl_cv_solaris_64bit+y}
15233 printf %s "(cached) " >&6
15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15244 $EGREP "sixtyfour bits" >/dev/null 2>&1
15246 gl_cv_solaris_64bit=yes
15248 gl_cv_solaris_64bit=no
15254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15255 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
15256 if test $gl_cv_solaris_64bit = yes; then
15257 acl_libdirstem=lib/64
15258 case "$host_cpu" in
15259 sparc*) acl_libdirstem2=lib/sparcv9 ;;
15260 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15265 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15266 if test -n "$searchpath"; then
15267 acl_save_IFS="${IFS= }"; IFS=":"
15268 for searchdir in $searchpath; do
15269 if test -d "$searchdir"; then
15270 case "$searchdir" in
15271 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15273 # Better ignore directories of this form. They are misleading.
15275 *) searchdir=`cd "$searchdir" && pwd`
15276 case "$searchdir" in
15277 */lib64 ) acl_libdirstem=lib64 ;;
15282 IFS="$acl_save_IFS"
15286 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15301 acl_save_prefix="$prefix"
15302 prefix="$acl_final_prefix"
15303 acl_save_exec_prefix="$exec_prefix"
15304 exec_prefix="$acl_final_exec_prefix"
15306 eval additional_includedir=\"$includedir\"
15307 eval additional_libdir=\"$libdir\"
15309 exec_prefix="$acl_save_exec_prefix"
15310 prefix="$acl_save_prefix"
15313 # Check whether --with-libiconv-prefix was given.
15314 if test ${with_libiconv_prefix+y}
15316 withval=$with_libiconv_prefix;
15317 if test "X$withval" = "Xno"; then
15320 if test "X$withval" = "X"; then
15322 acl_save_prefix="$prefix"
15323 prefix="$acl_final_prefix"
15324 acl_save_exec_prefix="$exec_prefix"
15325 exec_prefix="$acl_final_exec_prefix"
15327 eval additional_includedir=\"$includedir\"
15328 eval additional_libdir=\"$libdir\"
15330 exec_prefix="$acl_save_exec_prefix"
15331 prefix="$acl_save_prefix"
15334 additional_includedir="$withval/include"
15335 additional_libdir="$withval/$acl_libdirstem"
15336 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15337 && ! test -d "$withval/$acl_libdirstem"; then
15338 additional_libdir="$withval/$acl_libdirstem2"
15352 names_already_handled=
15353 names_next_round='iconv '
15354 while test -n "$names_next_round"; do
15355 names_this_round="$names_next_round"
15357 for name in $names_this_round; do
15359 for n in $names_already_handled; do
15360 if test "$n" = "$name"; then
15361 already_handled=yes
15365 if test -z "$already_handled"; then
15366 names_already_handled="$names_already_handled $name"
15367 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15368 eval value=\"\$HAVE_LIB$uppername\"
15369 if test -n "$value"; then
15370 if test "$value" = yes; then
15371 eval value=\"\$LIB$uppername\"
15372 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15373 eval value=\"\$LTLIB$uppername\"
15374 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15383 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15384 if test -n "$acl_shlibext"; then
15385 shrext=".$acl_shlibext" # typically: shrext=.so
15389 if test $use_additional = yes; then
15390 dir="$additional_libdir"
15391 if test -n "$acl_shlibext"; then
15392 if test -f "$dir/$libname$shrext"; then
15394 found_so="$dir/$libname$shrext"
15396 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15397 ver=`(cd "$dir" && \
15398 for f in "$libname$shrext".*; do echo "$f"; done \
15399 | sed -e "s,^$libname$shrext\\\\.,," \
15400 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15401 | sed 1q ) 2>/dev/null`
15402 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15404 found_so="$dir/$libname$shrext.$ver"
15407 eval library_names=\"$acl_library_names_spec\"
15408 for f in $library_names; do
15409 if test -f "$dir/$f"; then
15418 if test "X$found_dir" = "X"; then
15419 if test -f "$dir/$libname.$acl_libext"; then
15421 found_a="$dir/$libname.$acl_libext"
15424 if test "X$found_dir" != "X"; then
15425 if test -f "$dir/$libname.la"; then
15426 found_la="$dir/$libname.la"
15430 if test "X$found_dir" = "X"; then
15431 for x in $LDFLAGS $LTLIBICONV; do
15433 acl_save_prefix="$prefix"
15434 prefix="$acl_final_prefix"
15435 acl_save_exec_prefix="$exec_prefix"
15436 exec_prefix="$acl_final_exec_prefix"
15438 exec_prefix="$acl_save_exec_prefix"
15439 prefix="$acl_save_prefix"
15443 dir=`echo "X$x" | sed -e 's/^X-L//'`
15444 if test -n "$acl_shlibext"; then
15445 if test -f "$dir/$libname$shrext"; then
15447 found_so="$dir/$libname$shrext"
15449 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15450 ver=`(cd "$dir" && \
15451 for f in "$libname$shrext".*; do echo "$f"; done \
15452 | sed -e "s,^$libname$shrext\\\\.,," \
15453 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15454 | sed 1q ) 2>/dev/null`
15455 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15457 found_so="$dir/$libname$shrext.$ver"
15460 eval library_names=\"$acl_library_names_spec\"
15461 for f in $library_names; do
15462 if test -f "$dir/$f"; then
15471 if test "X$found_dir" = "X"; then
15472 if test -f "$dir/$libname.$acl_libext"; then
15474 found_a="$dir/$libname.$acl_libext"
15477 if test "X$found_dir" != "X"; then
15478 if test -f "$dir/$libname.la"; then
15479 found_la="$dir/$libname.la"
15484 if test "X$found_dir" != "X"; then
15489 if test "X$found_dir" != "X"; then
15490 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15491 if test "X$found_so" != "X"; then
15492 if test "$enable_rpath" = no \
15493 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15494 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15495 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15498 for x in $ltrpathdirs; do
15499 if test "X$x" = "X$found_dir"; then
15504 if test -z "$haveit"; then
15505 ltrpathdirs="$ltrpathdirs $found_dir"
15507 if test "$acl_hardcode_direct" = yes; then
15508 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15510 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15511 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15513 for x in $rpathdirs; do
15514 if test "X$x" = "X$found_dir"; then
15519 if test -z "$haveit"; then
15520 rpathdirs="$rpathdirs $found_dir"
15524 for x in $LDFLAGS $LIBICONV; do
15526 acl_save_prefix="$prefix"
15527 prefix="$acl_final_prefix"
15528 acl_save_exec_prefix="$exec_prefix"
15529 exec_prefix="$acl_final_exec_prefix"
15531 exec_prefix="$acl_save_exec_prefix"
15532 prefix="$acl_save_prefix"
15534 if test "X$x" = "X-L$found_dir"; then
15539 if test -z "$haveit"; then
15540 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15542 if test "$acl_hardcode_minus_L" != no; then
15543 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15545 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15551 if test "X$found_a" != "X"; then
15552 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15554 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15557 additional_includedir=
15558 case "$found_dir" in
15559 */$acl_libdirstem | */$acl_libdirstem/)
15560 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15561 if test "$name" = 'iconv'; then
15562 LIBICONV_PREFIX="$basedir"
15564 additional_includedir="$basedir/include"
15566 */$acl_libdirstem2 | */$acl_libdirstem2/)
15567 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15568 if test "$name" = 'iconv'; then
15569 LIBICONV_PREFIX="$basedir"
15571 additional_includedir="$basedir/include"
15574 if test "X$additional_includedir" != "X"; then
15575 if test "X$additional_includedir" != "X/usr/include"; then
15577 if test "X$additional_includedir" = "X/usr/local/include"; then
15578 if test -n "$GCC"; then
15580 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15584 if test -z "$haveit"; then
15585 for x in $CPPFLAGS $INCICONV; do
15587 acl_save_prefix="$prefix"
15588 prefix="$acl_final_prefix"
15589 acl_save_exec_prefix="$exec_prefix"
15590 exec_prefix="$acl_final_exec_prefix"
15592 exec_prefix="$acl_save_exec_prefix"
15593 prefix="$acl_save_prefix"
15595 if test "X$x" = "X-I$additional_includedir"; then
15600 if test -z "$haveit"; then
15601 if test -d "$additional_includedir"; then
15602 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15608 if test -n "$found_la"; then
15609 save_libdir="$libdir"
15610 case "$found_la" in
15611 */* | *\\*) . "$found_la" ;;
15612 *) . "./$found_la" ;;
15614 libdir="$save_libdir"
15615 for dep in $dependency_libs; do
15618 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15619 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15620 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15622 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15623 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15624 if test -n "$GCC"; then
15626 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15630 if test -z "$haveit"; then
15632 for x in $LDFLAGS $LIBICONV; do
15634 acl_save_prefix="$prefix"
15635 prefix="$acl_final_prefix"
15636 acl_save_exec_prefix="$exec_prefix"
15637 exec_prefix="$acl_final_exec_prefix"
15639 exec_prefix="$acl_save_exec_prefix"
15640 prefix="$acl_save_prefix"
15642 if test "X$x" = "X-L$additional_libdir"; then
15647 if test -z "$haveit"; then
15648 if test -d "$additional_libdir"; then
15649 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15653 for x in $LDFLAGS $LTLIBICONV; do
15655 acl_save_prefix="$prefix"
15656 prefix="$acl_final_prefix"
15657 acl_save_exec_prefix="$exec_prefix"
15658 exec_prefix="$acl_final_exec_prefix"
15660 exec_prefix="$acl_save_exec_prefix"
15661 prefix="$acl_save_prefix"
15663 if test "X$x" = "X-L$additional_libdir"; then
15668 if test -z "$haveit"; then
15669 if test -d "$additional_libdir"; then
15670 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15677 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15678 if test "$enable_rpath" != no; then
15680 for x in $rpathdirs; do
15681 if test "X$x" = "X$dir"; then
15686 if test -z "$haveit"; then
15687 rpathdirs="$rpathdirs $dir"
15690 for x in $ltrpathdirs; do
15691 if test "X$x" = "X$dir"; then
15696 if test -z "$haveit"; then
15697 ltrpathdirs="$ltrpathdirs $dir"
15702 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15705 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15708 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15709 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15715 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15716 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15722 if test "X$rpathdirs" != "X"; then
15723 if test -n "$acl_hardcode_libdir_separator"; then
15725 for found_dir in $rpathdirs; do
15726 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15728 acl_save_libdir="$libdir"
15730 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15731 libdir="$acl_save_libdir"
15732 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15734 for found_dir in $rpathdirs; do
15735 acl_save_libdir="$libdir"
15736 libdir="$found_dir"
15737 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15738 libdir="$acl_save_libdir"
15739 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15743 if test "X$ltrpathdirs" != "X"; then
15744 for found_dir in $ltrpathdirs; do
15745 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15780 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
15781 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
15783 printf %s "(cached) " >&6
15785 gt_save_LIBS="$LIBS"
15786 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h. */
15789 #include <CoreFoundation/CFPreferences.h>
15793 CFPreferencesCopyAppValue(NULL, NULL)
15798 if ac_fn_c_try_link "$LINENO"
15800 gt_cv_func_CFPreferencesCopyAppValue=yes
15802 gt_cv_func_CFPreferencesCopyAppValue=no
15804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15805 conftest$ac_exeext conftest.$ac_ext
15806 LIBS="$gt_save_LIBS"
15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15809 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15810 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15812 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15816 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
15817 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
15819 printf %s "(cached) " >&6
15821 gt_save_LIBS="$LIBS"
15822 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824 /* end confdefs.h. */
15825 #include <CoreFoundation/CFLocale.h>
15829 CFLocaleCopyCurrent();
15834 if ac_fn_c_try_link "$LINENO"
15836 gt_cv_func_CFLocaleCopyCurrent=yes
15838 gt_cv_func_CFLocaleCopyCurrent=no
15840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15841 conftest$ac_exeext conftest.$ac_ext
15842 LIBS="$gt_save_LIBS"
15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15845 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15846 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15848 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15852 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15853 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15865 case " $gt_needs " in
15866 *" need-formatstring-macros "*) gt_api_version=3 ;;
15867 *" need-ngettext "*) gt_api_version=2 ;;
15868 *) gt_api_version=1 ;;
15870 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15871 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15873 if test "$USE_NLS" = "yes"; then
15874 gt_use_preinstalled_gnugettext=no
15877 if test $gt_api_version -ge 3; then
15878 gt_revision_test_code='
15879 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15880 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15882 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15885 gt_revision_test_code=
15887 if test $gt_api_version -ge 2; then
15888 gt_expression_test_code=' + * ngettext ("", "", 0)'
15890 gt_expression_test_code=
15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15894 printf %s "checking for GNU gettext in libc... " >&6; }
15895 if eval test \${$gt_func_gnugettext_libc+y}
15897 printf %s "(cached) " >&6
15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15902 #include <libintl.h>
15903 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15904 extern int _nl_msg_cat_cntr;
15905 extern int *_nl_domain_bindings;
15906 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
15908 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
15910 $gt_revision_test_code
15916 bindtextdomain ("", "");
15917 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
15923 if ac_fn_c_try_link "$LINENO"
15925 eval "$gt_func_gnugettext_libc=yes"
15927 eval "$gt_func_gnugettext_libc=no"
15929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15930 conftest$ac_exeext conftest.$ac_ext
15932 eval ac_res=\$$gt_func_gnugettext_libc
15933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15934 printf "%s\n" "$ac_res" >&6; }
15936 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15942 am_save_CPPFLAGS="$CPPFLAGS"
15944 for element in $INCICONV; do
15946 for x in $CPPFLAGS; do
15948 acl_save_prefix="$prefix"
15949 prefix="$acl_final_prefix"
15950 acl_save_exec_prefix="$exec_prefix"
15951 exec_prefix="$acl_final_exec_prefix"
15953 exec_prefix="$acl_save_exec_prefix"
15954 prefix="$acl_save_prefix"
15956 if test "X$x" = "X$element"; then
15961 if test -z "$haveit"; then
15962 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15968 printf %s "checking for iconv... " >&6; }
15969 if test ${am_cv_func_iconv+y}
15971 printf %s "(cached) " >&6
15974 am_cv_func_iconv="no, consider installing GNU libiconv"
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15979 #include <stdlib.h>
15985 iconv_t cd = iconv_open("","");
15986 iconv(cd,NULL,NULL,NULL,NULL);
15992 if ac_fn_c_try_link "$LINENO"
15994 am_cv_func_iconv=yes
15996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15997 conftest$ac_exeext conftest.$ac_ext
15998 if test "$am_cv_func_iconv" != yes; then
15999 am_save_LIBS="$LIBS"
16000 LIBS="$LIBS $LIBICONV"
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16004 #include <stdlib.h>
16010 iconv_t cd = iconv_open("","");
16011 iconv(cd,NULL,NULL,NULL,NULL);
16017 if ac_fn_c_try_link "$LINENO"
16019 am_cv_lib_iconv=yes
16020 am_cv_func_iconv=yes
16022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16023 conftest$ac_exeext conftest.$ac_ext
16024 LIBS="$am_save_LIBS"
16028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16029 printf "%s\n" "$am_cv_func_iconv" >&6; }
16030 if test "$am_cv_func_iconv" = yes; then
16031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
16032 printf %s "checking for working iconv... " >&6; }
16033 if test ${am_cv_func_iconv_works+y}
16035 printf %s "(cached) " >&6
16038 am_save_LIBS="$LIBS"
16039 if test $am_cv_lib_iconv = yes; then
16040 LIBS="$LIBS $LIBICONV"
16042 am_cv_func_iconv_works=no
16043 for ac_iconv_const in '' 'const'; do
16044 if test "$cross_compiling" = yes
16047 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
16048 *) am_cv_func_iconv_works="guessing yes" ;;
16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16055 #include <string.h>
16057 #ifndef ICONV_CONST
16058 # define ICONV_CONST $ac_iconv_const
16065 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
16068 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
16069 if (cd_utf8_to_88591 != (iconv_t)(-1))
16071 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
16073 ICONV_CONST char *inptr = input;
16074 size_t inbytesleft = strlen (input);
16075 char *outptr = buf;
16076 size_t outbytesleft = sizeof (buf);
16077 size_t res = iconv (cd_utf8_to_88591,
16078 &inptr, &inbytesleft,
16079 &outptr, &outbytesleft);
16082 iconv_close (cd_utf8_to_88591);
16085 /* Test against Solaris 10 bug: Failures are not distinguishable from
16086 successful returns. */
16088 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
16089 if (cd_ascii_to_88591 != (iconv_t)(-1))
16091 static ICONV_CONST char input[] = "\263";
16093 ICONV_CONST char *inptr = input;
16094 size_t inbytesleft = strlen (input);
16095 char *outptr = buf;
16096 size_t outbytesleft = sizeof (buf);
16097 size_t res = iconv (cd_ascii_to_88591,
16098 &inptr, &inbytesleft,
16099 &outptr, &outbytesleft);
16102 iconv_close (cd_ascii_to_88591);
16105 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
16107 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16108 if (cd_88591_to_utf8 != (iconv_t)(-1))
16110 static ICONV_CONST char input[] = "\304";
16111 static char buf[2] = { (char)0xDE, (char)0xAD };
16112 ICONV_CONST char *inptr = input;
16113 size_t inbytesleft = 1;
16114 char *outptr = buf;
16115 size_t outbytesleft = 1;
16116 size_t res = iconv (cd_88591_to_utf8,
16117 &inptr, &inbytesleft,
16118 &outptr, &outbytesleft);
16119 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16121 iconv_close (cd_88591_to_utf8);
16124 #if 0 /* This bug could be worked around by the caller. */
16125 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16127 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16128 if (cd_88591_to_utf8 != (iconv_t)(-1))
16130 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16132 ICONV_CONST char *inptr = input;
16133 size_t inbytesleft = strlen (input);
16134 char *outptr = buf;
16135 size_t outbytesleft = sizeof (buf);
16136 size_t res = iconv (cd_88591_to_utf8,
16137 &inptr, &inbytesleft,
16138 &outptr, &outbytesleft);
16141 iconv_close (cd_88591_to_utf8);
16145 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16147 if (/* Try standardized names. */
16148 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16149 /* Try IRIX, OSF/1 names. */
16150 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16151 /* Try AIX names. */
16152 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16153 /* Try HP-UX names. */
16154 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16162 if ac_fn_c_try_run "$LINENO"
16164 am_cv_func_iconv_works=yes
16166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16167 conftest.$ac_objext conftest.beam conftest.$ac_ext
16170 test "$am_cv_func_iconv_works" = no || break
16172 LIBS="$am_save_LIBS"
16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16176 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
16177 case "$am_cv_func_iconv_works" in
16178 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16179 *) am_func_iconv=yes ;;
16182 am_func_iconv=no am_cv_lib_iconv=no
16184 if test "$am_func_iconv" = yes; then
16186 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
16189 if test "$am_cv_lib_iconv" = yes; then
16190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16191 printf %s "checking how to link with libiconv... " >&6; }
16192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16193 printf "%s\n" "$LIBICONV" >&6; }
16195 CPPFLAGS="$am_save_CPPFLAGS"
16212 acl_save_prefix="$prefix"
16213 prefix="$acl_final_prefix"
16214 acl_save_exec_prefix="$exec_prefix"
16215 exec_prefix="$acl_final_exec_prefix"
16217 eval additional_includedir=\"$includedir\"
16218 eval additional_libdir=\"$libdir\"
16220 exec_prefix="$acl_save_exec_prefix"
16221 prefix="$acl_save_prefix"
16224 # Check whether --with-libintl-prefix was given.
16225 if test ${with_libintl_prefix+y}
16227 withval=$with_libintl_prefix;
16228 if test "X$withval" = "Xno"; then
16231 if test "X$withval" = "X"; then
16233 acl_save_prefix="$prefix"
16234 prefix="$acl_final_prefix"
16235 acl_save_exec_prefix="$exec_prefix"
16236 exec_prefix="$acl_final_exec_prefix"
16238 eval additional_includedir=\"$includedir\"
16239 eval additional_libdir=\"$libdir\"
16241 exec_prefix="$acl_save_exec_prefix"
16242 prefix="$acl_save_prefix"
16245 additional_includedir="$withval/include"
16246 additional_libdir="$withval/$acl_libdirstem"
16247 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16248 && ! test -d "$withval/$acl_libdirstem"; then
16249 additional_libdir="$withval/$acl_libdirstem2"
16263 names_already_handled=
16264 names_next_round='intl '
16265 while test -n "$names_next_round"; do
16266 names_this_round="$names_next_round"
16268 for name in $names_this_round; do
16270 for n in $names_already_handled; do
16271 if test "$n" = "$name"; then
16272 already_handled=yes
16276 if test -z "$already_handled"; then
16277 names_already_handled="$names_already_handled $name"
16278 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
16279 eval value=\"\$HAVE_LIB$uppername\"
16280 if test -n "$value"; then
16281 if test "$value" = yes; then
16282 eval value=\"\$LIB$uppername\"
16283 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16284 eval value=\"\$LTLIB$uppername\"
16285 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16294 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16295 if test -n "$acl_shlibext"; then
16296 shrext=".$acl_shlibext" # typically: shrext=.so
16300 if test $use_additional = yes; then
16301 dir="$additional_libdir"
16302 if test -n "$acl_shlibext"; then
16303 if test -f "$dir/$libname$shrext"; then
16305 found_so="$dir/$libname$shrext"
16307 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16308 ver=`(cd "$dir" && \
16309 for f in "$libname$shrext".*; do echo "$f"; done \
16310 | sed -e "s,^$libname$shrext\\\\.,," \
16311 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16312 | sed 1q ) 2>/dev/null`
16313 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16315 found_so="$dir/$libname$shrext.$ver"
16318 eval library_names=\"$acl_library_names_spec\"
16319 for f in $library_names; do
16320 if test -f "$dir/$f"; then
16329 if test "X$found_dir" = "X"; then
16330 if test -f "$dir/$libname.$acl_libext"; then
16332 found_a="$dir/$libname.$acl_libext"
16335 if test "X$found_dir" != "X"; then
16336 if test -f "$dir/$libname.la"; then
16337 found_la="$dir/$libname.la"
16341 if test "X$found_dir" = "X"; then
16342 for x in $LDFLAGS $LTLIBINTL; do
16344 acl_save_prefix="$prefix"
16345 prefix="$acl_final_prefix"
16346 acl_save_exec_prefix="$exec_prefix"
16347 exec_prefix="$acl_final_exec_prefix"
16349 exec_prefix="$acl_save_exec_prefix"
16350 prefix="$acl_save_prefix"
16354 dir=`echo "X$x" | sed -e 's/^X-L//'`
16355 if test -n "$acl_shlibext"; then
16356 if test -f "$dir/$libname$shrext"; then
16358 found_so="$dir/$libname$shrext"
16360 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16361 ver=`(cd "$dir" && \
16362 for f in "$libname$shrext".*; do echo "$f"; done \
16363 | sed -e "s,^$libname$shrext\\\\.,," \
16364 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16365 | sed 1q ) 2>/dev/null`
16366 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16368 found_so="$dir/$libname$shrext.$ver"
16371 eval library_names=\"$acl_library_names_spec\"
16372 for f in $library_names; do
16373 if test -f "$dir/$f"; then
16382 if test "X$found_dir" = "X"; then
16383 if test -f "$dir/$libname.$acl_libext"; then
16385 found_a="$dir/$libname.$acl_libext"
16388 if test "X$found_dir" != "X"; then
16389 if test -f "$dir/$libname.la"; then
16390 found_la="$dir/$libname.la"
16395 if test "X$found_dir" != "X"; then
16400 if test "X$found_dir" != "X"; then
16401 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16402 if test "X$found_so" != "X"; then
16403 if test "$enable_rpath" = no \
16404 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16405 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16406 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16409 for x in $ltrpathdirs; do
16410 if test "X$x" = "X$found_dir"; then
16415 if test -z "$haveit"; then
16416 ltrpathdirs="$ltrpathdirs $found_dir"
16418 if test "$acl_hardcode_direct" = yes; then
16419 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16421 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16422 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16424 for x in $rpathdirs; do
16425 if test "X$x" = "X$found_dir"; then
16430 if test -z "$haveit"; then
16431 rpathdirs="$rpathdirs $found_dir"
16435 for x in $LDFLAGS $LIBINTL; do
16437 acl_save_prefix="$prefix"
16438 prefix="$acl_final_prefix"
16439 acl_save_exec_prefix="$exec_prefix"
16440 exec_prefix="$acl_final_exec_prefix"
16442 exec_prefix="$acl_save_exec_prefix"
16443 prefix="$acl_save_prefix"
16445 if test "X$x" = "X-L$found_dir"; then
16450 if test -z "$haveit"; then
16451 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16453 if test "$acl_hardcode_minus_L" != no; then
16454 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16456 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16462 if test "X$found_a" != "X"; then
16463 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16465 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16468 additional_includedir=
16469 case "$found_dir" in
16470 */$acl_libdirstem | */$acl_libdirstem/)
16471 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16472 if test "$name" = 'intl'; then
16473 LIBINTL_PREFIX="$basedir"
16475 additional_includedir="$basedir/include"
16477 */$acl_libdirstem2 | */$acl_libdirstem2/)
16478 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16479 if test "$name" = 'intl'; then
16480 LIBINTL_PREFIX="$basedir"
16482 additional_includedir="$basedir/include"
16485 if test "X$additional_includedir" != "X"; then
16486 if test "X$additional_includedir" != "X/usr/include"; then
16488 if test "X$additional_includedir" = "X/usr/local/include"; then
16489 if test -n "$GCC"; then
16491 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16495 if test -z "$haveit"; then
16496 for x in $CPPFLAGS $INCINTL; do
16498 acl_save_prefix="$prefix"
16499 prefix="$acl_final_prefix"
16500 acl_save_exec_prefix="$exec_prefix"
16501 exec_prefix="$acl_final_exec_prefix"
16503 exec_prefix="$acl_save_exec_prefix"
16504 prefix="$acl_save_prefix"
16506 if test "X$x" = "X-I$additional_includedir"; then
16511 if test -z "$haveit"; then
16512 if test -d "$additional_includedir"; then
16513 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16519 if test -n "$found_la"; then
16520 save_libdir="$libdir"
16521 case "$found_la" in
16522 */* | *\\*) . "$found_la" ;;
16523 *) . "./$found_la" ;;
16525 libdir="$save_libdir"
16526 for dep in $dependency_libs; do
16529 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16530 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16531 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16533 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16534 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16535 if test -n "$GCC"; then
16537 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16541 if test -z "$haveit"; then
16543 for x in $LDFLAGS $LIBINTL; do
16545 acl_save_prefix="$prefix"
16546 prefix="$acl_final_prefix"
16547 acl_save_exec_prefix="$exec_prefix"
16548 exec_prefix="$acl_final_exec_prefix"
16550 exec_prefix="$acl_save_exec_prefix"
16551 prefix="$acl_save_prefix"
16553 if test "X$x" = "X-L$additional_libdir"; then
16558 if test -z "$haveit"; then
16559 if test -d "$additional_libdir"; then
16560 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16564 for x in $LDFLAGS $LTLIBINTL; do
16566 acl_save_prefix="$prefix"
16567 prefix="$acl_final_prefix"
16568 acl_save_exec_prefix="$exec_prefix"
16569 exec_prefix="$acl_final_exec_prefix"
16571 exec_prefix="$acl_save_exec_prefix"
16572 prefix="$acl_save_prefix"
16574 if test "X$x" = "X-L$additional_libdir"; then
16579 if test -z "$haveit"; then
16580 if test -d "$additional_libdir"; then
16581 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16588 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16589 if test "$enable_rpath" != no; then
16591 for x in $rpathdirs; do
16592 if test "X$x" = "X$dir"; then
16597 if test -z "$haveit"; then
16598 rpathdirs="$rpathdirs $dir"
16601 for x in $ltrpathdirs; do
16602 if test "X$x" = "X$dir"; then
16607 if test -z "$haveit"; then
16608 ltrpathdirs="$ltrpathdirs $dir"
16613 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16616 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16619 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16620 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16626 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16627 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16633 if test "X$rpathdirs" != "X"; then
16634 if test -n "$acl_hardcode_libdir_separator"; then
16636 for found_dir in $rpathdirs; do
16637 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16639 acl_save_libdir="$libdir"
16641 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16642 libdir="$acl_save_libdir"
16643 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16645 for found_dir in $rpathdirs; do
16646 acl_save_libdir="$libdir"
16647 libdir="$found_dir"
16648 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16649 libdir="$acl_save_libdir"
16650 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16654 if test "X$ltrpathdirs" != "X"; then
16655 for found_dir in $ltrpathdirs; do
16656 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16666 printf %s "checking for GNU gettext in libintl... " >&6; }
16667 if eval test \${$gt_func_gnugettext_libintl+y}
16669 printf %s "(cached) " >&6
16671 gt_save_CPPFLAGS="$CPPFLAGS"
16672 CPPFLAGS="$CPPFLAGS $INCINTL"
16673 gt_save_LIBS="$LIBS"
16674 LIBS="$LIBS $LIBINTL"
16675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676 /* end confdefs.h. */
16678 #include <libintl.h>
16679 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16680 extern int _nl_msg_cat_cntr;
16685 const char *_nl_expand_alias (const char *);
16686 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16688 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16690 $gt_revision_test_code
16696 bindtextdomain ("", "");
16697 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16703 if ac_fn_c_try_link "$LINENO"
16705 eval "$gt_func_gnugettext_libintl=yes"
16707 eval "$gt_func_gnugettext_libintl=no"
16709 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16710 conftest$ac_exeext conftest.$ac_ext
16711 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16712 LIBS="$LIBS $LIBICONV"
16713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714 /* end confdefs.h. */
16716 #include <libintl.h>
16717 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
16718 extern int _nl_msg_cat_cntr;
16723 const char *_nl_expand_alias (const char *);
16724 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
16726 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
16728 $gt_revision_test_code
16734 bindtextdomain ("", "");
16735 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
16741 if ac_fn_c_try_link "$LINENO"
16743 LIBINTL="$LIBINTL $LIBICONV"
16744 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16745 eval "$gt_func_gnugettext_libintl=yes"
16748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16749 conftest$ac_exeext conftest.$ac_ext
16751 CPPFLAGS="$gt_save_CPPFLAGS"
16752 LIBS="$gt_save_LIBS"
16754 eval ac_res=\$$gt_func_gnugettext_libintl
16755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16756 printf "%s\n" "$ac_res" >&6; }
16759 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16760 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16761 && test "$PACKAGE" != gettext-runtime \
16762 && test "$PACKAGE" != gettext-tools; }; then
16763 gt_use_preinstalled_gnugettext=yes
16772 if test -n "$INTL_MACOSX_LIBS"; then
16773 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16774 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16775 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16776 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16780 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16781 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16783 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16791 printf %s "checking whether to use NLS... " >&6; }
16792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16793 printf "%s\n" "$USE_NLS" >&6; }
16794 if test "$USE_NLS" = "yes"; then
16795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16796 printf %s "checking where the gettext function comes from... " >&6; }
16797 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16798 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16799 gt_source="external libintl"
16804 gt_source="included intl directory"
16806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16807 printf "%s\n" "$gt_source" >&6; }
16810 if test "$USE_NLS" = "yes"; then
16812 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16813 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16815 printf %s "checking how to link with libintl... " >&6; }
16816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16817 printf "%s\n" "$LIBINTL" >&6; }
16819 for element in $INCINTL; do
16821 for x in $CPPFLAGS; do
16823 acl_save_prefix="$prefix"
16824 prefix="$acl_final_prefix"
16825 acl_save_exec_prefix="$exec_prefix"
16826 exec_prefix="$acl_final_exec_prefix"
16828 exec_prefix="$acl_save_exec_prefix"
16829 prefix="$acl_save_prefix"
16831 if test "X$x" = "X$element"; then
16836 if test -z "$haveit"; then
16837 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16844 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
16847 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16856 INTLLIBS="$LIBINTL"
16865 if test "$os_win32" = "yes"; then
16866 # Extract the first word of "lib.exe", so it can be a program name with args.
16867 set dummy lib.exe; ac_word=$2
16868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16869 printf %s "checking for $ac_word... " >&6; }
16870 if test ${ac_cv_prog_ms_librarian+y}
16872 printf %s "(cached) " >&6
16874 if test -n "$ms_librarian"; then
16875 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
16877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16878 for as_dir in $PATH
16881 case $as_dir in #(((
16884 *) as_dir=$as_dir/ ;;
16886 for ac_exec_ext in '' $ac_executable_extensions; do
16887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16888 ac_cv_prog_ms_librarian="yes"
16889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16896 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
16899 ms_librarian=$ac_cv_prog_ms_librarian
16900 if test -n "$ms_librarian"; then
16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
16902 printf "%s\n" "$ms_librarian" >&6; }
16904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905 printf "%s\n" "no" >&6; }
16910 if test x$ms_librarian = xyes; then
16911 MS_LIB_AVAILABLE_TRUE=
16912 MS_LIB_AVAILABLE_FALSE='#'
16914 MS_LIB_AVAILABLE_TRUE='#'
16915 MS_LIB_AVAILABLE_FALSE=
16919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16920 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16921 if test ${ac_cv_c_undeclared_builtin_options+y}
16923 printf %s "(cached) " >&6
16925 ac_save_CFLAGS=$CFLAGS
16926 ac_cv_c_undeclared_builtin_options='cannot detect'
16927 for ac_arg in '' -fno-builtin; do
16928 CFLAGS="$ac_save_CFLAGS $ac_arg"
16929 # This test program should *not* compile successfully.
16930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16931 /* end confdefs.h. */
16941 if ac_fn_c_try_compile "$LINENO"
16945 # This test program should compile successfully.
16946 # No library function is consistently available on
16947 # freestanding implementations, so test against a dummy
16948 # declaration. Include always-available headers on the
16949 # off chance that they somehow elicit warnings.
16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h. */
16953 #include <limits.h>
16954 #include <stdarg.h>
16955 #include <stddef.h>
16956 extern void ac_decl (int, char *);
16961 (void) ac_decl (0, (char *) 0);
16968 if ac_fn_c_try_compile "$LINENO"
16970 if test x"$ac_arg" = x
16972 ac_cv_c_undeclared_builtin_options='none needed'
16974 ac_cv_c_undeclared_builtin_options=$ac_arg
16978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16982 CFLAGS=$ac_save_CFLAGS
16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16986 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16987 case $ac_cv_c_undeclared_builtin_options in #(
16989 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16990 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16991 as_fn_error $? "cannot make $CC report undeclared builtins
16992 See \`config.log' for more details" "$LINENO" 5; } ;; #(
16994 ac_c_undeclared_builtin_options='' ;; #(
16996 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16999 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
17000 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
17007 WARNING_CPP_DIRECTIVE="no"
17008 if test "x$GCC" = "xyes"; then
17009 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
17010 -Wmissing-prototypes -Wmissing-declarations \
17011 -Wnested-externs -fno-strict-aliasing"
17012 WARNING_CPP_DIRECTIVE="yes"
17013 elif test "x$SUNCC" = "xyes"; then
17014 WARN_CFLAGS="-v -fd"
17015 WARNING_CPP_DIRECTIVE="yes"
17017 if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
17019 printf "%s\n" "#define HAVE_WARNING_CPP_DIRECTIVE 1" >>confdefs.h
17026 # Put a plausible default for CC_FOR_BUILD in Makefile.
17027 if test -z "$CC_FOR_BUILD"; then
17028 if test "x$cross_compiling" = "xno"; then
17029 CC_FOR_BUILD='$(CC)'
17035 # Also set EXEEXT_FOR_BUILD.
17036 if test "x$cross_compiling" = "xno"; then
17037 EXEEXT_FOR_BUILD='$(EXEEXT)'
17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
17040 printf %s "checking for build system executable suffix... " >&6; }
17041 if test ${bfd_cv_build_exeext+y}
17043 printf %s "(cached) " >&6
17046 echo 'int main () { return 0; }' > conftest.c
17047 bfd_cv_build_exeext=
17048 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
17049 for file in conftest.*; do
17051 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
17052 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
17056 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
17058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
17059 printf "%s\n" "$bfd_cv_build_exeext" >&6; }
17060 EXEEXT_FOR_BUILD=""
17061 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
17065 if test $cross_compiling = yes; then
17066 CROSS_COMPILING_TRUE=
17067 CROSS_COMPILING_FALSE='#'
17069 CROSS_COMPILING_TRUE='#'
17070 CROSS_COMPILING_FALSE=
17073 if test "$enable_shared" = "yes"; then
17074 ENABLE_SHARED_TRUE=
17075 ENABLE_SHARED_FALSE='#'
17077 ENABLE_SHARED_TRUE='#'
17078 ENABLE_SHARED_FALSE=
17084 # Check whether --with-arch was given.
17085 if test ${with_arch+y}
17087 withval=$with_arch; arch="$withval"
17093 if test "x$arch" != xauto; then
17095 printf "%s\n" "#define FC_ARCHITECTURE \"$arch\"" >>confdefs.h
17101 # Checks for header files.
17102 ac_header_dirent=no
17103 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
17104 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
17105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
17106 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
17107 if eval test \${$as_ac_Header+y}
17109 printf %s "(cached) " >&6
17111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h. */
17113 #include <sys/types.h>
17125 if ac_fn_c_try_compile "$LINENO"
17127 eval "$as_ac_Header=yes"
17129 eval "$as_ac_Header=no"
17131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17133 eval ac_res=\$$as_ac_Header
17134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17135 printf "%s\n" "$ac_res" >&6; }
17136 if eval test \"x\$"$as_ac_Header"\" = x"yes"
17138 cat >>confdefs.h <<_ACEOF
17139 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
17142 ac_header_dirent=$ac_hdr; break
17146 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
17147 if test $ac_header_dirent = dirent.h; then
17148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17149 printf %s "checking for library containing opendir... " >&6; }
17150 if test ${ac_cv_search_opendir+y}
17152 printf %s "(cached) " >&6
17154 ac_func_search_save_LIBS=$LIBS
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17158 /* Override any GCC internal prototype to avoid an error.
17159 Use char because int might match the return type of a GCC
17160 builtin and then its argument prototype would still apply. */
17170 for ac_lib in '' dir
17172 if test -z "$ac_lib"; then
17173 ac_res="none required"
17176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17178 if ac_fn_c_try_link "$LINENO"
17180 ac_cv_search_opendir=$ac_res
17182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17184 if test ${ac_cv_search_opendir+y}
17189 if test ${ac_cv_search_opendir+y}
17193 ac_cv_search_opendir=no
17195 rm conftest.$ac_ext
17196 LIBS=$ac_func_search_save_LIBS
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17199 printf "%s\n" "$ac_cv_search_opendir" >&6; }
17200 ac_res=$ac_cv_search_opendir
17201 if test "$ac_res" != no
17203 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
17209 printf %s "checking for library containing opendir... " >&6; }
17210 if test ${ac_cv_search_opendir+y}
17212 printf %s "(cached) " >&6
17214 ac_func_search_save_LIBS=$LIBS
17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216 /* end confdefs.h. */
17218 /* Override any GCC internal prototype to avoid an error.
17219 Use char because int might match the return type of a GCC
17220 builtin and then its argument prototype would still apply. */
17232 if test -z "$ac_lib"; then
17233 ac_res="none required"
17236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17238 if ac_fn_c_try_link "$LINENO"
17240 ac_cv_search_opendir=$ac_res
17242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17244 if test ${ac_cv_search_opendir+y}
17249 if test ${ac_cv_search_opendir+y}
17253 ac_cv_search_opendir=no
17255 rm conftest.$ac_ext
17256 LIBS=$ac_func_search_save_LIBS
17258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
17259 printf "%s\n" "$ac_cv_search_opendir" >&6; }
17260 ac_res=$ac_cv_search_opendir
17261 if test "$ac_res" != no
17263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17269 # Autoupdate added the next two lines to ensure that your configure
17270 # script's behavior did not change. They are probably safe to remove.
17272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
17273 printf %s "checking for egrep... " >&6; }
17274 if test ${ac_cv_path_EGREP+y}
17276 printf %s "(cached) " >&6
17278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
17279 then ac_cv_path_EGREP="$GREP -E"
17281 if test -z "$EGREP"; then
17282 ac_path_EGREP_found=false
17283 # Loop through the user's path and test for each of PROGNAME-LIST
17284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
17288 case $as_dir in #(((
17291 *) as_dir=$as_dir/ ;;
17293 for ac_prog in egrep
17295 for ac_exec_ext in '' $ac_executable_extensions; do
17296 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
17297 as_fn_executable_p "$ac_path_EGREP" || continue
17298 # Check for GNU ac_path_EGREP and select it if it is found.
17299 # Check for GNU $ac_path_EGREP
17300 case `"$ac_path_EGREP" --version 2>&1` in
17302 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
17305 printf %s 0123456789 >"conftest.in"
17308 cat "conftest.in" "conftest.in" >"conftest.tmp"
17309 mv "conftest.tmp" "conftest.in"
17310 cp "conftest.in" "conftest.nl"
17311 printf "%s\n" 'EGREP' >> "conftest.nl"
17312 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
17313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
17314 as_fn_arith $ac_count + 1 && ac_count=$as_val
17315 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
17316 # Best one so far, save it but keep looking for a better one
17317 ac_cv_path_EGREP="$ac_path_EGREP"
17318 ac_path_EGREP_max=$ac_count
17320 # 10*(2^10) chars as input seems more than enough
17321 test $ac_count -gt 10 && break
17323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
17326 $ac_path_EGREP_found && break 3
17331 if test -z "$ac_cv_path_EGREP"; then
17332 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
17335 ac_cv_path_EGREP=$EGREP
17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
17341 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
17342 EGREP="$ac_cv_path_EGREP"
17346 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
17347 if test "x$ac_cv_header_dirent_h" = xyes
17349 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
17352 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
17353 if test "x$ac_cv_header_fcntl_h" = xyes
17355 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
17358 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
17359 if test "x$ac_cv_header_stdlib_h" = xyes
17361 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
17364 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
17365 if test "x$ac_cv_header_string_h" = xyes
17367 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
17370 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
17371 if test "x$ac_cv_header_unistd_h" = xyes
17373 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
17376 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
17377 if test "x$ac_cv_header_sys_statvfs_h" = xyes
17379 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
17382 ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
17383 if test "x$ac_cv_header_sys_vfs_h" = xyes
17385 printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
17388 ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
17389 if test "x$ac_cv_header_sys_statfs_h" = xyes
17391 printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
17394 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
17395 if test "x$ac_cv_header_sys_param_h" = xyes
17397 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
17400 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
17401 if test "x$ac_cv_header_sys_mount_h" = xyes
17403 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
17407 # ------ AX CREATE STDINT H -------------------------------------
17408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
17409 printf %s "checking for stdint types... " >&6; }
17410 ac_stdint_h=`echo src/fcstdint.h`
17411 # try to shortcircuit - if the default include path of the compiler
17412 # can find a "stdint.h" header then we assume that all compilers can.
17413 if test ${ac_cv_header_stdint_t+y}
17415 printf %s "(cached) " >&6
17418 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
17419 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
17420 old_CFLAGS="$CFLAGS" ; CFLAGS=""
17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17423 #include <stdint.h>
17427 int_least32_t v = 0;
17432 if ac_fn_c_try_compile "$LINENO"
17434 ac_cv_stdint_result="(assuming C99 compatible system)"
17435 ac_cv_header_stdint_t="stdint.h";
17437 ac_cv_header_stdint_t=""
17439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17440 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
17442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443 /* end confdefs.h. */
17444 #include <stdint.h>
17448 int_least32_t v = 0;
17453 if ac_fn_c_try_compile "$LINENO"
17455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
17456 printf "%s\n" "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
17458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17460 CXXFLAGS="$old_CXXFLAGS"
17461 CPPFLAGS="$old_CPPFLAGS"
17462 CFLAGS="$old_CFLAGS"
17466 v="... $ac_cv_header_stdint_h"
17467 if test "$ac_stdint_h" = "stdint.h" ; then
17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
17469 printf "%s\n" "(are you sure you want them in ./stdint.h?)" >&6; }
17470 elif test "$ac_stdint_h" = "inttypes.h" ; then
17471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
17472 printf "%s\n" "(are you sure you want them in ./inttypes.h?)" >&6; }
17473 elif test "_$ac_cv_header_stdint_t" = "_" ; then
17474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
17475 printf "%s\n" "(putting them into $ac_stdint_h)$v" >&6; }
17477 ac_cv_header_stdint="$ac_cv_header_stdint_t"
17478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
17479 printf "%s\n" "$ac_cv_header_stdint (shortcircuit)" >&6; }
17482 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
17485 inttype_headers=`echo | sed -e 's/,/ /g'`
17487 ac_cv_stdint_result="(no helpful system typedefs seen)"
17489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
17490 printf %s "checking for stdint uintptr_t... " >&6; }
17491 if test ${ac_cv_header_stdint_x+y}
17493 printf %s "(cached) " >&6
17496 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
17497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17498 printf "%s\n" "(..)" >&6; }
17499 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
17501 unset ac_cv_type_uintptr_t
17502 unset ac_cv_type_uint64_t
17503 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
17505 if test "x$ac_cv_type_uintptr_t" = xyes
17507 ac_cv_header_stdint_x=$i
17512 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
17514 if test "x$ac_cv_type_uint64_t" = xyes
17521 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
17525 printf %s "checking for stdint uintptr_t... " >&6; }
17528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
17529 printf "%s\n" "$ac_cv_header_stdint_x" >&6; }
17532 if test "_$ac_cv_header_stdint_x" = "_" ; then
17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
17535 printf %s "checking for stdint uint32_t... " >&6; }
17536 if test ${ac_cv_header_stdint_o+y}
17538 printf %s "(cached) " >&6
17541 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
17542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17543 printf "%s\n" "(..)" >&6; }
17544 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
17546 unset ac_cv_type_uint32_t
17547 unset ac_cv_type_uint64_t
17548 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
17550 if test "x$ac_cv_type_uint32_t" = xyes
17552 ac_cv_header_stdint_o=$i
17557 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
17559 if test "x$ac_cv_type_uint64_t" = xyes
17566 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
17570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
17571 printf %s "checking for stdint uint32_t... " >&6; }
17574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
17575 printf "%s\n" "$ac_cv_header_stdint_o" >&6; }
17579 if test "_$ac_cv_header_stdint_x" = "_" ; then
17580 if test "_$ac_cv_header_stdint_o" = "_" ; then
17582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
17583 printf %s "checking for stdint u_int32_t... " >&6; }
17584 if test ${ac_cv_header_stdint_u+y}
17586 printf %s "(cached) " >&6
17589 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17591 printf "%s\n" "(..)" >&6; }
17592 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
17593 unset ac_cv_type_u_int32_t
17594 unset ac_cv_type_u_int64_t
17595 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
17597 if test "x$ac_cv_type_u_int32_t" = xyes
17599 ac_cv_header_stdint_u=$i
17604 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
17606 if test "x$ac_cv_type_u_int64_t" = xyes
17613 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
17617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
17618 printf %s "checking for stdint u_int32_t... " >&6; }
17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
17622 printf "%s\n" "$ac_cv_header_stdint_u" >&6; }
17626 if test "_$ac_cv_header_stdint_x" = "_" ; then
17627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
17628 printf %s "checking for stdint datatype model... " >&6; }
17629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
17630 printf "%s\n" "(..)" >&6; }
17632 # The cast to long int works around a bug in the HP C Compiler
17633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17635 # This bug is HP SR number 8606223364.
17636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
17637 printf %s "checking size of char... " >&6; }
17638 if test ${ac_cv_sizeof_char+y}
17640 printf %s "(cached) " >&6
17642 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"
17646 if test "$ac_cv_type_char" = yes; then
17647 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17648 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17649 as_fn_error 77 "cannot compute sizeof (char)
17650 See \`config.log' for more details" "$LINENO" 5; }
17652 ac_cv_sizeof_char=0
17657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
17658 printf "%s\n" "$ac_cv_sizeof_char" >&6; }
17662 printf "%s\n" "#define SIZEOF_CHAR $ac_cv_sizeof_char" >>confdefs.h
17665 # The cast to long int works around a bug in the HP C Compiler
17666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17668 # This bug is HP SR number 8606223364.
17669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17670 printf %s "checking size of short... " >&6; }
17671 if test ${ac_cv_sizeof_short+y}
17673 printf %s "(cached) " >&6
17675 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
17679 if test "$ac_cv_type_short" = yes; then
17680 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17681 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17682 as_fn_error 77 "cannot compute sizeof (short)
17683 See \`config.log' for more details" "$LINENO" 5; }
17685 ac_cv_sizeof_short=0
17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17691 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
17695 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
17698 # The cast to long int works around a bug in the HP C Compiler
17699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17701 # This bug is HP SR number 8606223364.
17702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17703 printf %s "checking size of int... " >&6; }
17704 if test ${ac_cv_sizeof_int+y}
17706 printf %s "(cached) " >&6
17708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
17712 if test "$ac_cv_type_int" = yes; then
17713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17714 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17715 as_fn_error 77 "cannot compute sizeof (int)
17716 See \`config.log' for more details" "$LINENO" 5; }
17723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17724 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
17728 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
17731 # The cast to long int works around a bug in the HP C Compiler
17732 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17733 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17734 # This bug is HP SR number 8606223364.
17735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17736 printf %s "checking size of long... " >&6; }
17737 if test ${ac_cv_sizeof_long+y}
17739 printf %s "(cached) " >&6
17741 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
17745 if test "$ac_cv_type_long" = yes; then
17746 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17747 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17748 as_fn_error 77 "cannot compute sizeof (long)
17749 See \`config.log' for more details" "$LINENO" 5; }
17751 ac_cv_sizeof_long=0
17756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17757 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
17761 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
17764 # The cast to long int works around a bug in the HP C Compiler
17765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17767 # This bug is HP SR number 8606223364.
17768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
17769 printf %s "checking size of void*... " >&6; }
17770 if test ${ac_cv_sizeof_voidp+y}
17772 printf %s "(cached) " >&6
17774 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"
17778 if test "$ac_cv_type_voidp" = yes; then
17779 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17780 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17781 as_fn_error 77 "cannot compute sizeof (void*)
17782 See \`config.log' for more details" "$LINENO" 5; }
17784 ac_cv_sizeof_voidp=0
17789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
17790 printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
17794 printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
17797 ac_cv_char_data_model=""
17798 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
17799 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
17800 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
17801 ac_cv_long_data_model=""
17802 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
17803 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
17804 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
17805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking data model" >&5
17806 printf %s "checking data model... " >&6; }
17807 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
17808 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
17809 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
17810 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
17811 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
17812 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
17813 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
17814 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
17815 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
17816 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
17817 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
17818 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
17819 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
17820 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
17821 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
17822 222/*|333/*|444/*|666/*|888/*) :
17823 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
17824 *) ac_cv_data_model="none" ; n="very unusual model" ;;
17826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
17827 printf "%s\n" "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
17831 if test "_$ac_cv_header_stdint_x" != "_" ; then
17832 ac_cv_header_stdint="$ac_cv_header_stdint_x"
17833 elif test "_$ac_cv_header_stdint_o" != "_" ; then
17834 ac_cv_header_stdint="$ac_cv_header_stdint_o"
17835 elif test "_$ac_cv_header_stdint_u" != "_" ; then
17836 ac_cv_header_stdint="$ac_cv_header_stdint_u"
17838 ac_cv_header_stdint="stddef.h"
17841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
17842 printf %s "checking for extra inttypes in chosen header... " >&6; }
17843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
17844 printf "%s\n" "($ac_cv_header_stdint)" >&6; }
17845 unset ac_cv_type_int_least32_t
17846 unset ac_cv_type_int_fast32_t
17847 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
17849 if test "x$ac_cv_type_int_least32_t" = xyes
17854 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
17856 if test "x$ac_cv_type_int_fast32_t" = xyes
17861 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
17863 if test "x$ac_cv_type_intmax_t" = xyes
17869 fi # shortcircut to system "stdint.h"
17870 # ------------------ PREPARE VARIABLES ------------------------------
17871 if test "$GCC" = "yes" ; then
17872 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
17874 ac_cv_stdint_message="using $CC"
17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
17878 printf "%s\n" "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
17880 # ----------------- DONE inttypes.h checks START header -------------
17881 ac_config_commands="$ac_config_commands $ac_stdint_h"
17885 # Checks for typedefs, structures, and compiler characteristics.
17886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17887 printf %s "checking for an ANSI C-conforming const... " >&6; }
17888 if test ${ac_cv_c_const+y}
17890 printf %s "(cached) " >&6
17892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17899 #ifndef __cplusplus
17900 /* Ultrix mips cc rejects this sort of thing. */
17901 typedef int charset[2];
17902 const charset cs = { 0, 0 };
17903 /* SunOS 4.1.1 cc rejects this. */
17904 char const *const *pcpcc;
17906 /* NEC SVR4.0.2 mips cc rejects this. */
17907 struct point {int x, y;};
17908 static struct point const zero = {0,0};
17909 /* IBM XL C 1.02.0.0 rejects this.
17910 It does not let you subtract one const X* pointer from another in
17911 an arm of an if-expression whose if-part is not a constant
17913 const char *g = "string";
17914 pcpcc = &g + (g ? g-g : 0);
17915 /* HPUX 7.0 cc rejects these. */
17917 ppc = (char**) pcpcc;
17918 pcpcc = (char const *const *) ppc;
17919 { /* SCO 3.2v4 cc rejects this sort of thing. */
17922 char const *s = 0 ? (char *) 0 : (char const *) 0;
17927 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17928 int x[] = {25, 17};
17929 const int *foo = &x[0];
17932 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17933 typedef const int *iptr;
17937 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17938 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17939 struct s { int j; const int *ap[3]; } bx;
17940 struct s *b = &bx; b->j = 5;
17942 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17943 const int foo = 10;
17944 if (!foo) return 0;
17946 return !cs[0] && !zero.x;
17953 if ac_fn_c_try_compile "$LINENO"
17959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17962 printf "%s\n" "$ac_cv_c_const" >&6; }
17963 if test $ac_cv_c_const = no; then
17965 printf "%s\n" "#define const /**/" >>confdefs.h
17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17970 printf %s "checking for inline... " >&6; }
17971 if test ${ac_cv_c_inline+y}
17973 printf %s "(cached) " >&6
17976 for ac_kw in inline __inline__ __inline; do
17977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h. */
17979 #ifndef __cplusplus
17981 static $ac_kw foo_t static_foo (void) {return 0; }
17982 $ac_kw foo_t foo (void) {return 0; }
17986 if ac_fn_c_try_compile "$LINENO"
17988 ac_cv_c_inline=$ac_kw
17990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17991 test "$ac_cv_c_inline" != no && break
17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17996 printf "%s\n" "$ac_cv_c_inline" >&6; }
17998 case $ac_cv_c_inline in
18001 case $ac_cv_c_inline in
18003 *) ac_val=$ac_cv_c_inline;;
18005 cat >>confdefs.h <<_ACEOF
18006 #ifndef __cplusplus
18007 #define inline $ac_val
18014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
18015 printf %s "checking for flexible array members... " >&6; }
18016 if test ${ac_cv_c_flexmember+y}
18018 printf %s "(cached) " >&6
18020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18021 /* end confdefs.h. */
18022 #include <stdlib.h>
18024 #include <stddef.h>
18025 struct s { int n; double d[]; };
18029 int m = getchar ();
18030 struct s *p = (struct s *) malloc (offsetof (struct s, d)
18031 + m * sizeof (double));
18033 return p->d != (double *) NULL;
18038 if ac_fn_c_try_compile "$LINENO"
18040 ac_cv_c_flexmember=yes
18042 ac_cv_c_flexmember=no
18044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
18047 printf "%s\n" "$ac_cv_c_flexmember" >&6; }
18048 if test $ac_cv_c_flexmember = yes; then
18050 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
18053 printf "%s\n" "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
18058 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
18060 if test "x$ac_cv_type_pid_t" = xyes
18064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18065 /* end confdefs.h. */
18067 #if defined _WIN64 && !defined __CYGWIN__
18080 if ac_fn_c_try_compile "$LINENO"
18084 ac_pid_type='__int64'
18086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18088 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
18095 # Checks for library functions.
18097 for ac_item in $ac_func_c_list
18099 if test $ac_func; then
18100 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18101 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18102 echo "#define $ac_item 1" >> confdefs.h
18110 if test "x$ac_cv_func_vprintf" = xno
18112 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18113 if test "x$ac_cv_func__doprnt" = xyes
18116 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18126 printf %s "checking for working mmap... " >&6; }
18127 if test ${ac_cv_func_mmap_fixed_mapped+y}
18129 printf %s "(cached) " >&6
18131 if test "$cross_compiling" = yes
18133 case "$host_os" in # ((
18134 # Guess yes on platforms where we know the result.
18135 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
18136 # If we don't know, assume the worst.
18137 *) ac_cv_func_mmap_fixed_mapped=no ;;
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18142 $ac_includes_default
18143 /* malloc might have been renamed as rpl_malloc. */
18146 /* Thanks to Mike Haertel and Jim Avera for this test.
18147 Here is a matrix of mmap possibilities:
18148 mmap private not fixed
18149 mmap private fixed at somewhere currently unmapped
18150 mmap private fixed at somewhere already mapped
18151 mmap shared not fixed
18152 mmap shared fixed at somewhere currently unmapped
18153 mmap shared fixed at somewhere already mapped
18154 For private mappings, we should verify that changes cannot be read()
18155 back from the file, nor mmap's back from the file at a different
18156 address. (There have been systems where private was not correctly
18157 implemented like the infamous i386 svr4.0, and systems where the
18158 VM page cache was not coherent with the file system buffer cache
18159 like early versions of FreeBSD and possibly contemporary NetBSD.)
18160 For shared mappings, we should conversely verify that changes get
18161 propagated back to all the places they're supposed to be.
18163 Grep wants private fixed already mapped.
18164 The main things grep needs to know about mmap are:
18165 * does it exist and is it safe to write into the mmap'd area
18166 * how to use it (BSD variants) */
18169 #include <sys/mman.h>
18171 /* This mess was copied from the GNU getpagesize.h. */
18172 #ifndef HAVE_GETPAGESIZE
18173 # ifdef _SC_PAGESIZE
18174 # define getpagesize() sysconf(_SC_PAGESIZE)
18175 # else /* no _SC_PAGESIZE */
18176 # ifdef HAVE_SYS_PARAM_H
18177 # include <sys/param.h>
18178 # ifdef EXEC_PAGESIZE
18179 # define getpagesize() EXEC_PAGESIZE
18180 # else /* no EXEC_PAGESIZE */
18182 # define getpagesize() NBPG * CLSIZE
18185 # endif /* no CLSIZE */
18186 # else /* no NBPG */
18188 # define getpagesize() NBPC
18189 # else /* no NBPC */
18191 # define getpagesize() PAGESIZE
18192 # endif /* PAGESIZE */
18193 # endif /* no NBPC */
18194 # endif /* no NBPG */
18195 # endif /* no EXEC_PAGESIZE */
18196 # else /* no HAVE_SYS_PARAM_H */
18197 # define getpagesize() 8192 /* punt totally */
18198 # endif /* no HAVE_SYS_PARAM_H */
18199 # endif /* no _SC_PAGESIZE */
18201 #endif /* no HAVE_GETPAGESIZE */
18206 char *data, *data2, *data3;
18207 const char *cdata2;
18211 pagesize = getpagesize ();
18213 /* First, make a file with some known garbage in it. */
18214 data = (char *) malloc (pagesize);
18217 for (i = 0; i < pagesize; ++i)
18218 *(data + i) = rand ();
18220 fd = creat ("conftest.mmap", 0600);
18223 if (write (fd, data, pagesize) != pagesize)
18227 /* Next, check that the tail of a page is zero-filled. File must have
18228 non-zero length, otherwise we risk SIGBUS for entire page. */
18229 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18233 if (write (fd2, cdata2, 1) != 1)
18235 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18236 if (data2 == MAP_FAILED)
18238 for (i = 0; i < pagesize; ++i)
18242 if (munmap (data2, pagesize))
18245 /* Next, try to mmap the file at a fixed address which already has
18246 something else allocated at it. If we can, also make sure that
18247 we see the same garbage. */
18248 fd = open ("conftest.mmap", O_RDWR);
18251 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18252 MAP_PRIVATE | MAP_FIXED, fd, 0L))
18254 for (i = 0; i < pagesize; ++i)
18255 if (*(data + i) != *(data2 + i))
18258 /* Finally, make sure that changes to the mapped area do not
18259 percolate back to the file as seen by read(). (This is a bug on
18260 some variants of i386 svr4.0.) */
18261 for (i = 0; i < pagesize; ++i)
18262 *(data2 + i) = *(data2 + i) + 1;
18263 data3 = (char *) malloc (pagesize);
18266 if (read (fd, data3, pagesize) != pagesize)
18268 for (i = 0; i < pagesize; ++i)
18269 if (*(data + i) != *(data3 + i))
18277 if ac_fn_c_try_run "$LINENO"
18279 ac_cv_func_mmap_fixed_mapped=yes
18281 ac_cv_func_mmap_fixed_mapped=no
18283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18284 conftest.$ac_objext conftest.beam conftest.$ac_ext
18288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18289 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
18290 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18292 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
18295 rm -f conftest.mmap conftest.txt
18297 ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
18298 if test "x$ac_cv_func_link" = xyes
18300 printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
18303 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
18304 if test "x$ac_cv_func_mkstemp" = xyes
18306 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
18309 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
18310 if test "x$ac_cv_func_mkostemp" = xyes
18312 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
18315 ac_fn_c_check_func "$LINENO" "_mktemp_s" "ac_cv_func__mktemp_s"
18316 if test "x$ac_cv_func__mktemp_s" = xyes
18318 printf "%s\n" "#define HAVE__MKTEMP_S 1" >>confdefs.h
18321 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
18322 if test "x$ac_cv_func_mkdtemp" = xyes
18324 printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
18327 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
18328 if test "x$ac_cv_func_getopt" = xyes
18330 printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h
18333 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
18334 if test "x$ac_cv_func_getopt_long" = xyes
18336 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
18339 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
18340 if test "x$ac_cv_func_getprogname" = xyes
18342 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
18345 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
18346 if test "x$ac_cv_func_getexecname" = xyes
18348 printf "%s\n" "#define HAVE_GETEXECNAME 1" >>confdefs.h
18351 ac_fn_c_check_func "$LINENO" "rand" "ac_cv_func_rand"
18352 if test "x$ac_cv_func_rand" = xyes
18354 printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h
18357 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
18358 if test "x$ac_cv_func_random" = xyes
18360 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
18363 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
18364 if test "x$ac_cv_func_lrand48" = xyes
18366 printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
18369 ac_fn_c_check_func "$LINENO" "random_r" "ac_cv_func_random_r"
18370 if test "x$ac_cv_func_random_r" = xyes
18372 printf "%s\n" "#define HAVE_RANDOM_R 1" >>confdefs.h
18375 ac_fn_c_check_func "$LINENO" "rand_r" "ac_cv_func_rand_r"
18376 if test "x$ac_cv_func_rand_r" = xyes
18378 printf "%s\n" "#define HAVE_RAND_R 1" >>confdefs.h
18381 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
18382 if test "x$ac_cv_func_readlink" = xyes
18384 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
18387 ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
18388 if test "x$ac_cv_func_fstatvfs" = xyes
18390 printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
18393 ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs"
18394 if test "x$ac_cv_func_fstatfs" = xyes
18396 printf "%s\n" "#define HAVE_FSTATFS 1" >>confdefs.h
18399 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
18400 if test "x$ac_cv_func_lstat" = xyes
18402 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18405 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
18406 if test "x$ac_cv_func_strerror" = xyes
18408 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
18411 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
18412 if test "x$ac_cv_func_strerror_r" = xyes
18414 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
18419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
18420 printf %s "checking for posix_fadvise in fcntl.h... " >&6; }
18421 if test ${ac_cv_func_posix_fadvise+y}
18423 printf %s "(cached) " >&6
18425 symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
18427 for ac_header in fcntl.h ; do
18428 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
18429 if test $ac_found != "yes" ; then
18430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432 /* end confdefs.h. */
18433 #include <$ac_header>
18436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18437 $EGREP "$symbol" >/dev/null 2>&1
18439 ac_found="$ac_header"
18446 if test "$ac_found" != "no" ; then
18447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
18448 printf "%s\n" "$ac_found" >&6; }
18449 fc_func_posix_fadvise=1
18451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18452 printf "%s\n" "no" >&6; }
18453 fc_func_posix_fadvise=0
18459 printf "%s\n" "#define HAVE_POSIX_FADVISE $fc_func_posix_fadvise" >>confdefs.h
18463 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
18465 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
18468 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
18475 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
18476 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
18478 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes
18481 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_BASETYPE 1" >>confdefs.h
18485 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
18487 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes
18490 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1" >>confdefs.h
18496 if test "x$ac_cv_func_fstatfs" = "xyes"; then
18497 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
18498 #ifdef HAVE_SYS_VFS_H
18499 #include <sys/vfs.h>
18501 #ifdef HAVE_SYS_STATFS_H
18502 #include <sys/statfs.h>
18504 #ifdef HAVE_SYS_PARAM_H
18505 #include <sys/param.h>
18507 #ifdef HAVE_SYS_MOUNT_H
18508 #include <sys/mount.h>
18511 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes
18514 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FLAGS 1" >>confdefs.h
18518 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
18519 #ifdef HAVE_SYS_VFS_H
18520 #include <sys/vfs.h>
18522 #ifdef HAVE_SYS_STATFS_H
18523 #include <sys/statfs.h>
18525 #ifdef HAVE_SYS_PARAM_H
18526 #include <sys/param.h>
18528 #ifdef HAVE_SYS_MOUNT_H
18529 #include <sys/mount.h>
18532 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes
18535 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h
18541 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
18543 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
18546 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
18552 # Check the argument type of the gperf hash/lookup function
18553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking The type of len parameter of gperf hash/lookup function" >&5
18554 printf %s "checking The type of len parameter of gperf hash/lookup function... " >&6; }
18555 fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
18556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557 /* end confdefs.h. */
18559 #include <string.h>
18561 const char *in_word_set(register const char *, register size_t);
18572 if ac_fn_c_try_compile "$LINENO"
18574 FC_GPERF_SIZE_T=size_t
18576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18577 /* end confdefs.h. */
18579 #include <string.h>
18581 const char *in_word_set(register const char *, register unsigned int);
18592 if ac_fn_c_try_compile "$LINENO"
18594 FC_GPERF_SIZE_T="unsigned int"
18596 as_fn_error $? "Unable to determine the type of the len parameter of the gperf hash/lookup function" "$LINENO" 5
18599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18603 printf "%s\n" "#define FC_GPERF_SIZE_T $FC_GPERF_SIZE_T" >>confdefs.h
18605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC_GPERF_SIZE_T" >&5
18606 printf "%s\n" "$FC_GPERF_SIZE_T" >&6; }
18611 # Check whether --enable-iconv was given.
18612 if test ${enable_iconv+y}
18614 enableval=$enable_iconv;
18620 # Check whether --with-libiconv was given.
18621 if test ${with_libiconv+y}
18623 withval=$with_libiconv; if test "x$withval" = "xyes"; then
18624 libiconv_prefix=$prefix
18626 libiconv_prefix=$withval
18629 libiconv_prefix=auto
18633 # Check whether --with-libiconv-includes was given.
18634 if test ${with_libiconv_includes+y}
18636 withval=$with_libiconv_includes; libiconv_includes=$withval
18638 libiconv_includes=auto
18642 # Check whether --with-libiconv-lib was given.
18643 if test ${with_libiconv_lib+y}
18645 withval=$with_libiconv_lib; libiconv_lib=$withval
18651 # if no libiconv,libiconv-includes,libiconv-lib are specified,
18652 # libc's iconv has a priority.
18653 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
18654 libiconv_cflags="-I${libiconv_includes}"
18655 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
18656 libiconv_cflags="-I${libiconv_prefix}/include"
18661 if test "x$libiconv_cflags" != "x"; then
18662 if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
18663 libiconv_libs="-L${libiconv_lib} -liconv"
18664 elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
18665 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
18667 libiconv_libs="-liconv"
18672 if test "x$enable_iconv" != "xno"; then
18673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
18674 printf %s "checking for a usable iconv... " >&6; }
18675 if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
18676 iconvsaved_CFLAGS="$CFLAGS"
18677 iconvsaved_LIBS="$LIBS"
18678 CFLAGS="$CFLAGS $libiconv_cflags"
18679 LIBS="$LIBS $libiconv_libs"
18681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18682 /* end confdefs.h. */
18687 iconv_open ("from", "to");
18692 if ac_fn_c_try_link "$LINENO"
18694 iconv_type="libiconv"
18696 ICONV_CFLAGS="$libiconv_cflags"
18697 ICONV_LIBS="$libiconv_libs"
18702 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18703 conftest$ac_exeext conftest.$ac_ext
18705 CFLAGS="$iconvsaved_CFLAGS"
18706 LIBS="$iconvsaved_LIBS"
18708 if test "x$use_iconv" = "x0"; then
18709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h. */
18715 iconv_open ("from", "to");
18720 if ac_fn_c_try_link "$LINENO"
18725 iconv_type="not found"
18728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18729 conftest$ac_exeext conftest.$ac_ext
18732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
18733 printf "%s\n" "$iconv_type" >&6; }
18738 printf "%s\n" "#define USE_ICONV $use_iconv" >>confdefs.h
18741 # Checks for FreeType
18745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18746 printf %s "checking for FREETYPE... " >&6; }
18748 if test -n "$FREETYPE_CFLAGS"; then
18749 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18750 elif test -n "$PKG_CONFIG"; then
18751 if test -n "$PKG_CONFIG" && \
18752 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
18753 ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
18755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18756 test $ac_status = 0; }; then
18757 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 21.0.15" 2>/dev/null`
18758 test "x$?" != "x0" && pkg_failed=yes
18765 if test -n "$FREETYPE_LIBS"; then
18766 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18767 elif test -n "$PKG_CONFIG"; then
18768 if test -n "$PKG_CONFIG" && \
18769 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 21.0.15\""; } >&5
18770 ($PKG_CONFIG --exists --print-errors "freetype2 >= 21.0.15") 2>&5
18772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18773 test $ac_status = 0; }; then
18774 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 21.0.15" 2>/dev/null`
18775 test "x$?" != "x0" && pkg_failed=yes
18785 if test $pkg_failed = yes; then
18786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18787 printf "%s\n" "no" >&6; }
18789 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18790 _pkg_short_errors_supported=yes
18792 _pkg_short_errors_supported=no
18794 if test $_pkg_short_errors_supported = yes; then
18795 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
18797 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 21.0.15" 2>&1`
18799 # Put the nasty error message in config.log where it belongs
18800 echo "$FREETYPE_PKG_ERRORS" >&5
18802 as_fn_error $? "Package requirements (freetype2 >= 21.0.15) were not met:
18804 $FREETYPE_PKG_ERRORS
18806 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18807 installed software in a non-standard prefix.
18809 Alternatively, you may set the environment variables FREETYPE_CFLAGS
18810 and FREETYPE_LIBS to avoid the need to call pkg-config.
18811 See the pkg-config man page for more details." "$LINENO" 5
18812 elif test $pkg_failed = untried; then
18813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18814 printf "%s\n" "no" >&6; }
18815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18816 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18817 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18818 is in your PATH or set the PKG_CONFIG environment variable to the full
18819 path to pkg-config.
18821 Alternatively, you may set the environment variables FREETYPE_CFLAGS
18822 and FREETYPE_LIBS to avoid the need to call pkg-config.
18823 See the pkg-config man page for more details.
18825 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18826 See \`config.log' for more details" "$LINENO" 5; }
18828 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18829 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18831 printf "%s\n" "yes" >&6; }
18834 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2 >= 21.0.15"
18839 fontconfig_save_libs="$LIBS"
18840 fontconfig_save_cflags="$CFLAGS"
18841 LIBS="$LIBS $FREETYPE_LIBS"
18842 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
18843 ac_fn_c_check_func "$LINENO" "FT_Get_BDF_Property" "ac_cv_func_FT_Get_BDF_Property"
18844 if test "x$ac_cv_func_FT_Get_BDF_Property" = xyes
18846 printf "%s\n" "#define HAVE_FT_GET_BDF_PROPERTY 1" >>confdefs.h
18849 ac_fn_c_check_func "$LINENO" "FT_Get_PS_Font_Info" "ac_cv_func_FT_Get_PS_Font_Info"
18850 if test "x$ac_cv_func_FT_Get_PS_Font_Info" = xyes
18852 printf "%s\n" "#define HAVE_FT_GET_PS_FONT_INFO 1" >>confdefs.h
18855 ac_fn_c_check_func "$LINENO" "FT_Has_PS_Glyph_Names" "ac_cv_func_FT_Has_PS_Glyph_Names"
18856 if test "x$ac_cv_func_FT_Has_PS_Glyph_Names" = xyes
18858 printf "%s\n" "#define HAVE_FT_HAS_PS_GLYPH_NAMES 1" >>confdefs.h
18861 ac_fn_c_check_func "$LINENO" "FT_Get_X11_Font_Format" "ac_cv_func_FT_Get_X11_Font_Format"
18862 if test "x$ac_cv_func_FT_Get_X11_Font_Format" = xyes
18864 printf "%s\n" "#define HAVE_FT_GET_X11_FONT_FORMAT 1" >>confdefs.h
18867 ac_fn_c_check_func "$LINENO" "FT_Done_MM_Var" "ac_cv_func_FT_Done_MM_Var"
18868 if test "x$ac_cv_func_FT_Done_MM_Var" = xyes
18870 printf "%s\n" "#define HAVE_FT_DONE_MM_VAR 1" >>confdefs.h
18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876 /* end confdefs.h. */
18878 #include <ft2build.h>
18879 #include FT_CONFIG_OPTIONS_H
18880 #ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
18881 # error "No pcf long family names support"
18885 if ac_fn_c_try_compile "$LINENO"
18887 have_pcf_long_family_names=yes
18889 have_pcf_long_family_names=no
18891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18892 if test "x$have_pcf_long_family_names" = xyes; then
18893 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE=
18894 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE='#'
18896 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE='#'
18897 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE=
18901 LIBS="$fontconfig_save_libs"
18902 CFLAGS="$fontconfig_save_cflags"
18905 # Check expat configuration
18908 # Check whether --with-expat was given.
18909 if test ${with_expat+y}
18911 withval=$with_expat; expat_prefix=$withval
18917 # Check whether --with-expat-includes was given.
18918 if test ${with_expat_includes+y}
18920 withval=$with_expat_includes; expat_includes=$withval
18922 expat_includes=auto
18926 # Check whether --with-expat-lib was given.
18927 if test ${with_expat_lib+y}
18929 withval=$with_expat_lib; expat_lib=$withval
18935 if test "$enable_libxml2" != "yes"; then
18936 use_pkgconfig_for_expat=yes
18937 if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
18940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
18941 printf %s "checking for EXPAT... " >&6; }
18943 if test -n "$EXPAT_CFLAGS"; then
18944 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
18945 elif test -n "$PKG_CONFIG"; then
18946 if test -n "$PKG_CONFIG" && \
18947 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
18948 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
18950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18951 test $ac_status = 0; }; then
18952 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
18953 test "x$?" != "x0" && pkg_failed=yes
18960 if test -n "$EXPAT_LIBS"; then
18961 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
18962 elif test -n "$PKG_CONFIG"; then
18963 if test -n "$PKG_CONFIG" && \
18964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
18965 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
18967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18968 test $ac_status = 0; }; then
18969 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
18970 test "x$?" != "x0" && pkg_failed=yes
18980 if test $pkg_failed = yes; then
18981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18982 printf "%s\n" "no" >&6; }
18984 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18985 _pkg_short_errors_supported=yes
18987 _pkg_short_errors_supported=no
18989 if test $_pkg_short_errors_supported = yes; then
18990 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
18992 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
18994 # Put the nasty error message in config.log where it belongs
18995 echo "$EXPAT_PKG_ERRORS" >&5
18997 use_pkgconfig_for_expat=no
18998 elif test $pkg_failed = untried; then
18999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19000 printf "%s\n" "no" >&6; }
19001 use_pkgconfig_for_expat=no
19003 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
19004 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
19005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19006 printf "%s\n" "yes" >&6; }
19010 use_pkgconfig_for_expat=no
19012 if test "x$use_pkgconfig_for_expat" = "xno"; then
19013 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
19014 EXPAT_CFLAGS="-I${expat_includes}"
19015 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
19016 EXPAT_CFLAGS="-I${expat_prefix}/include"
19020 if test "$expat_lib" != "auto"; then
19021 EXPAT_LIBS="-L${expat_lib} -lexpat"
19022 elif test "$expat_prefix" != "auto"; then
19023 EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
19025 EXPAT_LIBS="-lexpat"
19027 PKG_EXPAT_CFLAGS=$EXPAT_CFLAGS
19028 PKG_EXPAT_LIBS=$EXPAT_LIBS
19030 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
19035 expatsaved_CPPFLAGS="$CPPFLAGS"
19036 expatsaved_LIBS="$LIBS"
19037 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
19038 LIBS="$LIBS $EXPAT_LIBS"
19040 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
19041 if test "x$ac_cv_header_expat_h" = xyes
19046 if test "$ac_cv_header_expat_h" = "no"; then
19047 ac_fn_c_check_header_compile "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
19048 if test "x$ac_cv_header_xmlparse_h" = xyes
19053 if test "$ac_cv_header_xmlparse_h" = "yes"; then
19057 printf "%s\n" "#define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H" >>confdefs.h
19061 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
19064 ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
19065 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes
19067 printf "%s\n" "#define HAVE_XML_SETDOCTYPEDECLHANDLER 1" >>confdefs.h
19071 if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
19073 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
19075 CPPFLAGS="$expatsaved_CPPFLAGS"
19076 LIBS="$expatsaved_LIBS"
19085 # Check libxml2 configuration
19087 # Check whether --enable-libxml2 was given.
19088 if test ${enable_libxml2+y}
19090 enableval=$enable_libxml2;
19094 if test "$enable_libxml2" = "yes"; then
19097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
19098 printf %s "checking for LIBXML2... " >&6; }
19100 if test -n "$LIBXML2_CFLAGS"; then
19101 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
19102 elif test -n "$PKG_CONFIG"; then
19103 if test -n "$PKG_CONFIG" && \
19104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
19105 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
19107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19108 test $ac_status = 0; }; then
19109 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
19110 test "x$?" != "x0" && pkg_failed=yes
19117 if test -n "$LIBXML2_LIBS"; then
19118 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
19119 elif test -n "$PKG_CONFIG"; then
19120 if test -n "$PKG_CONFIG" && \
19121 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
19122 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
19124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19125 test $ac_status = 0; }; then
19126 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
19127 test "x$?" != "x0" && pkg_failed=yes
19137 if test $pkg_failed = yes; then
19138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139 printf "%s\n" "no" >&6; }
19141 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19142 _pkg_short_errors_supported=yes
19144 _pkg_short_errors_supported=no
19146 if test $_pkg_short_errors_supported = yes; then
19147 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
19149 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
19151 # Put the nasty error message in config.log where it belongs
19152 echo "$LIBXML2_PKG_ERRORS" >&5
19154 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
19156 $LIBXML2_PKG_ERRORS
19158 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19159 installed software in a non-standard prefix.
19161 Alternatively, you may set the environment variables LIBXML2_CFLAGS
19162 and LIBXML2_LIBS to avoid the need to call pkg-config.
19163 See the pkg-config man page for more details." "$LINENO" 5
19164 elif test $pkg_failed = untried; then
19165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19166 printf "%s\n" "no" >&6; }
19167 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19168 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19169 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19170 is in your PATH or set the PKG_CONFIG environment variable to the full
19171 path to pkg-config.
19173 Alternatively, you may set the environment variables LIBXML2_CFLAGS
19174 and LIBXML2_LIBS to avoid the need to call pkg-config.
19175 See the pkg-config man page for more details.
19177 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19178 See \`config.log' for more details" "$LINENO" 5; }
19180 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
19181 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
19182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19183 printf "%s\n" "yes" >&6; }
19186 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0 >= 2.6"
19188 printf "%s\n" "#define ENABLE_LIBXML2 1" >>confdefs.h
19194 fc_saved_CFLAGS="$CFLAGS"
19195 CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
19196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
19197 printf %s "checking SAX1 support in libxml2... " >&6; }
19198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199 /* end confdefs.h. */
19201 #include <libxml/xmlversion.h>
19202 #if !defined(LIBXML_SAX1_ENABLED)
19203 # include "error: No SAX1 support in libxml2"
19207 if ac_fn_c_try_compile "$LINENO"
19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
19210 printf "%s\n" "found" >&6; }
19213 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
19215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19216 CFLAGS="$fc_saved_CFLAGS"
19224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JSONC" >&5
19225 printf %s "checking for JSONC... " >&6; }
19227 if test -n "$JSONC_CFLAGS"; then
19228 pkg_cv_JSONC_CFLAGS="$JSONC_CFLAGS"
19229 elif test -n "$PKG_CONFIG"; then
19230 if test -n "$PKG_CONFIG" && \
19231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
19232 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
19234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19235 test $ac_status = 0; }; then
19236 pkg_cv_JSONC_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
19237 test "x$?" != "x0" && pkg_failed=yes
19244 if test -n "$JSONC_LIBS"; then
19245 pkg_cv_JSONC_LIBS="$JSONC_LIBS"
19246 elif test -n "$PKG_CONFIG"; then
19247 if test -n "$PKG_CONFIG" && \
19248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
19249 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
19251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19252 test $ac_status = 0; }; then
19253 pkg_cv_JSONC_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
19254 test "x$?" != "x0" && pkg_failed=yes
19264 if test $pkg_failed = yes; then
19265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19266 printf "%s\n" "no" >&6; }
19268 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19269 _pkg_short_errors_supported=yes
19271 _pkg_short_errors_supported=no
19273 if test $_pkg_short_errors_supported = yes; then
19274 JSONC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
19276 JSONC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
19278 # Put the nasty error message in config.log where it belongs
19279 echo "$JSONC_PKG_ERRORS" >&5
19282 elif test $pkg_failed = untried; then
19283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19284 printf "%s\n" "no" >&6; }
19287 JSONC_CFLAGS=$pkg_cv_JSONC_CFLAGS
19288 JSONC_LIBS=$pkg_cv_JSONC_LIBS
19289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19290 printf "%s\n" "yes" >&6; }
19294 if test "x$use_jsonc" = "xyes"; then
19296 ENABLE_JSONC_FALSE='#'
19298 ENABLE_JSONC_TRUE='#'
19299 ENABLE_JSONC_FALSE=
19306 # Set default sub-pixel rendering
19310 # Check whether --with-default-sub-pixel-rendering was given.
19311 if test ${with_default_sub_pixel_rendering+y}
19313 withval=$with_default_sub_pixel_rendering; preferred_sub_pixel_rendering="$withval"
19315 preferred_sub_pixel_rendering=none
19319 case "$preferred_sub_pixel_rendering" in
19320 none|bgr|rgb|vbgr|vrgb)
19321 PREFERRED_SUB_PIXEL_RENDERING="$preferred_sub_pixel_rendering"
19325 as_fn_error $? "Invalid sub-pixel rendering. please choose one of none, bgr, rgb, vbgr, or vrgb" "$LINENO" 5
19330 # Set default hinting
19334 # Check whether --with-default-hinting was given.
19335 if test ${with_default_hinting+y}
19337 withval=$with_default_hinting; preferred_hinting="$withval"
19339 preferred_hinting=slight
19343 case "$preferred_hinting" in
19344 none|slight|medium|full)
19345 PREFERRED_HINTING="$preferred_hinting"
19349 as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
19354 # Set default font directory
19358 # Check whether --with-default-fonts was given.
19359 if test ${with_default_fonts+y}
19361 withval=$with_default_fonts; default_fonts="$withval"
19367 case "$default_fonts" in
19369 if test "$os_win32" = "yes"; then
19370 default_fonts="WINDOWSFONTDIR,WINDOWSUSERFONTDIR"
19371 elif test "$os_darwin" = "yes"; then
19372 default_fonts="/System/Library/Fonts,/Library/Fonts,~/Library/Fonts,/System/Library/Assets/com_apple_MobileAsset_Font3,/System/Library/Assets/com_apple_MobileAsset_Font4"
19374 default_fonts="/usr/share/fonts"
19379 FC_DEFAULT_FONTS=""
19380 if test x${default_fonts+set} = xset; then
19383 for p in $default_fonts; do
19384 if test x"$FC_DEFAULT_FONTS" != x; then
19385 FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS "
19387 FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS<dir>$p</dir>"
19393 printf "%s\n" "#define FC_DEFAULT_FONTS \"$FC_DEFAULT_FONTS\"" >>confdefs.h
19399 # Add more fonts if available. By default, add only the directories
19400 # with outline fonts; those with bitmaps can be added as desired in
19401 # local.conf or ~/.fonts.conf
19404 # Check whether --with-add-fonts was given.
19405 if test ${with_add_fonts+y}
19407 withval=$with_add_fonts; add_fonts="$withval"
19413 case "$add_fonts" in
19416 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
19417 case x"$FC_ADD_FONTS" in
19420 if test -d "$sub"; then
19421 case x$FC_ADD_FONTS in
19423 FC_ADD_FONTS="$sub"
19426 FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
19434 printf "%s\n" "#define FC_ADD_FONTS \"$add_fonts\"" >>confdefs.h
19441 FC_ADD_FONTS="$add_fonts"
19443 printf "%s\n" "#define FC_ADD_FONTS \"$add_fonts\"" >>confdefs.h
19452 case "$FC_ADD_FONTS" in
19456 FC_FONTPATH=`echo $FC_ADD_FONTS |
19457 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
19464 # Set default cache directory path
19467 # Check whether --with-cache-dir was given.
19468 if test ${with_cache_dir+y}
19470 withval=$with_cache_dir; fc_cachedir="$withval"
19476 case $fc_cachedir in
19478 if test "$os_win32" = "yes"; then
19479 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
19481 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
19488 FC_CACHEDIR=${fc_cachedir}
19491 FC_FONTDATE=`LC_ALL=C date`
19496 # Set configuration paths
19500 # Check whether --with-templatedir was given.
19501 if test ${with_templatedir+y}
19503 withval=$with_templatedir; templatedir="$withval"
19509 # Check whether --with-baseconfigdir was given.
19510 if test ${with_baseconfigdir+y}
19512 withval=$with_baseconfigdir; baseconfigdir="$withval"
19518 # Check whether --with-configdir was given.
19519 if test ${with_configdir+y}
19521 withval=$with_configdir; configdir="$withval"
19527 # Check whether --with-xmldir was given.
19528 if test ${with_xmldir+y}
19530 withval=$with_xmldir; xmldir="$withval"
19536 case "$templatedir" in
19538 templatedir='${datadir}'/fontconfig/conf.avail
19543 case "$baseconfigdir" in
19545 baseconfigdir='${sysconfdir}'/fonts
19550 case "$configdir" in
19552 configdir='${BASECONFIGDIR}'/conf.d
19559 xmldir='${datadir}'/xml/fontconfig
19565 TEMPLATEDIR=${templatedir}
19566 BASECONFIGDIR=${baseconfigdir}
19567 CONFIGDIR=${configdir}
19577 # Thread-safety primitives
19580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stdatomic.h atomic primitives" >&5
19581 printf %s "checking stdatomic.h atomic primitives... " >&6; }
19582 if test ${fc_cv_have_stdatomic_atomic_primitives+y}
19584 printf %s "(cached) " >&6
19587 fc_cv_have_stdatomic_atomic_primitives=false
19588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19589 /* end confdefs.h. */
19591 #include <stdatomic.h>
19593 void memory_barrier (void) { atomic_thread_fence (memory_order_acq_rel); }
19594 int atomic_add (atomic_int *i) { return atomic_fetch_add_explicit (i, 1, memory_order_relaxed); }
19595 int mutex_trylock (atomic_flag *m) { return atomic_flag_test_and_set_explicit (m, memory_order_acquire); }
19596 void mutex_unlock (atomic_flag *m) { atomic_flag_clear_explicit (m, memory_order_release); }
19606 if ac_fn_c_try_link "$LINENO"
19608 fc_cv_have_stdatomic_atomic_primitives=true
19611 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19612 conftest$ac_exeext conftest.$ac_ext
19615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_stdatomic_atomic_primitives" >&5
19616 printf "%s\n" "$fc_cv_have_stdatomic_atomic_primitives" >&6; }
19617 if $fc_cv_have_stdatomic_atomic_primitives; then
19619 printf "%s\n" "#define HAVE_STDATOMIC_PRIMITIVES 1" >>confdefs.h
19623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
19624 printf %s "checking for Intel atomic primitives... " >&6; }
19625 if test ${fc_cv_have_intel_atomic_primitives+y}
19627 printf %s "(cached) " >&6
19630 fc_cv_have_intel_atomic_primitives=false
19631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19632 /* end confdefs.h. */
19634 void memory_barrier (void) { __sync_synchronize (); }
19635 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
19636 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
19637 void mutex_unlock (int *m) { __sync_lock_release (m); }
19647 if ac_fn_c_try_link "$LINENO"
19649 fc_cv_have_intel_atomic_primitives=true
19652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19653 conftest$ac_exeext conftest.$ac_ext
19656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
19657 printf "%s\n" "$fc_cv_have_intel_atomic_primitives" >&6; }
19658 if $fc_cv_have_intel_atomic_primitives; then
19660 printf "%s\n" "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
19664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
19665 printf %s "checking for Solaris atomic operations... " >&6; }
19666 if test ${fc_cv_have_solaris_atomic_ops+y}
19668 printf %s "(cached) " >&6
19671 fc_cv_have_solaris_atomic_ops=false
19672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19673 /* end confdefs.h. */
19675 #include <atomic.h>
19676 /* This requires Solaris Studio 12.2 or newer: */
19677 #include <mbarrier.h>
19678 void memory_barrier (void) { __machine_rw_barrier (); }
19679 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
19680 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
19690 if ac_fn_c_try_link "$LINENO"
19692 fc_cv_have_solaris_atomic_ops=true
19695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19696 conftest$ac_exeext conftest.$ac_ext
19699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
19700 printf "%s\n" "$fc_cv_have_solaris_atomic_ops" >&6; }
19701 if $fc_cv_have_solaris_atomic_ops; then
19703 printf "%s\n" "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
19707 if test "$os_win32" = no && ! $have_pthread; then
19708 ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
19709 if test "x$ac_cv_header_sched_h" = xyes
19711 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
19715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
19716 printf %s "checking for library containing sched_yield... " >&6; }
19717 if test ${ac_cv_search_sched_yield+y}
19719 printf %s "(cached) " >&6
19721 ac_func_search_save_LIBS=$LIBS
19722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19723 /* end confdefs.h. */
19725 /* Override any GCC internal prototype to avoid an error.
19726 Use char because int might match the return type of a GCC
19727 builtin and then its argument prototype would still apply. */
19728 char sched_yield ();
19732 return sched_yield ();
19737 for ac_lib in '' rt
19739 if test -z "$ac_lib"; then
19740 ac_res="none required"
19743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19745 if ac_fn_c_try_link "$LINENO"
19747 ac_cv_search_sched_yield=$ac_res
19749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19751 if test ${ac_cv_search_sched_yield+y}
19756 if test ${ac_cv_search_sched_yield+y}
19760 ac_cv_search_sched_yield=no
19762 rm conftest.$ac_ext
19763 LIBS=$ac_func_search_save_LIBS
19765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
19766 printf "%s\n" "$ac_cv_search_sched_yield" >&6; }
19767 ac_res=$ac_cv_search_sched_yield
19768 if test "$ac_res" != no
19770 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19772 printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19779 if test "$os_win32" = no; then
19783 ac_cpp='$CPP $CPPFLAGS'
19784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19790 # We used to check for pthread.h first, but this fails if pthread.h
19791 # requires special compiler flags (e.g. on True64 or Sequent).
19792 # It gets checked for in the link test anyway.
19794 # First of all, check if the user has set any of the PTHREAD_LIBS,
19795 # etcetera environment variables, and if threads linking works using
19797 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19798 save_CFLAGS="$CFLAGS"
19799 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19801 LIBS="$PTHREAD_LIBS $LIBS"
19802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19803 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
19804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19805 /* end confdefs.h. */
19807 /* Override any GCC internal prototype to avoid an error.
19808 Use char because int might match the return type of a GCC
19809 builtin and then its argument prototype would still apply. */
19810 char pthread_join ();
19814 return pthread_join ();
19819 if ac_fn_c_try_link "$LINENO"
19823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19824 conftest$ac_exeext conftest.$ac_ext
19825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19826 printf "%s\n" "$ax_pthread_ok" >&6; }
19827 if test x"$ax_pthread_ok" = xno; then
19832 CFLAGS="$save_CFLAGS"
19835 # We must check for the threads library under a number of different
19836 # names; the ordering is very important because some systems
19837 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19838 # libraries is broken (non-POSIX).
19840 # Create a list of thread flags to try. Items starting with a "-" are
19841 # C compiler flags, and other items are library names, except for "none"
19842 # which indicates that we try without any flags at all, and "pthread-config"
19843 # which is a program returning the flags for the Pth emulation library.
19845 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
19847 # The ordering *is* (sometimes) important. Some notes on the
19848 # individual items follow:
19850 # pthreads: AIX (must check this before -lpthread)
19851 # none: in case threads are in libc; should be tried before -Kthread and
19852 # other compiler flags to prevent continual compiler warnings
19853 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19854 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19855 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19856 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19857 # -pthreads: Solaris/gcc
19858 # -mthreads: Mingw32/gcc, Lynx/gcc
19859 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19860 # doesn't hurt to check since this sometimes defines pthreads too;
19861 # also defines -D_REENTRANT)
19862 # ... -mt is also the pthreads flag for HP/aCC
19863 # pthread: Linux, etcetera
19864 # --thread-safe: KAI C++
19865 # pthread-config: use pthread-config program (for GNU Pth library)
19870 # On Solaris (at least, for some versions), libc contains stubbed
19871 # (non-functional) versions of the pthreads routines, so link-based
19872 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19873 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19874 # a function called by this macro, so we could check for that, but
19875 # who knows whether they'll stub that too in a future libc.) So,
19876 # we'll just look for -pthreads and -lpthread first:
19878 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
19882 ax_pthread_flags="-pthread $ax_pthread_flags"
19885 # use libc stubs, don't link against libpthread, to allow
19887 ax_pthread_flags=""
19891 # Clang doesn't consider unrecognized options an error unless we specify
19892 # -Werror. We throw in some extra Clang-specific options to ensure that
19893 # this doesn't happen for GCC, which also accepts -Werror.
19895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
19896 printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
19897 save_CFLAGS="$CFLAGS"
19898 ax_pthread_extra_flags="-Werror"
19899 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
19900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19901 /* end confdefs.h. */
19911 if ac_fn_c_try_compile "$LINENO"
19913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19914 printf "%s\n" "yes" >&6; }
19916 ax_pthread_extra_flags=
19917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19918 printf "%s\n" "no" >&6; }
19920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19921 CFLAGS="$save_CFLAGS"
19923 if test x"$ax_pthread_ok" = xno; then
19924 for flag in $ax_pthread_flags; do
19928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19929 printf %s "checking whether pthreads work without any flags... " >&6; }
19933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19934 printf %s "checking whether pthreads work with $flag... " >&6; }
19935 PTHREAD_CFLAGS="$flag"
19939 # Extract the first word of "pthread-config", so it can be a program name with args.
19940 set dummy pthread-config; ac_word=$2
19941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19942 printf %s "checking for $ac_word... " >&6; }
19943 if test ${ac_cv_prog_ax_pthread_config+y}
19945 printf %s "(cached) " >&6
19947 if test -n "$ax_pthread_config"; then
19948 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19951 for as_dir in $PATH
19954 case $as_dir in #(((
19957 *) as_dir=$as_dir/ ;;
19959 for ac_exec_ext in '' $ac_executable_extensions; do
19960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19961 ac_cv_prog_ax_pthread_config="yes"
19962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19969 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19972 ax_pthread_config=$ac_cv_prog_ax_pthread_config
19973 if test -n "$ax_pthread_config"; then
19974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19975 printf "%s\n" "$ax_pthread_config" >&6; }
19977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19978 printf "%s\n" "no" >&6; }
19982 if test x"$ax_pthread_config" = xno; then continue; fi
19983 PTHREAD_CFLAGS="`pthread-config --cflags`"
19984 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19989 printf %s "checking for the pthreads library -l$flag... " >&6; }
19990 PTHREAD_LIBS="-l$flag"
19995 save_CFLAGS="$CFLAGS"
19996 LIBS="$PTHREAD_LIBS $LIBS"
19997 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19999 # Check for various functions. We must include pthread.h,
20000 # since some functions may be macros. (On the Sequent, we
20001 # need a special flag -Kthread to make this header compile.)
20002 # We check for pthread_join because it is in -lpthread on IRIX
20003 # while pthread_create is in libc. We check for pthread_attr_init
20004 # due to DEC craziness with -lpthreads. We check for
20005 # pthread_cleanup_push because it is one of the few pthread
20006 # functions on Solaris that doesn't have a non-functional libc stub.
20007 # We try pthread_create on general principles.
20008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20009 /* end confdefs.h. */
20010 #include <pthread.h>
20011 static void routine(void *a) { a = 0; }
20012 static void *start_routine(void *a) { return a; }
20016 pthread_t th; pthread_attr_t attr;
20017 pthread_create(&th, 0, start_routine, 0);
20018 pthread_join(th, 0);
20019 pthread_attr_init(&attr);
20020 pthread_cleanup_push(routine, 0);
20021 pthread_cleanup_pop(0) /* ; */
20026 if ac_fn_c_try_link "$LINENO"
20030 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20031 conftest$ac_exeext conftest.$ac_ext
20034 CFLAGS="$save_CFLAGS"
20036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20037 printf "%s\n" "$ax_pthread_ok" >&6; }
20038 if test "x$ax_pthread_ok" = xyes; then
20047 # Various other checks:
20048 if test "x$ax_pthread_ok" = xyes; then
20050 LIBS="$PTHREAD_LIBS $LIBS"
20051 save_CFLAGS="$CFLAGS"
20052 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20054 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20056 printf %s "checking for joinable pthread attribute... " >&6; }
20058 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20061 #include <pthread.h>
20065 int attr = $attr; return attr /* ; */
20070 if ac_fn_c_try_link "$LINENO"
20072 attr_name=$attr; break
20074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20075 conftest$ac_exeext conftest.$ac_ext
20077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
20078 printf "%s\n" "$attr_name" >&6; }
20079 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
20081 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
20085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
20086 printf %s "checking if more special flags are required for pthreads... " >&6; }
20089 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
20090 osf* | hpux*) flag="-D_REENTRANT";;
20092 if test "$GCC" = "yes"; then
20093 flag="-D_REENTRANT"
20095 # TODO: What about Clang on Solaris?
20096 flag="-mt -D_REENTRANT"
20100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
20101 printf "%s\n" "$flag" >&6; }
20102 if test "x$flag" != xno; then
20103 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20107 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20108 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
20110 printf %s "(cached) " >&6
20113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20114 /* end confdefs.h. */
20115 #include <pthread.h>
20119 int i = PTHREAD_PRIO_INHERIT;
20124 if ac_fn_c_try_link "$LINENO"
20126 ax_cv_PTHREAD_PRIO_INHERIT=yes
20128 ax_cv_PTHREAD_PRIO_INHERIT=no
20130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20131 conftest$ac_exeext conftest.$ac_ext
20134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20135 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20136 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
20139 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20144 CFLAGS="$save_CFLAGS"
20146 # More AIX lossage: compile with *_r variant
20147 if test "x$GCC" != xyes; then
20151 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20152 #handle absolute path differently from PATH based program lookup
20155 if as_fn_executable_p ${CC}_r
20157 PTHREAD_CC="${CC}_r"
20160 for ac_prog in ${CC}_r
20162 # Extract the first word of "$ac_prog", so it can be a program name with args.
20163 set dummy $ac_prog; ac_word=$2
20164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20165 printf %s "checking for $ac_word... " >&6; }
20166 if test ${ac_cv_prog_PTHREAD_CC+y}
20168 printf %s "(cached) " >&6
20170 if test -n "$PTHREAD_CC"; then
20171 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20174 for as_dir in $PATH
20177 case $as_dir in #(((
20180 *) as_dir=$as_dir/ ;;
20182 for ac_exec_ext in '' $ac_executable_extensions; do
20183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20184 ac_cv_prog_PTHREAD_CC="$ac_prog"
20185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20194 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20195 if test -n "$PTHREAD_CC"; then
20196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20197 printf "%s\n" "$PTHREAD_CC" >&6; }
20199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20200 printf "%s\n" "no" >&6; }
20204 test -n "$PTHREAD_CC" && break
20206 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20217 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20223 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20224 if test x"$ax_pthread_ok" = xyes; then
20232 ac_cpp='$CPP $CPPFLAGS'
20233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20239 if $have_pthread; then
20240 LIBS="$PTHREAD_LIBS $LIBS"
20241 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20244 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
20247 if $have_pthread; then
20249 HAVE_PTHREAD_FALSE='#'
20251 HAVE_PTHREAD_TRUE='#'
20252 HAVE_PTHREAD_FALSE=
20259 # Let people not build/install docs if they don't have docbook
20262 # Check whether --enable-docbook was given.
20263 if test ${enable_docbook+y}
20265 enableval=$enable_docbook;
20269 if test x$enable_docbook != xno; then
20270 # Extract the first word of "docbook2html", so it can be a program name with args.
20271 set dummy docbook2html; ac_word=$2
20272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20273 printf %s "checking for $ac_word... " >&6; }
20274 if test ${ac_cv_prog_HASDOCBOOK+y}
20276 printf %s "(cached) " >&6
20278 if test -n "$HASDOCBOOK"; then
20279 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
20281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20282 for as_dir in $PATH
20285 case $as_dir in #(((
20288 *) as_dir=$as_dir/ ;;
20290 for ac_exec_ext in '' $ac_executable_extensions; do
20291 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20292 ac_cv_prog_HASDOCBOOK="yes"
20293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20300 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
20303 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
20304 if test -n "$HASDOCBOOK"; then
20305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
20306 printf "%s\n" "$HASDOCBOOK" >&6; }
20308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20309 printf "%s\n" "no" >&6; }
20315 if test "x$HASDOCBOOK" = xyes; then
20317 USEDOCBOOK_FALSE='#'
20319 USEDOCBOOK_TRUE='#'
20326 # Check if docs exist or can be created
20328 if test x$HASDOCBOOK = xno; then
20329 if test -f $srcdir/doc/fonts-conf.5; then
20336 # Check whether --enable-docs was given.
20337 if test ${enable_docs+y}
20339 enableval=$enable_docs;
20341 enable_docs=$default_docs
20345 if test "x$enable_docs" = xyes; then
20347 ENABLE_DOCS_FALSE='#'
20349 ENABLE_DOCS_TRUE='#'
20354 if test "x$enable_docs" = xyes; then
20356 cat $srcdir/doc/*.fncs | awk '
20357 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
20358 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
20359 /^@@/ { done = 0; }' > $tmp
20360 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
20361 echo DOCMAN3 $DOCMAN3
20368 default_cache_build="yes"
20369 if test $cross_compiling = "yes"; then
20370 default_cache_build="no"
20372 # Check whether --enable-cache-build was given.
20373 if test ${enable_cache_build+y}
20375 enableval=$enable_cache_build;
20377 enable_cache_build=$default_cache_build
20381 if test "x$enable_cache_build" = xyes; then
20382 ENABLE_CACHE_BUILD_TRUE=
20383 ENABLE_CACHE_BUILD_FALSE='#'
20385 ENABLE_CACHE_BUILD_TRUE='#'
20386 ENABLE_CACHE_BUILD_FALSE=
20391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20392 printf %s "checking whether byte ordering is bigendian... " >&6; }
20393 if test ${ac_cv_c_bigendian+y}
20395 printf %s "(cached) " >&6
20397 ac_cv_c_bigendian=unknown
20398 # See if we're dealing with a universal compiler.
20399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400 /* end confdefs.h. */
20401 #ifndef __APPLE_CC__
20402 not a universal capable compiler
20407 if ac_fn_c_try_compile "$LINENO"
20410 # Check for potential -arch flags. It is not universal unless
20411 # there are at least two -arch flags with different values.
20414 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20415 if test -n "$ac_prev"; then
20417 i?86 | x86_64 | ppc | ppc64)
20418 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20421 ac_cv_c_bigendian=universal
20427 elif test "x$ac_word" = "x-arch"; then
20432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20433 if test $ac_cv_c_bigendian = unknown; then
20434 # See if sys/param.h defines the BYTE_ORDER macro.
20435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20436 /* end confdefs.h. */
20437 #include <sys/types.h>
20438 #include <sys/param.h>
20443 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20444 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20446 bogus endian macros
20453 if ac_fn_c_try_compile "$LINENO"
20455 # It does; now see whether it defined to BIG_ENDIAN or not.
20456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457 /* end confdefs.h. */
20458 #include <sys/types.h>
20459 #include <sys/param.h>
20464 #if BYTE_ORDER != BIG_ENDIAN
20472 if ac_fn_c_try_compile "$LINENO"
20474 ac_cv_c_bigendian=yes
20476 ac_cv_c_bigendian=no
20478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20482 if test $ac_cv_c_bigendian = unknown; then
20483 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20485 /* end confdefs.h. */
20486 #include <limits.h>
20491 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20492 bogus endian macros
20499 if ac_fn_c_try_compile "$LINENO"
20501 # It does; now see whether it defined to _BIG_ENDIAN or not.
20502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20503 /* end confdefs.h. */
20504 #include <limits.h>
20509 #ifndef _BIG_ENDIAN
20517 if ac_fn_c_try_compile "$LINENO"
20519 ac_cv_c_bigendian=yes
20521 ac_cv_c_bigendian=no
20523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20527 if test $ac_cv_c_bigendian = unknown; then
20528 # Compile a test program.
20529 if test "$cross_compiling" = yes
20531 # Try to guess by grepping values from an object file.
20532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20533 /* end confdefs.h. */
20534 unsigned short int ascii_mm[] =
20535 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20536 unsigned short int ascii_ii[] =
20537 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20538 int use_ascii (int i) {
20539 return ascii_mm[i] + ascii_ii[i];
20541 unsigned short int ebcdic_ii[] =
20542 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20543 unsigned short int ebcdic_mm[] =
20544 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20545 int use_ebcdic (int i) {
20546 return ebcdic_mm[i] + ebcdic_ii[i];
20553 return use_ascii (foo) == use_ebcdic (foo);
20558 if ac_fn_c_try_compile "$LINENO"
20560 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20561 ac_cv_c_bigendian=yes
20563 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20564 if test "$ac_cv_c_bigendian" = unknown; then
20565 ac_cv_c_bigendian=no
20567 # finding both strings is unlikely to happen, but who knows?
20568 ac_cv_c_bigendian=unknown
20572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575 /* end confdefs.h. */
20576 $ac_includes_default
20581 /* Are we little or big endian? From Harbison&Steele. */
20585 char c[sizeof (long int)];
20588 return u.c[sizeof (long int) - 1] == 1;
20594 if ac_fn_c_try_run "$LINENO"
20596 ac_cv_c_bigendian=no
20598 ac_cv_c_bigendian=yes
20600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20601 conftest.$ac_objext conftest.beam conftest.$ac_ext
20606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20607 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
20608 case $ac_cv_c_bigendian in #(
20610 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
20616 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20620 as_fn_error $? "unknown endianness
20621 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20624 # The cast to long int works around a bug in the HP C Compiler
20625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20627 # This bug is HP SR number 8606223364.
20628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20629 printf %s "checking size of void *... " >&6; }
20630 if test ${ac_cv_sizeof_void_p+y}
20632 printf %s "(cached) " >&6
20634 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
20638 if test "$ac_cv_type_void_p" = yes; then
20639 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20640 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20641 as_fn_error 77 "cannot compute sizeof (void *)
20642 See \`config.log' for more details" "$LINENO" 5; }
20644 ac_cv_sizeof_void_p=0
20649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20650 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
20654 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
20657 # The cast to long int works around a bug in the HP C Compiler,
20658 # see AC_CHECK_SIZEOF for more information.
20659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
20660 printf %s "checking alignment of double... " >&6; }
20661 if test ${ac_cv_alignof_double+y}
20663 printf %s "(cached) " >&6
20665 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
20666 typedef struct { char x; double y; } ac__type_alignof_;"
20670 if test "$ac_cv_type_double" = yes; then
20671 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20672 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20673 as_fn_error 77 "cannot compute alignment of double
20674 See \`config.log' for more details" "$LINENO" 5; }
20676 ac_cv_alignof_double=0
20681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
20682 printf "%s\n" "$ac_cv_alignof_double" >&6; }
20686 printf "%s\n" "#define ALIGNOF_DOUBLE $ac_cv_alignof_double" >>confdefs.h
20689 # The cast to long int works around a bug in the HP C Compiler,
20690 # see AC_CHECK_SIZEOF for more information.
20691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
20692 printf %s "checking alignment of void *... " >&6; }
20693 if test ${ac_cv_alignof_void_p+y}
20695 printf %s "(cached) " >&6
20697 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p" "$ac_includes_default
20698 typedef struct { char x; void * y; } ac__type_alignof_;"
20702 if test "$ac_cv_type_void_p" = yes; then
20703 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20704 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20705 as_fn_error 77 "cannot compute alignment of void *
20706 See \`config.log' for more details" "$LINENO" 5; }
20708 ac_cv_alignof_void_p=0
20713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
20714 printf "%s\n" "$ac_cv_alignof_void_p" >&6; }
20718 printf "%s\n" "#define ALIGNOF_VOID_P $ac_cv_alignof_void_p" >>confdefs.h
20727 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-conflist/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml its/Makefile po/Makefile.in po-conf/Makefile.in test/Makefile fontconfig.pc fontconfig-zip"
20729 cat >confcache <<\_ACEOF
20730 # This file is a shell script that caches the results of configure
20731 # tests run on this system so they can be shared between configure
20732 # scripts and configure runs, see configure's option --config-cache.
20733 # It is not useful on other systems. If it contains results you don't
20734 # want to keep, you may remove or edit it.
20736 # config.status only pays attention to the cache file if you give it
20737 # the --recheck option to rerun configure.
20739 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20740 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20741 # following values.
20745 # The following way of writing the cache mishandles newlines in values,
20746 # but we know of no workaround that is simple, portable, and efficient.
20747 # So, we kill variables containing newlines.
20748 # Ultrix sh set writes to stderr and can't be redirected directly,
20749 # and sets the high bit in the cache file unless we assign to the vars.
20751 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20752 eval ac_val=\$$ac_var
20756 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20757 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20760 _ | IFS | as_nl) ;; #(
20761 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20762 *) { eval $ac_var=; unset $ac_var;} ;;
20768 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20769 *${as_nl}ac_space=\ *)
20770 # `set' does not quote correctly, so add quotes: double-quote
20771 # substitution turns \\\\ into \\, and sed turns \\ into \.
20774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20777 # `set' quotes correctly as required by POSIX, so do not add quotes.
20778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20787 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20789 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20791 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20792 if test -w "$cache_file"; then
20793 if test "x$cache_file" != "x/dev/null"; then
20794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20795 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20796 if test ! -f "$cache_file" || test -h "$cache_file"; then
20797 cat confcache >"$cache_file"
20799 case $cache_file in #(
20801 mv -f confcache "$cache_file"$$ &&
20802 mv -f "$cache_file"$$ "$cache_file" ;; #(
20804 mv -f confcache "$cache_file" ;;
20809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20810 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20815 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20816 # Let make expand exec_prefix.
20817 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20819 DEFS=-DHAVE_CONFIG_H
20824 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20825 # 1. Remove the extension, and $U if already installed.
20826 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20827 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20828 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20829 # will be set to the directory where LIBOBJS objects are built.
20830 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20831 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20833 LIBOBJS=$ac_libobjs
20835 LTLIBOBJS=$ac_ltlibobjs
20838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20839 printf %s "checking that generated files are newer than configure... " >&6; }
20840 if test -n "$am_sleep_pid"; then
20841 # Hide warnings about reused PIDs.
20842 wait $am_sleep_pid 2>/dev/null
20844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20845 printf "%s\n" "done" >&6; }
20846 if test -n "$EXEEXT"; then
20848 am__EXEEXT_FALSE='#'
20850 am__EXEEXT_TRUE='#'
20854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20855 as_fn_error $? "conditional \"AMDEP\" was never defined.
20856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20859 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20862 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
20863 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
20864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20866 if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
20867 as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
20868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20870 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
20871 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
20872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20874 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
20875 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
20876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20878 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
20879 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
20880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20882 if test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE}" && test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE}"; then
20883 as_fn_error $? "conditional \"FREETYPE_PCF_LONG_FAMILY_NAMES\" was never defined.
20884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20886 if test -z "${ENABLE_JSONC_TRUE}" && test -z "${ENABLE_JSONC_FALSE}"; then
20887 as_fn_error $? "conditional \"ENABLE_JSONC\" was never defined.
20888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20890 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
20891 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
20892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20894 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
20895 as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
20896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20898 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
20899 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
20900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20902 if test -z "${ENABLE_CACHE_BUILD_TRUE}" && test -z "${ENABLE_CACHE_BUILD_FALSE}"; then
20903 as_fn_error $? "conditional \"ENABLE_CACHE_BUILD\" was never defined.
20904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20908 : "${CONFIG_STATUS=./config.status}"
20910 ac_clean_files_save=$ac_clean_files
20911 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20913 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20915 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20917 # Generated by $as_me.
20918 # Run this file to recreate the current configuration.
20919 # Compiler output produced by configure, useful for debugging
20920 # configure, is in config.log if it exists.
20923 ac_cs_recheck=false
20926 SHELL=\${CONFIG_SHELL-$SHELL}
20929 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20930 ## -------------------- ##
20931 ## M4sh Initialization. ##
20932 ## -------------------- ##
20934 # Be more Bourne compatible
20935 DUALCASE=1; export DUALCASE # for MKS sh
20937 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20942 # is contrary to our usage. Disable this feature.
20943 alias -g '${1+"$@"}'='"$@"'
20944 setopt NO_GLOB_SUBST
20946 case `(set -o) 2>/dev/null` in #(
20956 # Reset variables that may have inherited troublesome values from
20959 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20960 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20961 # side effect of setting IFS to empty, thus disabling word splitting.)
20962 # Quoting is to prevent editors from complaining about space-tab.
20972 # Ensure predictable behavior from utilities with locale-dependent output.
20978 # We cannot yet rely on "unset" to work, but we need these variables
20979 # to be unset--not just set to an empty or harmless value--now, to
20980 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20981 # also avoids known problems related to "unset" and subshell syntax
20982 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20983 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20984 do eval test \${$as_var+y} \
20985 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20988 # Ensure that fds 0, 1, and 2 are open.
20989 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20990 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20991 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20993 # The user is always right.
20994 if ${PATH_SEPARATOR+false} :; then
20996 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20997 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21003 # Find who we are. Look in the path if we contain no directory separator.
21006 *[\\/]* ) as_myself=$0 ;;
21007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21008 for as_dir in $PATH
21011 case $as_dir in #(((
21014 *) as_dir=$as_dir/ ;;
21016 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21022 # We did not find ourselves, most probably we were run as `sh COMMAND'
21023 # in which case we are not to be found in the path.
21024 if test "x$as_myself" = x; then
21027 if test ! -f "$as_myself"; then
21028 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21034 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21035 # ----------------------------------------
21036 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21037 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21038 # script with STATUS, using 1 if that was 0.
21041 as_status=$1; test $as_status -eq 0 && as_status=1
21043 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21046 printf "%s\n" "$as_me: error: $2" >&2
21047 as_fn_exit $as_status
21052 # as_fn_set_status STATUS
21053 # -----------------------
21054 # Set $? to STATUS, without forking.
21055 as_fn_set_status ()
21058 } # as_fn_set_status
21060 # as_fn_exit STATUS
21061 # -----------------
21062 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21066 as_fn_set_status $1
21072 # Portably unset VAR.
21075 { eval $1=; unset $1;}
21077 as_unset=as_fn_unset
21079 # as_fn_append VAR VALUE
21080 # ----------------------
21081 # Append the text in VALUE to the end of the definition contained in VAR. Take
21082 # advantage of any shell optimizations that allow amortized linear growth over
21083 # repeated appends, instead of the typical quadratic growth present in naive
21085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21087 eval 'as_fn_append ()
21098 # as_fn_arith ARG...
21099 # ------------------
21100 # Perform arithmetic evaluation on the ARGs, and store the result in the
21101 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21102 # must be portable across $(()) and expr.
21103 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21105 eval 'as_fn_arith ()
21112 as_val=`expr "$@" || test $? -eq 1`
21117 if expr a : '\(a\)' >/dev/null 2>&1 &&
21118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21125 as_basename=basename
21130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21136 as_me=`$as_basename -- "$0" ||
21137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21138 X"$0" : 'X\(//\)$' \| \
21139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21140 printf "%s\n" X/"$0" |
21141 sed '/^.*\/\([^/][^/]*\)\/*$/{
21155 # Avoid depending upon Character Ranges.
21156 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21157 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21158 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21159 as_cr_digits='0123456789'
21160 as_cr_alnum=$as_cr_Letters$as_cr_digits
21163 # Determine whether it's possible to make 'echo' print without a newline.
21164 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21165 # for compatibility with existing Makefiles.
21166 ECHO_C= ECHO_N= ECHO_T=
21167 case `echo -n x` in #(((((
21169 case `echo 'xy\c'` in
21170 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21172 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21179 # For backward compatibility with old third-party macros, we provide
21180 # the shell variables $as_echo and $as_echo_n. New code should use
21181 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21182 as_echo='printf %s\n'
21183 as_echo_n='printf %s'
21185 rm -f conf$$ conf$$.exe conf$$.file
21186 if test -d conf$$.dir; then
21187 rm -f conf$$.dir/conf$$.file
21190 mkdir conf$$.dir 2>/dev/null
21192 if (echo >conf$$.file) 2>/dev/null; then
21193 if ln -s conf$$.file conf$$ 2>/dev/null; then
21195 # ... but there are two gotchas:
21196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21198 # In both cases, we have to default to `cp -pR'.
21199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21201 elif ln conf$$.file conf$$ 2>/dev/null; then
21209 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21210 rmdir conf$$.dir 2>/dev/null
21215 # Create "$as_dir" as a directory, including parents if necessary.
21220 -*) as_dir=./$as_dir;;
21222 test -d "$as_dir" || eval $as_mkdir_p || {
21226 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21227 *) as_qdir=$as_dir;;
21229 as_dirs="'$as_qdir' $as_dirs"
21230 as_dir=`$as_dirname -- "$as_dir" ||
21231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21232 X"$as_dir" : 'X\(//\)[^/]' \| \
21233 X"$as_dir" : 'X\(//\)$' \| \
21234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21235 printf "%s\n" X"$as_dir" |
21236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21240 /^X\(\/\/\)[^/].*/{
21253 test -d "$as_dir" && break
21255 test -z "$as_dirs" || eval "mkdir $as_dirs"
21256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21260 if mkdir -p . 2>/dev/null; then
21261 as_mkdir_p='mkdir -p "$as_dir"'
21263 test -d ./-p && rmdir ./-p
21268 # as_fn_executable_p FILE
21269 # -----------------------
21270 # Test if FILE is an executable regular file.
21271 as_fn_executable_p ()
21273 test -f "$1" && test -x "$1"
21274 } # as_fn_executable_p
21275 as_test_x='test -x'
21276 as_executable_p=as_fn_executable_p
21278 # Sed expression to map a string onto a valid CPP name.
21279 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21281 # Sed expression to map a string onto a valid variable name.
21282 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21286 ## ----------------------------------- ##
21287 ## Main body of $CONFIG_STATUS script. ##
21288 ## ----------------------------------- ##
21290 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21293 # Save the log message, to keep $0 and so on meaningful, and to
21294 # report actual input values of CONFIG_FILES etc. instead of their
21295 # values after options handling.
21297 This file was extended by fontconfig $as_me 2.14.2, which was
21298 generated by GNU Autoconf 2.71. Invocation command line was
21300 CONFIG_FILES = $CONFIG_FILES
21301 CONFIG_HEADERS = $CONFIG_HEADERS
21302 CONFIG_LINKS = $CONFIG_LINKS
21303 CONFIG_COMMANDS = $CONFIG_COMMANDS
21306 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21311 case $ac_config_files in *"
21312 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21315 case $ac_config_headers in *"
21316 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21321 # Files that config.status was made for.
21322 config_files="$ac_config_files"
21323 config_headers="$ac_config_headers"
21324 config_commands="$ac_config_commands"
21328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21330 \`$as_me' instantiates files and other configuration actions
21331 from templates according to the current configuration. Unless the files
21332 and actions are specified as TAGs, all are instantiated by default.
21334 Usage: $0 [OPTION]... [TAG]...
21336 -h, --help print this help, then exit
21337 -V, --version print version number and configuration settings, then exit
21338 --config print configuration, then exit
21339 -q, --quiet, --silent
21340 do not print progress messages
21341 -d, --debug don't remove temporary files
21342 --recheck update $as_me by reconfiguring in the same conditions
21343 --file=FILE[:TEMPLATE]
21344 instantiate the configuration file FILE
21345 --header=FILE[:TEMPLATE]
21346 instantiate the configuration header FILE
21348 Configuration files:
21351 Configuration headers:
21354 Configuration commands:
21357 Report bugs to <https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new>."
21360 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21361 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21363 ac_cs_config='$ac_cs_config_escaped'
21365 fontconfig config.status 2.14.2
21366 configured by $0, generated by GNU Autoconf 2.71,
21367 with options \\"\$ac_cs_config\\"
21369 Copyright (C) 2021 Free Software Foundation, Inc.
21370 This config.status script is free software; the Free Software Foundation
21371 gives unlimited permission to copy, distribute and modify it."
21378 test -n "\$AWK" || AWK=awk
21381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21382 # The default lists apply if the user does not specify any file.
21388 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21389 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21393 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21405 # Handling of the options.
21406 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21408 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21409 printf "%s\n" "$ac_cs_version"; exit ;;
21410 --config | --confi | --conf | --con | --co | --c )
21411 printf "%s\n" "$ac_cs_config"; exit ;;
21412 --debug | --debu | --deb | --de | --d | -d )
21414 --file | --fil | --fi | --f )
21417 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21418 '') as_fn_error $? "missing file argument" ;;
21420 as_fn_append CONFIG_FILES " '$ac_optarg'"
21421 ac_need_defaults=false;;
21422 --header | --heade | --head | --hea )
21425 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21427 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21428 ac_need_defaults=false;;
21430 # Conflict between --help and --header
21431 as_fn_error $? "ambiguous option: \`$1'
21432 Try \`$0 --help' for more information.";;
21433 --help | --hel | -h )
21434 printf "%s\n" "$ac_cs_usage"; exit ;;
21435 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21436 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21439 # This is an error.
21440 -*) as_fn_error $? "unrecognized option: \`$1'
21441 Try \`$0 --help' for more information." ;;
21443 *) as_fn_append ac_config_targets " $1"
21444 ac_need_defaults=false ;;
21450 ac_configure_extra_args=
21452 if $ac_cs_silent; then
21454 ac_configure_extra_args="$ac_configure_extra_args --silent"
21458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21459 if \$ac_cs_recheck; then
21460 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21462 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21463 CONFIG_SHELL='$SHELL'
21464 export CONFIG_SHELL
21469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21473 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21474 ## Running $as_me. ##
21476 printf "%s\n" "$ac_log"
21480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21484 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21487 # The HP-UX ksh and POSIX shell print the target directory to stdout
21488 # if CDPATH is set.
21489 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21491 sed_quote_subst='$sed_quote_subst'
21492 double_quote_subst='$double_quote_subst'
21493 delay_variable_subst='$delay_variable_subst'
21494 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21495 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21496 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21497 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21498 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21499 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21500 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21501 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21502 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21503 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21504 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21505 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21506 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21507 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21508 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21509 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21510 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21511 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21512 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21513 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21514 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21515 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21516 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21517 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21518 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21519 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21520 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21521 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21522 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21523 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21524 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21525 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21526 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21527 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21528 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21529 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21530 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21531 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21532 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21533 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21534 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21535 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21536 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21537 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21538 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21539 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21540 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21541 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21542 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21543 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21544 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21545 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21546 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21547 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21548 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21549 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21550 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21551 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21552 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21553 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21554 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21555 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"`'
21556 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21557 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21558 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21559 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21560 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21561 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21562 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21563 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21564 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21565 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21566 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21567 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21568 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21569 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21570 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21571 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21572 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21573 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21574 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21575 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21576 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21577 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21578 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21579 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21580 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21581 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21582 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21583 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21584 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21585 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21586 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21587 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21588 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21589 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21590 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21591 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21592 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21593 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21594 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21595 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21596 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21597 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21598 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21599 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21600 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21601 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21602 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21603 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21604 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21605 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21606 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21607 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21608 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21609 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21610 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21611 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21612 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21613 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21614 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21615 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21616 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21617 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21618 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21619 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21620 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21621 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21622 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21623 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21624 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21625 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21626 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21627 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21628 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21629 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21630 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21631 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21634 LTCFLAGS='$LTCFLAGS'
21635 compiler='$compiler_DEFAULT'
21637 # A function that is used when there is no print builtin or printf.
21638 func_fallback_echo ()
21640 eval 'cat <<_LTECHO_EOF
21645 # Quote evaled strings.
21663 deplibs_check_method \
21667 sharedlib_from_linklib_cmd \
21669 archiver_list_spec \
21675 lt_cv_sys_global_symbol_pipe \
21676 lt_cv_sys_global_symbol_to_cdecl \
21677 lt_cv_sys_global_symbol_to_import \
21678 lt_cv_sys_global_symbol_to_c_name_address \
21679 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21680 lt_cv_nm_interface \
21681 nm_file_list_spec \
21682 lt_cv_truncate_bin \
21683 lt_prog_compiler_no_builtin_flag \
21684 lt_prog_compiler_pic \
21685 lt_prog_compiler_wl \
21686 lt_prog_compiler_static \
21687 lt_cv_prog_compiler_c_o \
21696 export_dynamic_flag_spec \
21697 whole_archive_flag_spec \
21698 compiler_needs_object \
21700 allow_undefined_flag \
21701 no_undefined_flag \
21702 hardcode_libdir_flag_spec \
21703 hardcode_libdir_separator \
21707 variables_saved_for_relink \
21709 library_names_spec \
21711 install_override_mode \
21715 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21716 *[\\\\\\\`\\"\\\$]*)
21717 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21720 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21725 # Double-quote double-evaled strings.
21726 for var in reload_cmds \
21727 old_postinstall_cmds \
21728 old_postuninstall_cmds \
21730 extract_expsyms_cmds \
21731 old_archive_from_new_cmds \
21732 old_archive_from_expsyms_cmds \
21734 archive_expsym_cmds \
21736 module_expsym_cmds \
21737 export_symbols_cmds \
21741 postuninstall_cmds \
21743 sys_lib_search_path_spec \
21744 configure_time_dlsearch_path \
21745 configure_time_lt_sys_library_path; do
21746 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21747 *[\\\\\\\`\\"\\\$]*)
21748 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21751 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21756 ac_aux_dir='$ac_aux_dir'
21758 # See if we are running on zsh, and set the options that allow our
21759 # commands through without removal of \ escapes INIT.
21760 if test -n "\${ZSH_VERSION+set}"; then
21761 setopt NO_GLOB_SUBST
21772 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21773 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21774 # from automake < 1.5.
21775 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21776 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21777 LINGUAS="${LINGUAS-%UNSET%}"
21779 # variables for create stdint.h replacement
21782 ac_stdint_h="$ac_stdint_h"
21783 _ac_stdint_h=`printf "%s\n" "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
21784 ac_cv_stdint_message="$ac_cv_stdint_message"
21785 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
21786 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
21787 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
21788 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
21789 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
21790 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
21791 ac_cv_char_data_model="$ac_cv_char_data_model"
21792 ac_cv_long_data_model="$ac_cv_long_data_model"
21793 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
21794 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
21795 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
21800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21802 # Handling of arguments.
21803 for ac_config_target in $ac_config_targets
21805 case $ac_config_target in
21806 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21807 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21808 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21809 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
21810 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
21811 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21812 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
21813 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
21814 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
21815 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21816 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
21817 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
21818 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
21819 "fc-conflist/Makefile") CONFIG_FILES="$CONFIG_FILES fc-conflist/Makefile" ;;
21820 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
21821 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
21822 "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
21823 "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
21824 "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
21825 "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
21826 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21827 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
21828 "its/Makefile") CONFIG_FILES="$CONFIG_FILES its/Makefile" ;;
21829 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21830 "po-conf/Makefile.in") CONFIG_FILES="$CONFIG_FILES po-conf/Makefile.in" ;;
21831 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21832 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
21833 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
21835 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21840 # If the user did not use the arguments to specify the items to instantiate,
21841 # then the envvar interface is used. Set only those that are not.
21842 # We use the long form for the default assignment because of an extremely
21843 # bizarre bug on SunOS 4.1.3.
21844 if $ac_need_defaults; then
21845 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21846 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21847 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21850 # Have a temporary directory for convenience. Make it in the build tree
21851 # simply because there is no reason against having it here, and in addition,
21852 # creating and moving files from /tmp can sometimes cause problems.
21853 # Hook for its removal unless debugging.
21854 # Note that there is a small window in which the directory will not be cleaned:
21855 # after its creation but before its name has been assigned to `$tmp'.
21859 trap 'exit_status=$?
21860 : "${ac_tmp:=$tmp}"
21861 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21863 trap 'as_fn_exit 1' 1 2 13 15
21865 # Create a (secure) tmp directory for tmp files.
21868 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21872 tmp=./conf$$-$RANDOM
21873 (umask 077 && mkdir "$tmp")
21874 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21877 # Set up the scripts for CONFIG_FILES section.
21878 # No need to generate them if there are no CONFIG_FILES.
21879 # This happens for instance with `./config.status config.h'.
21880 if test -n "$CONFIG_FILES"; then
21883 ac_cr=`echo X | tr X '\015'`
21884 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21885 # But we know of no other shell where ac_cr would be empty at this
21886 # point, so we can use a bashism as a fallback.
21887 if test "x$ac_cr" = x; then
21888 eval ac_cr=\$\'\\r\'
21890 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21891 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21894 ac_cs_awk_cr=$ac_cr
21897 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21902 echo "cat >conf$$subs.awk <<_ACEOF" &&
21903 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21905 } >conf$$subs.sh ||
21906 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21907 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21909 for ac_last_try in false false false false false :; do
21910 . ./conf$$subs.sh ||
21911 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21913 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21914 if test $ac_delim_n = $ac_delim_num; then
21916 elif $ac_last_try; then
21917 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21922 rm -f conf$$subs.sh
21924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21925 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21929 s/^/S["/; s/!.*/"]=/
21939 s/\(.\{148\}\)..*/\1/
21941 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21946 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21953 s/\(.\{148\}\)..*/\1/
21955 s/["\\]/\\&/g; s/^/"/; s/$/"/
21959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21964 ' <conf$$subs.awk | sed '
21969 ' >>$CONFIG_STATUS || ac_write_fail=1
21970 rm -f conf$$subs.awk
21971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21973 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21974 for (key in S) S_is_set[key] = 1
21980 nfields = split(line, field, "@")
21982 len = length(field[1])
21983 for (i = 2; i < nfields; i++) {
21985 keylen = length(key)
21986 if (S_is_set[key]) {
21988 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21989 len += length(value) + length(field[++i])
22000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22001 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22002 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22005 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22006 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22009 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22010 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22011 # trailing colons and then remove the whole line if VPATH becomes empty
22012 # (actually we leave an empty line to preserve line numbers).
22013 if test "x$srcdir" = x.; then
22014 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22033 fi # test -n "$CONFIG_FILES"
22035 # Set up the scripts for CONFIG_HEADERS section.
22036 # No need to generate them if there are no CONFIG_HEADERS.
22037 # This happens for instance with `./config.status Makefile'.
22038 if test -n "$CONFIG_HEADERS"; then
22039 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22043 # Transform confdefs.h into an awk script `defines.awk', embedded as
22044 # here-document in config.status, that substitutes the proper values into
22045 # config.h.in to produce config.h.
22047 # Create a delimiter string that does not exist in confdefs.h, to ease
22048 # handling of long lines.
22050 for ac_last_try in false false :; do
22051 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22052 if test -z "$ac_tt"; then
22054 elif $ac_last_try; then
22055 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22057 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22061 # For the awk script, D is an array of macro values keyed by name,
22062 # likewise P contains macro parameters if any. Preserve backslash
22063 # newline sequences.
22065 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22067 s/.\{148\}/&'"$ac_delim"'/g
22070 s/^[ ]*#[ ]*define[ ][ ]*/ /
22077 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22079 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22083 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22084 D["\1"]=" \3\\\\\\n"\\/p
22086 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22091 s/.\{148\}/&'"$ac_delim"'/g
22096 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22099 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22101 ' <confdefs.h | sed '
22102 s/'"$ac_delim"'/"\\\
22103 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22106 for (key in D) D_is_set[key] = 1
22109 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22111 split(line, arg, " ")
22112 if (arg[1] == "#") {
22116 defundef = substr(arg[1], 2)
22119 split(mac1, mac2, "(") #)
22121 prefix = substr(line, 1, index(line, defundef) - 1)
22122 if (D_is_set[macro]) {
22123 # Preserve the white space surrounding the "#".
22124 print prefix "define", macro P[macro] D[macro]
22127 # Replace #undef with comments. This is necessary, for example,
22128 # in the case of _POSIX_SOURCE, which is predefined and required
22129 # on some systems where configure will not decide to define it.
22130 if (defundef == "undef") {
22131 print "/*", prefix defundef, macro, "*/"
22139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22140 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22141 fi # test -n "$CONFIG_HEADERS"
22144 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22149 :[FHLC]) ac_mode=$ac_tag; continue;;
22151 case $ac_mode$ac_tag in
22153 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22154 :[FH]-) ac_tag=-:-;;
22155 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22172 -) ac_f="$ac_tmp/stdin";;
22173 *) # Look for the file first in the build tree, then in the source tree
22174 # (if the path is not absolute). The absolute path cannot be DOS-style,
22175 # because $ac_f cannot contain `:'.
22179 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22181 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22183 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22184 as_fn_append ac_file_inputs " '$ac_f'"
22187 # Let's still pretend it is `configure' which instantiates (i.e., don't
22188 # use $as_me), people would be surprised to read:
22189 # /* config.h. Generated by config.status. */
22190 configure_input='Generated from '`
22191 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22193 if test x"$ac_file" != x-; then
22194 configure_input="$ac_file. $configure_input"
22195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22196 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22198 # Neutralize special characters interpreted by sed in replacement strings.
22199 case $configure_input in #(
22200 *\&* | *\|* | *\\* )
22201 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22202 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22203 *) ac_sed_conf_input=$configure_input;;
22207 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22208 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22213 ac_dir=`$as_dirname -- "$ac_file" ||
22214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22215 X"$ac_file" : 'X\(//\)[^/]' \| \
22216 X"$ac_file" : 'X\(//\)$' \| \
22217 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22218 printf "%s\n" X"$ac_file" |
22219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22223 /^X\(\/\/\)[^/].*/{
22236 as_dir="$ac_dir"; as_fn_mkdir_p
22240 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22242 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22243 # A ".." for each directory in $ac_dir_suffix.
22244 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22245 case $ac_top_builddir_sub in
22246 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22247 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22250 ac_abs_top_builddir=$ac_pwd
22251 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22252 # for backward compatibility:
22253 ac_top_builddir=$ac_top_build_prefix
22256 .) # We are building in place.
22258 ac_top_srcdir=$ac_top_builddir_sub
22259 ac_abs_top_srcdir=$ac_pwd ;;
22260 [\\/]* | ?:[\\/]* ) # Absolute name.
22261 ac_srcdir=$srcdir$ac_dir_suffix;
22262 ac_top_srcdir=$srcdir
22263 ac_abs_top_srcdir=$srcdir ;;
22264 *) # Relative name.
22265 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22266 ac_top_srcdir=$ac_top_build_prefix$srcdir
22267 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22269 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22279 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22280 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22282 ac_MKDIR_P=$MKDIR_P
22284 [\\/$]* | ?:[\\/]* ) ;;
22285 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22290 # If the template does not know about datarootdir, expand it.
22291 # FIXME: This hack should be removed a few years after 2.60.
22292 ac_datarootdir_hack=; ac_datarootdir_seen=
22303 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22304 *datarootdir*) ac_datarootdir_seen=yes;;
22305 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22307 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22310 ac_datarootdir_hack='
22311 s&@datadir@&$datadir&g
22312 s&@docdir@&$docdir&g
22313 s&@infodir@&$infodir&g
22314 s&@localedir@&$localedir&g
22315 s&@mandir@&$mandir&g
22316 s&\\\${datarootdir}&$datarootdir&g' ;;
22320 # Neutralize VPATH when `$srcdir' = `.'.
22321 # Shell code in configure.ac might set extrasub.
22322 # FIXME: do we really want to maintain this feature?
22323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22324 ac_sed_extra="$ac_vpsub
22327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22330 s|@configure_input@|$ac_sed_conf_input|;t t
22331 s&@top_builddir@&$ac_top_builddir_sub&;t t
22332 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22333 s&@srcdir@&$ac_srcdir&;t t
22334 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22335 s&@top_srcdir@&$ac_top_srcdir&;t t
22336 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22337 s&@builddir@&$ac_builddir&;t t
22338 s&@abs_builddir@&$ac_abs_builddir&;t t
22339 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22340 s&@INSTALL@&$ac_INSTALL&;t t
22341 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22342 $ac_datarootdir_hack
22344 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22345 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22347 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22348 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22349 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22350 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22352 which seems to be undefined. Please make sure it is defined" >&5
22353 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22354 which seems to be undefined. Please make sure it is defined" >&2;}
22356 rm -f "$ac_tmp/stdin"
22358 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22359 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22361 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22367 if test x"$ac_file" != x-; then
22369 printf "%s\n" "/* $configure_input */" >&1 \
22370 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22371 } >"$ac_tmp/config.h" \
22372 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22373 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22375 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22378 mv "$ac_tmp/config.h" "$ac_file" \
22379 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22382 printf "%s\n" "/* $configure_input */" >&1 \
22383 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22384 || as_fn_error $? "could not create -" "$LINENO" 5
22386 # Compute "$ac_file"'s index in $config_headers.
22389 for _am_header in $config_headers :; do
22390 case $_am_header in
22391 $_am_arg | $_am_arg:* )
22394 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22397 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22398 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22399 X"$_am_arg" : 'X\(//\)[^/]' \| \
22400 X"$_am_arg" : 'X\(//\)$' \| \
22401 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22402 printf "%s\n" X"$_am_arg" |
22403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22407 /^X\(\/\/\)[^/].*/{
22419 s/.*/./; q'`/stamp-h$_am_stamp_count
22422 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22423 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22428 case $ac_file$ac_mode in
22429 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22430 # Older Autoconf quotes --file arguments for eval, but not when files
22431 # are listed without --file. Let's play safe and only enable the eval
22432 # if we detect the quoting.
22433 # TODO: see whether this extra hack can be removed once we start
22434 # requiring Autoconf 2.70 or later.
22435 case $CONFIG_FILES in #(
22437 eval set x "$CONFIG_FILES" ;; #(
22439 set x $CONFIG_FILES ;; #(
22444 # Used to flag and report bootstrapping failures.
22448 # Strip MF so we end up with the name of the file.
22449 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22450 # Check whether this is an Automake generated Makefile which includes
22451 # dependency-tracking related rules and includes.
22452 # Grep'ing the whole file directly is not great: AIX grep has a line
22453 # limit of 2048, but all sed's we know have understand at least 4000.
22454 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22456 am_dirpart=`$as_dirname -- "$am_mf" ||
22457 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22458 X"$am_mf" : 'X\(//\)[^/]' \| \
22459 X"$am_mf" : 'X\(//\)$' \| \
22460 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22461 printf "%s\n" X"$am_mf" |
22462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22466 /^X\(\/\/\)[^/].*/{
22479 am_filepart=`$as_basename -- "$am_mf" ||
22480 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22481 X"$am_mf" : 'X\(//\)$' \| \
22482 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22483 printf "%s\n" X/"$am_mf" |
22484 sed '/^.*\/\([^/][^/]*\)\/*$/{
22497 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22498 && sed -e '/# am--include-marker/d' "$am_filepart" \
22499 | $MAKE -f - am--depfiles" >&5
22500 (cd "$am_dirpart" \
22501 && sed -e '/# am--include-marker/d' "$am_filepart" \
22502 | $MAKE -f - am--depfiles) >&5 2>&5
22504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } || am_rc=$?
22507 if test $am_rc -ne 0; then
22508 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22509 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22510 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22511 for automatic dependency tracking. If GNU make was not used, consider
22512 re-running the configure script with MAKE=\"gmake\" (or whatever is
22513 necessary). You can also try re-running configure with the
22514 '--disable-dependency-tracking' option to at least be able to build
22515 the package (albeit without support for automatic dependency tracking).
22516 See \`config.log' for more details" "$LINENO" 5; }
22518 { am_dirpart=; unset am_dirpart;}
22519 { am_filepart=; unset am_filepart;}
22520 { am_mf=; unset am_mf;}
22521 { am_rc=; unset am_rc;}
22522 rm -f conftest-deps.mk
22527 # See if we are running on zsh, and set the options that allow our
22528 # commands through without removal of \ escapes.
22529 if test -n "${ZSH_VERSION+set}"; then
22530 setopt NO_GLOB_SUBST
22534 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22537 cat <<_LT_EOF >> "$cfgfile"
22539 # Generated automatically by $as_me ($PACKAGE) $VERSION
22540 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22541 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22543 # Provide generalized library-building support services.
22544 # Written by Gordon Matzigkeit, 1996
22546 # Copyright (C) 2014 Free Software Foundation, Inc.
22547 # This is free software; see the source for copying conditions. There is NO
22548 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22550 # GNU Libtool is free software; you can redistribute it and/or modify
22551 # it under the terms of the GNU General Public License as published by
22552 # the Free Software Foundation; either version 2 of of the License, or
22553 # (at your option) any later version.
22555 # As a special exception to the GNU General Public License, if you
22556 # distribute this file as part of a program or library that is built
22557 # using GNU Libtool, you may include this file under the same
22558 # distribution terms that you use for the rest of that program.
22560 # GNU Libtool is distributed in the hope that it will be useful, but
22561 # WITHOUT ANY WARRANTY; without even the implied warranty of
22562 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22563 # GNU General Public License for more details.
22565 # You should have received a copy of the GNU General Public License
22566 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22569 # The names of the tagged configurations supported by this script.
22572 # Configured defaults for sys_lib_dlsearch_path munging.
22573 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22575 # ### BEGIN LIBTOOL CONFIG
22577 # Which release of libtool.m4 was used?
22578 macro_version=$macro_version
22579 macro_revision=$macro_revision
22581 # Whether or not to build static libraries.
22582 build_old_libs=$enable_static
22584 # Assembler program.
22587 # DLL creation program.
22588 DLLTOOL=$lt_DLLTOOL
22590 # Object dumper program.
22591 OBJDUMP=$lt_OBJDUMP
22593 # Whether or not to build shared libraries.
22594 build_libtool_libs=$enable_shared
22596 # What type of objects to build.
22599 # Whether or not to optimize for fast installation.
22600 fast_install=$enable_fast_install
22602 # Shared archive member basename,for filename based shared library versioning on AIX.
22603 shared_archive_member_spec=$shared_archive_member_spec
22605 # Shell to use when invoking shell scripts.
22608 # An echo program that protects backslashes.
22611 # The PATH separator for the build system.
22612 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22615 host_alias=$host_alias
22619 # The build system.
22620 build_alias=$build_alias
22624 # A sed program that does not truncate output.
22627 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22628 Xsed="\$SED -e 1s/^X//"
22630 # A grep program that handles long lines.
22636 # A literal string matcher.
22639 # A BSD- or MS-compatible name lister.
22642 # Whether we need soft or hard links.
22645 # What is the maximum length of a command?
22646 max_cmd_len=$max_cmd_len
22648 # Object file suffix (normally "o").
22651 # Executable file suffix (normally "").
22654 # whether the shell understands "unset".
22657 # turn spaces into newlines.
22660 # turn newlines into spaces.
22663 # convert \$build file names to \$host format.
22664 to_host_file_cmd=$lt_cv_to_host_file_cmd
22666 # convert \$build files to toolchain format.
22667 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22669 # A file(cmd) program that detects file types.
22670 FILECMD=$lt_FILECMD
22672 # Method to check whether dependent libraries are shared objects.
22673 deplibs_check_method=$lt_deplibs_check_method
22675 # Command to use when deplibs_check_method = "file_magic".
22676 file_magic_cmd=$lt_file_magic_cmd
22678 # How to find potential files when deplibs_check_method = "file_magic".
22679 file_magic_glob=$lt_file_magic_glob
22681 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22682 want_nocaseglob=$lt_want_nocaseglob
22684 # Command to associate shared and link libraries.
22685 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22690 # Flags to create an archive (by configure).
22691 lt_ar_flags=$lt_ar_flags
22693 # Flags to create an archive.
22694 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22696 # How to feed a file listing to the archiver.
22697 archiver_list_spec=$lt_archiver_list_spec
22699 # A symbol stripping program.
22702 # Commands used to install an old-style archive.
22704 old_postinstall_cmds=$lt_old_postinstall_cmds
22705 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22707 # Whether to use a lock for old archive extraction.
22708 lock_old_archive_extraction=$lock_old_archive_extraction
22713 # LTCC compiler flags.
22714 LTCFLAGS=$lt_CFLAGS
22716 # Take the output of nm and produce a listing of raw symbols and C names.
22717 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22719 # Transform the output of nm in a proper C declaration.
22720 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22722 # Transform the output of nm into a list of symbols to manually relocate.
22723 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22725 # Transform the output of nm in a C name address pair.
22726 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22728 # Transform the output of nm in a C name address pair when lib prefix is needed.
22729 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22731 # The name lister interface.
22732 nm_interface=$lt_lt_cv_nm_interface
22734 # Specify filename containing input files for \$NM.
22735 nm_file_list_spec=$lt_nm_file_list_spec
22737 # The root where to search for dependent libraries,and where our libraries should be installed.
22738 lt_sysroot=$lt_sysroot
22740 # Command to truncate a binary pipe.
22741 lt_truncate_bin=$lt_lt_cv_truncate_bin
22743 # The name of the directory that contains temporary libtool files.
22746 # Used to examine libraries when file_magic_cmd begins with "file".
22747 MAGIC_CMD=$MAGIC_CMD
22749 # Must we lock files when doing compilation?
22750 need_locks=$lt_need_locks
22753 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22755 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22756 DSYMUTIL=$lt_DSYMUTIL
22758 # Tool to change global to local symbols on Mac OS X.
22761 # Tool to manipulate fat objects and archives on Mac OS X.
22764 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22767 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22768 OTOOL64=$lt_OTOOL64
22770 # Old archive suffix (normally "a").
22773 # Shared library suffix (normally ".so").
22774 shrext_cmds=$lt_shrext_cmds
22776 # The commands to extract the exported symbol list from a shared archive.
22777 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22779 # Variables whose values should be saved in libtool wrapper scripts and
22780 # restored at link time.
22781 variables_saved_for_relink=$lt_variables_saved_for_relink
22783 # Do we need the "lib" prefix for modules?
22784 need_lib_prefix=$need_lib_prefix
22786 # Do we need a version for libraries?
22787 need_version=$need_version
22789 # Library versioning type.
22790 version_type=$version_type
22792 # Shared library runtime path variable.
22793 runpath_var=$runpath_var
22795 # Shared library path variable.
22796 shlibpath_var=$shlibpath_var
22798 # Is shlibpath searched before the hard-coded library search path?
22799 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22801 # Format of library name prefix.
22802 libname_spec=$lt_libname_spec
22804 # List of archive names. First name is the real one, the rest are links.
22805 # The last name is the one that the linker finds with -lNAME
22806 library_names_spec=$lt_library_names_spec
22808 # The coded name of the library, if different from the real name.
22809 soname_spec=$lt_soname_spec
22811 # Permission mode override for installation of shared libraries.
22812 install_override_mode=$lt_install_override_mode
22814 # Command to use after installation of a shared archive.
22815 postinstall_cmds=$lt_postinstall_cmds
22817 # Command to use after uninstallation of a shared archive.
22818 postuninstall_cmds=$lt_postuninstall_cmds
22820 # Commands used to finish a libtool library installation in a directory.
22821 finish_cmds=$lt_finish_cmds
22823 # As "finish_cmds", except a single script fragment to be evaled but
22825 finish_eval=$lt_finish_eval
22827 # Whether we should hardcode library paths into libraries.
22828 hardcode_into_libs=$hardcode_into_libs
22830 # Compile-time system search path for libraries.
22831 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22833 # Detected run-time system search path for libraries.
22834 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22836 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22837 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22839 # Whether dlopen is supported.
22840 dlopen_support=$enable_dlopen
22842 # Whether dlopen of programs is supported.
22843 dlopen_self=$enable_dlopen_self
22845 # Whether dlopen of statically linked programs is supported.
22846 dlopen_self_static=$enable_dlopen_self_static
22848 # Commands to strip libraries.
22849 old_striplib=$lt_old_striplib
22850 striplib=$lt_striplib
22853 # The linker used to build libraries.
22856 # How to create reloadable object files.
22857 reload_flag=$lt_reload_flag
22858 reload_cmds=$lt_reload_cmds
22860 # Commands used to build an old-style archive.
22861 old_archive_cmds=$lt_old_archive_cmds
22863 # A language specific compiler.
22866 # Is the compiler the GNU compiler?
22869 # Compiler flag to turn off builtin functions.
22870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22872 # Additional compiler flags for building library objects.
22873 pic_flag=$lt_lt_prog_compiler_pic
22875 # How to pass a linker flag through the compiler.
22876 wl=$lt_lt_prog_compiler_wl
22878 # Compiler flag to prevent dynamic linking.
22879 link_static_flag=$lt_lt_prog_compiler_static
22881 # Does compiler simultaneously support -c and -o options?
22882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22884 # Whether or not to add -lc for building shared libraries.
22885 build_libtool_need_lc=$archive_cmds_need_lc
22887 # Whether or not to disallow shared libs when runtime libs are static.
22888 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22890 # Compiler flag to allow reflexive dlopens.
22891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22893 # Compiler flag to generate shared objects directly from archives.
22894 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22896 # Whether the compiler copes with passing no objects directly.
22897 compiler_needs_object=$lt_compiler_needs_object
22899 # Create an old-style archive from a shared archive.
22900 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22902 # Create a temporary old-style archive to link instead of a shared archive.
22903 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22905 # Commands used to build a shared archive.
22906 archive_cmds=$lt_archive_cmds
22907 archive_expsym_cmds=$lt_archive_expsym_cmds
22909 # Commands used to build a loadable module if different from building
22910 # a shared archive.
22911 module_cmds=$lt_module_cmds
22912 module_expsym_cmds=$lt_module_expsym_cmds
22914 # Whether we are building with GNU ld or not.
22915 with_gnu_ld=$lt_with_gnu_ld
22917 # Flag that allows shared libraries with undefined symbols to be built.
22918 allow_undefined_flag=$lt_allow_undefined_flag
22920 # Flag that enforces no undefined symbols.
22921 no_undefined_flag=$lt_no_undefined_flag
22923 # Flag to hardcode \$libdir into a binary during linking.
22924 # This must work even if \$libdir does not exist
22925 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22927 # Whether we need a single "-rpath" flag with a separated argument.
22928 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22930 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22931 # DIR into the resulting binary.
22932 hardcode_direct=$hardcode_direct
22934 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22935 # DIR into the resulting binary and the resulting library dependency is
22936 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22937 # library is relocated.
22938 hardcode_direct_absolute=$hardcode_direct_absolute
22940 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22941 # into the resulting binary.
22942 hardcode_minus_L=$hardcode_minus_L
22944 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22945 # into the resulting binary.
22946 hardcode_shlibpath_var=$hardcode_shlibpath_var
22948 # Set to "yes" if building a shared library automatically hardcodes DIR
22949 # into the library and all subsequent libraries and executables linked
22951 hardcode_automatic=$hardcode_automatic
22953 # Set to yes if linker adds runtime paths of dependent libraries
22954 # to runtime path list.
22955 inherit_rpath=$inherit_rpath
22957 # Whether libtool must link a program against all its dependency libraries.
22958 link_all_deplibs=$link_all_deplibs
22960 # Set to "yes" if exported symbols are required.
22961 always_export_symbols=$always_export_symbols
22963 # The commands to list exported symbols.
22964 export_symbols_cmds=$lt_export_symbols_cmds
22966 # Symbols that should not be listed in the preloaded symbols.
22967 exclude_expsyms=$lt_exclude_expsyms
22969 # Symbols that must always be exported.
22970 include_expsyms=$lt_include_expsyms
22972 # Commands necessary for linking programs (against libraries) with templates.
22973 prelink_cmds=$lt_prelink_cmds
22975 # Commands necessary for finishing linking programs.
22976 postlink_cmds=$lt_postlink_cmds
22978 # Specify filename containing input files.
22979 file_list_spec=$lt_file_list_spec
22981 # How to hardcode a shared library path into an executable.
22982 hardcode_action=$hardcode_action
22984 # ### END LIBTOOL CONFIG
22988 cat <<'_LT_EOF' >> "$cfgfile"
22990 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22992 # func_munge_path_list VARIABLE PATH
22993 # -----------------------------------
22994 # VARIABLE is name of variable containing _space_ separated list of
22995 # directories to be munged by the contents of PATH, which is string
22998 # string "DIR[ DIR]" will be prepended to VARIABLE
23000 # string "DIR[ DIR]" will be appended to VARIABLE
23001 # "DIRP[:DIRP]::[DIRA:]DIRA"
23002 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23003 # "DIRA[ DIRA]" will be appended to VARIABLE
23005 # VARIABLE will be replaced by "DIR[ DIR]"
23006 func_munge_path_list ()
23012 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23015 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23018 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23019 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23022 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23028 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23029 func_cc_basename ()
23031 for cc_temp in $*""; do
23033 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23034 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23039 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23043 # ### END FUNCTIONS SHARED WITH CONFIGURE
23049 cat <<\_LT_EOF >> "$cfgfile"
23050 # AIX sometimes has problems with the GCC collect2 program. For some
23051 # reason, if we set the COLLECT_NAMES environment variable, the problems
23052 # vanish in a puff of smoke.
23053 if test set != "${COLLECT_NAMES+set}"; then
23055 export COLLECT_NAMES
23063 ltmain=$ac_aux_dir/ltmain.sh
23066 # We use sed instead of cat because bash on DJGPP gets confused if
23067 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23068 # text mode, it properly converts lines to CR/LF. This bash problem
23069 # is reportedly fixed, but why not run on old versions too?
23070 $SED '$q' "$ltmain" >> "$cfgfile" \
23071 || (rm -f "$cfgfile"; exit 1)
23073 mv -f "$cfgfile" "$ofile" ||
23074 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23078 "po-directories":C)
23079 for ac_file in $CONFIG_FILES; do
23080 # Support "outfile[:infile[:infile...]]"
23082 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23084 # PO directories have a Makefile.in generated from Makefile.in.in.
23085 case "$ac_file" in */Makefile.in)
23086 # Adjust a relative srcdir.
23087 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23088 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
23089 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23090 # In autoconf-2.13 it is called $ac_given_srcdir.
23091 # In autoconf-2.50 it is called $srcdir.
23092 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23093 case "$ac_given_srcdir" in
23094 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23095 /*) top_srcdir="$ac_given_srcdir" ;;
23096 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23098 # Treat a directory as a PO directory if and only if it has a
23099 # POTFILES.in file. This allows packages to have multiple PO
23100 # directories under different names or in different locations.
23101 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23102 rm -f "$ac_dir/POTFILES"
23103 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23104 gt_tab=`printf '\t'`
23105 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23106 POMAKEFILEDEPS="POTFILES.in"
23107 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23108 # on $ac_dir but don't depend on user-specified configuration
23110 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23111 # The LINGUAS file contains the set of available languages.
23112 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23113 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23115 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23116 # Hide the ALL_LINGUAS assignment from automake < 1.5.
23117 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23118 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23120 # The set of available languages was given in configure.in.
23121 # Hide the ALL_LINGUAS assignment from automake < 1.5.
23122 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23125 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23126 # Compute UPDATEPOFILES
23127 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23128 # Compute DUMMYPOFILES
23129 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23131 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23132 case "$ac_given_srcdir" in
23134 *) srcdirpre='$(srcdir)/' ;;
23140 for lang in $ALL_LINGUAS; do
23141 POFILES="$POFILES $srcdirpre$lang.po"
23142 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23143 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23144 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23146 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23147 # environment variable.
23149 if test -n "$ALL_LINGUAS"; then
23150 for presentlang in $ALL_LINGUAS; do
23152 if test "%UNSET%" != "$LINGUAS"; then
23153 desiredlanguages="$LINGUAS"
23155 desiredlanguages="$ALL_LINGUAS"
23157 for desiredlang in $desiredlanguages; do
23158 # Use the presentlang catalog if desiredlang is
23159 # a. equal to presentlang, or
23160 # b. a variant of presentlang (because in this case,
23161 # presentlang can be used as a fallback for messages
23162 # which are not translated in the desiredlang catalog).
23163 case "$desiredlang" in
23164 "$presentlang"*) useit=yes;;
23167 if test $useit = yes; then
23168 INST_LINGUAS="$INST_LINGUAS $presentlang"
23173 if test -n "$INST_LINGUAS"; then
23174 for lang in $INST_LINGUAS; do
23175 CATALOGS="$CATALOGS $lang.gmo"
23178 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23179 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23180 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23181 if test -f "$f"; then
23183 *.orig | *.bak | *~) ;;
23184 *) cat "$f" >> "$ac_dir/Makefile" ;;
23193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
23194 printf "%s\n" "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
23195 ac_stdint=$tmp/_stdint.h
23197 echo "#ifndef" $_ac_stdint_h >$ac_stdint
23198 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
23199 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
23200 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
23201 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
23202 if test "_$ac_cv_header_stdint_t" != "_" ; then
23203 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
23204 echo "#include <stdint.h>" >>$ac_stdint
23205 echo "#endif" >>$ac_stdint
23206 echo "#endif" >>$ac_stdint
23209 cat >>$ac_stdint <<STDINT_EOF
23211 /* ................... shortcircuit part ........................... */
23213 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
23214 #include <stdint.h>
23216 #include <stddef.h>
23218 /* .................... configured part ............................ */
23222 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
23223 if test "_$ac_cv_header_stdint_x" != "_" ; then
23224 ac_header="$ac_cv_header_stdint_x"
23225 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
23227 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
23230 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
23231 if test "_$ac_cv_header_stdint_o" != "_" ; then
23232 ac_header="$ac_cv_header_stdint_o"
23233 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
23235 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
23238 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
23239 if test "_$ac_cv_header_stdint_u" != "_" ; then
23240 ac_header="$ac_cv_header_stdint_u"
23241 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
23243 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
23246 echo "" >>$ac_stdint
23248 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
23249 echo "#include <$ac_header>" >>$ac_stdint
23250 echo "" >>$ac_stdint
23253 echo "/* which 64bit typedef has been found */" >>$ac_stdint
23254 if test "$ac_cv_type_uint64_t" = "yes" ; then
23255 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
23257 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
23259 if test "$ac_cv_type_u_int64_t" = "yes" ; then
23260 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
23262 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
23264 echo "" >>$ac_stdint
23266 echo "/* which type model has been detected */" >>$ac_stdint
23267 if test "_$ac_cv_char_data_model" != "_" ; then
23268 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
23269 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
23271 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
23272 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
23274 echo "" >>$ac_stdint
23276 echo "/* whether int_least types were detected */" >>$ac_stdint
23277 if test "$ac_cv_type_int_least32_t" = "yes"; then
23278 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
23280 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
23282 echo "/* whether int_fast types were detected */" >>$ac_stdint
23283 if test "$ac_cv_type_int_fast32_t" = "yes"; then
23284 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
23286 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
23288 echo "/* whether intmax_t type was detected */" >>$ac_stdint
23289 if test "$ac_cv_type_intmax_t" = "yes"; then
23290 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
23292 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
23294 echo "" >>$ac_stdint
23296 cat >>$ac_stdint <<STDINT_EOF
23297 /* .................... detections part ............................ */
23299 /* whether we need to define bitspecific types from compiler base types */
23300 #ifndef _STDINT_HEADER_INTPTR
23301 #ifndef _STDINT_HEADER_UINT32
23302 #ifndef _STDINT_HEADER_U_INT32
23303 #define _STDINT_NEED_INT_MODEL_T
23305 #define _STDINT_HAVE_U_INT_TYPES
23310 #ifdef _STDINT_HAVE_U_INT_TYPES
23311 #undef _STDINT_NEED_INT_MODEL_T
23314 #ifdef _STDINT_CHAR_MODEL
23315 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
23316 #ifndef _STDINT_BYTE_MODEL
23317 #define _STDINT_BYTE_MODEL 12
23322 #ifndef _STDINT_HAVE_INT_LEAST32_T
23323 #define _STDINT_NEED_INT_LEAST_T
23326 #ifndef _STDINT_HAVE_INT_FAST32_T
23327 #define _STDINT_NEED_INT_FAST_T
23330 #ifndef _STDINT_HEADER_INTPTR
23331 #define _STDINT_NEED_INTPTR_T
23332 #ifndef _STDINT_HAVE_INTMAX_T
23333 #define _STDINT_NEED_INTMAX_T
23338 /* .................... definition part ............................ */
23340 /* some system headers have good uint64_t */
23341 #ifndef _HAVE_UINT64_T
23342 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
23343 #define _HAVE_UINT64_T
23344 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
23345 #define _HAVE_UINT64_T
23346 typedef u_int64_t uint64_t;
23350 #ifndef _HAVE_UINT64_T
23351 /* .. here are some common heuristics using compiler runtime specifics */
23352 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
23353 #define _HAVE_UINT64_T
23354 #define _HAVE_LONGLONG_UINT64_T
23355 typedef long long int64_t;
23356 typedef unsigned long long uint64_t;
23358 #elif !defined __STRICT_ANSI__
23359 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23360 #define _HAVE_UINT64_T
23361 typedef __int64 int64_t;
23362 typedef unsigned __int64 uint64_t;
23364 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
23365 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
23366 #if !defined _NO_LONGLONG
23367 #define _HAVE_UINT64_T
23368 #define _HAVE_LONGLONG_UINT64_T
23369 typedef long long int64_t;
23370 typedef unsigned long long uint64_t;
23373 #elif defined __alpha || (defined __mips && defined _ABIN32)
23374 #if !defined _NO_LONGLONG
23375 typedef long int64_t;
23376 typedef unsigned long uint64_t;
23378 /* compiler/cpu type to define int64_t */
23383 #if defined _STDINT_HAVE_U_INT_TYPES
23384 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
23385 typedef u_int8_t uint8_t;
23386 typedef u_int16_t uint16_t;
23387 typedef u_int32_t uint32_t;
23389 /* glibc compatibility */
23390 #ifndef __int8_t_defined
23391 #define __int8_t_defined
23395 #ifdef _STDINT_NEED_INT_MODEL_T
23396 /* we must guess all the basic types. Apart from byte-adressable system, */
23397 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
23398 /* (btw, those nibble-addressable systems are way off, or so we assume) */
23401 #if defined _STDINT_BYTE_MODEL
23402 #if _STDINT_LONG_MODEL+0 == 242
23403 /* 2:4:2 = IP16 = a normal 16-bit system */
23404 typedef unsigned char uint8_t;
23405 typedef unsigned short uint16_t;
23406 typedef unsigned long uint32_t;
23407 #ifndef __int8_t_defined
23408 #define __int8_t_defined
23409 typedef char int8_t;
23410 typedef short int16_t;
23411 typedef long int32_t;
23413 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
23414 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
23415 /* 4:4:4 = ILP32 = a normal 32-bit system */
23416 typedef unsigned char uint8_t;
23417 typedef unsigned short uint16_t;
23418 typedef unsigned int uint32_t;
23419 #ifndef __int8_t_defined
23420 #define __int8_t_defined
23421 typedef char int8_t;
23422 typedef short int16_t;
23423 typedef int int32_t;
23425 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
23426 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
23427 /* 4:8:8 = LP64 = a normal 64-bit system */
23428 typedef unsigned char uint8_t;
23429 typedef unsigned short uint16_t;
23430 typedef unsigned int uint32_t;
23431 #ifndef __int8_t_defined
23432 #define __int8_t_defined
23433 typedef char int8_t;
23434 typedef short int16_t;
23435 typedef int int32_t;
23437 /* this system has a "long" of 64bit */
23438 #ifndef _HAVE_UINT64_T
23439 #define _HAVE_UINT64_T
23440 typedef unsigned long uint64_t;
23441 typedef long int64_t;
23443 #elif _STDINT_LONG_MODEL+0 == 448
23444 /* LLP64 a 64-bit system derived from a 32-bit system */
23445 typedef unsigned char uint8_t;
23446 typedef unsigned short uint16_t;
23447 typedef unsigned int uint32_t;
23448 #ifndef __int8_t_defined
23449 #define __int8_t_defined
23450 typedef char int8_t;
23451 typedef short int16_t;
23452 typedef int int32_t;
23454 /* assuming the system has a "long long" */
23455 #ifndef _HAVE_UINT64_T
23456 #define _HAVE_UINT64_T
23457 #define _HAVE_LONGLONG_UINT64_T
23458 typedef unsigned long long uint64_t;
23459 typedef long long int64_t;
23462 #define _STDINT_NO_INT32_T
23465 #define _STDINT_NO_INT8_T
23466 #define _STDINT_NO_INT32_T
23471 * quote from SunOS-5.8 sys/inttypes.h:
23472 * Use at your own risk. As of February 1996, the committee is squarely
23473 * behind the fixed sized types; the "least" and "fast" types are still being
23474 * discussed. The probability that the "fast" types may be removed before
23475 * the standard is finalized is high enough that they are not currently
23479 #if defined _STDINT_NEED_INT_LEAST_T
23480 typedef int8_t int_least8_t;
23481 typedef int16_t int_least16_t;
23482 typedef int32_t int_least32_t;
23483 #ifdef _HAVE_UINT64_T
23484 typedef int64_t int_least64_t;
23487 typedef uint8_t uint_least8_t;
23488 typedef uint16_t uint_least16_t;
23489 typedef uint32_t uint_least32_t;
23490 #ifdef _HAVE_UINT64_T
23491 typedef uint64_t uint_least64_t;
23496 #if defined _STDINT_NEED_INT_FAST_T
23497 typedef int8_t int_fast8_t;
23498 typedef int int_fast16_t;
23499 typedef int32_t int_fast32_t;
23500 #ifdef _HAVE_UINT64_T
23501 typedef int64_t int_fast64_t;
23504 typedef uint8_t uint_fast8_t;
23505 typedef unsigned uint_fast16_t;
23506 typedef uint32_t uint_fast32_t;
23507 #ifdef _HAVE_UINT64_T
23508 typedef uint64_t uint_fast64_t;
23513 #ifdef _STDINT_NEED_INTMAX_T
23514 #ifdef _HAVE_UINT64_T
23515 typedef int64_t intmax_t;
23516 typedef uint64_t uintmax_t;
23518 typedef long intmax_t;
23519 typedef unsigned long uintmax_t;
23523 #ifdef _STDINT_NEED_INTPTR_T
23524 #ifndef __intptr_t_defined
23525 #define __intptr_t_defined
23526 /* we encourage using "long" to store pointer values, never use "int" ! */
23527 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
23528 typedef unsigned int uintptr_t;
23529 typedef int intptr_t;
23530 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
23531 typedef unsigned long uintptr_t;
23532 typedef long intptr_t;
23533 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
23534 typedef uint64_t uintptr_t;
23535 typedef int64_t intptr_t;
23536 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
23537 typedef unsigned long uintptr_t;
23538 typedef long intptr_t;
23543 /* The ISO C99 standard specifies that in C++ implementations these
23544 should only be defined if explicitly requested. */
23545 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
23549 # define INT8_C(c) c
23550 # define INT16_C(c) c
23551 # define INT32_C(c) c
23552 # ifdef _HAVE_LONGLONG_UINT64_T
23553 # define INT64_C(c) c ## L
23555 # define INT64_C(c) c ## LL
23559 # define UINT8_C(c) c ## U
23560 # define UINT16_C(c) c ## U
23561 # define UINT32_C(c) c ## U
23562 # ifdef _HAVE_LONGLONG_UINT64_T
23563 # define UINT64_C(c) c ## UL
23565 # define UINT64_C(c) c ## ULL
23568 /* Maximal type. */
23569 # ifdef _HAVE_LONGLONG_UINT64_T
23570 # define INTMAX_C(c) c ## L
23571 # define UINTMAX_C(c) c ## UL
23573 # define INTMAX_C(c) c ## LL
23574 # define UINTMAX_C(c) c ## ULL
23577 /* literalnumbers */
23581 /* These limits are merily those of a two complement byte-oriented system */
23583 /* Minimum of signed integral types. */
23584 # define INT8_MIN (-128)
23585 # define INT16_MIN (-32767-1)
23586 # define INT32_MIN (-2147483647-1)
23587 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
23588 /* Maximum of signed integral types. */
23589 # define INT8_MAX (127)
23590 # define INT16_MAX (32767)
23591 # define INT32_MAX (2147483647)
23592 # define INT64_MAX (__INT64_C(9223372036854775807))
23594 /* Maximum of unsigned integral types. */
23595 # define UINT8_MAX (255)
23596 # define UINT16_MAX (65535)
23597 # define UINT32_MAX (4294967295U)
23598 # define UINT64_MAX (__UINT64_C(18446744073709551615))
23600 /* Minimum of signed integral types having a minimum size. */
23601 # define INT_LEAST8_MIN INT8_MIN
23602 # define INT_LEAST16_MIN INT16_MIN
23603 # define INT_LEAST32_MIN INT32_MIN
23604 # define INT_LEAST64_MIN INT64_MIN
23605 /* Maximum of signed integral types having a minimum size. */
23606 # define INT_LEAST8_MAX INT8_MAX
23607 # define INT_LEAST16_MAX INT16_MAX
23608 # define INT_LEAST32_MAX INT32_MAX
23609 # define INT_LEAST64_MAX INT64_MAX
23611 /* Maximum of unsigned integral types having a minimum size. */
23612 # define UINT_LEAST8_MAX UINT8_MAX
23613 # define UINT_LEAST16_MAX UINT16_MAX
23614 # define UINT_LEAST32_MAX UINT32_MAX
23615 # define UINT_LEAST64_MAX UINT64_MAX
23624 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
23625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
23626 printf "%s\n" "$as_me: $ac_stdint_h is unchanged" >&6;}
23628 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
23629 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23630 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
23631 X"$ac_stdint_h" : 'X\(//\)$' \| \
23632 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
23633 printf "%s\n" X"$ac_stdint_h" |
23634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23638 /^X\(\/\/\)[^/].*/{
23651 as_dir="$ac_dir"; as_fn_mkdir_p
23653 mv $ac_stdint $ac_stdint_h
23663 ac_clean_files=$ac_clean_files_save
23665 test $ac_write_fail = 0 ||
23666 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23669 # configure is writing to config.log, and then calls config.status.
23670 # config.status does its own redirection, appending to config.log.
23671 # Unfortunately, on DOS this fails, as config.log is still kept open
23672 # by configure, so config.status won't be able to write to it; its
23673 # output is simply discarded. So we exec the FD to /dev/null,
23674 # effectively closing config.log, so it can be properly (re)opened and
23675 # appended to by config.status. When coming back to configure, we
23676 # need to make the FD available again.
23677 if test "$no_create" != yes; then
23679 ac_config_status_args=
23680 test "$silent" = yes &&
23681 ac_config_status_args="$ac_config_status_args --quiet"
23683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23686 # would make configure fail if this is the last instruction.
23687 $ac_cs_success || as_fn_exit 1
23689 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23691 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}