2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for FreeType 2.13.2.
5 # Report bugs to <freetype@nongnu.org>.
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: freetype@nongnu.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Do nothing but, unlike ":", preserve the value of $?.
335 # Create "$as_dir" as a directory, including parents if necessary.
340 -*) as_dir=./$as_dir;;
342 test -d "$as_dir" || eval $as_mkdir_p || {
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373 test -d "$as_dir" && break
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 eval 'as_fn_append ()
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421 as_val=`expr "$@" || test $? -eq 1`
427 # Do nothing but, unlike ":", preserve the value of $?.
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
441 as_status=$1; test $as_status -eq 0 && as_status=1
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
527 # Exit status is that of the last command.
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
560 mkdir conf$$.dir 2>/dev/null
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 elif ln conf$$.file conf$$ 2>/dev/null; then
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
585 test -d ./-p && rmdir ./-p
590 as_executable_p=as_fn_executable_p
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598 SHELL=${CONFIG_SHELL-/bin/sh}
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
622 PACKAGE_NAME='FreeType'
623 PACKAGE_TARNAME='freetype'
624 PACKAGE_VERSION='2.13.2'
625 PACKAGE_STRING='FreeType 2.13.2'
626 PACKAGE_BUGREPORT='freetype@nongnu.org'
629 ac_unique_file="ftconfig.h.in"
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>
663 ac_subst_vars='LTLIBOBJS
667 hardcode_libdir_flag_spec
669 PKGCONFIG_LIBS_PRIVATE
670 PKGCONFIG_REQUIRES_PRIVATE
787 program_transform_name
800 enable_option_checking
809 enable_freetype_config
821 with_quickdraw_toolbox
822 with_quickdraw_carbon
825 ac_precious_vars='build_alias
852 # Initialize some variables set by options.
854 ac_init_version=false
855 ac_unrecognized_opts=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
866 program_transform_name=s,x,x,
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 runstatedir='${localstatedir}/run'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 case $ac_dashdash$ac_option in
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
940 cache_file=config.cache ;;
942 -datadir | --datadir | --datadi | --datad)
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: \`$ac_useropt'"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
968 eval enable_$ac_useropt=no ;;
970 -docdir | --docdir | --docdi | --doc | --do)
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: \`$ac_useropt'"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
994 eval enable_$ac_useropt=\$ac_optarg ;;
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 htmldir=$ac_optarg ;;
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1039 -libdir | --libdir | --libdi | --libd)
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1130 -psdir | --psdir | --psdi | --psd | --ps)
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1139 -runstatedir | --runstatedir | --runstatedi | --runstated \
1140 | --runstate | --runstat | --runsta | --runst | --runs \
1141 | --run | --ru | --r)
1142 ac_prev=runstatedir ;;
1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145 | --run=* | --ru=* | --r=*)
1146 runstatedir=$ac_optarg ;;
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: \`$ac_useropt'"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=\$ac_optarg ;;
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: \`$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=no ;;
1226 # Obsolete; use --with-x.
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir runstatedir
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 printf "%s\n" X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1364 ac_srcdir_defaulted=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures FreeType 2.13.2 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/freetype]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 --target=TARGET configure for building compilers for TARGET [HOST]
1463 if test -n "$ac_init_help"; then
1464 case $ac_init_help in
1465 short | recursive ) echo "Configuration of FreeType 2.13.2:";;
1470 --disable-option-checking ignore unrecognized --enable/--with options
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-static[=PKGS] build static libraries [default=yes]
1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
1477 --disable-libtool-lock avoid locking (might break parallel builds)
1478 --enable-freetype-config
1479 install freetype-config
1480 --disable-largefile omit support for large files
1481 --disable-mmap do not check mmap() and do not use
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1488 --with-aix-soname=aix|svr4|both
1489 shared library versioning (aka "SONAME") variant to
1490 provide on AIX, [default=aix].
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1493 compiler's sysroot if not specified).
1494 --with-zlib=[yes|no|auto]
1495 use system zlib instead of internal library
1497 --with-bzip2=[yes|no|auto]
1498 support bzip2 compressed fonts [default=auto]
1499 --with-png=[yes|no|auto]
1500 support png compressed OpenType embedded bitmaps
1502 --with-harfbuzz=[yes|no|auto]
1503 improve auto-hinting of OpenType fonts
1505 --with-brotli=[yes|no|auto]
1506 support decompression of WOFF2 streams
1508 --with-librsvg=[yes|no|auto]
1509 support OpenType SVG fonts in FreeType demo programs
1511 --with-old-mac-fonts allow Mac resource-based fonts to be used
1512 --with-fsspec use obsolete FSSpec API of MacOS, if available
1514 --with-fsref use Carbon FSRef API of MacOS, if available
1516 --with-quickdraw-toolbox
1517 use MacOS QuickDraw in ToolBox, if available
1519 --with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1521 --with-ats use AppleTypeService, if available (default=yes)
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1532 PKG_CONFIG path to pkg-config utility
1534 directories to add to pkg-config's search path
1536 path overriding pkg-config's built-in search path
1538 User-defined run-time library search path.
1539 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1540 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1542 C compiler flags for BZIP2, overriding pkg-config
1543 BZIP2_LIBS linker flags for BZIP2, overriding pkg-config
1545 C compiler flags for LIBPNG, overriding pkg-config
1546 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1548 C compiler flags for HARFBUZZ, overriding pkg-config
1550 linker flags for HARFBUZZ, overriding pkg-config
1552 C compiler flags for BROTLI, overriding pkg-config
1553 BROTLI_LIBS linker flags for BROTLI, overriding pkg-config
1555 C compiler flags for LIBRSVG, overriding pkg-config
1557 linker flags for LIBRSVG, overriding pkg-config
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to <freetype@nongnu.org>.
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1592 .) # We are building in place.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for configure.gnu first; this name is used for a wrapper for
1609 # Metaconfig's "Configure" on case-insensitive file systems.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1617 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1626 FreeType configure 2.13.2
1627 generated by GNU Autoconf 2.71
1629 Copyright (C) 2021 Free Software Foundation, Inc.
1630 This configure script is free software; the Free Software Foundation
1631 gives unlimited permission to copy, distribute and modify it.
1636 ## ------------------------ ##
1637 ## Autoconf initialization. ##
1638 ## ------------------------ ##
1640 # ac_fn_c_try_compile LINENO
1641 # --------------------------
1642 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1643 ac_fn_c_try_compile ()
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext conftest.beam
1647 if { { ac_try="$ac_compile"
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 printf "%s\n" "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_c_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext
1669 printf "%s\n" "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_compile
1679 # ac_fn_c_try_cpp LINENO
1680 # ----------------------
1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 printf "%s\n" "$ac_try_echo"; } >&5
1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } > conftest.i && {
1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1707 printf "%s\n" "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1717 # ac_fn_c_try_link LINENO
1718 # -----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded.
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1724 if { { ac_try="$ac_link"
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 printf "%s\n" "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>conftest.err
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest$ac_exeext && {
1743 test "$cross_compiling" = yes ||
1744 test -x conftest$ac_exeext
1749 printf "%s\n" "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756 # interfere with the next link command; also delete a directory that is
1757 # left behind by Apple's compiler. We do this before executing the actions.
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status $ac_retval
1762 } # ac_fn_c_try_link
1764 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists and can be compiled using the include files in
1767 # INCLUDES, setting the cache variable VAR accordingly.
1768 ac_fn_c_check_header_compile ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 printf %s "checking for $2... " >&6; }
1773 if eval test \${$3+y}
1775 printf %s "(cached) " >&6
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1782 if ac_fn_c_try_compile "$LINENO"
1788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 printf "%s\n" "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 } # ac_fn_c_check_header_compile
1797 # ac_fn_c_check_func LINENO FUNC VAR
1798 # ----------------------------------
1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1800 ac_fn_c_check_func ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 printf %s "checking for $2... " >&6; }
1805 if eval test \${$3+y}
1807 printf %s "(cached) " >&6
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1813 #define $2 innocuous_$2
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $2 (); below. */
1821 /* Override any GCC internal prototype to avoid an error.
1822 Use char because int might match the return type of a GCC
1823 builtin and then its argument prototype would still apply. */
1828 /* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831 #if defined __stub_$2 || defined __stub___$2
1843 if ac_fn_c_try_link "$LINENO"
1849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1850 conftest$ac_exeext conftest.$ac_ext
1853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 printf "%s\n" "$ac_res" >&6; }
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 } # ac_fn_c_check_func
1859 # ac_fn_c_try_run LINENO
1860 # ----------------------
1861 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1862 # executables *can* be run.
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { { ac_try="$ac_link"
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 printf "%s\n" "$ac_try_echo"; } >&5
1873 (eval "$ac_link") 2>&5
1875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1877 { { case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 printf "%s\n" "$ac_try_echo"; } >&5
1883 (eval "$ac_try") 2>&5
1885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; }; }
1890 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1891 printf "%s\n" "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=$ac_status
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1902 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1903 # ------------------------------------------------------------------
1904 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1905 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 as_decl_name=`echo $2|sed 's/ *(.*//'`
1910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1911 printf %s "checking whether $as_decl_name is declared... " >&6; }
1912 if eval test \${$3+y}
1914 printf %s "(cached) " >&6
1916 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1917 eval ac_save_FLAGS=\$$6
1918 as_fn_append $6 " $5"
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1925 #ifndef $as_decl_name
1927 (void) $as_decl_use;
1929 (void) $as_decl_name;
1937 if ac_fn_c_try_compile "$LINENO"
1943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1944 eval $6=\$ac_save_FLAGS
1948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 printf "%s\n" "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 } # ac_fn_check_decl
1953 ac_configure_args_raw=
1958 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1960 as_fn_append ac_configure_args_raw " '$ac_arg'"
1963 case $ac_configure_args_raw in
1967 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1968 ac_unsafe_a="$ac_unsafe_z#~"
1969 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1970 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1973 cat >config.log <<_ACEOF
1974 This file contains any messages produced by compilers while
1975 running configure, to aid debugging if configure makes a mistake.
1977 It was created by FreeType $as_me 2.13.2, which was
1978 generated by GNU Autoconf 2.71. Invocation command line was
1980 $ $0$ac_configure_args_raw
1990 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1991 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1992 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1993 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1994 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1996 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1997 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1999 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2000 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2001 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2002 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2003 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2004 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2005 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 case $as_dir in #(((
2016 *) as_dir=$as_dir/ ;;
2018 printf "%s\n" "PATH: $as_dir"
2034 # Keep a trace of the command line.
2035 # Strip out --no-create and --no-recursion so they do not pile up.
2036 # Strip out --silent because we don't want to record it for future runs.
2037 # Also quote any args containing shell meta-characters.
2038 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_must_keep_next=false
2048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2050 | -silent | --silent | --silen | --sile | --sil)
2053 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2058 as_fn_append ac_configure_args1 " '$ac_arg'"
2059 if test $ac_must_keep_next = true; then
2060 ac_must_keep_next=false # Got value, back to normal.
2063 *=* | --config-cache | -C | -disable-* | --disable-* \
2064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2066 | -with-* | --with-* | -without-* | --without-* | --x)
2067 case "$ac_configure_args0 " in
2068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2071 -* ) ac_must_keep_next=true ;;
2074 as_fn_append ac_configure_args " '$ac_arg'"
2079 { ac_configure_args0=; unset ac_configure_args0;}
2080 { ac_configure_args1=; unset ac_configure_args1;}
2082 # When interrupted or exit'd, cleanup temporary files, and complete
2083 # config.log. We remove comments because anyway the quotes in there
2084 # would cause problems or look ugly.
2085 # WARNING: Use '\'' to represent an apostrophe within the trap.
2086 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2087 trap 'exit_status=$?
2090 # Save into config.log some information that might help in debugging.
2094 printf "%s\n" "## ---------------- ##
2095 ## Cache variables. ##
2096 ## ---------------- ##"
2098 # The following way of writing the cache mishandles newlines in values,
2100 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2101 eval ac_val=\$$ac_var
2105 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2106 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2109 _ | IFS | as_nl) ;; #(
2110 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2111 *) { eval $ac_var=; unset $ac_var;} ;;
2116 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2117 *${as_nl}ac_space=\ *)
2119 "s/'\''/'\''\\\\'\'''\''/g;
2120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2123 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2130 printf "%s\n" "## ----------------- ##
2131 ## Output variables. ##
2132 ## ----------------- ##"
2134 for ac_var in $ac_subst_vars
2136 eval ac_val=\$$ac_var
2138 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 printf "%s\n" "$ac_var='\''$ac_val'\''"
2144 if test -n "$ac_subst_files"; then
2145 printf "%s\n" "## ------------------- ##
2146 ## File substitutions. ##
2147 ## ------------------- ##"
2149 for ac_var in $ac_subst_files
2151 eval ac_val=\$$ac_var
2153 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 printf "%s\n" "$ac_var='\''$ac_val'\''"
2160 if test -s confdefs.h; then
2161 printf "%s\n" "## ----------- ##
2168 test "$ac_signal" != 0 &&
2169 printf "%s\n" "$as_me: caught signal $ac_signal"
2170 printf "%s\n" "$as_me: exit $exit_status"
2172 rm -f core *.core core.conftest.* &&
2173 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2176 for ac_signal in 1 2 13 15; do
2177 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2182 rm -f -r conftest* confdefs.h
2184 printf "%s\n" "/* confdefs.h */" > confdefs.h
2186 # Predefined preprocessor variables.
2188 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2190 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2192 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2194 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2196 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2198 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2201 # Let the site file select an alternate cache file if it wants to.
2202 # Prefer an explicitly selected file to automatically selected ones.
2203 if test -n "$CONFIG_SITE"; then
2204 ac_site_files="$CONFIG_SITE"
2205 elif test "x$prefix" != xNONE; then
2206 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2208 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2211 for ac_site_file in $ac_site_files
2213 case $ac_site_file in #(
2217 ac_site_file=./$ac_site_file ;;
2219 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2222 sed 's/^/| /' "$ac_site_file" >&5
2224 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2225 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2226 as_fn_error $? "failed to load site script $ac_site_file
2227 See \`config.log' for more details" "$LINENO" 5; }
2231 if test -r "$cache_file"; then
2232 # Some versions of bash will fail to source /dev/null (special files
2233 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2234 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2236 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2238 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2239 *) . "./$cache_file";;
2243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2244 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2248 # Test code for whether the C compiler supports C89 (global declarations)
2249 ac_c_conftest_c89_globals='
2250 /* Does the compiler advertise C89 conformance?
2251 Do not test the value of __STDC__, because some compilers set it to 0
2252 while being otherwise adequately conformant. */
2253 #if !defined __STDC__
2254 # error "Compiler does not advertise C89 conformance"
2260 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2261 struct buf { int x; };
2262 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2263 static char *e (p, i)
2269 static char *f (char * (*g) (char **, int), char **p, ...)
2274 s = g (p, va_arg (v,int));
2279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2280 function prototypes and stuff, but not \xHH hex character constants.
2281 These do not provoke an error unfortunately, instead are silently treated
2282 as an "x". The following induces an error, until -std is added to get
2283 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2284 array size at least. It is necessary to write \x00 == 0 to get something
2285 that is true only with -std. */
2286 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2289 inside strings and character constants. */
2290 #define FOO(x) '\''x'\''
2291 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2293 int test (int i, double x);
2294 struct s1 {int (*f) (int a);};
2295 struct s2 {int (*f) (double a);};
2296 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2299 # Test code for whether the C compiler supports C89 (body of main).
2300 ac_c_conftest_c89_main='
2301 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2304 # Test code for whether the C compiler supports C99 (global declarations)
2305 ac_c_conftest_c99_globals='
2306 // Does the compiler advertise C99 conformance?
2307 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2308 # error "Compiler does not advertise C99 conformance"
2311 #include <stdbool.h>
2312 extern int puts (const char *);
2313 extern int printf (const char *, ...);
2314 extern int dprintf (int, const char *, ...);
2315 extern void *malloc (size_t);
2317 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2318 // dprintf is used instead of fprintf to avoid needing to declare
2320 #define debug(...) dprintf (2, __VA_ARGS__)
2321 #define showlist(...) puts (#__VA_ARGS__)
2322 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2324 test_varargs_macros (void)
2329 debug ("X = %d\n", x);
2330 showlist (The first, second, and third items.);
2331 report (x>y, "x is %d but y is %d", x, y);
2334 // Check long long types.
2335 #define BIG64 18446744073709551615ull
2336 #define BIG32 4294967295ul
2337 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2339 #error "your preprocessor is broken"
2343 #error "your preprocessor is broken"
2345 static long long int bignum = -9223372036854775807LL;
2346 static unsigned long long int ubignum = BIG64;
2348 struct incomplete_array
2356 const wchar_t *name;
2360 typedef const char *ccp;
2363 test_restrict (ccp restrict text)
2365 // See if C++-style comments work.
2366 // Iterate through items via the restricted pointer.
2367 // Also check for declarations in for loops.
2368 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2373 // Check varargs and va_copy.
2375 test_varargs (const char *format, ...)
2378 va_start (args, format);
2380 va_copy (args_copy, args);
2382 const char *str = "";
2390 case '\''s'\'': // string
2391 str = va_arg (args_copy, const char *);
2393 case '\''d'\'': // int
2394 number = va_arg (args_copy, int);
2396 case '\''f'\'': // float
2397 fnumber = va_arg (args_copy, double);
2406 return *str && number && fnumber;
2410 # Test code for whether the C compiler supports C99 (body of main).
2411 ac_c_conftest_c99_main='
2413 _Bool success = false;
2414 success |= (argc != 0);
2417 if (test_restrict ("String literal") == 0)
2419 char *restrict newvar = "Another string";
2422 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2423 test_varargs_macros ();
2425 // Check flexible array members.
2426 struct incomplete_array *ia =
2427 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2429 for (int i = 0; i < ia->datasize; ++i)
2430 ia->data[i] = i * 1.234;
2432 // Check named initializers.
2433 struct named_init ni = {
2435 .name = L"Test wide string",
2436 .average = 543.34343,
2441 int dynamic_array[ni.number];
2442 dynamic_array[0] = argv[0][0];
2443 dynamic_array[ni.number - 1] = 543;
2445 // work around unused variable warnings
2446 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2447 || dynamic_array[ni.number - 1] != 543);
2450 # Test code for whether the C compiler supports C11 (global declarations)
2451 ac_c_conftest_c11_globals='
2452 // Does the compiler advertise C11 conformance?
2453 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2454 # error "Compiler does not advertise C11 conformance"
2458 char _Alignas (double) aligned_as_double;
2459 char _Alignas (0) no_special_alignment;
2460 extern char aligned_as_int;
2461 char _Alignas (0) _Alignas (int) aligned_as_int;
2466 int_alignment = _Alignof (int),
2467 int_array_alignment = _Alignof (int[100]),
2468 char_alignment = _Alignof (char)
2470 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2473 int _Noreturn does_not_return (void) { for (;;) continue; }
2475 // Check _Static_assert.
2476 struct test_static_assert
2479 _Static_assert (sizeof (int) <= sizeof (long int),
2480 "_Static_assert does not work in struct");
2484 // Check UTF-8 literals.
2485 #define u8 syntax error!
2486 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2488 // Check duplicate typedefs.
2489 typedef long *long_ptr;
2490 typedef long int *long_ptr;
2491 typedef long_ptr long_ptr;
2493 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2497 struct { int i; int j; };
2498 struct { int k; long int l; } w;
2504 # Test code for whether the C compiler supports C11 (body of main).
2505 ac_c_conftest_c11_main='
2506 _Static_assert ((offsetof (struct anonymous, i)
2507 == offsetof (struct anonymous, w.k)),
2508 "Anonymous union alignment botch");
2514 # Test code for whether the C compiler supports C11 (complete).
2515 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2516 ${ac_c_conftest_c99_globals}
2517 ${ac_c_conftest_c11_globals}
2520 main (int argc, char **argv)
2523 ${ac_c_conftest_c89_main}
2524 ${ac_c_conftest_c99_main}
2525 ${ac_c_conftest_c11_main}
2530 # Test code for whether the C compiler supports C99 (complete).
2531 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2532 ${ac_c_conftest_c99_globals}
2535 main (int argc, char **argv)
2538 ${ac_c_conftest_c89_main}
2539 ${ac_c_conftest_c99_main}
2544 # Test code for whether the C compiler supports C89 (complete).
2545 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2548 main (int argc, char **argv)
2551 ${ac_c_conftest_c89_main}
2556 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2557 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2558 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2559 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2560 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2561 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2562 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2563 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2564 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2565 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2566 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2568 # Auxiliary files required by this configure script.
2569 ac_aux_files="install-sh ltmain.sh config.guess config.sub"
2571 # Locations in which to look for auxiliary files.
2572 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2574 # Search for a directory containing all of the required auxiliary files,
2575 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2576 # If we don't find one directory that contains all the files we need,
2577 # we report the set of missing files from the *first* directory in
2578 # $ac_aux_dir_candidates and give up.
2579 ac_missing_aux_files=""
2580 ac_first_candidate=:
2581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $ac_aux_dir_candidates
2587 case $as_dir in #(((
2590 *) as_dir=$as_dir/ ;;
2594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2595 ac_aux_dir_found=yes
2597 for ac_aux in $ac_aux_files
2599 # As a special case, if "install-sh" is required, that requirement
2600 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2601 # and $ac_install_sh is set appropriately for whichever one is found.
2602 if test x"$ac_aux" = x"install-sh"
2604 if test -f "${as_dir}install-sh"; then
2605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2606 ac_install_sh="${as_dir}install-sh -c"
2607 elif test -f "${as_dir}install.sh"; then
2608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2609 ac_install_sh="${as_dir}install.sh -c"
2610 elif test -f "${as_dir}shtool"; then
2611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2612 ac_install_sh="${as_dir}shtool install -c"
2615 if $ac_first_candidate; then
2616 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2622 if test -f "${as_dir}${ac_aux}"; then
2623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2626 if $ac_first_candidate; then
2627 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2634 if test "$ac_aux_dir_found" = yes; then
2635 ac_aux_dir="$as_dir"
2638 ac_first_candidate=false
2647 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2651 # These three variables are undocumented and unsupported,
2652 # and are intended to be withdrawn in a future Autoconf release.
2653 # They can cause serious problems if a builder's source tree is in a directory
2654 # whose full name contains unusual characters.
2655 if test -f "${ac_aux_dir}config.guess"; then
2656 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2658 if test -f "${ac_aux_dir}config.sub"; then
2659 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2661 if test -f "$ac_aux_dir/configure"; then
2662 ac_configure="$SHELL ${ac_aux_dir}configure"
2665 # Check that the precious variables saved in the cache have kept the same
2667 ac_cache_corrupted=false
2668 for ac_var in $ac_precious_vars; do
2669 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2670 eval ac_new_set=\$ac_env_${ac_var}_set
2671 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2672 eval ac_new_val=\$ac_env_${ac_var}_value
2673 case $ac_old_set,$ac_new_set in
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2676 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2677 ac_cache_corrupted=: ;;
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2680 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2681 ac_cache_corrupted=: ;;
2684 if test "x$ac_old_val" != "x$ac_new_val"; then
2685 # differences in whitespace do not lead to failure.
2686 ac_old_val_w=`echo x $ac_old_val`
2687 ac_new_val_w=`echo x $ac_new_val`
2688 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2690 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2691 ac_cache_corrupted=:
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2694 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2695 eval $ac_var=\$ac_old_val
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2698 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2700 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2703 # Pass precious variables to config.status.
2704 if test "$ac_new_set" = set; then
2706 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2707 *) ac_arg=$ac_var=$ac_new_val ;;
2709 case " $ac_configure_args " in
2710 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2711 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2715 if $ac_cache_corrupted; then
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2719 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2720 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2721 and start over" "$LINENO" 5
2723 ## -------------------- ##
2724 ## Main body of script. ##
2725 ## -------------------- ##
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737 # Don't forget to update `docs/VERSIONS.TXT'!
2739 version_info='26:1:20'
2741 ft_version=`echo $version_info | tr : .`
2745 # checks for system type
2750 # Make sure we can run config.sub.
2751 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2752 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2755 printf %s "checking build system type... " >&6; }
2756 if test ${ac_cv_build+y}
2758 printf %s "(cached) " >&6
2760 ac_build_alias=$build_alias
2761 test "x$ac_build_alias" = x &&
2762 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2763 test "x$ac_build_alias" = x &&
2764 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2765 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2766 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2770 printf "%s\n" "$ac_cv_build" >&6; }
2771 case $ac_cv_build in
2773 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2776 ac_save_IFS=$IFS; IFS='-'
2782 # Remember, the first character of IFS is used to create $*,
2783 # except with old shells:
2786 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2790 printf %s "checking host system type... " >&6; }
2791 if test ${ac_cv_host+y}
2793 printf %s "(cached) " >&6
2795 if test "x$host_alias" = x; then
2796 ac_cv_host=$ac_cv_build
2798 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2799 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2804 printf "%s\n" "$ac_cv_host" >&6; }
2807 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2810 ac_save_IFS=$IFS; IFS='-'
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2820 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2825 # checks for programs
2837 ac_cpp='$CPP $CPPFLAGS'
2838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841 if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 printf %s "checking for $ac_word... " >&6; }
2846 if test ${ac_cv_prog_CC+y}
2848 printf %s "(cached) " >&6
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 case $as_dir in #(((
2860 *) as_dir=$as_dir/ ;;
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2875 if test -n "$CC"; then
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2877 printf "%s\n" "$CC" >&6; }
2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 printf "%s\n" "no" >&6; }
2885 if test -z "$ac_cv_prog_CC"; then
2887 # Extract the first word of "gcc", so it can be a program name with args.
2888 set dummy gcc; ac_word=$2
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 printf %s "checking for $ac_word... " >&6; }
2891 if test ${ac_cv_prog_ac_ct_CC+y}
2893 printf %s "(cached) " >&6
2895 if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 case $as_dir in #(((
2905 *) as_dir=$as_dir/ ;;
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_ac_ct_CC="gcc"
2910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2922 printf "%s\n" "$ac_ct_CC" >&6; }
2924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 printf "%s\n" "no" >&6; }
2928 if test "x$ac_ct_CC" = x; then
2931 case $cross_compiling:$ac_tool_warned in
2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2934 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2935 ac_tool_warned=yes ;;
2943 if test -z "$CC"; then
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}cc; ac_word=$2
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 printf %s "checking for $ac_word... " >&6; }
2949 if test ${ac_cv_prog_CC+y}
2951 printf %s "(cached) " >&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 case $as_dir in #(((
2963 *) as_dir=$as_dir/ ;;
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_CC="${ac_tool_prefix}cc"
2968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2978 if test -n "$CC"; then
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980 printf "%s\n" "$CC" >&6; }
2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 printf "%s\n" "no" >&6; }
2989 if test -z "$CC"; then
2990 # Extract the first word of "cc", so it can be a program name with args.
2991 set dummy cc; ac_word=$2
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 printf %s "checking for $ac_word... " >&6; }
2994 if test ${ac_cv_prog_CC+y}
2996 printf %s "(cached) " >&6
2998 if test -n "$CC"; then
2999 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 case $as_dir in #(((
3009 *) as_dir=$as_dir/ ;;
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3013 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3014 ac_prog_rejected=yes
3018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3025 if test $ac_prog_rejected = yes; then
3026 # We found a bogon in the path, so make sure we never use it.
3027 set dummy $ac_cv_prog_CC
3029 if test $# != 0; then
3030 # We chose a different compiler from the bogus one.
3031 # However, it has the same basename, so the bogon will be chosen
3032 # first if we set CC to just the basename; use the full file name.
3034 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3040 if test -n "$CC"; then
3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 printf "%s\n" "$CC" >&6; }
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 printf "%s\n" "no" >&6; }
3050 if test -z "$CC"; then
3051 if test -n "$ac_tool_prefix"; then
3052 for ac_prog in cl.exe
3054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 printf %s "checking for $ac_word... " >&6; }
3058 if test ${ac_cv_prog_CC+y}
3060 printf %s "(cached) " >&6
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 case $as_dir in #(((
3072 *) as_dir=$as_dir/ ;;
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3087 if test -n "$CC"; then
3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 printf "%s\n" "$CC" >&6; }
3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 printf "%s\n" "no" >&6; }
3096 test -n "$CC" && break
3099 if test -z "$CC"; then
3101 for ac_prog in cl.exe
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 printf %s "checking for $ac_word... " >&6; }
3107 if test ${ac_cv_prog_ac_ct_CC+y}
3109 printf %s "(cached) " >&6
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 case $as_dir in #(((
3121 *) as_dir=$as_dir/ ;;
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_CC="$ac_prog"
3126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3136 if test -n "$ac_ct_CC"; then
3137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3138 printf "%s\n" "$ac_ct_CC" >&6; }
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 printf "%s\n" "no" >&6; }
3145 test -n "$ac_ct_CC" && break
3148 if test "x$ac_ct_CC" = x; then
3151 case $cross_compiling:$ac_tool_warned in
3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155 ac_tool_warned=yes ;;
3162 if test -z "$CC"; then
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3165 set dummy ${ac_tool_prefix}clang; ac_word=$2
3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 printf %s "checking for $ac_word... " >&6; }
3168 if test ${ac_cv_prog_CC+y}
3170 printf %s "(cached) " >&6
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 case $as_dir in #(((
3182 *) as_dir=$as_dir/ ;;
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_CC="${ac_tool_prefix}clang"
3187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3197 if test -n "$CC"; then
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199 printf "%s\n" "$CC" >&6; }
3201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 printf "%s\n" "no" >&6; }
3207 if test -z "$ac_cv_prog_CC"; then
3209 # Extract the first word of "clang", so it can be a program name with args.
3210 set dummy clang; ac_word=$2
3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 printf %s "checking for $ac_word... " >&6; }
3213 if test ${ac_cv_prog_ac_ct_CC+y}
3215 printf %s "(cached) " >&6
3217 if test -n "$ac_ct_CC"; then
3218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 case $as_dir in #(((
3227 *) as_dir=$as_dir/ ;;
3229 for ac_exec_ext in '' $ac_executable_extensions; do
3230 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3231 ac_cv_prog_ac_ct_CC="clang"
3232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3241 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3242 if test -n "$ac_ct_CC"; then
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3244 printf "%s\n" "$ac_ct_CC" >&6; }
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 printf "%s\n" "no" >&6; }
3250 if test "x$ac_ct_CC" = x; then
3253 case $cross_compiling:$ac_tool_warned in
3255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3256 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3257 ac_tool_warned=yes ;;
3268 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3270 as_fn_error $? "no acceptable C compiler found in \$PATH
3271 See \`config.log' for more details" "$LINENO" 5; }
3273 # Provide some information about the compiler.
3274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3277 for ac_option in --version -v -V -qversion -version; do
3278 { { ac_try="$ac_compiler $ac_option >&5"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 printf "%s\n" "$ac_try_echo"; } >&5
3285 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3287 if test -s conftest.err; then
3289 ... rest of stderr output deleted ...
3290 10q' conftest.err >conftest.er1
3291 cat conftest.er1 >&5
3293 rm -f conftest.er1 conftest.err
3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3309 ac_clean_files_save=$ac_clean_files
3310 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3311 # Try to create an executable without -o first, disregard a.out.
3312 # It will help us diagnose broken compilers, and finding out an intuition
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3315 printf %s "checking whether the C compiler works... " >&6; }
3316 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3318 # The possible output files:
3319 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3322 for ac_file in $ac_files
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3331 if { { ac_try="$ac_link_default"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 printf "%s\n" "$ac_try_echo"; } >&5
3338 (eval "$ac_link_default") 2>&5
3340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }
3343 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3344 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3345 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3346 # so that the user can short-circuit this test for compilers unknown to
3348 for ac_file in $ac_files ''
3350 test -f "$ac_file" || continue
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3355 # We found the default executable, but exeext='' is most
3359 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3361 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3363 # We set ac_cv_exeext here because the later test for it is not
3364 # safe: cross compilers may not add the suffix if given an `-o'
3365 # argument, so we may need to know it at that point already.
3366 # Even if this section looks crufty: it has the advantage of
3373 test "$ac_cv_exeext" = no && ac_cv_exeext=
3378 if test -z "$ac_file"
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3381 printf "%s\n" "no" >&6; }
3382 printf "%s\n" "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error 77 "C compiler cannot create executables
3388 See \`config.log' for more details" "$LINENO" 5; }
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3391 printf "%s\n" "yes" >&6; }
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3394 printf %s "checking for C compiler default output file name... " >&6; }
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3396 printf "%s\n" "$ac_file" >&6; }
3397 ac_exeext=$ac_cv_exeext
3399 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3400 ac_clean_files=$ac_clean_files_save
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3402 printf %s "checking for suffix of executables... " >&6; }
3403 if { { ac_try="$ac_link"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 printf "%s\n" "$ac_try_echo"; } >&5
3410 (eval "$ac_link") 2>&5
3412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }
3415 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3416 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3417 # work properly (i.e., refer to `conftest.exe'), while it won't with
3419 for ac_file in conftest.exe conftest conftest.*; do
3420 test -f "$ac_file" || continue
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3423 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3432 See \`config.log' for more details" "$LINENO" 5; }
3434 rm -f conftest conftest$ac_cv_exeext
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3436 printf "%s\n" "$ac_cv_exeext" >&6; }
3438 rm -f conftest.$ac_ext
3439 EXEEXT=$ac_cv_exeext
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3447 FILE *f = fopen ("conftest.out", "w");
3448 return ferror (f) || fclose (f) != 0;
3454 ac_clean_files="$ac_clean_files conftest.out"
3455 # Check that the compiler produces executables we can run. If not, either
3456 # the compiler is broken, or we cross compile.
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3458 printf %s "checking whether we are cross compiling... " >&6; }
3459 if test "$cross_compiling" != yes; then
3460 { { ac_try="$ac_link"
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466 printf "%s\n" "$ac_try_echo"; } >&5
3467 (eval "$ac_link") 2>&5
3469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }
3471 if { ac_try='./conftest$ac_cv_exeext'
3472 { { case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 printf "%s\n" "$ac_try_echo"; } >&5
3478 (eval "$ac_try") 2>&5
3480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }; }; then
3484 if test "$cross_compiling" = maybe; then
3487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error 77 "cannot run C compiled programs.
3490 If you meant to cross compile, use \`--host'.
3491 See \`config.log' for more details" "$LINENO" 5; }
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3496 printf "%s\n" "$cross_compiling" >&6; }
3498 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3499 ac_clean_files=$ac_clean_files_save
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3501 printf %s "checking for suffix of object files... " >&6; }
3502 if test ${ac_cv_objext+y}
3504 printf %s "(cached) " >&6
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3517 rm -f conftest.o conftest.obj
3518 if { { ac_try="$ac_compile"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 printf "%s\n" "$ac_try_echo"; } >&5
3525 (eval "$ac_compile") 2>&5
3527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }
3530 for ac_file in conftest.o conftest.obj conftest.*; do
3531 test -f "$ac_file" || continue;
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3534 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3539 printf "%s\n" "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3543 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3544 as_fn_error $? "cannot compute suffix of object files: cannot compile
3545 See \`config.log' for more details" "$LINENO" 5; }
3547 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3550 printf "%s\n" "$ac_cv_objext" >&6; }
3551 OBJEXT=$ac_cv_objext
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3554 printf %s "checking whether the compiler supports GNU C... " >&6; }
3555 if test ${ac_cv_c_compiler_gnu+y}
3557 printf %s "(cached) " >&6
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3573 if ac_fn_c_try_compile "$LINENO"
3579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3584 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 if test $ac_compiler_gnu = yes; then
3592 ac_test_CFLAGS=${CFLAGS+y}
3593 ac_save_CFLAGS=$CFLAGS
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3595 printf %s "checking whether $CC accepts -g... " >&6; }
3596 if test ${ac_cv_prog_cc_g+y}
3598 printf %s "(cached) " >&6
3600 ac_save_c_werror_flag=$ac_c_werror_flag
3601 ac_c_werror_flag=yes
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3615 if ac_fn_c_try_compile "$LINENO"
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 if ac_fn_c_try_compile "$LINENO"
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3648 if ac_fn_c_try_compile "$LINENO"
3652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3657 ac_c_werror_flag=$ac_save_c_werror_flag
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3660 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3661 if test $ac_test_CFLAGS; then
3662 CFLAGS=$ac_save_CFLAGS
3663 elif test $ac_cv_prog_cc_g = yes; then
3664 if test "$GCC" = yes; then
3670 if test "$GCC" = yes; then
3677 if test x$ac_prog_cc_stdc = xno
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3680 printf %s "checking for $CC option to enable C11 features... " >&6; }
3681 if test ${ac_cv_prog_cc_c11+y}
3683 printf %s "(cached) " >&6
3685 ac_cv_prog_cc_c11=no
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689 $ac_c_conftest_c11_program
3691 for ac_arg in '' -std=gnu11
3693 CC="$ac_save_CC $ac_arg"
3694 if ac_fn_c_try_compile "$LINENO"
3696 ac_cv_prog_cc_c11=$ac_arg
3698 rm -f core conftest.err conftest.$ac_objext conftest.beam
3699 test "x$ac_cv_prog_cc_c11" != "xno" && break
3701 rm -f conftest.$ac_ext
3705 if test "x$ac_cv_prog_cc_c11" = xno
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708 printf "%s\n" "unsupported" >&6; }
3710 if test "x$ac_cv_prog_cc_c11" = x
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3713 printf "%s\n" "none needed" >&6; }
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3716 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3717 CC="$CC $ac_cv_prog_cc_c11"
3719 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3723 if test x$ac_prog_cc_stdc = xno
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3726 printf %s "checking for $CC option to enable C99 features... " >&6; }
3727 if test ${ac_cv_prog_cc_c99+y}
3729 printf %s "(cached) " >&6
3731 ac_cv_prog_cc_c99=no
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735 $ac_c_conftest_c99_program
3737 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3739 CC="$ac_save_CC $ac_arg"
3740 if ac_fn_c_try_compile "$LINENO"
3742 ac_cv_prog_cc_c99=$ac_arg
3744 rm -f core conftest.err conftest.$ac_objext conftest.beam
3745 test "x$ac_cv_prog_cc_c99" != "xno" && break
3747 rm -f conftest.$ac_ext
3751 if test "x$ac_cv_prog_cc_c99" = xno
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3754 printf "%s\n" "unsupported" >&6; }
3756 if test "x$ac_cv_prog_cc_c99" = x
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3759 printf "%s\n" "none needed" >&6; }
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3762 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3763 CC="$CC $ac_cv_prog_cc_c99"
3765 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3769 if test x$ac_prog_cc_stdc = xno
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3772 printf %s "checking for $CC option to enable C89 features... " >&6; }
3773 if test ${ac_cv_prog_cc_c89+y}
3775 printf %s "(cached) " >&6
3777 ac_cv_prog_cc_c89=no
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781 $ac_c_conftest_c89_program
3783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3785 CC="$ac_save_CC $ac_arg"
3786 if ac_fn_c_try_compile "$LINENO"
3788 ac_cv_prog_cc_c89=$ac_arg
3790 rm -f core conftest.err conftest.$ac_objext conftest.beam
3791 test "x$ac_cv_prog_cc_c89" != "xno" && break
3793 rm -f conftest.$ac_ext
3797 if test "x$ac_cv_prog_cc_c89" = xno
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3800 printf "%s\n" "unsupported" >&6; }
3802 if test "x$ac_cv_prog_cc_c89" = x
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3805 printf "%s\n" "none needed" >&6; }
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3808 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3809 CC="$CC $ac_cv_prog_cc_c89"
3811 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3823 ac_cpp='$CPP $CPPFLAGS'
3824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3828 printf %s "checking how to run the C preprocessor... " >&6; }
3829 # On Suns, sometimes $CPP names a directory.
3830 if test -n "$CPP" && test -d "$CPP"; then
3833 if test -z "$CPP"; then
3834 if test ${ac_cv_prog_CPP+y}
3836 printf %s "(cached) " >&6
3838 # Double quotes because $CC needs to be expanded
3839 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3842 for ac_c_preproc_warn_flag in '' yes
3844 # Use a header file that comes with gcc, so configuring glibc
3845 # with a fresh cross-compiler works.
3846 # On the NeXT, cc -E runs the code through the compiler's parser,
3847 # not just through cpp. "Syntax error" is here to catch this case.
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3853 if ac_fn_c_try_cpp "$LINENO"
3857 # Broken: fails on valid input.
3860 rm -f conftest.err conftest.i conftest.$ac_ext
3862 # OK, works on sane cases. Now check whether nonexistent headers
3863 # can be detected and how.
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3866 #include <ac_nonexistent.h>
3868 if ac_fn_c_try_cpp "$LINENO"
3870 # Broken: success on invalid input.
3873 # Passes both tests.
3877 rm -f conftest.err conftest.i conftest.$ac_ext
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.i conftest.err conftest.$ac_ext
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3896 printf "%s\n" "$CPP" >&6; }
3898 for ac_c_preproc_warn_flag in '' yes
3900 # Use a header file that comes with gcc, so configuring glibc
3901 # with a fresh cross-compiler works.
3902 # On the NeXT, cc -E runs the code through the compiler's parser,
3903 # not just through cpp. "Syntax error" is here to catch this case.
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3909 if ac_fn_c_try_cpp "$LINENO"
3913 # Broken: fails on valid input.
3916 rm -f conftest.err conftest.i conftest.$ac_ext
3918 # OK, works on sane cases. Now check whether nonexistent headers
3919 # can be detected and how.
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922 #include <ac_nonexistent.h>
3924 if ac_fn_c_try_cpp "$LINENO"
3926 # Broken: success on invalid input.
3929 # Passes both tests.
3933 rm -f conftest.err conftest.i conftest.$ac_ext
3936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3937 rm -f conftest.i conftest.err conftest.$ac_ext
3942 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3944 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3945 See \`config.log' for more details" "$LINENO" 5; }
3949 ac_cpp='$CPP $CPPFLAGS'
3950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3964 if test -n "$ac_tool_prefix"; then
3965 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3966 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968 printf %s "checking for $ac_word... " >&6; }
3969 if test ${ac_cv_path_PKG_CONFIG+y}
3971 printf %s "(cached) " >&6
3975 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 case $as_dir in #(((
3985 *) as_dir=$as_dir/ ;;
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3989 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4000 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4001 if test -n "$PKG_CONFIG"; then
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4003 printf "%s\n" "$PKG_CONFIG" >&6; }
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 printf "%s\n" "no" >&6; }
4011 if test -z "$ac_cv_path_PKG_CONFIG"; then
4012 ac_pt_PKG_CONFIG=$PKG_CONFIG
4013 # Extract the first word of "pkg-config", so it can be a program name with args.
4014 set dummy pkg-config; ac_word=$2
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 printf %s "checking for $ac_word... " >&6; }
4017 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4019 printf %s "(cached) " >&6
4021 case $ac_pt_PKG_CONFIG in
4023 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 case $as_dir in #(((
4033 *) as_dir=$as_dir/ ;;
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4037 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4048 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4049 if test -n "$ac_pt_PKG_CONFIG"; then
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4051 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 printf "%s\n" "no" >&6; }
4057 if test "x$ac_pt_PKG_CONFIG" = x; then
4060 case $cross_compiling:$ac_tool_warned in
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4063 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4064 ac_tool_warned=yes ;;
4066 PKG_CONFIG=$ac_pt_PKG_CONFIG
4069 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4073 if test -n "$PKG_CONFIG"; then
4074 _pkg_min_version=0.24
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4076 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4077 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4079 printf "%s\n" "yes" >&6; }
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082 printf "%s\n" "no" >&6; }
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4091 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4096 macro_version='2.4.7'
4097 macro_revision='2.4.7'
4112 ltmain=$ac_aux_dir/ltmain.sh
4114 # Backslashify metacharacters that are still active within
4115 # double-quoted strings.
4116 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4118 # Same as above, but do not quote variable references.
4119 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4121 # Sed substitution to delay expansion of an escaped shell variable in a
4122 # double_quote_subst'ed string.
4123 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4125 # Sed substitution to delay expansion of an escaped single quote.
4126 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4128 # Sed substitution to avoid accidental globbing in evaled expressions
4129 no_glob_subst='s/\*/\\\*/g'
4131 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4132 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4133 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4136 printf %s "checking how to print strings... " >&6; }
4137 # Test print first, because it will be a builtin if present.
4138 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4139 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4141 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4144 # Use this function as a fallback that always works.
4145 func_fallback_echo ()
4147 eval 'cat <<_LTECHO_EOF
4151 ECHO='func_fallback_echo'
4154 # func_echo_all arg...
4155 # Invoke $ECHO with all args, space-separated.
4162 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4163 printf "%s\n" "printf" >&6; } ;;
4164 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4165 printf "%s\n" "print -r" >&6; } ;;
4166 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4167 printf "%s\n" "cat" >&6; } ;;
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4184 printf %s "checking for a sed that does not truncate output... " >&6; }
4185 if test ${ac_cv_path_SED+y}
4187 printf %s "(cached) " >&6
4189 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4190 for ac_i in 1 2 3 4 5 6 7; do
4191 ac_script="$ac_script$as_nl$ac_script"
4193 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4194 { ac_script=; unset ac_script;}
4195 if test -z "$SED"; then
4196 ac_path_SED_found=false
4197 # Loop through the user's path and test for each of PROGNAME-LIST
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 case $as_dir in #(((
4205 *) as_dir=$as_dir/ ;;
4207 for ac_prog in sed gsed
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4211 as_fn_executable_p "$ac_path_SED" || continue
4212 # Check for GNU ac_path_SED and select it if it is found.
4213 # Check for GNU $ac_path_SED
4214 case `"$ac_path_SED" --version 2>&1` in
4216 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4219 printf %s 0123456789 >"conftest.in"
4222 cat "conftest.in" "conftest.in" >"conftest.tmp"
4223 mv "conftest.tmp" "conftest.in"
4224 cp "conftest.in" "conftest.nl"
4225 printf "%s\n" '' >> "conftest.nl"
4226 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4228 as_fn_arith $ac_count + 1 && ac_count=$as_val
4229 if test $ac_count -gt ${ac_path_SED_max-0}; then
4230 # Best one so far, save it but keep looking for a better one
4231 ac_cv_path_SED="$ac_path_SED"
4232 ac_path_SED_max=$ac_count
4234 # 10*(2^10) chars as input seems more than enough
4235 test $ac_count -gt 10 && break
4237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4240 $ac_path_SED_found && break 3
4245 if test -z "$ac_cv_path_SED"; then
4246 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4254 printf "%s\n" "$ac_cv_path_SED" >&6; }
4255 SED="$ac_cv_path_SED"
4258 test -z "$SED" && SED=sed
4259 Xsed="$SED -e 1s/^X//"
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4272 printf %s "checking for grep that handles long lines and -e... " >&6; }
4273 if test ${ac_cv_path_GREP+y}
4275 printf %s "(cached) " >&6
4277 if test -z "$GREP"; then
4278 ac_path_GREP_found=false
4279 # Loop through the user's path and test for each of PROGNAME-LIST
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4284 case $as_dir in #(((
4287 *) as_dir=$as_dir/ ;;
4289 for ac_prog in grep ggrep
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4293 as_fn_executable_p "$ac_path_GREP" || continue
4294 # Check for GNU ac_path_GREP and select it if it is found.
4295 # Check for GNU $ac_path_GREP
4296 case `"$ac_path_GREP" --version 2>&1` in
4298 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4301 printf %s 0123456789 >"conftest.in"
4304 cat "conftest.in" "conftest.in" >"conftest.tmp"
4305 mv "conftest.tmp" "conftest.in"
4306 cp "conftest.in" "conftest.nl"
4307 printf "%s\n" 'GREP' >> "conftest.nl"
4308 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4310 as_fn_arith $ac_count + 1 && ac_count=$as_val
4311 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4312 # Best one so far, save it but keep looking for a better one
4313 ac_cv_path_GREP="$ac_path_GREP"
4314 ac_path_GREP_max=$ac_count
4316 # 10*(2^10) chars as input seems more than enough
4317 test $ac_count -gt 10 && break
4319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322 $ac_path_GREP_found && break 3
4327 if test -z "$ac_cv_path_GREP"; then
4328 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331 ac_cv_path_GREP=$GREP
4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4336 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4337 GREP="$ac_cv_path_GREP"
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4341 printf %s "checking for egrep... " >&6; }
4342 if test ${ac_cv_path_EGREP+y}
4344 printf %s "(cached) " >&6
4346 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4347 then ac_cv_path_EGREP="$GREP -E"
4349 if test -z "$EGREP"; then
4350 ac_path_EGREP_found=false
4351 # Loop through the user's path and test for each of PROGNAME-LIST
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4356 case $as_dir in #(((
4359 *) as_dir=$as_dir/ ;;
4361 for ac_prog in egrep
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4365 as_fn_executable_p "$ac_path_EGREP" || continue
4366 # Check for GNU ac_path_EGREP and select it if it is found.
4367 # Check for GNU $ac_path_EGREP
4368 case `"$ac_path_EGREP" --version 2>&1` in
4370 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4373 printf %s 0123456789 >"conftest.in"
4376 cat "conftest.in" "conftest.in" >"conftest.tmp"
4377 mv "conftest.tmp" "conftest.in"
4378 cp "conftest.in" "conftest.nl"
4379 printf "%s\n" 'EGREP' >> "conftest.nl"
4380 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4382 as_fn_arith $ac_count + 1 && ac_count=$as_val
4383 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4384 # Best one so far, save it but keep looking for a better one
4385 ac_cv_path_EGREP="$ac_path_EGREP"
4386 ac_path_EGREP_max=$ac_count
4388 # 10*(2^10) chars as input seems more than enough
4389 test $ac_count -gt 10 && break
4391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4394 $ac_path_EGREP_found && break 3
4399 if test -z "$ac_cv_path_EGREP"; then
4400 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4403 ac_cv_path_EGREP=$EGREP
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4409 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
4410 EGREP="$ac_cv_path_EGREP"
4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4414 printf %s "checking for fgrep... " >&6; }
4415 if test ${ac_cv_path_FGREP+y}
4417 printf %s "(cached) " >&6
4419 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4420 then ac_cv_path_FGREP="$GREP -F"
4422 if test -z "$FGREP"; then
4423 ac_path_FGREP_found=false
4424 # Loop through the user's path and test for each of PROGNAME-LIST
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4429 case $as_dir in #(((
4432 *) as_dir=$as_dir/ ;;
4434 for ac_prog in fgrep
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
4438 as_fn_executable_p "$ac_path_FGREP" || continue
4439 # Check for GNU ac_path_FGREP and select it if it is found.
4440 # Check for GNU $ac_path_FGREP
4441 case `"$ac_path_FGREP" --version 2>&1` in
4443 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4446 printf %s 0123456789 >"conftest.in"
4449 cat "conftest.in" "conftest.in" >"conftest.tmp"
4450 mv "conftest.tmp" "conftest.in"
4451 cp "conftest.in" "conftest.nl"
4452 printf "%s\n" 'FGREP' >> "conftest.nl"
4453 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4455 as_fn_arith $ac_count + 1 && ac_count=$as_val
4456 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4457 # Best one so far, save it but keep looking for a better one
4458 ac_cv_path_FGREP="$ac_path_FGREP"
4459 ac_path_FGREP_max=$ac_count
4461 # 10*(2^10) chars as input seems more than enough
4462 test $ac_count -gt 10 && break
4464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4467 $ac_path_FGREP_found && break 3
4472 if test -z "$ac_cv_path_FGREP"; then
4473 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4476 ac_cv_path_FGREP=$FGREP
4481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4482 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
4483 FGREP="$ac_cv_path_FGREP"
4486 test -z "$GREP" && GREP=grep
4506 # Check whether --with-gnu-ld was given.
4507 if test ${with_gnu_ld+y}
4509 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4515 if test yes = "$GCC"; then
4516 # Check if gcc -print-prog-name=ld gives a path.
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4518 printf %s "checking for ld used by $CC... " >&6; }
4521 # gcc leaves a trailing carriage return, which upsets mingw
4522 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4524 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4527 # Accept absolute paths.
4529 re_direlt='/[^/][^/]*/\.\./'
4530 # Canonicalize the pathname of ld
4531 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4532 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4533 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4535 test -z "$LD" && LD=$ac_prog
4538 # If it fails, then pretend we aren't using GCC.
4542 # If it is relative, then search for the first ld in PATH.
4546 elif test yes = "$with_gnu_ld"; then
4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4548 printf %s "checking for GNU ld... " >&6; }
4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4551 printf %s "checking for non-GNU ld... " >&6; }
4553 if test ${lt_cv_path_LD+y}
4555 printf %s "(cached) " >&6
4557 if test -z "$LD"; then
4558 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4559 for ac_dir in $PATH; do
4561 test -z "$ac_dir" && ac_dir=.
4562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4563 lt_cv_path_LD=$ac_dir/$ac_prog
4564 # Check to see if the program is GNU ld. I'd rather use --version,
4565 # but apparently some variants of GNU ld only accept -v.
4566 # Break only if it was the GNU/non-GNU ld that we prefer.
4567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4568 *GNU* | *'with BFD'*)
4569 test no != "$with_gnu_ld" && break
4572 test yes != "$with_gnu_ld" && break
4579 lt_cv_path_LD=$LD # Let the user override the test with a path.
4584 if test -n "$LD"; then
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4586 printf "%s\n" "$LD" >&6; }
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 printf "%s\n" "no" >&6; }
4591 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4593 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
4594 if test ${lt_cv_prog_gnu_ld+y}
4596 printf %s "(cached) " >&6
4598 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4599 case `$LD -v 2>&1 </dev/null` in
4600 *GNU* | *'with BFD'*)
4601 lt_cv_prog_gnu_ld=yes
4604 lt_cv_prog_gnu_ld=no
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4609 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
4610 with_gnu_ld=$lt_cv_prog_gnu_ld
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4621 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4622 if test ${lt_cv_path_NM+y}
4624 printf %s "(cached) " >&6
4626 if test -n "$NM"; then
4627 # Let the user override the test.
4630 lt_nm_to_check=${ac_tool_prefix}nm
4631 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4632 lt_nm_to_check="$lt_nm_to_check nm"
4634 for lt_tmp_nm in $lt_nm_to_check; do
4635 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4636 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4638 test -z "$ac_dir" && ac_dir=.
4639 tmp_nm=$ac_dir/$lt_tmp_nm
4640 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4641 # Check to see if the nm accepts a BSD-compat flag.
4642 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4643 # nm: unknown option "B" ignored
4644 # Tru64's nm complains that /dev/null is an invalid object file
4645 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4647 mingw*) lt_bad_file=conftest.nm/nofile ;;
4648 *) lt_bad_file=/dev/null ;;
4650 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
4651 *$lt_bad_file* | *'Invalid file or object type'*)
4652 lt_cv_path_NM="$tmp_nm -B"
4656 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
4658 lt_cv_path_NM="$tmp_nm -p"
4662 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4663 continue # so that we can try to find one that supports BSD flags
4672 : ${lt_cv_path_NM=no}
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4676 printf "%s\n" "$lt_cv_path_NM" >&6; }
4677 if test no != "$lt_cv_path_NM"; then
4680 # Didn't find any BSD compatible name lister, look for dumpbin.
4681 if test -n "$DUMPBIN"; then :
4682 # Let the user override the test.
4684 if test -n "$ac_tool_prefix"; then
4685 for ac_prog in dumpbin "link -dump"
4687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 printf %s "checking for $ac_word... " >&6; }
4691 if test ${ac_cv_prog_DUMPBIN+y}
4693 printf %s "(cached) " >&6
4695 if test -n "$DUMPBIN"; then
4696 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 case $as_dir in #(((
4705 *) as_dir=$as_dir/ ;;
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4719 DUMPBIN=$ac_cv_prog_DUMPBIN
4720 if test -n "$DUMPBIN"; then
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4722 printf "%s\n" "$DUMPBIN" >&6; }
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725 printf "%s\n" "no" >&6; }
4729 test -n "$DUMPBIN" && break
4732 if test -z "$DUMPBIN"; then
4733 ac_ct_DUMPBIN=$DUMPBIN
4734 for ac_prog in dumpbin "link -dump"
4736 # Extract the first word of "$ac_prog", so it can be a program name with args.
4737 set dummy $ac_prog; ac_word=$2
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 printf %s "checking for $ac_word... " >&6; }
4740 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
4742 printf %s "(cached) " >&6
4744 if test -n "$ac_ct_DUMPBIN"; then
4745 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 case $as_dir in #(((
4754 *) as_dir=$as_dir/ ;;
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4758 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4768 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4769 if test -n "$ac_ct_DUMPBIN"; then
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4771 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
4773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 printf "%s\n" "no" >&6; }
4778 test -n "$ac_ct_DUMPBIN" && break
4781 if test "x$ac_ct_DUMPBIN" = x; then
4784 case $cross_compiling:$ac_tool_warned in
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4787 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4788 ac_tool_warned=yes ;;
4790 DUMPBIN=$ac_ct_DUMPBIN
4794 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
4796 DUMPBIN="$DUMPBIN -symbols -headers"
4804 if test : != "$DUMPBIN"; then
4808 test -z "$NM" && NM=nm
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4816 printf %s "checking the name lister ($NM) interface... " >&6; }
4817 if test ${lt_cv_nm_interface+y}
4819 printf %s "(cached) " >&6
4821 lt_cv_nm_interface="BSD nm"
4822 echo "int some_variable = 0;" > conftest.$ac_ext
4823 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4824 (eval "$ac_compile" 2>conftest.err)
4825 cat conftest.err >&5
4826 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4827 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4828 cat conftest.err >&5
4829 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4830 cat conftest.out >&5
4831 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4832 lt_cv_nm_interface="MS dumpbin"
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4837 printf "%s\n" "$lt_cv_nm_interface" >&6; }
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4840 printf %s "checking whether ln -s works... " >&6; }
4842 if test "$LN_S" = "ln -s"; then
4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4844 printf "%s\n" "yes" >&6; }
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4847 printf "%s\n" "no, using $LN_S" >&6; }
4850 # find the maximum length of command line arguments
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4852 printf %s "checking the maximum length of command line arguments... " >&6; }
4853 if test ${lt_cv_sys_max_cmd_len+y}
4855 printf %s "(cached) " >&6
4862 # On DJGPP, this test can blow up pretty badly due to problems in libc
4863 # (any single argument exceeding 2000 bytes causes a buffer overrun
4864 # during glob expansion). Even if it were fixed, the result of this
4865 # check would be larger than it should be.
4866 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4870 # Under GNU Hurd, this test is not required because there is
4871 # no limit to the length of command line arguments.
4872 # Libtool will interpret -1 as no limit whatsoever
4873 lt_cv_sys_max_cmd_len=-1;
4876 cygwin* | mingw* | cegcc*)
4877 # On Win9x/ME, this test blows up -- it succeeds, but takes
4878 # about 5 minutes as the teststring grows exponentially.
4879 # Worse, since 9x/ME are not pre-emptively multitasking,
4880 # you end up with a "frozen" computer, even though with patience
4881 # the test eventually succeeds (with a max line length of 256k).
4882 # Instead, let's just punt: use the minimum linelength reported by
4883 # all of the supported platforms: 8192 (on NT/2K/XP).
4884 lt_cv_sys_max_cmd_len=8192;
4888 # On MiNT this can take a long time and run out of memory.
4889 lt_cv_sys_max_cmd_len=8192;
4893 # On AmigaOS with pdksh, this test takes hours, literally.
4894 # So we just punt and use a minimum line length of 8192.
4895 lt_cv_sys_max_cmd_len=8192;
4898 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
4899 # This has been around since 386BSD, at least. Likely further.
4900 if test -x /sbin/sysctl; then
4901 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4902 elif test -x /usr/sbin/sysctl; then
4903 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4905 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4907 # And add a safety zone
4908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4913 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4914 lt_cv_sys_max_cmd_len=196608
4918 # The test takes a long time on OS/2.
4919 lt_cv_sys_max_cmd_len=8192
4923 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4924 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4925 # nice to cause kernel panics so lets avoid the loop below.
4926 # First set a reasonable default.
4927 lt_cv_sys_max_cmd_len=16384
4929 if test -x /sbin/sysconfig; then
4930 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4931 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4936 lt_cv_sys_max_cmd_len=102400
4938 sysv5* | sco5v6* | sysv4.2uw2*)
4939 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4940 if test -n "$kargmax"; then
4941 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
4943 lt_cv_sys_max_cmd_len=32768
4947 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4948 if test -n "$lt_cv_sys_max_cmd_len" && \
4949 test undefined != "$lt_cv_sys_max_cmd_len"; then
4950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4953 # Make teststring a little bigger before we do anything with it.
4954 # a 1K string should be a reasonable start.
4955 for i in 1 2 3 4 5 6 7 8; do
4956 teststring=$teststring$teststring
4958 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4959 # If test is not a shell built-in, we'll probably end up computing a
4960 # maximum length that is only half of the actual maximum length, but
4962 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4963 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4964 test 17 != "$i" # 1/2 MB should be enough
4967 teststring=$teststring$teststring
4969 # Only check the string length outside the loop.
4970 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4972 # Add a significant safety factor because C++ compilers can tack on
4973 # massive amounts of additional arguments before passing them to the
4974 # linker. It appears as though 1/2 is a usable value.
4975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4982 if test -n "$lt_cv_sys_max_cmd_len"; then
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4984 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
4987 printf "%s\n" "none" >&6; }
4989 max_cmd_len=$lt_cv_sys_max_cmd_len
5000 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5010 # test EBCDIC or ASCII
5011 case `echo X|tr X '\101'` in
5012 A) # ASCII based system
5013 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5014 lt_SP2NL='tr \040 \012'
5015 lt_NL2SP='tr \015\012 \040\040'
5017 *) # EBCDIC based system
5018 lt_SP2NL='tr \100 \n'
5019 lt_NL2SP='tr \r\n \100\100'
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5032 printf %s "checking how to convert $build file names to $host format... " >&6; }
5033 if test ${lt_cv_to_host_file_cmd+y}
5035 printf %s "(cached) " >&6
5040 *-*-mingw* ) # actually msys
5041 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5044 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5046 * ) # otherwise, assume *nix
5047 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5053 *-*-mingw* ) # actually msys
5054 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5057 lt_cv_to_host_file_cmd=func_convert_file_noop
5059 * ) # otherwise, assume *nix
5060 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5064 * ) # unhandled hosts (and "normal" native builds)
5065 lt_cv_to_host_file_cmd=func_convert_file_noop
5071 to_host_file_cmd=$lt_cv_to_host_file_cmd
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5073 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5080 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5081 if test ${lt_cv_to_tool_file_cmd+y}
5083 printf %s "(cached) " >&6
5085 #assume ordinary cross tools, or native build.
5086 lt_cv_to_tool_file_cmd=func_convert_file_noop
5090 *-*-mingw* ) # actually msys
5091 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5099 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5101 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5108 printf %s "checking for $LD option to reload object files... " >&6; }
5109 if test ${lt_cv_ld_reload_flag+y}
5111 printf %s "(cached) " >&6
5113 lt_cv_ld_reload_flag='-r'
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5116 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5117 reload_flag=$lt_cv_ld_reload_flag
5118 case $reload_flag in
5120 *) reload_flag=" $reload_flag" ;;
5122 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5124 cygwin* | mingw* | pw32* | cegcc*)
5125 if test yes != "$GCC"; then
5130 if test yes = "$GCC"; then
5131 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5133 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}file; ac_word=$2
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 printf %s "checking for $ac_word... " >&6; }
5151 if test ${ac_cv_prog_FILECMD+y}
5153 printf %s "(cached) " >&6
5155 if test -n "$FILECMD"; then
5156 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 case $as_dir in #(((
5165 *) as_dir=$as_dir/ ;;
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5179 FILECMD=$ac_cv_prog_FILECMD
5180 if test -n "$FILECMD"; then
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5182 printf "%s\n" "$FILECMD" >&6; }
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 printf "%s\n" "no" >&6; }
5190 if test -z "$ac_cv_prog_FILECMD"; then
5191 ac_ct_FILECMD=$FILECMD
5192 # Extract the first word of "file", so it can be a program name with args.
5193 set dummy file; ac_word=$2
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 printf %s "checking for $ac_word... " >&6; }
5196 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5198 printf %s "(cached) " >&6
5200 if test -n "$ac_ct_FILECMD"; then
5201 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 case $as_dir in #(((
5210 *) as_dir=$as_dir/ ;;
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_ac_ct_FILECMD="file"
5215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5224 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5225 if test -n "$ac_ct_FILECMD"; then
5226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5227 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 printf "%s\n" "no" >&6; }
5233 if test "x$ac_ct_FILECMD" = x; then
5236 case $cross_compiling:$ac_tool_warned in
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5239 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5240 ac_tool_warned=yes ;;
5242 FILECMD=$ac_ct_FILECMD
5245 FILECMD="$ac_cv_prog_FILECMD"
5254 if test -n "$ac_tool_prefix"; then
5255 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5256 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 printf %s "checking for $ac_word... " >&6; }
5259 if test ${ac_cv_prog_OBJDUMP+y}
5261 printf %s "(cached) " >&6
5263 if test -n "$OBJDUMP"; then
5264 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 case $as_dir in #(((
5273 *) as_dir=$as_dir/ ;;
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5277 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5287 OBJDUMP=$ac_cv_prog_OBJDUMP
5288 if test -n "$OBJDUMP"; then
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5290 printf "%s\n" "$OBJDUMP" >&6; }
5292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 printf "%s\n" "no" >&6; }
5298 if test -z "$ac_cv_prog_OBJDUMP"; then
5299 ac_ct_OBJDUMP=$OBJDUMP
5300 # Extract the first word of "objdump", so it can be a program name with args.
5301 set dummy objdump; ac_word=$2
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 printf %s "checking for $ac_word... " >&6; }
5304 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5306 printf %s "(cached) " >&6
5308 if test -n "$ac_ct_OBJDUMP"; then
5309 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 case $as_dir in #(((
5318 *) as_dir=$as_dir/ ;;
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5322 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5332 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5333 if test -n "$ac_ct_OBJDUMP"; then
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5335 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 printf "%s\n" "no" >&6; }
5341 if test "x$ac_ct_OBJDUMP" = x; then
5344 case $cross_compiling:$ac_tool_warned in
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348 ac_tool_warned=yes ;;
5350 OBJDUMP=$ac_ct_OBJDUMP
5353 OBJDUMP="$ac_cv_prog_OBJDUMP"
5356 test -z "$OBJDUMP" && OBJDUMP=objdump
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5364 printf %s "checking how to recognize dependent libraries... " >&6; }
5365 if test ${lt_cv_deplibs_check_method+y}
5367 printf %s "(cached) " >&6
5369 lt_cv_file_magic_cmd='$MAGIC_CMD'
5370 lt_cv_file_magic_test_file=
5371 lt_cv_deplibs_check_method='unknown'
5372 # Need to set the preceding variable on all platforms that support
5373 # interlibrary dependencies.
5374 # 'none' -- dependencies not supported.
5375 # 'unknown' -- same as none, but documents that we really don't know.
5376 # 'pass_all' -- all dependencies passed with no checks.
5377 # 'test_compile' -- check by making test program.
5378 # 'file_magic [[regex]]' -- check by looking for files in library path
5379 # that responds to the $file_magic_cmd with a given extended regex.
5380 # If you have 'file' or equivalent on your system and you're not sure
5381 # whether 'pass_all' will *always* work, you probably want this one.
5385 lt_cv_deplibs_check_method=pass_all
5389 lt_cv_deplibs_check_method=pass_all
5393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5394 lt_cv_file_magic_cmd='$FILECMD -L'
5395 lt_cv_file_magic_test_file=/shlib/libc.so
5399 # func_win32_libid is a shell function defined in ltmain.sh
5400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5401 lt_cv_file_magic_cmd='func_win32_libid'
5405 # Base MSYS/MinGW do not provide the 'file' command needed by
5406 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5407 # unless we find 'file', for example because we are cross-compiling.
5408 if ( file / ) >/dev/null 2>&1; then
5409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5410 lt_cv_file_magic_cmd='func_win32_libid'
5412 # Keep this pattern in sync with the one in func_win32_libid.
5413 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5414 lt_cv_file_magic_cmd='$OBJDUMP -f'
5419 # use the weaker test based on 'objdump'. See mingw*.
5420 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5421 lt_cv_file_magic_cmd='$OBJDUMP -f'
5424 darwin* | rhapsody*)
5425 lt_cv_deplibs_check_method=pass_all
5428 freebsd* | dragonfly* | midnightbsd*)
5429 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5432 # Not sure whether the presence of OpenBSD here was a mistake.
5433 # Let's accept both of them until this is cleared up.
5434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5435 lt_cv_file_magic_cmd=$FILECMD
5436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5440 lt_cv_deplibs_check_method=pass_all
5445 lt_cv_deplibs_check_method=pass_all
5448 hpux10.20* | hpux11*)
5449 lt_cv_file_magic_cmd=$FILECMD
5452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5456 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]'
5457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5471 irix5* | irix6* | nonstopux*)
5473 *-32|*"-32 ") libmagic=32-bit;;
5474 *-n32|*"-n32 ") libmagic=N32;;
5475 *-64|*"-64 ") libmagic=64-bit;;
5476 *) libmagic=never-match;;
5478 lt_cv_deplibs_check_method=pass_all
5481 # This must be glibc/ELF.
5482 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5483 lt_cv_deplibs_check_method=pass_all
5487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5496 lt_cv_file_magic_cmd=$FILECMD
5497 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5501 lt_cv_deplibs_check_method=pass_all
5505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5512 osf3* | osf4* | osf5*)
5513 lt_cv_deplibs_check_method=pass_all
5517 lt_cv_deplibs_check_method=pass_all
5521 lt_cv_deplibs_check_method=pass_all
5524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5525 lt_cv_deplibs_check_method=pass_all
5529 case $host_vendor in
5531 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]'
5532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5535 lt_cv_deplibs_check_method=pass_all
5538 lt_cv_file_magic_cmd='/bin/file'
5539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5542 lt_cv_file_magic_cmd='/bin/file'
5543 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5544 lt_cv_file_magic_test_file=/lib/libc.so
5547 lt_cv_deplibs_check_method=pass_all
5550 lt_cv_deplibs_check_method=pass_all
5556 lt_cv_deplibs_check_method=pass_all
5559 lt_cv_deplibs_check_method=pass_all
5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5565 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
5569 if test "$build" = "$host"; then
5572 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5575 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5581 file_magic_cmd=$lt_cv_file_magic_cmd
5582 deplibs_check_method=$lt_cv_deplibs_check_method
5583 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5606 if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5608 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 printf %s "checking for $ac_word... " >&6; }
5611 if test ${ac_cv_prog_DLLTOOL+y}
5613 printf %s "(cached) " >&6
5615 if test -n "$DLLTOOL"; then
5616 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 case $as_dir in #(((
5625 *) as_dir=$as_dir/ ;;
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5629 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5639 DLLTOOL=$ac_cv_prog_DLLTOOL
5640 if test -n "$DLLTOOL"; then
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5642 printf "%s\n" "$DLLTOOL" >&6; }
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 printf "%s\n" "no" >&6; }
5650 if test -z "$ac_cv_prog_DLLTOOL"; then
5651 ac_ct_DLLTOOL=$DLLTOOL
5652 # Extract the first word of "dlltool", so it can be a program name with args.
5653 set dummy dlltool; ac_word=$2
5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 printf %s "checking for $ac_word... " >&6; }
5656 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5658 printf %s "(cached) " >&6
5660 if test -n "$ac_ct_DLLTOOL"; then
5661 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667 case $as_dir in #(((
5670 *) as_dir=$as_dir/ ;;
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5674 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5684 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5685 if test -n "$ac_ct_DLLTOOL"; then
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5687 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5690 printf "%s\n" "no" >&6; }
5693 if test "x$ac_ct_DLLTOOL" = x; then
5696 case $cross_compiling:$ac_tool_warned in
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5699 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5700 ac_tool_warned=yes ;;
5702 DLLTOOL=$ac_ct_DLLTOOL
5705 DLLTOOL="$ac_cv_prog_DLLTOOL"
5708 test -z "$DLLTOOL" && DLLTOOL=dlltool
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5717 printf %s "checking how to associate runtime and link libraries... " >&6; }
5718 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
5720 printf %s "(cached) " >&6
5722 lt_cv_sharedlib_from_linklib_cmd='unknown'
5725 cygwin* | mingw* | pw32* | cegcc*)
5726 # two different shell functions defined in ltmain.sh;
5727 # decide which one to use based on capabilities of $DLLTOOL
5728 case `$DLLTOOL --help 2>&1` in
5729 *--identify-strict*)
5730 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5733 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5738 # fallback: assume linklib IS sharedlib
5739 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5745 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5746 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5747 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5756 if test -n "$ac_tool_prefix"; then
5759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5760 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 printf %s "checking for $ac_word... " >&6; }
5763 if test ${ac_cv_prog_AR+y}
5765 printf %s "(cached) " >&6
5767 if test -n "$AR"; then
5768 ac_cv_prog_AR="$AR" # Let the user override the test.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 case $as_dir in #(((
5777 *) as_dir=$as_dir/ ;;
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5792 if test -n "$AR"; then
5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5794 printf "%s\n" "$AR" >&6; }
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 printf "%s\n" "no" >&6; }
5801 test -n "$AR" && break
5804 if test -z "$AR"; then
5808 # Extract the first word of "$ac_prog", so it can be a program name with args.
5809 set dummy $ac_prog; ac_word=$2
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 printf %s "checking for $ac_word... " >&6; }
5812 if test ${ac_cv_prog_ac_ct_AR+y}
5814 printf %s "(cached) " >&6
5816 if test -n "$ac_ct_AR"; then
5817 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 case $as_dir in #(((
5826 *) as_dir=$as_dir/ ;;
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5830 ac_cv_prog_ac_ct_AR="$ac_prog"
5831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5840 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5841 if test -n "$ac_ct_AR"; then
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5843 printf "%s\n" "$ac_ct_AR" >&6; }
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 printf "%s\n" "no" >&6; }
5850 test -n "$ac_ct_AR" && break
5853 if test "x$ac_ct_AR" = x; then
5856 case $cross_compiling:$ac_tool_warned in
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5860 ac_tool_warned=yes ;;
5873 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
5874 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
5875 # higher priority because thats what people were doing historically (setting
5876 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
5877 # variable obsoleted/removed.
5879 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
5880 lt_ar_flags=$AR_FLAGS
5887 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
5888 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5896 printf %s "checking for archiver @FILE support... " >&6; }
5897 if test ${lt_cv_ar_at_file+y}
5899 printf %s "(cached) " >&6
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5913 if ac_fn_c_try_compile "$LINENO"
5915 echo conftest.$ac_objext > conftest.lst
5916 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5918 (eval $lt_ar_try) 2>&5
5920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; }
5922 if test 0 -eq "$ac_status"; then
5923 # Ensure the archiver fails upon bogus file names.
5924 rm -f conftest.$ac_objext libconftest.a
5925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5926 (eval $lt_ar_try) 2>&5
5928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5929 test $ac_status = 0; }
5930 if test 0 -ne "$ac_status"; then
5934 rm -f conftest.* libconftest.a
5937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5941 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
5943 if test no = "$lt_cv_ar_at_file"; then
5946 archiver_list_spec=$lt_cv_ar_at_file
5955 if test -n "$ac_tool_prefix"; then
5956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5957 set dummy ${ac_tool_prefix}strip; ac_word=$2
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 printf %s "checking for $ac_word... " >&6; }
5960 if test ${ac_cv_prog_STRIP+y}
5962 printf %s "(cached) " >&6
5964 if test -n "$STRIP"; then
5965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 case $as_dir in #(((
5974 *) as_dir=$as_dir/ ;;
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5978 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5988 STRIP=$ac_cv_prog_STRIP
5989 if test -n "$STRIP"; then
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5991 printf "%s\n" "$STRIP" >&6; }
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 printf "%s\n" "no" >&6; }
5999 if test -z "$ac_cv_prog_STRIP"; then
6001 # Extract the first word of "strip", so it can be a program name with args.
6002 set dummy strip; ac_word=$2
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6004 printf %s "checking for $ac_word... " >&6; }
6005 if test ${ac_cv_prog_ac_ct_STRIP+y}
6007 printf %s "(cached) " >&6
6009 if test -n "$ac_ct_STRIP"; then
6010 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 case $as_dir in #(((
6019 *) as_dir=$as_dir/ ;;
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6023 ac_cv_prog_ac_ct_STRIP="strip"
6024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6033 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6034 if test -n "$ac_ct_STRIP"; then
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6036 printf "%s\n" "$ac_ct_STRIP" >&6; }
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 printf "%s\n" "no" >&6; }
6042 if test "x$ac_ct_STRIP" = x; then
6045 case $cross_compiling:$ac_tool_warned in
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6048 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6049 ac_tool_warned=yes ;;
6054 STRIP="$ac_cv_prog_STRIP"
6057 test -z "$STRIP" && STRIP=:
6064 if test -n "$ac_tool_prefix"; then
6065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6066 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 printf %s "checking for $ac_word... " >&6; }
6069 if test ${ac_cv_prog_RANLIB+y}
6071 printf %s "(cached) " >&6
6073 if test -n "$RANLIB"; then
6074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 case $as_dir in #(((
6083 *) as_dir=$as_dir/ ;;
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6087 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6097 RANLIB=$ac_cv_prog_RANLIB
6098 if test -n "$RANLIB"; then
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6100 printf "%s\n" "$RANLIB" >&6; }
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 printf "%s\n" "no" >&6; }
6108 if test -z "$ac_cv_prog_RANLIB"; then
6109 ac_ct_RANLIB=$RANLIB
6110 # Extract the first word of "ranlib", so it can be a program name with args.
6111 set dummy ranlib; ac_word=$2
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 printf %s "checking for $ac_word... " >&6; }
6114 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6116 printf %s "(cached) " >&6
6118 if test -n "$ac_ct_RANLIB"; then
6119 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 case $as_dir in #(((
6128 *) as_dir=$as_dir/ ;;
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6132 ac_cv_prog_ac_ct_RANLIB="ranlib"
6133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6143 if test -n "$ac_ct_RANLIB"; then
6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6145 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 printf "%s\n" "no" >&6; }
6151 if test "x$ac_ct_RANLIB" = x; then
6154 case $cross_compiling:$ac_tool_warned in
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6157 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6158 ac_tool_warned=yes ;;
6160 RANLIB=$ac_ct_RANLIB
6163 RANLIB="$ac_cv_prog_RANLIB"
6166 test -z "$RANLIB" && RANLIB=:
6173 # Determine commands to create old-style static archives.
6174 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6175 old_postinstall_cmds='chmod 644 $oldlib'
6176 old_postuninstall_cmds=
6178 if test -n "$RANLIB"; then
6181 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6184 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6187 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6192 lock_old_archive_extraction=yes ;;
6194 lock_old_archive_extraction=no ;;
6217 for ac_prog in gawk mawk nawk awk
6219 # Extract the first word of "$ac_prog", so it can be a program name with args.
6220 set dummy $ac_prog; ac_word=$2
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 printf %s "checking for $ac_word... " >&6; }
6223 if test ${ac_cv_prog_AWK+y}
6225 printf %s "(cached) " >&6
6227 if test -n "$AWK"; then
6228 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 case $as_dir in #(((
6237 *) as_dir=$as_dir/ ;;
6239 for ac_exec_ext in '' $ac_executable_extensions; do
6240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6241 ac_cv_prog_AWK="$ac_prog"
6242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6252 if test -n "$AWK"; then
6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6254 printf "%s\n" "$AWK" >&6; }
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 printf "%s\n" "no" >&6; }
6261 test -n "$AWK" && break
6282 # If no C compiler was specified, use CC.
6285 # If no C compiler flags were specified, use CFLAGS.
6286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6288 # Allow CC to be a program name with arguments.
6292 # Check for command to grab the raw symbol name followed by C symbol from nm.
6293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6294 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6295 if test ${lt_cv_sys_global_symbol_pipe+y}
6297 printf %s "(cached) " >&6
6300 # These are sane defaults that work on at least a few old systems.
6301 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6303 # Character class describing NM global symbol codes.
6304 symcode='[BCDEGRST]'
6306 # Regexp to match symbols that can be accessed directly from C.
6307 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6309 # Define system-specific variables.
6314 cygwin* | mingw* | pw32* | cegcc*)
6315 symcode='[ABCDGISTW]'
6318 if test ia64 = "$host_cpu"; then
6319 symcode='[ABCDEGRST]'
6323 symcode='[BCDEGRST]'
6326 symcode='[BCDEGQRST]'
6337 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6345 # If we're using GNU nm, then use its standard symbol codes.
6346 case `$NM -V 2>&1` in
6347 *GNU* | *'with BFD'*)
6348 symcode='[ABCDGIRSTW]' ;;
6351 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6352 # Gets list of data symbols to import.
6353 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6354 # Adjust the below global symbol transforms to fixup imported variables.
6355 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6356 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6357 lt_c_name_lib_hook="\
6358 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6359 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6361 # Disable hooks by default.
6362 lt_cv_sys_global_symbol_to_import=
6368 # Transform an extracted symbol line into a proper C declaration.
6369 # Some systems (esp. on ia64) link data and code symbols differently,
6370 # so use this general approach.
6371 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6373 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6374 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6376 # Transform an extracted symbol line into symbol name and symbol address
6377 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6379 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6380 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6382 # Transform an extracted symbol line into symbol name with lib prefix and
6384 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6385 $lt_c_name_lib_hook\
6386 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6387 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6388 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6390 # Handle CRLF in mingw tool chain
6394 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6398 # Try without a prefix underscore, then with it.
6399 for ac_symprfx in "" "_"; do
6401 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6402 symxfrm="\\1 $ac_symprfx\\2 \\2"
6404 # Write the raw and C identifiers.
6405 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6406 # Fake it for dumpbin and say T for any non-static function,
6407 # D for any global variable and I for any imported variable.
6408 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6409 # which start with @ or ?.
6410 lt_cv_sys_global_symbol_pipe="$AWK '"\
6411 " {last_section=section; section=\$ 3};"\
6412 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6413 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6414 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6415 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6416 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6417 " \$ 0!~/External *\|/{next};"\
6418 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6419 " {if(hide[section]) next};"\
6420 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6421 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6422 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6423 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6424 " ' prfx=^$ac_symprfx"
6426 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6428 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
6430 # Check to see that the pipe works correctly.
6434 cat > conftest.$ac_ext <<_LT_EOF
6439 void nm_test_func(void);
6440 void nm_test_func(void){}
6444 int main(){nm_test_var='a';nm_test_func();return(0);}
6447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6448 (eval $ac_compile) 2>&5
6450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6451 test $ac_status = 0; }; then
6452 # Now try to grab the symbols.
6454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6455 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6458 test $ac_status = 0; } && test -s "$nlist"; then
6459 # Try sorting and uniquifying the output.
6460 if sort "$nlist" | uniq > "$nlist"T; then
6461 mv -f "$nlist"T "$nlist"
6466 # Make sure that we snagged all the symbols we need.
6467 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6468 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6469 cat <<_LT_EOF > conftest.$ac_ext
6470 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6471 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6472 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6473 relocations are performed -- see ld's documentation on pseudo-relocs. */
6474 # define LT_DLSYM_CONST
6475 #elif defined __osf__
6476 /* This system does not cope well with relocations in const data. */
6477 # define LT_DLSYM_CONST
6479 # define LT_DLSYM_CONST const
6487 # Now generate the symbol file.
6488 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6490 cat <<_LT_EOF >> conftest.$ac_ext
6492 /* The mapping between symbol names and symbols. */
6493 LT_DLSYM_CONST struct {
6497 lt__PROGRAM__LTX_preloaded_symbols[] =
6499 { "@PROGRAM@", (void *) 0 },
6501 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6502 cat <<\_LT_EOF >> conftest.$ac_ext
6506 /* This works around a problem in FreeBSD linker */
6507 #ifdef FREEBSD_WORKAROUND
6508 static const void *lt_preloaded_setup() {
6509 return lt__PROGRAM__LTX_preloaded_symbols;
6517 # Now try linking the two files.
6518 mv conftest.$ac_objext conftstm.$ac_objext
6519 lt_globsym_save_LIBS=$LIBS
6520 lt_globsym_save_CFLAGS=$CFLAGS
6521 LIBS=conftstm.$ac_objext
6522 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6524 (eval $ac_link) 2>&5
6526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6527 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6530 LIBS=$lt_globsym_save_LIBS
6531 CFLAGS=$lt_globsym_save_CFLAGS
6533 echo "cannot find nm_test_func in $nlist" >&5
6536 echo "cannot find nm_test_var in $nlist" >&5
6539 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6542 echo "$progname: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6545 rm -rf conftest* conftst*
6547 # Do not use the global_symbol_pipe unless it works.
6548 if test yes = "$pipe_works"; then
6551 lt_cv_sys_global_symbol_pipe=
6557 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6558 lt_cv_sys_global_symbol_to_cdecl=
6560 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6562 printf "%s\n" "failed" >&6; }
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6565 printf "%s\n" "ok" >&6; }
6568 # Response file support.
6569 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6570 nm_file_list_spec='@'
6571 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6572 nm_file_list_spec='@'
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6612 printf %s "checking for sysroot... " >&6; }
6614 # Check whether --with-sysroot was given.
6615 if test ${with_sysroot+y}
6617 withval=$with_sysroot;
6624 case $with_sysroot in #(
6626 if test yes = "$GCC"; then
6627 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6631 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6637 printf "%s\n" "$with_sysroot" >&6; }
6638 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6643 printf "%s\n" "${lt_sysroot:-no}" >&6; }
6649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6650 printf %s "checking for a working dd... " >&6; }
6651 if test ${ac_cv_path_lt_DD+y}
6653 printf %s "(cached) " >&6
6655 printf 0123456789abcdef0123456789abcdef >conftest.i
6656 cat conftest.i conftest.i >conftest2.i
6658 if test -z "$lt_DD"; then
6659 ac_path_lt_DD_found=false
6660 # Loop through the user's path and test for each of PROGNAME-LIST
6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665 case $as_dir in #(((
6668 *) as_dir=$as_dir/ ;;
6672 for ac_exec_ext in '' $ac_executable_extensions; do
6673 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
6674 as_fn_executable_p "$ac_path_lt_DD" || continue
6675 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6676 cmp -s conftest.i conftest.out \
6677 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6679 $ac_path_lt_DD_found && break 3
6684 if test -z "$ac_cv_path_lt_DD"; then
6688 ac_cv_path_lt_DD=$lt_DD
6691 rm -f conftest.i conftest2.i conftest.out
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6694 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6698 printf %s "checking how to truncate binary pipes... " >&6; }
6699 if test ${lt_cv_truncate_bin+y}
6701 printf %s "(cached) " >&6
6703 printf 0123456789abcdef0123456789abcdef >conftest.i
6704 cat conftest.i conftest.i >conftest2.i
6706 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6707 cmp -s conftest.i conftest.out \
6708 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6710 rm -f conftest.i conftest2.i conftest.out
6711 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6714 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
6722 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6725 for cc_temp in $*""; do
6727 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6728 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6733 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6736 # Check whether --enable-libtool-lock was given.
6737 if test ${enable_libtool_lock+y}
6739 enableval=$enable_libtool_lock;
6742 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6744 # Some flags need to be propagated to the compiler or linker for good
6748 # Find out what ABI is being produced by ac_compile, and set mode
6749 # options accordingly.
6750 echo 'int i;' > conftest.$ac_ext
6751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6752 (eval $ac_compile) 2>&5
6754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6755 test $ac_status = 0; }; then
6756 case `$FILECMD conftest.$ac_objext` in
6768 # Find out what ABI is being produced by ac_compile, and set linker
6769 # options accordingly.
6770 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6772 (eval $ac_compile) 2>&5
6774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6775 test $ac_status = 0; }; then
6776 if test yes = "$lt_cv_prog_gnu_ld"; then
6777 case `$FILECMD conftest.$ac_objext` in
6779 LD="${LD-ld} -melf32bsmip"
6782 LD="${LD-ld} -melf32bmipn32"
6785 LD="${LD-ld} -melf64bmip"
6789 case `$FILECMD conftest.$ac_objext` in
6806 # Find out what ABI is being produced by ac_compile, and set linker
6807 # options accordingly.
6808 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6810 (eval $ac_compile) 2>&5
6812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6813 test $ac_status = 0; }; then
6815 case `$FILECMD conftest.$ac_objext` in
6823 case `$FILECMD conftest.$ac_objext` in
6825 emul="${emul}btsmip"
6828 emul="${emul}ltsmip"
6831 case `$FILECMD conftest.$ac_objext` in
6836 LD="${LD-ld} -m $emul"
6841 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6842 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6843 # Find out what ABI is being produced by ac_compile, and set linker
6844 # options accordingly. Note that the listed cases only cover the
6845 # situations where additional linker options are needed (such as when
6846 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6847 # vice versa); the common cases where no linker options are needed do
6848 # not appear in the list.
6849 echo 'int i;' > conftest.$ac_ext
6850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6851 (eval $ac_compile) 2>&5
6853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }; then
6855 case `$FILECMD conftest.o` in
6858 x86_64-*kfreebsd*-gnu)
6859 LD="${LD-ld} -m elf_i386_fbsd"
6862 case `$FILECMD conftest.o` in
6864 LD="${LD-ld} -m elf32_x86_64"
6867 LD="${LD-ld} -m elf_i386"
6871 powerpc64le-*linux*)
6872 LD="${LD-ld} -m elf32lppclinux"
6875 LD="${LD-ld} -m elf32ppclinux"
6878 LD="${LD-ld} -m elf_s390"
6881 LD="${LD-ld} -m elf32_sparc"
6887 x86_64-*kfreebsd*-gnu)
6888 LD="${LD-ld} -m elf_x86_64_fbsd"
6891 LD="${LD-ld} -m elf_x86_64"
6894 LD="${LD-ld} -m elf64lppc"
6897 LD="${LD-ld} -m elf64ppc"
6899 s390*-*linux*|s390*-*tpf*)
6900 LD="${LD-ld} -m elf64_s390"
6903 LD="${LD-ld} -m elf64_sparc"
6913 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6915 CFLAGS="$CFLAGS -belf"
6916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6917 printf %s "checking whether the C compiler needs -belf... " >&6; }
6918 if test ${lt_cv_cc_needs_belf+y}
6920 printf %s "(cached) " >&6
6923 ac_cpp='$CPP $CPPFLAGS'
6924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6939 if ac_fn_c_try_link "$LINENO"
6941 lt_cv_cc_needs_belf=yes
6943 lt_cv_cc_needs_belf=no
6945 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6946 conftest$ac_exeext conftest.$ac_ext
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6955 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
6956 if test yes != "$lt_cv_cc_needs_belf"; then
6957 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6962 # Find out what ABI is being produced by ac_compile, and set linker
6963 # options accordingly.
6964 echo 'int i;' > conftest.$ac_ext
6965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6966 (eval $ac_compile) 2>&5
6968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969 test $ac_status = 0; }; then
6970 case `$FILECMD conftest.o` in
6972 case $lt_cv_prog_gnu_ld in
6975 i?86-*-solaris*|x86_64-*-solaris*)
6976 LD="${LD-ld} -m elf_x86_64"
6979 LD="${LD-ld} -m elf64_sparc"
6982 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6983 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6988 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7000 need_locks=$enable_libtool_lock
7002 if test -n "$ac_tool_prefix"; then
7003 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7004 set dummy ${ac_tool_prefix}mt; ac_word=$2
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 printf %s "checking for $ac_word... " >&6; }
7007 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7009 printf %s "(cached) " >&6
7011 if test -n "$MANIFEST_TOOL"; then
7012 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 case $as_dir in #(((
7021 *) as_dir=$as_dir/ ;;
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7025 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7035 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7036 if test -n "$MANIFEST_TOOL"; then
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7038 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 printf "%s\n" "no" >&6; }
7046 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7047 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7048 # Extract the first word of "mt", so it can be a program name with args.
7049 set dummy mt; ac_word=$2
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 printf %s "checking for $ac_word... " >&6; }
7052 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7054 printf %s "(cached) " >&6
7056 if test -n "$ac_ct_MANIFEST_TOOL"; then
7057 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 case $as_dir in #(((
7066 *) as_dir=$as_dir/ ;;
7068 for ac_exec_ext in '' $ac_executable_extensions; do
7069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7070 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7080 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7081 if test -n "$ac_ct_MANIFEST_TOOL"; then
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7083 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 printf "%s\n" "no" >&6; }
7089 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7092 case $cross_compiling:$ac_tool_warned in
7094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7095 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7096 ac_tool_warned=yes ;;
7098 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7101 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7104 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7106 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7107 if test ${lt_cv_path_mainfest_tool+y}
7109 printf %s "(cached) " >&6
7111 lt_cv_path_mainfest_tool=no
7112 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7113 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7114 cat conftest.err >&5
7115 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7116 lt_cv_path_mainfest_tool=yes
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7121 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7122 if test yes != "$lt_cv_path_mainfest_tool"; then
7132 rhapsody* | darwin*)
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 printf %s "checking for $ac_word... " >&6; }
7138 if test ${ac_cv_prog_DSYMUTIL+y}
7140 printf %s "(cached) " >&6
7142 if test -n "$DSYMUTIL"; then
7143 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 case $as_dir in #(((
7152 *) as_dir=$as_dir/ ;;
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7166 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7167 if test -n "$DSYMUTIL"; then
7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7169 printf "%s\n" "$DSYMUTIL" >&6; }
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 printf "%s\n" "no" >&6; }
7177 if test -z "$ac_cv_prog_DSYMUTIL"; then
7178 ac_ct_DSYMUTIL=$DSYMUTIL
7179 # Extract the first word of "dsymutil", so it can be a program name with args.
7180 set dummy dsymutil; ac_word=$2
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 printf %s "checking for $ac_word... " >&6; }
7183 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7185 printf %s "(cached) " >&6
7187 if test -n "$ac_ct_DSYMUTIL"; then
7188 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 case $as_dir in #(((
7197 *) as_dir=$as_dir/ ;;
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7201 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7211 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7212 if test -n "$ac_ct_DSYMUTIL"; then
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7214 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 printf "%s\n" "no" >&6; }
7220 if test "x$ac_ct_DSYMUTIL" = x; then
7223 case $cross_compiling:$ac_tool_warned in
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned=yes ;;
7229 DSYMUTIL=$ac_ct_DSYMUTIL
7232 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7235 if test -n "$ac_tool_prefix"; then
7236 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7237 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 printf %s "checking for $ac_word... " >&6; }
7240 if test ${ac_cv_prog_NMEDIT+y}
7242 printf %s "(cached) " >&6
7244 if test -n "$NMEDIT"; then
7245 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251 case $as_dir in #(((
7254 *) as_dir=$as_dir/ ;;
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7258 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7268 NMEDIT=$ac_cv_prog_NMEDIT
7269 if test -n "$NMEDIT"; then
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7271 printf "%s\n" "$NMEDIT" >&6; }
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 printf "%s\n" "no" >&6; }
7279 if test -z "$ac_cv_prog_NMEDIT"; then
7280 ac_ct_NMEDIT=$NMEDIT
7281 # Extract the first word of "nmedit", so it can be a program name with args.
7282 set dummy nmedit; ac_word=$2
7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 printf %s "checking for $ac_word... " >&6; }
7285 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7287 printf %s "(cached) " >&6
7289 if test -n "$ac_ct_NMEDIT"; then
7290 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 case $as_dir in #(((
7299 *) as_dir=$as_dir/ ;;
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7303 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7313 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7314 if test -n "$ac_ct_NMEDIT"; then
7315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7316 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 printf "%s\n" "no" >&6; }
7322 if test "x$ac_ct_NMEDIT" = x; then
7325 case $cross_compiling:$ac_tool_warned in
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7328 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7329 ac_tool_warned=yes ;;
7331 NMEDIT=$ac_ct_NMEDIT
7334 NMEDIT="$ac_cv_prog_NMEDIT"
7337 if test -n "$ac_tool_prefix"; then
7338 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7339 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 printf %s "checking for $ac_word... " >&6; }
7342 if test ${ac_cv_prog_LIPO+y}
7344 printf %s "(cached) " >&6
7346 if test -n "$LIPO"; then
7347 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 case $as_dir in #(((
7356 *) as_dir=$as_dir/ ;;
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7370 LIPO=$ac_cv_prog_LIPO
7371 if test -n "$LIPO"; then
7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7373 printf "%s\n" "$LIPO" >&6; }
7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 printf "%s\n" "no" >&6; }
7381 if test -z "$ac_cv_prog_LIPO"; then
7383 # Extract the first word of "lipo", so it can be a program name with args.
7384 set dummy lipo; ac_word=$2
7385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 printf %s "checking for $ac_word... " >&6; }
7387 if test ${ac_cv_prog_ac_ct_LIPO+y}
7389 printf %s "(cached) " >&6
7391 if test -n "$ac_ct_LIPO"; then
7392 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 case $as_dir in #(((
7401 *) as_dir=$as_dir/ ;;
7403 for ac_exec_ext in '' $ac_executable_extensions; do
7404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7405 ac_cv_prog_ac_ct_LIPO="lipo"
7406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7415 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7416 if test -n "$ac_ct_LIPO"; then
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7418 printf "%s\n" "$ac_ct_LIPO" >&6; }
7420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421 printf "%s\n" "no" >&6; }
7424 if test "x$ac_ct_LIPO" = x; then
7427 case $cross_compiling:$ac_tool_warned in
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431 ac_tool_warned=yes ;;
7436 LIPO="$ac_cv_prog_LIPO"
7439 if test -n "$ac_tool_prefix"; then
7440 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7441 set dummy ${ac_tool_prefix}otool; ac_word=$2
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443 printf %s "checking for $ac_word... " >&6; }
7444 if test ${ac_cv_prog_OTOOL+y}
7446 printf %s "(cached) " >&6
7448 if test -n "$OTOOL"; then
7449 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 case $as_dir in #(((
7458 *) as_dir=$as_dir/ ;;
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7462 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7472 OTOOL=$ac_cv_prog_OTOOL
7473 if test -n "$OTOOL"; then
7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7475 printf "%s\n" "$OTOOL" >&6; }
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 printf "%s\n" "no" >&6; }
7483 if test -z "$ac_cv_prog_OTOOL"; then
7485 # Extract the first word of "otool", so it can be a program name with args.
7486 set dummy otool; ac_word=$2
7487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 printf %s "checking for $ac_word... " >&6; }
7489 if test ${ac_cv_prog_ac_ct_OTOOL+y}
7491 printf %s "(cached) " >&6
7493 if test -n "$ac_ct_OTOOL"; then
7494 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500 case $as_dir in #(((
7503 *) as_dir=$as_dir/ ;;
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_ac_ct_OTOOL="otool"
7508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7517 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7518 if test -n "$ac_ct_OTOOL"; then
7519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7520 printf "%s\n" "$ac_ct_OTOOL" >&6; }
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 printf "%s\n" "no" >&6; }
7526 if test "x$ac_ct_OTOOL" = x; then
7529 case $cross_compiling:$ac_tool_warned in
7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533 ac_tool_warned=yes ;;
7538 OTOOL="$ac_cv_prog_OTOOL"
7541 if test -n "$ac_tool_prefix"; then
7542 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7543 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 printf %s "checking for $ac_word... " >&6; }
7546 if test ${ac_cv_prog_OTOOL64+y}
7548 printf %s "(cached) " >&6
7550 if test -n "$OTOOL64"; then
7551 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 case $as_dir in #(((
7560 *) as_dir=$as_dir/ ;;
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7574 OTOOL64=$ac_cv_prog_OTOOL64
7575 if test -n "$OTOOL64"; then
7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7577 printf "%s\n" "$OTOOL64" >&6; }
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 printf "%s\n" "no" >&6; }
7585 if test -z "$ac_cv_prog_OTOOL64"; then
7586 ac_ct_OTOOL64=$OTOOL64
7587 # Extract the first word of "otool64", so it can be a program name with args.
7588 set dummy otool64; ac_word=$2
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 printf %s "checking for $ac_word... " >&6; }
7591 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
7593 printf %s "(cached) " >&6
7595 if test -n "$ac_ct_OTOOL64"; then
7596 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 case $as_dir in #(((
7605 *) as_dir=$as_dir/ ;;
7607 for ac_exec_ext in '' $ac_executable_extensions; do
7608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7609 ac_cv_prog_ac_ct_OTOOL64="otool64"
7610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7619 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7620 if test -n "$ac_ct_OTOOL64"; then
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7622 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 printf "%s\n" "no" >&6; }
7628 if test "x$ac_ct_OTOOL64" = x; then
7631 case $cross_compiling:$ac_tool_warned in
7633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7634 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7635 ac_tool_warned=yes ;;
7637 OTOOL64=$ac_ct_OTOOL64
7640 OTOOL64="$ac_cv_prog_OTOOL64"
7669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7670 printf %s "checking for -single_module linker flag... " >&6; }
7671 if test ${lt_cv_apple_cc_single_mod+y}
7673 printf %s "(cached) " >&6
7675 lt_cv_apple_cc_single_mod=no
7676 if test -z "$LT_MULTI_MODULE"; then
7677 # By default we will add the -single_module flag. You can override
7678 # by either setting the environment variable LT_MULTI_MODULE
7679 # non-empty at configure time, or by adding -multi_module to the
7681 rm -rf libconftest.dylib*
7682 echo "int foo(void){return 1;}" > conftest.c
7683 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7684 -dynamiclib -Wl,-single_module conftest.c" >&5
7685 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7686 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7688 # If there is a non-empty error log, and "single_module"
7689 # appears in it, assume the flag caused a linker warning
7690 if test -s conftest.err && $GREP single_module conftest.err; then
7691 cat conftest.err >&5
7692 # Otherwise, if the output was created with a 0 exit code from
7693 # the compiler, it worked.
7694 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7695 lt_cv_apple_cc_single_mod=yes
7697 cat conftest.err >&5
7699 rm -rf libconftest.dylib*
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7704 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7707 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
7708 if test ${lt_cv_ld_exported_symbols_list+y}
7710 printf %s "(cached) " >&6
7712 lt_cv_ld_exported_symbols_list=no
7713 save_LDFLAGS=$LDFLAGS
7714 echo "_main" > conftest.sym
7715 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7727 if ac_fn_c_try_link "$LINENO"
7729 lt_cv_ld_exported_symbols_list=yes
7731 lt_cv_ld_exported_symbols_list=no
7733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7734 conftest$ac_exeext conftest.$ac_ext
7735 LDFLAGS=$save_LDFLAGS
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7739 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7742 printf %s "checking for -force_load linker flag... " >&6; }
7743 if test ${lt_cv_ld_force_load+y}
7745 printf %s "(cached) " >&6
7747 lt_cv_ld_force_load=no
7748 cat > conftest.c << _LT_EOF
7749 int forced_loaded() { return 2;}
7751 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7752 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7753 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
7754 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
7755 echo "$RANLIB libconftest.a" >&5
7756 $RANLIB libconftest.a 2>&5
7757 cat > conftest.c << _LT_EOF
7758 int main() { return 0;}
7760 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7761 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7763 if test -s conftest.err && $GREP force_load conftest.err; then
7764 cat conftest.err >&5
7765 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7766 lt_cv_ld_force_load=yes
7768 cat conftest.err >&5
7770 rm -f conftest.err libconftest.a conftest conftest.c
7771 rm -rf conftest.dSYM
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7775 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
7777 rhapsody* | darwin1.[012])
7778 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7780 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7782 case $MACOSX_DEPLOYMENT_TARGET,$host in
7783 10.[012],*|,*powerpc*-darwin[5-8]*)
7784 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7786 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7790 if test yes = "$lt_cv_apple_cc_single_mod"; then
7791 _lt_dar_single_mod='$single_module'
7793 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7794 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7796 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7798 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7799 _lt_dsymutil='~$DSYMUTIL $lib || :'
7806 # func_munge_path_list VARIABLE PATH
7807 # -----------------------------------
7808 # VARIABLE is name of variable containing _space_ separated list of
7809 # directories to be munged by the contents of PATH, which is string
7812 # string "DIR[ DIR]" will be prepended to VARIABLE
7814 # string "DIR[ DIR]" will be appended to VARIABLE
7815 # "DIRP[:DIRP]::[DIRA:]DIRA"
7816 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7817 # "DIRA[ DIRA]" will be appended to VARIABLE
7819 # VARIABLE will be replaced by "DIR[ DIR]"
7820 func_munge_path_list ()
7826 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7829 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7832 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7833 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7836 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7841 ac_header= ac_cache=
7842 for ac_item in $ac_header_c_list
7844 if test $ac_cache; then
7845 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
7846 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
7847 printf "%s\n" "#define $ac_item 1" >> confdefs.h
7849 ac_header= ac_cache=
7850 elif test $ac_header; then
7864 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
7867 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
7870 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7872 if test "x$ac_cv_header_dlfcn_h" = xyes
7874 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
7883 enable_win32_dll=yes
7886 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}as; ac_word=$2
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 printf %s "checking for $ac_word... " >&6; }
7892 if test ${ac_cv_prog_AS+y}
7894 printf %s "(cached) " >&6
7896 if test -n "$AS"; then
7897 ac_cv_prog_AS="$AS" # Let the user override the test.
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 case $as_dir in #(((
7906 *) as_dir=$as_dir/ ;;
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_AS="${ac_tool_prefix}as"
7911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7921 if test -n "$AS"; then
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7923 printf "%s\n" "$AS" >&6; }
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 printf "%s\n" "no" >&6; }
7931 if test -z "$ac_cv_prog_AS"; then
7933 # Extract the first word of "as", so it can be a program name with args.
7934 set dummy as; ac_word=$2
7935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 printf %s "checking for $ac_word... " >&6; }
7937 if test ${ac_cv_prog_ac_ct_AS+y}
7939 printf %s "(cached) " >&6
7941 if test -n "$ac_ct_AS"; then
7942 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 case $as_dir in #(((
7951 *) as_dir=$as_dir/ ;;
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7955 ac_cv_prog_ac_ct_AS="as"
7956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7965 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7966 if test -n "$ac_ct_AS"; then
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7968 printf "%s\n" "$ac_ct_AS" >&6; }
7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 printf "%s\n" "no" >&6; }
7974 if test "x$ac_ct_AS" = x; then
7977 case $cross_compiling:$ac_tool_warned in
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7980 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7981 ac_tool_warned=yes ;;
7989 if test -n "$ac_tool_prefix"; then
7990 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7991 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 printf %s "checking for $ac_word... " >&6; }
7994 if test ${ac_cv_prog_DLLTOOL+y}
7996 printf %s "(cached) " >&6
7998 if test -n "$DLLTOOL"; then
7999 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 case $as_dir in #(((
8008 *) as_dir=$as_dir/ ;;
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8012 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8022 DLLTOOL=$ac_cv_prog_DLLTOOL
8023 if test -n "$DLLTOOL"; then
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8025 printf "%s\n" "$DLLTOOL" >&6; }
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 printf "%s\n" "no" >&6; }
8033 if test -z "$ac_cv_prog_DLLTOOL"; then
8034 ac_ct_DLLTOOL=$DLLTOOL
8035 # Extract the first word of "dlltool", so it can be a program name with args.
8036 set dummy dlltool; ac_word=$2
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 printf %s "checking for $ac_word... " >&6; }
8039 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8041 printf %s "(cached) " >&6
8043 if test -n "$ac_ct_DLLTOOL"; then
8044 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 case $as_dir in #(((
8053 *) as_dir=$as_dir/ ;;
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8057 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8067 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8068 if test -n "$ac_ct_DLLTOOL"; then
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8070 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 printf "%s\n" "no" >&6; }
8076 if test "x$ac_ct_DLLTOOL" = x; then
8079 case $cross_compiling:$ac_tool_warned in
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8082 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8083 ac_tool_warned=yes ;;
8085 DLLTOOL=$ac_ct_DLLTOOL
8088 DLLTOOL="$ac_cv_prog_DLLTOOL"
8091 if test -n "$ac_tool_prefix"; then
8092 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8093 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095 printf %s "checking for $ac_word... " >&6; }
8096 if test ${ac_cv_prog_OBJDUMP+y}
8098 printf %s "(cached) " >&6
8100 if test -n "$OBJDUMP"; then
8101 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 case $as_dir in #(((
8110 *) as_dir=$as_dir/ ;;
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8114 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8124 OBJDUMP=$ac_cv_prog_OBJDUMP
8125 if test -n "$OBJDUMP"; then
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8127 printf "%s\n" "$OBJDUMP" >&6; }
8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 printf "%s\n" "no" >&6; }
8135 if test -z "$ac_cv_prog_OBJDUMP"; then
8136 ac_ct_OBJDUMP=$OBJDUMP
8137 # Extract the first word of "objdump", so it can be a program name with args.
8138 set dummy objdump; ac_word=$2
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8140 printf %s "checking for $ac_word... " >&6; }
8141 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8143 printf %s "(cached) " >&6
8145 if test -n "$ac_ct_OBJDUMP"; then
8146 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 case $as_dir in #(((
8155 *) as_dir=$as_dir/ ;;
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8159 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8169 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8170 if test -n "$ac_ct_OBJDUMP"; then
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8172 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 printf "%s\n" "no" >&6; }
8178 if test "x$ac_ct_OBJDUMP" = x; then
8181 case $cross_compiling:$ac_tool_warned in
8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8184 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8185 ac_tool_warned=yes ;;
8187 OBJDUMP=$ac_ct_OBJDUMP
8190 OBJDUMP="$ac_cv_prog_OBJDUMP"
8196 test -z "$AS" && AS=as
8202 test -z "$DLLTOOL" && DLLTOOL=dlltool
8208 test -z "$OBJDUMP" && OBJDUMP=objdump
8220 # Check whether --enable-shared was given.
8221 if test ${enable_shared+y}
8223 enableval=$enable_shared; p=${PACKAGE-default}
8225 yes) enable_shared=yes ;;
8226 no) enable_shared=no ;;
8229 # Look at the argument we got. We use all the common list separators.
8230 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8231 for pkg in $enableval; do
8233 if test "X$pkg" = "X$p"; then
8252 # Check whether --enable-static was given.
8253 if test ${enable_static+y}
8255 enableval=$enable_static; p=${PACKAGE-default}
8257 yes) enable_static=yes ;;
8258 no) enable_static=no ;;
8261 # Look at the argument we got. We use all the common list separators.
8262 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8263 for pkg in $enableval; do
8265 if test "X$pkg" = "X$p"; then
8285 # Check whether --with-pic was given.
8286 if test ${with_pic+y}
8288 withval=$with_pic; lt_p=${PACKAGE-default}
8290 yes|no) pic_mode=$withval ;;
8293 # Look at the argument we got. We use all the common list separators.
8294 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8295 for lt_pkg in $withval; do
8297 if test "X$lt_pkg" = "X$lt_p"; then
8315 # Check whether --enable-fast-install was given.
8316 if test ${enable_fast_install+y}
8318 enableval=$enable_fast_install; p=${PACKAGE-default}
8320 yes) enable_fast_install=yes ;;
8321 no) enable_fast_install=no ;;
8323 enable_fast_install=no
8324 # Look at the argument we got. We use all the common list separators.
8325 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8326 for pkg in $enableval; do
8328 if test "X$pkg" = "X$p"; then
8329 enable_fast_install=yes
8336 enable_fast_install=yes
8346 shared_archive_member_spec=
8347 case $host,$enable_shared in
8348 power*-*-aix[5-9]*,yes)
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8350 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8352 # Check whether --with-aix-soname was given.
8353 if test ${with_aix_soname+y}
8355 withval=$with_aix_soname; case $withval in
8359 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8362 lt_cv_with_aix_soname=$with_aix_soname
8364 if test ${lt_cv_with_aix_soname+y}
8366 printf %s "(cached) " >&6
8368 lt_cv_with_aix_soname=aix
8371 with_aix_soname=$lt_cv_with_aix_soname
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8375 printf "%s\n" "$with_aix_soname" >&6; }
8376 if test aix != "$with_aix_soname"; then
8377 # For the AIX way of multilib, we name the shared archive member
8378 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8379 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8380 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8381 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8382 if test 64 = "${OBJECT_MODE-32}"; then
8383 shared_archive_member_spec=shr_64
8385 shared_archive_member_spec=shr
8403 # This can be used to rebuild libtool when needed
8404 LIBTOOL_DEPS=$ltmain
8406 # Always use our own libtool.
8407 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8438 test -z "$LN_S" && LN_S="ln -s"
8453 if test -n "${ZSH_VERSION+set}"; then
8454 setopt NO_GLOB_SUBST
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8458 printf %s "checking for objdir... " >&6; }
8459 if test ${lt_cv_objdir+y}
8461 printf %s "(cached) " >&6
8463 rm -f .libs 2>/dev/null
8464 mkdir .libs 2>/dev/null
8465 if test -d .libs; then
8468 # MS-DOS does not allow filenames that begin with a dot.
8471 rmdir .libs 2>/dev/null
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8474 printf "%s\n" "$lt_cv_objdir" >&6; }
8475 objdir=$lt_cv_objdir
8481 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8488 # AIX sometimes has problems with the GCC collect2 program. For some
8489 # reason, if we set the COLLECT_NAMES environment variable, the problems
8490 # vanish in a puff of smoke.
8491 if test set != "${COLLECT_NAMES+set}"; then
8493 export COLLECT_NAMES
8500 can_build_shared=yes
8502 # All known linkers require a '.a' archive for static linking (except MSVC and
8503 # ICC, which need '.lib').
8506 with_gnu_ld=$lt_cv_prog_gnu_ld
8511 # Set sane defaults for various variables
8512 test -z "$CC" && CC=cc
8513 test -z "$LTCC" && LTCC=$CC
8514 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8515 test -z "$LD" && LD=ld
8516 test -z "$ac_objext" && ac_objext=o
8518 func_cc_basename $compiler
8519 cc_basename=$func_cc_basename_result
8522 # Only perform the check for file, if the check method requires it
8523 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8524 case $deplibs_check_method in
8526 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8528 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8529 if test ${lt_cv_path_MAGIC_CMD+y}
8531 printf %s "(cached) " >&6
8535 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8538 lt_save_MAGIC_CMD=$MAGIC_CMD
8539 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8540 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8541 for ac_dir in $ac_dummy; do
8543 test -z "$ac_dir" && ac_dir=.
8544 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8545 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8546 if test -n "$file_magic_test_file"; then
8547 case $deplibs_check_method in
8549 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8550 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8551 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8552 $EGREP "$file_magic_regex" > /dev/null; then
8557 *** Warning: the command libtool uses to detect shared libraries,
8558 *** $file_magic_cmd, produces output that libtool cannot recognize.
8559 *** The result is that libtool may fail to recognize shared libraries
8560 *** as such. This will affect the creation of libtool libraries that
8561 *** depend on shared libraries, but programs linked with such libtool
8562 *** libraries will work regardless of this problem. Nevertheless, you
8563 *** may want to report the problem to your system manager and/or to
8564 *** bug-libtool@gnu.org
8574 MAGIC_CMD=$lt_save_MAGIC_CMD
8579 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8580 if test -n "$MAGIC_CMD"; then
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8582 printf "%s\n" "$MAGIC_CMD" >&6; }
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 printf "%s\n" "no" >&6; }
8592 if test -z "$lt_cv_path_MAGIC_CMD"; then
8593 if test -n "$ac_tool_prefix"; then
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8595 printf %s "checking for file... " >&6; }
8596 if test ${lt_cv_path_MAGIC_CMD+y}
8598 printf %s "(cached) " >&6
8602 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8605 lt_save_MAGIC_CMD=$MAGIC_CMD
8606 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8607 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8608 for ac_dir in $ac_dummy; do
8610 test -z "$ac_dir" && ac_dir=.
8611 if test -f "$ac_dir/file"; then
8612 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8613 if test -n "$file_magic_test_file"; then
8614 case $deplibs_check_method in
8616 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8617 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8618 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8619 $EGREP "$file_magic_regex" > /dev/null; then
8624 *** Warning: the command libtool uses to detect shared libraries,
8625 *** $file_magic_cmd, produces output that libtool cannot recognize.
8626 *** The result is that libtool may fail to recognize shared libraries
8627 *** as such. This will affect the creation of libtool libraries that
8628 *** depend on shared libraries, but programs linked with such libtool
8629 *** libraries will work regardless of this problem. Nevertheless, you
8630 *** may want to report the problem to your system manager and/or to
8631 *** bug-libtool@gnu.org
8641 MAGIC_CMD=$lt_save_MAGIC_CMD
8646 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8647 if test -n "$MAGIC_CMD"; then
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8649 printf "%s\n" "$MAGIC_CMD" >&6; }
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 printf "%s\n" "no" >&6; }
8665 # Use C for the default configuration in the libtool script
8669 ac_cpp='$CPP $CPPFLAGS'
8670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8675 # Source file extension for C test sources.
8678 # Object file extension for compiled C test sources.
8682 # Code to be used in simple compile tests
8683 lt_simple_compile_test_code="int some_variable = 0;"
8685 # Code to be used in simple link tests
8686 lt_simple_link_test_code='int main(){return(0);}'
8694 # If no C compiler was specified, use CC.
8697 # If no C compiler flags were specified, use CFLAGS.
8698 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8700 # Allow CC to be a program name with arguments.
8703 # Save the default compiler, since it gets overwritten when the other
8704 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8705 compiler_DEFAULT=$CC
8707 # save warnings/boilerplate of simple test code
8708 ac_outfile=conftest.$ac_objext
8709 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8710 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8711 _lt_compiler_boilerplate=`cat conftest.err`
8714 ac_outfile=conftest.$ac_objext
8715 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8716 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8717 _lt_linker_boilerplate=`cat conftest.err`
8721 if test -n "$compiler"; then
8723 lt_prog_compiler_no_builtin_flag=
8725 if test yes = "$GCC"; then
8726 case $cc_basename in
8728 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8730 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8734 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8735 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
8737 printf %s "(cached) " >&6
8739 lt_cv_prog_compiler_rtti_exceptions=no
8740 ac_outfile=conftest.$ac_objext
8741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8742 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8743 # Insert the option either (1) after the last *FLAGS variable, or
8744 # (2) before a word containing "conftest.", or (3) at the end.
8745 # Note that $ac_compile itself does not contain backslashes and begins
8746 # with a dollar sign (not a hyphen), so the echo should work correctly.
8747 # The option is referenced via a variable to avoid confusing sed.
8748 lt_compile=`echo "$ac_compile" | $SED \
8749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8751 -e 's:$: $lt_compiler_flag:'`
8752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8753 (eval "$lt_compile" 2>conftest.err)
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 if (exit $ac_status) && test -s "$ac_outfile"; then
8758 # The compiler can only warn and ignore the option if not recognized
8759 # So say no if there are warnings other than the usual output.
8760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8761 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8762 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8763 lt_cv_prog_compiler_rtti_exceptions=yes
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8770 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8772 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8773 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8785 lt_prog_compiler_wl=
8786 lt_prog_compiler_pic=
8787 lt_prog_compiler_static=
8790 if test yes = "$GCC"; then
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_static='-static'
8796 # All AIX code is PIC.
8797 if test ia64 = "$host_cpu"; then
8798 # AIX 5 now supports IA64 processor
8799 lt_prog_compiler_static='-Bstatic'
8801 lt_prog_compiler_pic='-fPIC'
8807 # see comment about AmigaOS4 .so support
8808 lt_prog_compiler_pic='-fPIC'
8811 # FIXME: we need at least 68020 code to build shared libraries, but
8812 # adding the '-m68020' flag to GCC prevents building anything better,
8814 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8819 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8820 # PIC is the default for these OSes.
8823 mingw* | cygwin* | pw32* | os2* | cegcc*)
8824 # This hack is so that the source file can tell whether it is being
8825 # built for inclusion in a dll (and should export symbols for example).
8826 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8827 # (--disable-auto-import) libraries
8828 lt_prog_compiler_pic='-DDLL_EXPORT'
8831 lt_prog_compiler_static='$wl-static'
8836 darwin* | rhapsody*)
8837 # PIC is the default on this platform
8838 # Common symbols not allowed in MH_DYLIB files
8839 lt_prog_compiler_pic='-fno-common'
8843 # PIC is the default for Haiku.
8844 # The "-static" flag exists, but is broken.
8845 lt_prog_compiler_static=
8849 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8850 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8851 # sets the default TLS model and affects inlining.
8857 lt_prog_compiler_pic='-fPIC'
8863 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8864 # Instead, we relocate shared libraries at runtime.
8868 # Just because we use GCC doesn't mean we suddenly get shared libraries
8869 # on systems that don't support them.
8870 lt_prog_compiler_can_build_shared=no
8875 # QNX uses GNU C++, but need to define -shared option too, otherwise
8877 lt_prog_compiler_pic='-fPIC -shared'
8881 if test -d /usr/nec; then
8882 lt_prog_compiler_pic=-Kconform_pic
8887 lt_prog_compiler_pic='-fPIC'
8891 case $cc_basename in
8892 nvcc*) # Cuda Compiler Driver 2.2
8893 lt_prog_compiler_wl='-Xlinker '
8894 if test -n "$lt_prog_compiler_pic"; then
8895 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8900 # PORTME Check for flag to pass linker flags through the system compiler.
8903 lt_prog_compiler_wl='-Wl,'
8904 if test ia64 = "$host_cpu"; then
8905 # AIX 5 now supports IA64 processor
8906 lt_prog_compiler_static='-Bstatic'
8908 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8912 darwin* | rhapsody*)
8913 # PIC is the default on this platform
8914 # Common symbols not allowed in MH_DYLIB files
8915 lt_prog_compiler_pic='-fno-common'
8916 case $cc_basename in
8918 # NAG Fortran compiler
8919 lt_prog_compiler_wl='-Wl,-Wl,,'
8920 lt_prog_compiler_pic='-PIC'
8921 lt_prog_compiler_static='-Bstatic'
8926 mingw* | cygwin* | pw32* | os2* | cegcc*)
8927 # This hack is so that the source file can tell whether it is being
8928 # built for inclusion in a dll (and should export symbols for example).
8929 lt_prog_compiler_pic='-DDLL_EXPORT'
8932 lt_prog_compiler_static='$wl-static'
8937 hpux9* | hpux10* | hpux11*)
8938 lt_prog_compiler_wl='-Wl,'
8939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8946 lt_prog_compiler_pic='+Z'
8949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8950 lt_prog_compiler_static='$wl-a ${wl}archive'
8953 irix5* | irix6* | nonstopux*)
8954 lt_prog_compiler_wl='-Wl,'
8955 # PIC (with -KPIC) is the default.
8956 lt_prog_compiler_static='-non_shared'
8959 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8960 case $cc_basename in
8961 # old Intel for x86_64, which still supported -KPIC.
8963 lt_prog_compiler_wl='-Wl,'
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-static'
8967 # icc used to be incompatible with GCC.
8968 # ICC 10 doesn't accept -KPIC any more.
8970 lt_prog_compiler_wl='-Wl,'
8971 lt_prog_compiler_pic='-fPIC'
8972 lt_prog_compiler_static='-static'
8974 # Lahey Fortran 8.1.
8976 lt_prog_compiler_wl='-Wl,'
8977 lt_prog_compiler_pic='--shared'
8978 lt_prog_compiler_static='--static'
8981 # NAG Fortran compiler
8982 lt_prog_compiler_wl='-Wl,-Wl,,'
8983 lt_prog_compiler_pic='-PIC'
8984 lt_prog_compiler_static='-Bstatic'
8987 # Fabrice Bellard et al's Tiny C Compiler
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-fPIC'
8990 lt_prog_compiler_static='-static'
8992 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8993 # Portland Group compilers (*not* the Pentium gcc compiler,
8994 # which looks to be a dead project)
8995 lt_prog_compiler_wl='-Wl,'
8996 lt_prog_compiler_pic='-fpic'
8997 lt_prog_compiler_static='-Bstatic'
9000 lt_prog_compiler_wl='-Wl,'
9001 # All Alpha code is PIC.
9002 lt_prog_compiler_static='-non_shared'
9004 xl* | bgxl* | bgf* | mpixl*)
9005 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9006 lt_prog_compiler_wl='-Wl,'
9007 lt_prog_compiler_pic='-qpic'
9008 lt_prog_compiler_static='-qstaticlink'
9011 case `$CC -V 2>&1 | $SED 5q` in
9012 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9013 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9014 lt_prog_compiler_pic='-KPIC'
9015 lt_prog_compiler_static='-Bstatic'
9016 lt_prog_compiler_wl=''
9018 *Sun\ F* | *Sun*Fortran*)
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9021 lt_prog_compiler_wl='-Qoption ld '
9025 lt_prog_compiler_pic='-KPIC'
9026 lt_prog_compiler_static='-Bstatic'
9027 lt_prog_compiler_wl='-Wl,'
9029 *Intel*\ [CF]*Compiler*)
9030 lt_prog_compiler_wl='-Wl,'
9031 lt_prog_compiler_pic='-fPIC'
9032 lt_prog_compiler_static='-static'
9035 lt_prog_compiler_wl='-Wl,'
9036 lt_prog_compiler_pic='-fpic'
9037 lt_prog_compiler_static='-Bstatic'
9045 lt_prog_compiler_pic='-KPIC'
9046 lt_prog_compiler_static='-Bstatic'
9050 # QNX uses GNU C++, but need to define -shared option too, otherwise
9052 lt_prog_compiler_pic='-fPIC -shared'
9055 osf3* | osf4* | osf5*)
9056 lt_prog_compiler_wl='-Wl,'
9057 # All OSF/1 code is PIC.
9058 lt_prog_compiler_static='-non_shared'
9062 lt_prog_compiler_static='-non_shared'
9066 lt_prog_compiler_pic='-KPIC'
9067 lt_prog_compiler_static='-Bstatic'
9068 case $cc_basename in
9069 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9070 lt_prog_compiler_wl='-Qoption ld ';;
9072 lt_prog_compiler_wl='-Wl,';;
9077 lt_prog_compiler_wl='-Qoption ld '
9078 lt_prog_compiler_pic='-PIC'
9079 lt_prog_compiler_static='-Bstatic'
9082 sysv4 | sysv4.2uw2* | sysv4.3*)
9083 lt_prog_compiler_wl='-Wl,'
9084 lt_prog_compiler_pic='-KPIC'
9085 lt_prog_compiler_static='-Bstatic'
9089 if test -d /usr/nec; then
9090 lt_prog_compiler_pic='-Kconform_pic'
9091 lt_prog_compiler_static='-Bstatic'
9095 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9096 lt_prog_compiler_wl='-Wl,'
9097 lt_prog_compiler_pic='-KPIC'
9098 lt_prog_compiler_static='-Bstatic'
9102 lt_prog_compiler_wl='-Wl,'
9103 lt_prog_compiler_can_build_shared=no
9107 lt_prog_compiler_pic='-pic'
9108 lt_prog_compiler_static='-Bstatic'
9112 lt_prog_compiler_can_build_shared=no
9118 # For platforms that do not support PIC, -DPIC is meaningless:
9120 lt_prog_compiler_pic=
9123 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9128 printf %s "checking for $compiler option to produce PIC... " >&6; }
9129 if test ${lt_cv_prog_compiler_pic+y}
9131 printf %s "(cached) " >&6
9133 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9136 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9137 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9140 # Check to make sure the PIC flag actually works.
9142 if test -n "$lt_prog_compiler_pic"; then
9143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9144 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9145 if test ${lt_cv_prog_compiler_pic_works+y}
9147 printf %s "(cached) " >&6
9149 lt_cv_prog_compiler_pic_works=no
9150 ac_outfile=conftest.$ac_objext
9151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9152 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9153 # Insert the option either (1) after the last *FLAGS variable, or
9154 # (2) before a word containing "conftest.", or (3) at the end.
9155 # Note that $ac_compile itself does not contain backslashes and begins
9156 # with a dollar sign (not a hyphen), so the echo should work correctly.
9157 # The option is referenced via a variable to avoid confusing sed.
9158 lt_compile=`echo "$ac_compile" | $SED \
9159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9161 -e 's:$: $lt_compiler_flag:'`
9162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9163 (eval "$lt_compile" 2>conftest.err)
9165 cat conftest.err >&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 if (exit $ac_status) && test -s "$ac_outfile"; then
9168 # The compiler can only warn and ignore the option if not recognized
9169 # So say no if there are warnings other than the usual output.
9170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9173 lt_cv_prog_compiler_pic_works=yes
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9180 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9182 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9183 case $lt_prog_compiler_pic in
9185 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9188 lt_prog_compiler_pic=
9189 lt_prog_compiler_can_build_shared=no
9205 # Check to make sure the static flag actually works.
9207 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9209 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9210 if test ${lt_cv_prog_compiler_static_works+y}
9212 printf %s "(cached) " >&6
9214 lt_cv_prog_compiler_static_works=no
9215 save_LDFLAGS=$LDFLAGS
9216 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9217 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9218 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9219 # The linker can only warn and ignore the option if not recognized
9220 # So say no if there are warnings
9221 if test -s conftest.err; then
9222 # Append any errors to the config.log.
9223 cat conftest.err 1>&5
9224 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9226 if diff conftest.exp conftest.er2 >/dev/null; then
9227 lt_cv_prog_compiler_static_works=yes
9230 lt_cv_prog_compiler_static_works=yes
9234 LDFLAGS=$save_LDFLAGS
9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9238 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9240 if test yes = "$lt_cv_prog_compiler_static_works"; then
9243 lt_prog_compiler_static=
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9253 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9254 if test ${lt_cv_prog_compiler_c_o+y}
9256 printf %s "(cached) " >&6
9258 lt_cv_prog_compiler_c_o=no
9259 $RM -r conftest 2>/dev/null
9263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9265 lt_compiler_flag="-o out/conftest2.$ac_objext"
9266 # Insert the option either (1) after the last *FLAGS variable, or
9267 # (2) before a word containing "conftest.", or (3) at the end.
9268 # Note that $ac_compile itself does not contain backslashes and begins
9269 # with a dollar sign (not a hyphen), so the echo should work correctly.
9270 lt_compile=`echo "$ac_compile" | $SED \
9271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9273 -e 's:$: $lt_compiler_flag:'`
9274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9275 (eval "$lt_compile" 2>out/conftest.err)
9277 cat out/conftest.err >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9281 # The compiler can only warn and ignore the option if not recognized
9282 # So say no if there are warnings
9283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9286 lt_cv_prog_compiler_c_o=yes
9291 # SGI C++ compiler will create directory out/ii_files/ for
9292 # template instantiation
9293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9294 $RM out/* && rmdir out
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9301 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9309 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9310 if test ${lt_cv_prog_compiler_c_o+y}
9312 printf %s "(cached) " >&6
9314 lt_cv_prog_compiler_c_o=no
9315 $RM -r conftest 2>/dev/null
9319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9321 lt_compiler_flag="-o out/conftest2.$ac_objext"
9322 # Insert the option either (1) after the last *FLAGS variable, or
9323 # (2) before a word containing "conftest.", or (3) at the end.
9324 # Note that $ac_compile itself does not contain backslashes and begins
9325 # with a dollar sign (not a hyphen), so the echo should work correctly.
9326 lt_compile=`echo "$ac_compile" | $SED \
9327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9329 -e 's:$: $lt_compiler_flag:'`
9330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9331 (eval "$lt_compile" 2>out/conftest.err)
9333 cat out/conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9337 # The compiler can only warn and ignore the option if not recognized
9338 # So say no if there are warnings
9339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9340 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9341 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9342 lt_cv_prog_compiler_c_o=yes
9347 # SGI C++ compiler will create directory out/ii_files/ for
9348 # template instantiation
9349 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9350 $RM out/* && rmdir out
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9357 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9362 hard_links=nottested
9363 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9364 # do not overwrite the value of need_locks provided by the user
9365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9366 printf %s "checking if we can lock with hard links... " >&6; }
9369 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9371 ln conftest.a conftest.b 2>&5 || hard_links=no
9372 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9374 printf "%s\n" "$hard_links" >&6; }
9375 if test no = "$hard_links"; then
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9377 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9390 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9393 allow_undefined_flag=
9394 always_export_symbols=no
9396 archive_expsym_cmds=
9397 compiler_needs_object=no
9398 enable_shared_with_static_runtimes=no
9399 export_dynamic_flag_spec=
9400 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9401 hardcode_automatic=no
9403 hardcode_direct_absolute=no
9404 hardcode_libdir_flag_spec=
9405 hardcode_libdir_separator=
9407 hardcode_shlibpath_var=unsupported
9409 link_all_deplibs=unknown
9412 old_archive_from_new_cmds=
9413 old_archive_from_expsyms_cmds=
9414 thread_safe_flag_spec=
9415 whole_archive_flag_spec=
9416 # include_expsyms should be a list of space-separated symbols to be *always*
9417 # included in the symbol list
9419 # exclude_expsyms can be an extended regexp of symbols to exclude
9420 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9421 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9422 # as well as any symbol that contains 'd'.
9423 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9424 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9425 # platforms (ab)use it in PIC code, but their linkers get confused if
9426 # the symbol is explicitly referenced. Since portable code cannot
9427 # rely on this symbol name, it's probably fine to never include it in
9428 # preloaded symbol tables.
9429 # Exclude shared library initialization/finalization symbols.
9430 extract_expsyms_cmds=
9433 cygwin* | mingw* | pw32* | cegcc*)
9434 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9435 # When not using gcc, we currently assume that we are using
9436 # Microsoft Visual C++ or Intel C++ Compiler.
9437 if test yes != "$GCC"; then
9442 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9452 # On some targets, GNU ld is compatible enough with the native linker
9453 # that we're better off using the native interface for both.
9454 lt_use_gnu_ld_interface=no
9455 if test yes = "$with_gnu_ld"; then
9458 # The AIX port of GNU ld has always aspired to compatibility
9459 # with the native linker. However, as the warning in the GNU ld
9460 # block says, versions before 2.19.5* couldn't really create working
9461 # shared libraries, regardless of the interface used.
9462 case `$LD -v 2>&1` in
9463 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9464 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9465 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9467 lt_use_gnu_ld_interface=yes
9472 lt_use_gnu_ld_interface=yes
9477 if test yes = "$lt_use_gnu_ld_interface"; then
9478 # If archive_cmds runs LD, not CC, wlarc should be empty
9481 # Set some defaults for GNU ld with shared library support. These
9482 # are reset later if shared libraries are not supported. Putting them
9483 # here allows them to be overridden if necessary.
9484 runpath_var=LD_RUN_PATH
9485 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9486 export_dynamic_flag_spec='$wl--export-dynamic'
9487 # ancient GNU ld didn't support --whole-archive et. al.
9488 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9489 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9491 whole_archive_flag_spec=
9493 supports_anon_versioning=no
9494 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9495 *GNU\ gold*) supports_anon_versioning=yes ;;
9496 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9497 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9498 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9499 *\ 2.11.*) ;; # other 2.11 versions
9500 *) supports_anon_versioning=yes ;;
9503 # See if GNU ld supports shared libraries.
9506 # On AIX/PPC, the GNU linker is very broken
9507 if test ia64 != "$host_cpu"; then
9511 *** Warning: the GNU linker, at least up to release 2.19, is reported
9512 *** to be unable to reliably create shared libraries on AIX.
9513 *** Therefore, libtool is disabling shared libraries support. If you
9514 *** really care for shared libraries, you may want to install binutils
9515 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9516 *** You will then need to restart the configuration process.
9525 # see comment about AmigaOS4 .so support
9526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9527 archive_expsym_cmds=''
9530 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)'
9531 hardcode_libdir_flag_spec='-L$libdir'
9532 hardcode_minus_L=yes
9538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9539 allow_undefined_flag=unsupported
9540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9541 # support --undefined. This deserves some investigation. FIXME
9542 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9548 cygwin* | mingw* | pw32* | cegcc*)
9549 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9550 # as there is no search path for DLLs.
9551 hardcode_libdir_flag_spec='-L$libdir'
9552 export_dynamic_flag_spec='$wl--export-all-symbols'
9553 allow_undefined_flag=unsupported
9554 always_export_symbols=no
9555 enable_shared_with_static_runtimes=yes
9556 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'
9557 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9559 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9561 # If the export-symbols file already is a .def file, use it as
9562 # is; otherwise, prepend EXPORTS...
9563 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9564 cp $export_symbols $output_objdir/$soname.def;
9566 echo EXPORTS > $output_objdir/$soname.def;
9567 cat $export_symbols >> $output_objdir/$soname.def;
9569 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9577 link_all_deplibs=yes
9581 hardcode_libdir_flag_spec='-L$libdir'
9582 hardcode_minus_L=yes
9583 allow_undefined_flag=unsupported
9585 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9586 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9587 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9588 $ECHO EXPORTS >> $output_objdir/$libname.def~
9589 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9590 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9591 emximp -o $lib $output_objdir/$libname.def'
9592 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9593 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9594 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9595 $ECHO EXPORTS >> $output_objdir/$libname.def~
9597 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9598 prefix_cmds="$prefix_cmds -e 1d";
9600 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9601 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9602 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9603 emximp -o $lib $output_objdir/$libname.def'
9604 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9605 enable_shared_with_static_runtimes=yes
9611 hardcode_shlibpath_var=no
9612 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9613 export_dynamic_flag_spec='$wl-E'
9614 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9615 # Instead, shared libraries are loaded at an image base (0x10000000 by
9616 # default) and relocated if they conflict, which is a slow very memory
9617 # consuming and fragmenting process. To avoid this, we pick a random,
9618 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9619 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9620 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9621 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'
9624 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9626 if test linux-dietlibc = "$host_os"; then
9627 case $cc_basename in
9628 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9631 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9632 && test no = "$tmp_diet"
9634 tmp_addflag=' $pic_flag'
9635 tmp_sharedflag='-shared'
9636 case $cc_basename,$host_cpu in
9637 pgcc*) # Portland Group C compiler
9638 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'
9639 tmp_addflag=' $pic_flag'
9641 pgf77* | pgf90* | pgf95* | pgfortran*)
9642 # Portland Group f77 and f90 compilers
9643 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'
9644 tmp_addflag=' $pic_flag -Mnomain' ;;
9645 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9646 tmp_addflag=' -i_dynamic' ;;
9647 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9648 tmp_addflag=' -i_dynamic -nofor_main' ;;
9649 ifc* | ifort*) # Intel Fortran compiler
9650 tmp_addflag=' -nofor_main' ;;
9651 lf95*) # Lahey Fortran 8.1
9652 whole_archive_flag_spec=
9653 tmp_sharedflag='--shared' ;;
9654 nagfor*) # NAGFOR 5.3
9655 tmp_sharedflag='-Wl,-shared' ;;
9656 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9657 tmp_sharedflag='-qmkshrobj'
9659 nvcc*) # Cuda Compiler Driver 2.2
9660 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'
9661 compiler_needs_object=yes
9664 case `$CC -V 2>&1 | $SED 5q` in
9665 *Sun\ C*) # Sun C 5.9
9666 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'
9667 compiler_needs_object=yes
9668 tmp_sharedflag='-G' ;;
9669 *Sun\ F*) # Sun Fortran 8.3
9670 tmp_sharedflag='-G' ;;
9672 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9674 if test yes = "$supports_anon_versioning"; then
9675 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9676 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9677 echo "local: *; };" >> $output_objdir/$libname.ver~
9678 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9681 case $cc_basename in
9683 export_dynamic_flag_spec='-rdynamic'
9685 xlf* | bgf* | bgxlf* | mpixlf*)
9686 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9687 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9688 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9689 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9690 if test yes = "$supports_anon_versioning"; then
9691 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9692 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9693 echo "local: *; };" >> $output_objdir/$libname.ver~
9694 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9705 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9708 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9709 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9714 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9718 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9719 *** create shared libraries on Solaris systems. Therefore, libtool
9720 *** is disabling shared libraries support. We urge you to upgrade GNU
9721 *** binutils to release 2.9.1 or newer. Another option is to modify
9722 *** your PATH or compiler configuration so that the native linker is
9723 *** used, and then restart.
9726 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9727 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9728 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9735 case `$LD -v 2>&1` in
9736 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9740 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9741 *** reliably create shared libraries on SCO systems. Therefore, libtool
9742 *** is disabling shared libraries support. We urge you to upgrade GNU
9743 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9744 *** your PATH or compiler configuration so that the native linker is
9745 *** used, and then restart.
9750 # For security reasons, it is highly recommended that you always
9751 # use absolute paths for naming shared libraries, and exclude the
9752 # DT_RUNPATH tag from executables and libraries. But doing so
9753 # requires that you compile everything twice, which is a pain.
9754 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9755 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9757 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9766 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_shlibpath_var=no
9773 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9774 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9775 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9782 if test no = "$ld_shlibs"; then
9784 hardcode_libdir_flag_spec=
9785 export_dynamic_flag_spec=
9786 whole_archive_flag_spec=
9789 # PORTME fill in a description of your system's linker (not GNU ld)
9792 allow_undefined_flag=unsupported
9793 always_export_symbols=yes
9794 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'
9795 # Note: this linker hardcodes the directories in LIBPATH if there
9796 # are no directories specified by -L.
9797 hardcode_minus_L=yes
9798 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9799 # Neither direct hardcoding nor static linking is supported with a
9801 hardcode_direct=unsupported
9806 if test ia64 = "$host_cpu"; then
9807 # On IA64, the linker does run time linking by default, so we don't
9808 # have to do anything special.
9809 aix_use_runtimelinking=no
9810 exp_sym_flag='-Bexport'
9813 # If we're using GNU nm, then we don't want the "-C" option.
9814 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9815 # Without the "-l" option, or with the "-B" option, AIX nm treats
9816 # weak defined symbols like other global defined symbols, whereas
9817 # GNU nm marks them as "W".
9818 # While the 'weak' keyword is ignored in the Export File, we need
9819 # it in the Import File for the 'aix-soname' feature, so we have
9820 # to replace the "-B" option with "-P" for AIX nm.
9821 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9822 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'
9824 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'
9826 aix_use_runtimelinking=no
9828 # Test if we are trying to use run time linking or normal
9829 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9830 # have runtime linking enabled, and use it for executables.
9831 # For shared libraries, we enable/disable runtime linking
9832 # depending on the kind of the shared library created -
9833 # when "with_aix_soname,aix_use_runtimelinking" is:
9834 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9835 # "aix,yes" lib.so shared, rtl:yes, for executables
9836 # lib.a static archive
9837 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9838 # lib.a(lib.so.V) shared, rtl:no, for executables
9839 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9840 # lib.a(lib.so.V) shared, rtl:no
9841 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9842 # lib.a static archive
9843 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9844 for ld_flag in $LDFLAGS; do
9845 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9846 aix_use_runtimelinking=yes
9850 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9851 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9852 # so we don't have lib.a shared libs to link our executables.
9853 # We have to force runtime linking in this case.
9854 aix_use_runtimelinking=yes
9855 LDFLAGS="$LDFLAGS -Wl,-brtl"
9860 exp_sym_flag='-bexport'
9861 no_entry_flag='-bnoentry'
9864 # When large executables or shared objects are built, AIX ld can
9865 # have problems creating the table of contents. If linking a library
9866 # or program results in "error TOC overflow" add -mminimal-toc to
9867 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9868 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9872 hardcode_direct_absolute=yes
9873 hardcode_libdir_separator=':'
9874 link_all_deplibs=yes
9875 file_list_spec='$wl-f,'
9876 case $with_aix_soname,$aix_use_runtimelinking in
9877 aix,*) ;; # traditional, no import file
9878 svr4,* | *,yes) # use import file
9879 # The Import File defines what to hardcode.
9881 hardcode_direct_absolute=no
9885 if test yes = "$GCC"; then
9886 case $host_os in aix4.[012]|aix4.[012].*)
9887 # We only want to do this on AIX 4.2 and lower, the check
9888 # below for broken collect2 doesn't work under 4.3+
9889 collect2name=`$CC -print-prog-name=collect2`
9890 if test -f "$collect2name" &&
9891 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9893 # We have reworked collect2
9896 # We have old collect2
9897 hardcode_direct=unsupported
9898 # It fails to find uninstalled libraries when the uninstalled
9899 # path is not listed in the libpath. Setting hardcode_minus_L
9900 # to unsupported forces relinking
9901 hardcode_minus_L=yes
9902 hardcode_libdir_flag_spec='-L$libdir'
9903 hardcode_libdir_separator=
9907 shared_flag='-shared'
9908 if test yes = "$aix_use_runtimelinking"; then
9909 shared_flag="$shared_flag "'$wl-G'
9911 # Need to ensure runtime linking is disabled for the traditional
9912 # shared library, or the linker may eventually find shared libraries
9913 # /with/ Import File - we do not want to mix them.
9914 shared_flag_aix='-shared'
9915 shared_flag_svr4='-shared $wl-G'
9918 if test ia64 = "$host_cpu"; then
9919 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9920 # chokes on -Wl,-G. The following line is correct:
9923 if test yes = "$aix_use_runtimelinking"; then
9926 shared_flag='$wl-bM:SRE'
9928 shared_flag_aix='$wl-bM:SRE'
9929 shared_flag_svr4='$wl-G'
9933 export_dynamic_flag_spec='$wl-bexpall'
9934 # It seems that -bexpall does not export symbols beginning with
9935 # underscore (_), so it is better to generate a list of symbols to export.
9936 always_export_symbols=yes
9937 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9938 # Warning - without using the other runtime loading flags (-brtl),
9939 # -berok will link without error, but may produce a broken library.
9940 allow_undefined_flag='-berok'
9941 # Determine the default libpath from the value encoded in an
9943 if test set = "${lt_cv_aix_libpath+set}"; then
9944 aix_libpath=$lt_cv_aix_libpath
9946 if test ${lt_cv_aix_libpath_+y}
9948 printf %s "(cached) " >&6
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9961 if ac_fn_c_try_link "$LINENO"
9964 lt_aix_libpath_sed='
9965 /Import File Strings/,/^$/ {
9967 s/^0 *\([^ ]*\) *$/\1/
9971 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9972 # Check for a 64-bit object if we didn't find anything.
9973 if test -z "$lt_cv_aix_libpath_"; then
9974 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9978 conftest$ac_exeext conftest.$ac_ext
9979 if test -z "$lt_cv_aix_libpath_"; then
9980 lt_cv_aix_libpath_=/usr/lib:/lib
9985 aix_libpath=$lt_cv_aix_libpath_
9988 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9989 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
9991 if test ia64 = "$host_cpu"; then
9992 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9993 allow_undefined_flag="-z nodefs"
9994 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"
9996 # Determine the default libpath from the value encoded in an
9998 if test set = "${lt_cv_aix_libpath+set}"; then
9999 aix_libpath=$lt_cv_aix_libpath
10001 if test ${lt_cv_aix_libpath_+y}
10003 printf %s "(cached) " >&6
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10016 if ac_fn_c_try_link "$LINENO"
10019 lt_aix_libpath_sed='
10020 /Import File Strings/,/^$/ {
10022 s/^0 *\([^ ]*\) *$/\1/
10026 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10027 # Check for a 64-bit object if we didn't find anything.
10028 if test -z "$lt_cv_aix_libpath_"; then
10029 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10033 conftest$ac_exeext conftest.$ac_ext
10034 if test -z "$lt_cv_aix_libpath_"; then
10035 lt_cv_aix_libpath_=/usr/lib:/lib
10040 aix_libpath=$lt_cv_aix_libpath_
10043 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10044 # Warning - without using the other run time loading flags,
10045 # -berok will link without error, but may produce a broken library.
10046 no_undefined_flag=' $wl-bernotok'
10047 allow_undefined_flag=' $wl-berok'
10048 if test yes = "$with_gnu_ld"; then
10049 # We only use this code for GNU lds that support --whole-archive.
10050 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10052 # Exported symbols can be pulled into shared objects from archives
10053 whole_archive_flag_spec='$convenience'
10055 archive_cmds_need_lc=yes
10056 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10057 # -brtl affects multiple linker settings, -berok does not and is overridden later
10058 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10059 if test svr4 != "$with_aix_soname"; then
10060 # This is similar to how AIX traditionally builds its shared libraries.
10061 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'
10063 if test aix != "$with_aix_soname"; then
10064 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'
10066 # used by -dlpreopen to get the symbols
10067 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10069 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10077 # see comment about AmigaOS4 .so support
10078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10079 archive_expsym_cmds=''
10082 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)'
10083 hardcode_libdir_flag_spec='-L$libdir'
10084 hardcode_minus_L=yes
10090 export_dynamic_flag_spec=-rdynamic
10093 cygwin* | mingw* | pw32* | cegcc*)
10094 # When not using gcc, we currently assume that we are using
10095 # Microsoft Visual C++ or Intel C++ Compiler.
10096 # hardcode_libdir_flag_spec is actually meaningless, as there is
10097 # no search path for DLLs.
10098 case $cc_basename in
10100 # Native MSVC or ICC
10101 hardcode_libdir_flag_spec=' '
10102 allow_undefined_flag=unsupported
10103 always_export_symbols=yes
10105 # Tell ltmain to make .lib files, not .a files.
10107 # Tell ltmain to make .dll files, not .so files.
10109 # FIXME: Setting linknames here is a bad hack.
10110 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10111 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10112 cp "$export_symbols" "$output_objdir/$soname.def";
10113 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10115 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10117 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10119 # The linker will not automatically build a static lib if we build a DLL.
10120 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10121 enable_shared_with_static_runtimes=yes
10122 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10123 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10125 old_postinstall_cmds='chmod 644 $oldlib'
10126 postlink_cmds='lt_outputfile="@OUTPUT@"~
10127 lt_tool_outputfile="@TOOL_OUTPUT@"~
10128 case $lt_outputfile in
10131 lt_outputfile=$lt_outputfile.exe
10132 lt_tool_outputfile=$lt_tool_outputfile.exe
10135 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10136 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10137 $RM "$lt_outputfile.manifest";
10141 # Assume MSVC and ICC wrapper
10142 hardcode_libdir_flag_spec=' '
10143 allow_undefined_flag=unsupported
10144 # Tell ltmain to make .lib files, not .a files.
10146 # Tell ltmain to make .dll files, not .so files.
10148 # FIXME: Setting linknames here is a bad hack.
10149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10150 # The linker will automatically build a .lib file if we build a DLL.
10151 old_archive_from_new_cmds='true'
10152 # FIXME: Should let the user specify the lib program.
10153 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10154 enable_shared_with_static_runtimes=yes
10159 darwin* | rhapsody*)
10162 archive_cmds_need_lc=no
10164 hardcode_automatic=yes
10165 hardcode_shlibpath_var=unsupported
10166 if test yes = "$lt_cv_ld_force_load"; then
10167 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\"`'
10170 whole_archive_flag_spec=''
10172 link_all_deplibs=yes
10173 allow_undefined_flag=$_lt_dar_allow_undefined
10174 case $cc_basename in
10175 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10176 *) _lt_dar_can_shared=$GCC ;;
10178 if test yes = "$_lt_dar_can_shared"; then
10179 output_verbose_link_cmd=func_echo_all
10180 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10181 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10182 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"
10183 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"
10192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193 hardcode_libdir_flag_spec='-L$libdir'
10194 hardcode_shlibpath_var=no
10197 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10198 # support. Future versions do this automatically, but an explicit c++rt0.o
10199 # does not break anything, and helps significantly (at the cost of a little
10202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10203 hardcode_libdir_flag_spec='-R$libdir'
10204 hardcode_direct=yes
10205 hardcode_shlibpath_var=no
10208 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10210 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10211 hardcode_direct=yes
10212 hardcode_minus_L=yes
10213 hardcode_shlibpath_var=no
10216 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10217 freebsd* | dragonfly* | midnightbsd*)
10218 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10219 hardcode_libdir_flag_spec='-R$libdir'
10220 hardcode_direct=yes
10221 hardcode_shlibpath_var=no
10225 if test yes = "$GCC"; then
10226 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'
10228 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'
10230 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10231 hardcode_libdir_separator=:
10232 hardcode_direct=yes
10234 # hardcode_minus_L: Not really in the search PATH,
10235 # but as the default location of the library.
10236 hardcode_minus_L=yes
10237 export_dynamic_flag_spec='$wl-E'
10241 if test yes,no = "$GCC,$with_gnu_ld"; then
10242 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10244 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10246 if test no = "$with_gnu_ld"; then
10247 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10248 hardcode_libdir_separator=:
10249 hardcode_direct=yes
10250 hardcode_direct_absolute=yes
10251 export_dynamic_flag_spec='$wl-E'
10252 # hardcode_minus_L: Not really in the search PATH,
10253 # but as the default location of the library.
10254 hardcode_minus_L=yes
10259 if test yes,no = "$GCC,$with_gnu_ld"; then
10262 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10268 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10274 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10281 # Older versions of the 11.00 compiler do not understand -b yet
10282 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10284 printf %s "checking if $CC understands -b... " >&6; }
10285 if test ${lt_cv_prog_compiler__b+y}
10287 printf %s "(cached) " >&6
10289 lt_cv_prog_compiler__b=no
10290 save_LDFLAGS=$LDFLAGS
10291 LDFLAGS="$LDFLAGS -b"
10292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10294 # The linker can only warn and ignore the option if not recognized
10295 # So say no if there are warnings
10296 if test -s conftest.err; then
10297 # Append any errors to the config.log.
10298 cat conftest.err 1>&5
10299 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10301 if diff conftest.exp conftest.er2 >/dev/null; then
10302 lt_cv_prog_compiler__b=yes
10305 lt_cv_prog_compiler__b=yes
10309 LDFLAGS=$save_LDFLAGS
10312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10313 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10315 if test yes = "$lt_cv_prog_compiler__b"; then
10316 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10324 if test no = "$with_gnu_ld"; then
10325 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10326 hardcode_libdir_separator=:
10331 hardcode_shlibpath_var=no
10334 hardcode_direct=yes
10335 hardcode_direct_absolute=yes
10336 export_dynamic_flag_spec='$wl-E'
10338 # hardcode_minus_L: Not really in the search PATH,
10339 # but as the default location of the library.
10340 hardcode_minus_L=yes
10346 irix5* | irix6* | nonstopux*)
10347 if test yes = "$GCC"; then
10348 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'
10349 # Try to use the -exported_symbol ld option, if it does not
10350 # work, assume that -exports_file does not work either and
10351 # implicitly export all symbols.
10352 # This should be the same for all languages, so no per-tag cache variable.
10353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10354 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10355 if test ${lt_cv_irix_exported_symbol+y}
10357 printf %s "(cached) " >&6
10359 save_LDFLAGS=$LDFLAGS
10360 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363 int foo (void) { return 0; }
10365 if ac_fn_c_try_link "$LINENO"
10367 lt_cv_irix_exported_symbol=yes
10369 lt_cv_irix_exported_symbol=no
10371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10372 conftest$ac_exeext conftest.$ac_ext
10373 LDFLAGS=$save_LDFLAGS
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10376 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10377 if test yes = "$lt_cv_irix_exported_symbol"; then
10378 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'
10381 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'
10382 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'
10384 archive_cmds_need_lc='no'
10385 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10386 hardcode_libdir_separator=:
10388 link_all_deplibs=yes
10392 case $cc_basename in
10394 # Fabrice Bellard et al's Tiny C Compiler
10396 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10402 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10403 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10405 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10407 hardcode_libdir_flag_spec='-R$libdir'
10408 hardcode_direct=yes
10409 hardcode_shlibpath_var=no
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_direct=yes
10415 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10416 hardcode_libdir_separator=:
10417 hardcode_shlibpath_var=no
10423 openbsd* | bitrig*)
10424 if test -f /usr/libexec/ld.so; then
10425 hardcode_direct=yes
10426 hardcode_shlibpath_var=no
10427 hardcode_direct_absolute=yes
10428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10429 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10430 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10431 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10432 export_dynamic_flag_spec='$wl-E'
10434 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10435 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10443 hardcode_libdir_flag_spec='-L$libdir'
10444 hardcode_minus_L=yes
10445 allow_undefined_flag=unsupported
10447 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10448 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10449 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10450 $ECHO EXPORTS >> $output_objdir/$libname.def~
10451 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10452 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10453 emximp -o $lib $output_objdir/$libname.def'
10454 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10455 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10456 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10457 $ECHO EXPORTS >> $output_objdir/$libname.def~
10458 prefix_cmds="$SED"~
10459 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10460 prefix_cmds="$prefix_cmds -e 1d";
10462 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10463 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10464 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10465 emximp -o $lib $output_objdir/$libname.def'
10466 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10467 enable_shared_with_static_runtimes=yes
10472 if test yes = "$GCC"; then
10473 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10474 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'
10476 allow_undefined_flag=' -expect_unresolved \*'
10477 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'
10479 archive_cmds_need_lc='no'
10480 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10481 hardcode_libdir_separator=:
10484 osf4* | osf5*) # as osf3* with the addition of -msym flag
10485 if test yes = "$GCC"; then
10486 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10487 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'
10488 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10490 allow_undefined_flag=' -expect_unresolved \*'
10491 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'
10492 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~
10493 $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'
10495 # Both c and cxx compiler support -rpath directly
10496 hardcode_libdir_flag_spec='-rpath $libdir'
10498 archive_cmds_need_lc='no'
10499 hardcode_libdir_separator=:
10503 no_undefined_flag=' -z defs'
10504 if test yes = "$GCC"; then
10506 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10507 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10508 $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'
10510 case `$CC -V 2>&1` in
10513 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10515 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10519 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10520 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10521 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10525 hardcode_libdir_flag_spec='-R$libdir'
10526 hardcode_shlibpath_var=no
10528 solaris2.[0-5] | solaris2.[0-5].*) ;;
10530 # The compiler driver will combine and reorder linker options,
10531 # but understands '-z linker_flag'. GCC discards it without '$wl',
10532 # but is careful enough not to reorder.
10533 # Supported since Solaris 2.6 (maybe 2.5.1?)
10534 if test yes = "$GCC"; then
10535 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10537 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10541 link_all_deplibs=yes
10545 if test sequent = "$host_vendor"; then
10546 # Use $CC to link under sequent, because it throws in some extra .o
10547 # files that make .init and .fini sections work.
10548 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10550 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10552 hardcode_libdir_flag_spec='-L$libdir'
10553 hardcode_direct=yes
10554 hardcode_minus_L=yes
10555 hardcode_shlibpath_var=no
10559 case $host_vendor in
10561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10562 hardcode_direct=yes # is this really true???
10565 ## LD is ld it makes a PLAMLIB
10566 ## CC just makes a GrossModule.
10567 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10568 reload_cmds='$CC -r -o $output$reload_objs'
10572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10573 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10576 runpath_var='LD_RUN_PATH'
10577 hardcode_shlibpath_var=no
10581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582 hardcode_shlibpath_var=no
10583 export_dynamic_flag_spec='-Bexport'
10587 if test -d /usr/nec; then
10588 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10589 hardcode_shlibpath_var=no
10590 runpath_var=LD_RUN_PATH
10591 hardcode_runpath_var=yes
10596 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10597 no_undefined_flag='$wl-z,text'
10598 archive_cmds_need_lc=no
10599 hardcode_shlibpath_var=no
10600 runpath_var='LD_RUN_PATH'
10602 if test yes = "$GCC"; then
10603 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611 sysv5* | sco3.2v5* | sco5v6*)
10612 # Note: We CANNOT use -z defs as we might desire, because we do not
10613 # link with -lc, and that would cause any symbols used from libc to
10614 # always be unresolved, which means just about no library would
10615 # ever link correctly. If we're not using GNU ld we use -z text
10616 # though, which does catch some bad symbols but isn't as heavy-handed
10618 no_undefined_flag='$wl-z,text'
10619 allow_undefined_flag='$wl-z,nodefs'
10620 archive_cmds_need_lc=no
10621 hardcode_shlibpath_var=no
10622 hardcode_libdir_flag_spec='$wl-R,$libdir'
10623 hardcode_libdir_separator=':'
10624 link_all_deplibs=yes
10625 export_dynamic_flag_spec='$wl-Bexport'
10626 runpath_var='LD_RUN_PATH'
10628 if test yes = "$GCC"; then
10629 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10632 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10633 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10639 hardcode_libdir_flag_spec='-L$libdir'
10640 hardcode_shlibpath_var=no
10648 if test sni = "$host_vendor"; then
10650 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10651 export_dynamic_flag_spec='$wl-Blargedynsym'
10657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10658 printf "%s\n" "$ld_shlibs" >&6; }
10659 test no = "$ld_shlibs" && can_build_shared=no
10661 with_gnu_ld=$with_gnu_ld
10678 # Do we need to explicitly link libc?
10680 case "x$archive_cmds_need_lc" in
10682 # Assume -lc should be added
10683 archive_cmds_need_lc=yes
10685 if test yes,yes = "$GCC,$enable_shared"; then
10686 case $archive_cmds in
10688 # FIXME: we may have to deal with multi-command sequences.
10691 # Test whether the compiler implicitly links with -lc since on some
10692 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10693 # to ld, don't add -lc before -lgcc.
10694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10695 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10696 if test ${lt_cv_archive_cmds_need_lc+y}
10698 printf %s "(cached) " >&6
10701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10704 (eval $ac_compile) 2>&5
10706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10707 test $ac_status = 0; } 2>conftest.err; then
10710 libobjs=conftest.$ac_objext
10712 wl=$lt_prog_compiler_wl
10713 pic_flag=$lt_prog_compiler_pic
10719 lt_save_allow_undefined_flag=$allow_undefined_flag
10720 allow_undefined_flag=
10721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10722 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10725 test $ac_status = 0; }
10727 lt_cv_archive_cmds_need_lc=no
10729 lt_cv_archive_cmds_need_lc=yes
10731 allow_undefined_flag=$lt_save_allow_undefined_flag
10733 cat conftest.err 1>&5
10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10739 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
10740 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10899 printf %s "checking dynamic linker characteristics... " >&6; }
10901 if test yes = "$GCC"; then
10903 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10904 *) lt_awk_arg='/^libraries:/' ;;
10907 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10908 *) lt_sed_strip_eq='s|=/|/|g' ;;
10910 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10911 case $lt_search_path_spec in
10913 # if the path contains ";" then we assume it to be the separator
10914 # otherwise default to the standard path separator (i.e. ":") - it is
10915 # assumed that no part of a normal pathname contains ";" but that should
10916 # okay in the real world where ";" in dirpaths is itself problematic.
10917 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10920 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10923 # Ok, now we have the path, separated by spaces, we can step through it
10924 # and add multilib dir if necessary...
10925 lt_tmp_lt_search_path_spec=
10926 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10927 # ...but if some path component already ends with the multilib dir we assume
10928 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10929 case "$lt_multi_os_dir; $lt_search_path_spec " in
10930 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10934 for lt_sys_path in $lt_search_path_spec; do
10935 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10936 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10937 elif test -n "$lt_multi_os_dir"; then
10938 test -d "$lt_sys_path" && \
10939 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10942 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10943 BEGIN {RS = " "; FS = "/|\n";} {
10946 for (lt_i = NF; lt_i > 0; lt_i--) {
10947 if ($lt_i != "" && $lt_i != ".") {
10948 if ($lt_i == "..") {
10951 if (lt_count == 0) {
10952 lt_foo = "/" $lt_i lt_foo;
10959 if (lt_foo != "") { lt_freq[lt_foo]++; }
10960 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10962 # AWK program above erroneously prepends '/' to C:/dos/paths
10965 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10966 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10968 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10970 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10972 library_names_spec=
10973 libname_spec='lib$name'
10977 postuninstall_cmds=
10981 shlibpath_overrides_runpath=unknown
10983 dynamic_linker="$host_os ld.so"
10984 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10985 need_lib_prefix=unknown
10986 hardcode_into_libs=no
10988 # when you set need_version to no, make sure it does not cause -set_version
10989 # flags to be left without arguments
10990 need_version=unknown
10996 version_type=linux # correct to gnu/linux during the next big refactor
10997 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10998 shlibpath_var=LIBPATH
11000 # AIX 3 has no versioning support, so we append a major version to the name.
11001 soname_spec='$libname$release$shared_ext$major'
11005 version_type=linux # correct to gnu/linux during the next big refactor
11008 hardcode_into_libs=yes
11009 if test ia64 = "$host_cpu"; then
11010 # AIX 5 supports IA64
11011 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11012 shlibpath_var=LD_LIBRARY_PATH
11014 # With GCC up to 2.95.x, collect2 would create an import file
11015 # for dependence libraries. The import file would start with
11016 # the line '#! .'. This would cause the generated library to
11017 # depend on '.', always an invalid library. This was fixed in
11018 # development snapshots of GCC prior to 3.0.
11020 aix4 | aix4.[01] | aix4.[01].*)
11021 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11023 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11026 can_build_shared=no
11030 # Using Import Files as archive members, it is possible to support
11031 # filename-based versioning of shared library archives on AIX. While
11032 # this would work for both with and without runtime linking, it will
11033 # prevent static linking of such archives. So we do filename-based
11034 # shared library versioning with .so extension only, which is used
11035 # when both runtime linking and shared linking is enabled.
11036 # Unfortunately, runtime linking may impact performance, so we do
11037 # not want this to be the default eventually. Also, we use the
11038 # versioned .so libs for executables only if there is the -brtl
11039 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11040 # To allow for filename-based versioning support, we need to create
11041 # libNAME.so.V as an archive file, containing:
11042 # *) an Import File, referring to the versioned filename of the
11043 # archive as well as the shared archive member, telling the
11044 # bitwidth (32 or 64) of that shared object, and providing the
11045 # list of exported symbols of that shared object, eventually
11046 # decorated with the 'weak' keyword
11047 # *) the shared object with the F_LOADONLY flag set, to really avoid
11048 # it being seen by the linker.
11049 # At run time we better use the real file rather than another symlink,
11050 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11052 case $with_aix_soname,$aix_use_runtimelinking in
11053 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11054 # soname into executable. Probably we can add versioning support to
11055 # collect2, so additional links can be useful in future.
11056 aix,yes) # traditional libtool
11057 dynamic_linker='AIX unversionable lib.so'
11058 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11059 # instead of lib<name>.a to let people know that these are not
11060 # typical AIX shared libraries.
11061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11063 aix,no) # traditional AIX only
11064 dynamic_linker='AIX lib.a(lib.so.V)'
11065 # We preserve .a as extension for shared libraries through AIX4.2
11066 # and later when we are not doing run time linking.
11067 library_names_spec='$libname$release.a $libname.a'
11068 soname_spec='$libname$release$shared_ext$major'
11070 svr4,*) # full svr4 only
11071 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11072 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11073 # We do not specify a path in Import Files, so LIBPATH fires.
11074 shlibpath_overrides_runpath=yes
11076 *,yes) # both, prefer svr4
11077 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11078 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11079 # unpreferred sharedlib libNAME.a needs extra handling
11080 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"'
11081 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"'
11082 # We do not specify a path in Import Files, so LIBPATH fires.
11083 shlibpath_overrides_runpath=yes
11085 *,no) # both, prefer aix
11086 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11087 library_names_spec='$libname$release.a $libname.a'
11088 soname_spec='$libname$release$shared_ext$major'
11089 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11090 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)'
11091 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"'
11094 shlibpath_var=LIBPATH
11101 # Since July 2007 AmigaOS4 officially supports .so libraries.
11102 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11106 library_names_spec='$libname.ixlibrary $libname.a'
11107 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11108 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'
11114 library_names_spec='$libname$shared_ext'
11115 dynamic_linker="$host_os ld.so"
11116 shlibpath_var=LIBRARY_PATH
11120 version_type=linux # correct to gnu/linux during the next big refactor
11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11123 soname_spec='$libname$release$shared_ext$major'
11124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11128 # the default ld.so.conf also contains /usr/contrib/lib and
11129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11130 # libtool to hard-code these into programs
11133 cygwin* | mingw* | pw32* | cegcc*)
11134 version_type=windows
11139 case $GCC,$cc_basename in
11142 library_names_spec='$libname.dll.a'
11143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11144 postinstall_cmds='base_file=`basename \$file`~
11145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11146 dldir=$destdir/`dirname \$dlpath`~
11147 test -d \$dldir || mkdir -p \$dldir~
11148 $install_prog $dir/$dlname \$dldir/$dlname~
11149 chmod a+x \$dldir/$dlname~
11150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11154 dlpath=$dir/\$dldll~
11156 shlibpath_overrides_runpath=yes
11160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11161 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11163 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11166 # MinGW DLLs use traditional 'lib' prefix
11167 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11170 # pw32 DLLs use 'pw' prefix rather than 'lib'
11171 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11174 dynamic_linker='Win32 ld.exe'
11178 # Native MSVC or ICC
11179 libname_spec='$name'
11180 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11181 library_names_spec='$libname.dll.lib'
11185 sys_lib_search_path_spec=
11188 for lt_path in $LIB
11191 # Let DOS variable expansion print the short 8.3 style file name.
11192 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11193 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11196 # Convert to MSYS style.
11197 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11200 # Convert to unix form, then to dos form, then back to unix form
11201 # but this time dos style (no spaces!) so that the unix form looks
11202 # like /cygdrive/c/PROGRA~1:/cygdr...
11203 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11204 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11205 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11208 sys_lib_search_path_spec=$LIB
11209 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11210 # It is most probably a Windows format PATH.
11211 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11215 # FIXME: find the short name or the path components, as spaces are
11216 # common. (e.g. "Program Files" -> "PROGRA~1")
11220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11221 postinstall_cmds='base_file=`basename \$file`~
11222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11223 dldir=$destdir/`dirname \$dlpath`~
11224 test -d \$dldir || mkdir -p \$dldir~
11225 $install_prog $dir/$dlname \$dldir/$dlname'
11226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11227 dlpath=$dir/\$dldll~
11229 shlibpath_overrides_runpath=yes
11230 dynamic_linker='Win32 link.exe'
11234 # Assume MSVC and ICC wrapper
11235 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11236 dynamic_linker='Win32 ld.exe'
11239 # FIXME: first we should search . and the directory the executable is in
11243 darwin* | rhapsody*)
11244 dynamic_linker="$host_os dyld"
11245 version_type=darwin
11248 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11249 soname_spec='$libname$release$major$shared_ext'
11250 shlibpath_overrides_runpath=yes
11251 shlibpath_var=DYLD_LIBRARY_PATH
11252 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11259 version_type=linux # correct to gnu/linux during the next big refactor
11262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11263 soname_spec='$libname$release$shared_ext$major'
11264 shlibpath_var=LD_LIBRARY_PATH
11267 freebsd* | dragonfly* | midnightbsd*)
11268 # DragonFly does not have aout. When/if they implement a new
11269 # versioning mechanism, adjust this.
11270 if test -x /usr/bin/objformat; then
11271 objformat=`/usr/bin/objformat`
11274 freebsd[23].*) objformat=aout ;;
11275 *) objformat=elf ;;
11278 version_type=freebsd-$objformat
11279 case $version_type in
11281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11282 soname_spec='$libname$release$shared_ext$major'
11287 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11291 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=yes
11296 freebsd3.[01]* | freebsdelf3.[01]*)
11297 shlibpath_overrides_runpath=yes
11298 hardcode_into_libs=yes
11300 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11301 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11302 shlibpath_overrides_runpath=no
11303 hardcode_into_libs=yes
11305 *) # from 4.6 on, and DragonFly
11306 shlibpath_overrides_runpath=yes
11307 hardcode_into_libs=yes
11313 version_type=linux # correct to gnu/linux during the next big refactor
11316 dynamic_linker="$host_os runtime_loader"
11317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11318 soname_spec='$libname$release$shared_ext$major'
11319 shlibpath_var=LIBRARY_PATH
11320 shlibpath_overrides_runpath=no
11321 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11322 hardcode_into_libs=yes
11325 hpux9* | hpux10* | hpux11*)
11326 # Give a soname corresponding to the major version so that dld.sl refuses to
11327 # link against other versions.
11334 hardcode_into_libs=yes
11335 dynamic_linker="$host_os dld.so"
11336 shlibpath_var=LD_LIBRARY_PATH
11337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11339 soname_spec='$libname$release$shared_ext$major'
11340 if test 32 = "$HPUX_IA64_MODE"; then
11341 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11342 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11345 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11350 hardcode_into_libs=yes
11351 dynamic_linker="$host_os dld.sl"
11352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11355 soname_spec='$libname$release$shared_ext$major'
11356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11361 dynamic_linker="$host_os dld.sl"
11362 shlibpath_var=SHLIB_PATH
11363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11365 soname_spec='$libname$release$shared_ext$major'
11368 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11369 postinstall_cmds='chmod 555 $lib'
11370 # or fails outright, so override atomically:
11371 install_override_mode=555
11375 version_type=linux # correct to gnu/linux during the next big refactor
11378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11379 soname_spec='$libname$release$shared_ext$major'
11380 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11381 shlibpath_var=LD_LIBRARY_PATH
11382 shlibpath_overrides_runpath=no
11383 hardcode_into_libs=yes
11386 irix5* | irix6* | nonstopux*)
11388 nonstopux*) version_type=nonstopux ;;
11390 if test yes = "$lt_cv_prog_gnu_ld"; then
11391 version_type=linux # correct to gnu/linux during the next big refactor
11398 soname_spec='$libname$release$shared_ext$major'
11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11401 irix5* | nonstopux*)
11402 libsuff= shlibsuff=
11405 case $LD in # libtool.m4 will add one of these switches to LD
11406 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11407 libsuff= shlibsuff= libmagic=32-bit;;
11408 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11409 libsuff=32 shlibsuff=N32 libmagic=N32;;
11410 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11411 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11412 *) libsuff= shlibsuff= libmagic=never-match;;
11416 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11417 shlibpath_overrides_runpath=no
11418 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11419 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11420 hardcode_into_libs=yes
11423 # No shared lib support for Linux oldld, aout, or coff.
11424 linux*oldld* | linux*aout* | linux*coff*)
11429 version_type=none # Android doesn't support versioned libraries.
11432 library_names_spec='$libname$release$shared_ext'
11433 soname_spec='$libname$release$shared_ext'
11435 shlibpath_var=LD_LIBRARY_PATH
11436 shlibpath_overrides_runpath=yes
11438 # This implies no fast_install, which is unacceptable.
11439 # Some rework will be needed to allow for fast_install
11440 # before this can be enabled.
11441 hardcode_into_libs=yes
11443 dynamic_linker='Android linker'
11444 # Don't embed -rpath directories since the linker doesn't support them.
11445 hardcode_libdir_flag_spec='-L$libdir'
11448 # This must be glibc/ELF.
11449 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11450 version_type=linux # correct to gnu/linux during the next big refactor
11453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11454 soname_spec='$libname$release$shared_ext$major'
11455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath=no
11459 # Some binutils ld are patched to set DT_RUNPATH
11460 if test ${lt_cv_shlibpath_overrides_runpath+y}
11462 printf %s "(cached) " >&6
11464 lt_cv_shlibpath_overrides_runpath=no
11465 save_LDFLAGS=$LDFLAGS
11466 save_libdir=$libdir
11467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11480 if ac_fn_c_try_link "$LINENO"
11482 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11484 lt_cv_shlibpath_overrides_runpath=yes
11487 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11488 conftest$ac_exeext conftest.$ac_ext
11489 LDFLAGS=$save_LDFLAGS
11490 libdir=$save_libdir
11494 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11496 # This implies no fast_install, which is unacceptable.
11497 # Some rework will be needed to allow for fast_install
11498 # before this can be enabled.
11499 hardcode_into_libs=yes
11501 # Ideally, we could use ldconfig to report *all* directores which are
11502 # searched for libraries, however this is still not possible. Aside from not
11503 # being certain /sbin/ldconfig is available, command
11504 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11505 # even though it is searched at run-time. Try to do the best guess by
11506 # appending ld.so.conf contents (and includes) to the search path.
11507 if test -f /etc/ld.so.conf; then
11508 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' ' '`
11509 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11512 # We used to test for /lib/ld.so.1 and disable shared libraries on
11513 # powerpc, because MkLinux only supported shared libraries with the
11514 # GNU dynamic linker. Since this was broken with cross compilers,
11515 # most powerpc-linux boxes support dynamic linking these days and
11516 # people can always --disable-shared, the test was removed, and we
11517 # assume the GNU/Linux dynamic linker is in use.
11518 dynamic_linker='GNU/Linux ld.so'
11525 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11526 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11528 dynamic_linker='NetBSD (a.out) ld.so'
11530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531 soname_spec='$libname$release$shared_ext$major'
11532 dynamic_linker='NetBSD ld.elf_so'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=yes
11536 hardcode_into_libs=yes
11540 version_type=linux # correct to gnu/linux during the next big refactor
11541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 shlibpath_overrides_runpath=yes
11550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11551 soname_spec='$libname$release$shared_ext$major'
11552 shlibpath_var=LD_LIBRARY_PATH
11553 shlibpath_overrides_runpath=no
11554 hardcode_into_libs=yes
11555 dynamic_linker='ldqnx.so'
11558 openbsd* | bitrig*)
11560 sys_lib_dlsearch_path_spec=/usr/lib
11562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11567 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11569 shlibpath_var=LD_LIBRARY_PATH
11570 shlibpath_overrides_runpath=yes
11574 libname_spec='$name'
11575 version_type=windows
11579 # OS/2 can only load a DLL with a base name of 8 characters or less.
11580 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11581 v=$($ECHO $release$versuffix | tr -d .-);
11582 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11583 $ECHO $n$v`$shared_ext'
11584 library_names_spec='${libname}_dll.$libext'
11585 dynamic_linker='OS/2 ld.exe'
11586 shlibpath_var=BEGINLIBPATH
11587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11589 postinstall_cmds='base_file=`basename \$file`~
11590 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11591 dldir=$destdir/`dirname \$dlpath`~
11592 test -d \$dldir || mkdir -p \$dldir~
11593 $install_prog $dir/$dlname \$dldir/$dlname~
11594 chmod a+x \$dldir/$dlname~
11595 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11596 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11598 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11599 dlpath=$dir/\$dldll~
11603 osf3* | osf4* | osf5*)
11607 soname_spec='$libname$release$shared_ext$major'
11608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11619 version_type=linux # correct to gnu/linux during the next big refactor
11622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11623 soname_spec='$libname$release$shared_ext$major'
11624 shlibpath_var=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath=yes
11626 hardcode_into_libs=yes
11627 # ldd complains unless libraries are executable
11628 postinstall_cmds='chmod +x $lib'
11633 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11634 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 shlibpath_overrides_runpath=yes
11637 if test yes = "$with_gnu_ld"; then
11644 version_type=linux # correct to gnu/linux during the next big refactor
11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11646 soname_spec='$libname$release$shared_ext$major'
11647 shlibpath_var=LD_LIBRARY_PATH
11648 case $host_vendor in
11650 shlibpath_overrides_runpath=no
11652 runpath_var=LD_RUN_PATH
11660 shlibpath_overrides_runpath=no
11661 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11667 if test -d /usr/nec; then
11668 version_type=linux # correct to gnu/linux during the next big refactor
11669 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11670 soname_spec='$libname$shared_ext.$major'
11671 shlibpath_var=LD_LIBRARY_PATH
11675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11680 soname_spec='$libname$release$shared_ext$major'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=yes
11683 hardcode_into_libs=yes
11684 if test yes = "$with_gnu_ld"; then
11685 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11687 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11690 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11694 sys_lib_dlsearch_path_spec='/usr/lib'
11698 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11699 version_type=linux # correct to gnu/linux during the next big refactor
11702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=no
11705 hardcode_into_libs=yes
11709 version_type=linux # correct to gnu/linux during the next big refactor
11710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11711 soname_spec='$libname$release$shared_ext$major'
11712 shlibpath_var=LD_LIBRARY_PATH
11719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11720 printf "%s\n" "$dynamic_linker" >&6; }
11721 test no = "$dynamic_linker" && can_build_shared=no
11723 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11724 if test yes = "$GCC"; then
11725 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11728 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11729 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11732 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11733 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11736 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11737 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11739 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11740 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11742 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11743 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11842 printf %s "checking how to hardcode library paths into programs... " >&6; }
11844 if test -n "$hardcode_libdir_flag_spec" ||
11845 test -n "$runpath_var" ||
11846 test yes = "$hardcode_automatic"; then
11848 # We can hardcode non-existent directories.
11849 if test no != "$hardcode_direct" &&
11850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11851 # have to relink, otherwise we might link with an installed library
11852 # when we should be linking with a yet-to-be-installed one
11853 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11854 test no != "$hardcode_minus_L"; then
11855 # Linking always hardcodes the temporary library directory.
11856 hardcode_action=relink
11858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11859 hardcode_action=immediate
11862 # We cannot hardcode anything, or else we can only hardcode existing
11864 hardcode_action=unsupported
11866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11867 printf "%s\n" "$hardcode_action" >&6; }
11869 if test relink = "$hardcode_action" ||
11870 test yes = "$inherit_rpath"; then
11871 # Fast installation is not supported
11872 enable_fast_install=no
11873 elif test yes = "$shlibpath_overrides_runpath" ||
11874 test no = "$enable_shared"; then
11875 # Fast installation is not necessary
11876 enable_fast_install=needless
11884 if test yes != "$enable_dlopen"; then
11885 enable_dlopen=unknown
11886 enable_dlopen_self=unknown
11887 enable_dlopen_self_static=unknown
11894 lt_cv_dlopen=load_add_on
11896 lt_cv_dlopen_self=yes
11899 mingw* | pw32* | cegcc*)
11900 lt_cv_dlopen=LoadLibrary
11905 lt_cv_dlopen=dlopen
11910 # if libdl is installed we need to link against it
11911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11912 printf %s "checking for dlopen in -ldl... " >&6; }
11913 if test ${ac_cv_lib_dl_dlopen+y}
11915 printf %s "(cached) " >&6
11917 ac_check_lib_save_LIBS=$LIBS
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h. */
11922 /* Override any GCC internal prototype to avoid an error.
11923 Use char because int might match the return type of a GCC
11924 builtin and then its argument prototype would still apply. */
11934 if ac_fn_c_try_link "$LINENO"
11936 ac_cv_lib_dl_dlopen=yes
11938 ac_cv_lib_dl_dlopen=no
11940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11941 conftest$ac_exeext conftest.$ac_ext
11942 LIBS=$ac_check_lib_save_LIBS
11944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11945 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
11946 if test "x$ac_cv_lib_dl_dlopen" = xyes
11948 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11953 lt_cv_dlopen_self=yes
11960 # Don't try to run any link tests for TPF. We know it's impossible
11961 # because TPF is a cross-compiler, and we know how we open DSOs.
11962 lt_cv_dlopen=dlopen
11964 lt_cv_dlopen_self=no
11968 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11969 if test "x$ac_cv_func_shl_load" = xyes
11971 lt_cv_dlopen=shl_load
11973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11974 printf %s "checking for shl_load in -ldld... " >&6; }
11975 if test ${ac_cv_lib_dld_shl_load+y}
11977 printf %s "(cached) " >&6
11979 ac_check_lib_save_LIBS=$LIBS
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11984 /* Override any GCC internal prototype to avoid an error.
11985 Use char because int might match the return type of a GCC
11986 builtin and then its argument prototype would still apply. */
11991 return shl_load ();
11996 if ac_fn_c_try_link "$LINENO"
11998 ac_cv_lib_dld_shl_load=yes
12000 ac_cv_lib_dld_shl_load=no
12002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12003 conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12007 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12008 if test "x$ac_cv_lib_dld_shl_load" = xyes
12010 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12012 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12013 if test "x$ac_cv_func_dlopen" = xyes
12015 lt_cv_dlopen=dlopen
12017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12018 printf %s "checking for dlopen in -ldl... " >&6; }
12019 if test ${ac_cv_lib_dl_dlopen+y}
12021 printf %s "(cached) " >&6
12023 ac_check_lib_save_LIBS=$LIBS
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12028 /* Override any GCC internal prototype to avoid an error.
12029 Use char because int might match the return type of a GCC
12030 builtin and then its argument prototype would still apply. */
12040 if ac_fn_c_try_link "$LINENO"
12042 ac_cv_lib_dl_dlopen=yes
12044 ac_cv_lib_dl_dlopen=no
12046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12047 conftest$ac_exeext conftest.$ac_ext
12048 LIBS=$ac_check_lib_save_LIBS
12050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12051 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12052 if test "x$ac_cv_lib_dl_dlopen" = xyes
12054 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12057 printf %s "checking for dlopen in -lsvld... " >&6; }
12058 if test ${ac_cv_lib_svld_dlopen+y}
12060 printf %s "(cached) " >&6
12062 ac_check_lib_save_LIBS=$LIBS
12063 LIBS="-lsvld $LIBS"
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12067 /* Override any GCC internal prototype to avoid an error.
12068 Use char because int might match the return type of a GCC
12069 builtin and then its argument prototype would still apply. */
12079 if ac_fn_c_try_link "$LINENO"
12081 ac_cv_lib_svld_dlopen=yes
12083 ac_cv_lib_svld_dlopen=no
12085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12086 conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_check_lib_save_LIBS
12089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12090 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12091 if test "x$ac_cv_lib_svld_dlopen" = xyes
12093 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12096 printf %s "checking for dld_link in -ldld... " >&6; }
12097 if test ${ac_cv_lib_dld_dld_link+y}
12099 printf %s "(cached) " >&6
12101 ac_check_lib_save_LIBS=$LIBS
12103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12104 /* end confdefs.h. */
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12113 return dld_link ();
12118 if ac_fn_c_try_link "$LINENO"
12120 ac_cv_lib_dld_dld_link=yes
12122 ac_cv_lib_dld_dld_link=no
12124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12125 conftest$ac_exeext conftest.$ac_ext
12126 LIBS=$ac_check_lib_save_LIBS
12128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12129 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12130 if test "x$ac_cv_lib_dld_dld_link" = xyes
12132 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12153 if test no = "$lt_cv_dlopen"; then
12159 case $lt_cv_dlopen in
12161 save_CPPFLAGS=$CPPFLAGS
12162 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12164 save_LDFLAGS=$LDFLAGS
12165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12168 LIBS="$lt_cv_dlopen_libs $LIBS"
12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12171 printf %s "checking whether a program can dlopen itself... " >&6; }
12172 if test ${lt_cv_dlopen_self+y}
12174 printf %s "(cached) " >&6
12176 if test yes = "$cross_compiling"; then :
12177 lt_cv_dlopen_self=cross
12179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12180 lt_status=$lt_dlunknown
12181 cat > conftest.$ac_ext <<_LT_EOF
12182 #line $LINENO "configure"
12183 #include "confdefs.h"
12192 # define LT_DLGLOBAL RTLD_GLOBAL
12195 # define LT_DLGLOBAL DL_GLOBAL
12197 # define LT_DLGLOBAL 0
12201 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12202 find out it does not work in some platform. */
12203 #ifndef LT_DLLAZY_OR_NOW
12205 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12208 # define LT_DLLAZY_OR_NOW DL_LAZY
12211 # define LT_DLLAZY_OR_NOW RTLD_NOW
12214 # define LT_DLLAZY_OR_NOW DL_NOW
12216 # define LT_DLLAZY_OR_NOW 0
12223 /* When -fvisibility=hidden is used, assume the code has been annotated
12224 correspondingly for the symbols needed. */
12225 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12226 int fnord () __attribute__((visibility("default")));
12229 int fnord () { return 42; }
12232 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12233 int status = $lt_dlunknown;
12237 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12240 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12241 else puts (dlerror ());
12243 /* dlclose (self); */
12251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12252 (eval $ac_link) 2>&5
12254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12255 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12256 (./conftest; exit; ) >&5 2>/dev/null
12258 case x$lt_status in
12259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12261 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12264 # compilation failed
12265 lt_cv_dlopen_self=no
12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12273 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12275 if test yes = "$lt_cv_dlopen_self"; then
12276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12278 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12279 if test ${lt_cv_dlopen_self_static+y}
12281 printf %s "(cached) " >&6
12283 if test yes = "$cross_compiling"; then :
12284 lt_cv_dlopen_self_static=cross
12286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12287 lt_status=$lt_dlunknown
12288 cat > conftest.$ac_ext <<_LT_EOF
12289 #line $LINENO "configure"
12290 #include "confdefs.h"
12299 # define LT_DLGLOBAL RTLD_GLOBAL
12302 # define LT_DLGLOBAL DL_GLOBAL
12304 # define LT_DLGLOBAL 0
12308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12309 find out it does not work in some platform. */
12310 #ifndef LT_DLLAZY_OR_NOW
12312 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12315 # define LT_DLLAZY_OR_NOW DL_LAZY
12318 # define LT_DLLAZY_OR_NOW RTLD_NOW
12321 # define LT_DLLAZY_OR_NOW DL_NOW
12323 # define LT_DLLAZY_OR_NOW 0
12330 /* When -fvisibility=hidden is used, assume the code has been annotated
12331 correspondingly for the symbols needed. */
12332 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12333 int fnord () __attribute__((visibility("default")));
12336 int fnord () { return 42; }
12339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12340 int status = $lt_dlunknown;
12344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12347 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12348 else puts (dlerror ());
12350 /* dlclose (self); */
12358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12359 (eval $ac_link) 2>&5
12361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12362 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12363 (./conftest; exit; ) >&5 2>/dev/null
12365 case x$lt_status in
12366 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12367 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12368 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12371 # compilation failed
12372 lt_cv_dlopen_self_static=no
12379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12380 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12383 CPPFLAGS=$save_CPPFLAGS
12384 LDFLAGS=$save_LDFLAGS
12389 case $lt_cv_dlopen_self in
12390 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12391 *) enable_dlopen_self=unknown ;;
12394 case $lt_cv_dlopen_self_static in
12395 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12396 *) enable_dlopen_self_static=unknown ;;
12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12419 printf %s "checking whether stripping libraries is possible... " >&6; }
12420 if test -z "$STRIP"; then
12421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422 printf "%s\n" "no" >&6; }
12424 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12425 old_striplib="$STRIP --strip-debug"
12426 striplib="$STRIP --strip-unneeded"
12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12428 printf "%s\n" "yes" >&6; }
12432 # FIXME - insert some real tests, host_os isn't really good enough
12433 striplib="$STRIP -x"
12434 old_striplib="$STRIP -S"
12435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12436 printf "%s\n" "yes" >&6; }
12439 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12440 old_striplib="$STRIP --strip-debug"
12441 striplib="$STRIP --strip-unneeded"
12442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12443 printf "%s\n" "yes" >&6; }
12445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 printf "%s\n" "no" >&6; }
12450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451 printf "%s\n" "no" >&6; }
12468 # Report what library types will actually be built
12469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12470 printf %s "checking if libtool supports shared libraries... " >&6; }
12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12472 printf "%s\n" "$can_build_shared" >&6; }
12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12475 printf %s "checking whether to build shared libraries... " >&6; }
12476 test no = "$can_build_shared" && enable_shared=no
12478 # On AIX, shared libraries and static libraries use the same namespace, and
12479 # are all built from PIC.
12482 test yes = "$enable_shared" && enable_static=no
12483 if test -n "$RANLIB"; then
12484 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12485 postinstall_cmds='$RANLIB $lib'
12490 if test ia64 != "$host_cpu"; then
12491 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12492 yes,aix,yes) ;; # shared object as lib.so file only
12493 yes,svr4,*) ;; # shared object as lib.so archive member only
12494 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12500 printf "%s\n" "$enable_shared" >&6; }
12502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12503 printf %s "checking whether to build static libraries... " >&6; }
12504 # Make sure either enable_shared or enable_static is yes.
12505 test yes = "$enable_shared" || enable_static=yes
12506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12507 printf "%s\n" "$enable_static" >&6; }
12514 ac_cpp='$CPP $CPPFLAGS'
12515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12535 ac_config_commands="$ac_config_commands libtool"
12540 # Only expand once:
12543 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12544 if test "x$ac_cv_header_windows_h" = xyes
12546 if test -n "$ac_tool_prefix"; then
12547 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12548 set dummy ${ac_tool_prefix}windres; ac_word=$2
12549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550 printf %s "checking for $ac_word... " >&6; }
12551 if test ${ac_cv_prog_RC+y}
12553 printf %s "(cached) " >&6
12555 if test -n "$RC"; then
12556 ac_cv_prog_RC="$RC" # Let the user override the test.
12558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559 for as_dir in $PATH
12562 case $as_dir in #(((
12565 *) as_dir=$as_dir/ ;;
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12569 ac_cv_prog_RC="${ac_tool_prefix}windres"
12570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12580 if test -n "$RC"; then
12581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12582 printf "%s\n" "$RC" >&6; }
12584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 printf "%s\n" "no" >&6; }
12590 if test -z "$ac_cv_prog_RC"; then
12592 # Extract the first word of "windres", so it can be a program name with args.
12593 set dummy windres; ac_word=$2
12594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 printf %s "checking for $ac_word... " >&6; }
12596 if test ${ac_cv_prog_ac_ct_RC+y}
12598 printf %s "(cached) " >&6
12600 if test -n "$ac_ct_RC"; then
12601 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604 for as_dir in $PATH
12607 case $as_dir in #(((
12610 *) as_dir=$as_dir/ ;;
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12614 ac_cv_prog_ac_ct_RC="windres"
12615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12624 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12625 if test -n "$ac_ct_RC"; then
12626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12627 printf "%s\n" "$ac_ct_RC" >&6; }
12629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 printf "%s\n" "no" >&6; }
12633 if test "x$ac_ct_RC" = x; then
12636 case $cross_compiling:$ac_tool_warned in
12638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12639 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12640 ac_tool_warned=yes ;;
12645 RC="$ac_cv_prog_RC"
12650 # Source file extension for RC test sources.
12653 # Object file extension for compiled RC test sources.
12657 # Code to be used in simple compile tests
12658 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12660 # Code to be used in simple link tests
12661 lt_simple_link_test_code=$lt_simple_compile_test_code
12663 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12670 # If no C compiler was specified, use CC.
12673 # If no C compiler flags were specified, use CFLAGS.
12674 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12676 # Allow CC to be a program name with arguments.
12680 # save warnings/boilerplate of simple test code
12681 ac_outfile=conftest.$ac_objext
12682 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12683 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12684 _lt_compiler_boilerplate=`cat conftest.err`
12687 ac_outfile=conftest.$ac_objext
12688 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12689 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12690 _lt_linker_boilerplate=`cat conftest.err`
12694 # Allow CC to be a program name with arguments.
12696 lt_save_CFLAGS=$CFLAGS
12703 func_cc_basename $compiler
12704 cc_basename=$func_cc_basename_result
12706 lt_cv_prog_compiler_c_o_RC=yes
12708 if test -n "$compiler"; then
12717 ac_cpp='$CPP $CPPFLAGS'
12718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12723 CFLAGS=$lt_save_CFLAGS
12729 # checks for native programs to generate building tool
12731 if test ${cross_compiling} = yes; then
12732 # Extract the first word of "${build}-gcc", so it can be a program name with args.
12733 set dummy ${build}-gcc; ac_word=$2
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12735 printf %s "checking for $ac_word... " >&6; }
12736 if test ${ac_cv_prog_CC_BUILD+y}
12738 printf %s "(cached) " >&6
12740 if test -n "$CC_BUILD"; then
12741 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12744 for as_dir in $PATH
12747 case $as_dir in #(((
12750 *) as_dir=$as_dir/ ;;
12752 for ac_exec_ext in '' $ac_executable_extensions; do
12753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12754 ac_cv_prog_CC_BUILD="${build}-gcc"
12755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12764 CC_BUILD=$ac_cv_prog_CC_BUILD
12765 if test -n "$CC_BUILD"; then
12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12767 printf "%s\n" "$CC_BUILD" >&6; }
12769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 printf "%s\n" "no" >&6; }
12774 test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
12775 set dummy gcc; ac_word=$2
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 printf %s "checking for $ac_word... " >&6; }
12778 if test ${ac_cv_prog_CC_BUILD+y}
12780 printf %s "(cached) " >&6
12782 if test -n "$CC_BUILD"; then
12783 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12789 case $as_dir in #(((
12792 *) as_dir=$as_dir/ ;;
12794 for ac_exec_ext in '' $ac_executable_extensions; do
12795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12796 ac_cv_prog_CC_BUILD="gcc"
12797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12806 CC_BUILD=$ac_cv_prog_CC_BUILD
12807 if test -n "$CC_BUILD"; then
12808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12809 printf "%s\n" "$CC_BUILD" >&6; }
12811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 printf "%s\n" "no" >&6; }
12816 test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
12817 set dummy cc; ac_word=$2
12818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819 printf %s "checking for $ac_word... " >&6; }
12820 if test ${ac_cv_prog_CC_BUILD+y}
12822 printf %s "(cached) " >&6
12824 if test -n "$CC_BUILD"; then
12825 ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
12827 ac_prog_rejected=no
12828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $PATH
12832 case $as_dir in #(((
12835 *) as_dir=$as_dir/ ;;
12837 for ac_exec_ext in '' $ac_executable_extensions; do
12838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12839 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12840 ac_prog_rejected=yes
12843 ac_cv_prog_CC_BUILD="cc"
12844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12851 if test $ac_prog_rejected = yes; then
12852 # We found a bogon in the path, so make sure we never use it.
12853 set dummy $ac_cv_prog_CC_BUILD
12855 if test $# != 0; then
12856 # We chose a different compiler from the bogus one.
12857 # However, it has the same basename, so the bogon will be chosen
12858 # first if we set CC_BUILD to just the basename; use the full file name.
12860 ac_cv_prog_CC_BUILD="$as_dir$ac_word${1+' '}$@"
12865 CC_BUILD=$ac_cv_prog_CC_BUILD
12866 if test -n "$CC_BUILD"; then
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
12868 printf "%s\n" "$CC_BUILD" >&6; }
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12871 printf "%s\n" "no" >&6; }
12875 test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
12878 printf %s "checking for suffix of native executables... " >&6; }
12879 rm -f a.* b.* a_out.exe conftest.*
12880 echo > conftest.c "int main(void) { return 0;}"
12881 ${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
12883 if test -x a.out -o -x b.out -o -x conftest; then
12885 elif test -x a_out.exe -o -x conftest.exe; then
12886 EXEEXT_BUILD=".exe"
12887 elif test -x conftest.*; then
12888 EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
12890 rm -f a.* b.* a_out.exe conftest.*
12891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
12892 printf "%s\n" "$EXEEXT_BUILD" >&6; }
12895 EXEEXT_BUILD=${EXEEXT}
12902 # Since these files will be eventually called from another directory (namely
12903 # from the top level) we make the path of the scripts absolute.
12905 # This small code snippet has been taken from automake's `ylwrap' script.
12908 # Find a good install program. We prefer a C program (faster),
12909 # so one script is as good as another. But avoid the broken or
12910 # incompatible versions:
12911 # SysV /etc/install, /usr/sbin/install
12912 # SunOS /usr/etc/install
12913 # IRIX /sbin/install
12915 # AmigaOS /C/install, which installs bootblocks on floppy discs
12916 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12917 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12918 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12919 # OS/2's system install, which has a completely different semantic
12920 # ./install, which can be erroneously created by make from ./install.sh.
12921 # Reject install programs that cannot install multiple files.
12922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
12923 printf %s "checking for a BSD-compatible install... " >&6; }
12924 if test -z "$INSTALL"; then
12925 if test ${ac_cv_path_install+y}
12927 printf %s "(cached) " >&6
12929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930 for as_dir in $PATH
12933 case $as_dir in #(((
12936 *) as_dir=$as_dir/ ;;
12938 # Account for fact that we put trailing slashes in our PATH walk.
12939 case $as_dir in #((
12941 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12942 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
12945 # OSF1 and SCO ODT 3.0 have their own names for install.
12946 # Don't use installbsd from OSF since it installs stuff as root
12948 for ac_prog in ginstall scoinst install; do
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
12951 if test $ac_prog = install &&
12952 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12953 # AIX install. It has an incompatible calling convention.
12955 elif test $ac_prog = install &&
12956 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12957 # program-specific install script used by HP pwplus--don't use.
12960 rm -rf conftest.one conftest.two conftest.dir
12961 echo one > conftest.one
12962 echo two > conftest.two
12964 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
12965 test -s conftest.one && test -s conftest.two &&
12966 test -s conftest.dir/conftest.one &&
12967 test -s conftest.dir/conftest.two
12969 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
12982 rm -rf conftest.one conftest.two conftest.dir
12985 if test ${ac_cv_path_install+y}; then
12986 INSTALL=$ac_cv_path_install
12988 # As a last resort, use the slow shell script. Don't cache a
12989 # value for INSTALL within a source directory, because that will
12990 # break other packages using the cache if that directory is
12991 # removed, or if the value is a relative name.
12992 INSTALL=$ac_install_sh
12995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
12996 printf "%s\n" "$INSTALL" >&6; }
12998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12999 # It thinks the first close brace ends the variable substitution.
13000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13010 INSTALL="`pwd`/$INSTALL"
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
13016 printf %s "checking for a race-free mkdir -p... " >&6; }
13017 if test -z "$MKDIR_P"; then
13018 if test ${ac_cv_path_mkdir+y}
13020 printf %s "(cached) " >&6
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13026 case $as_dir in #(((
13029 *) as_dir=$as_dir/ ;;
13031 for ac_prog in mkdir gmkdir; do
13032 for ac_exec_ext in '' $ac_executable_extensions; do
13033 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
13034 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
13035 'mkdir ('*'coreutils) '* | \
13037 'mkdir (fileutils) '4.1*)
13038 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
13048 test -d ./--version && rmdir ./--version
13049 if test ${ac_cv_path_mkdir+y}; then
13050 MKDIR_P="$ac_cv_path_mkdir -p"
13052 # As a last resort, use the slow shell script. Don't cache a
13053 # value for MKDIR_P within a source directory, because that will
13054 # break other packages using the cache if that directory is
13055 # removed, or if the value is a relative name.
13056 MKDIR_P="$ac_install_sh -d"
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13060 printf "%s\n" "$MKDIR_P" >&6; }
13066 MKDIR_P="`pwd`/$MKDIR_P"
13071 # checks for header files
13073 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13074 if test "x$ac_cv_header_fcntl_h" = xyes
13076 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13079 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13080 if test "x$ac_cv_header_unistd_h" = xyes
13082 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13088 # checks for typedefs, structures, and compiler characteristics
13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13091 printf %s "checking for an ANSI C-conforming const... " >&6; }
13092 if test ${ac_cv_c_const+y}
13094 printf %s "(cached) " >&6
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13103 #ifndef __cplusplus
13104 /* Ultrix mips cc rejects this sort of thing. */
13105 typedef int charset[2];
13106 const charset cs = { 0, 0 };
13107 /* SunOS 4.1.1 cc rejects this. */
13108 char const *const *pcpcc;
13110 /* NEC SVR4.0.2 mips cc rejects this. */
13111 struct point {int x, y;};
13112 static struct point const zero = {0,0};
13113 /* IBM XL C 1.02.0.0 rejects this.
13114 It does not let you subtract one const X* pointer from another in
13115 an arm of an if-expression whose if-part is not a constant
13117 const char *g = "string";
13118 pcpcc = &g + (g ? g-g : 0);
13119 /* HPUX 7.0 cc rejects these. */
13121 ppc = (char**) pcpcc;
13122 pcpcc = (char const *const *) ppc;
13123 { /* SCO 3.2v4 cc rejects this sort of thing. */
13126 char const *s = 0 ? (char *) 0 : (char const *) 0;
13131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13132 int x[] = {25, 17};
13133 const int *foo = &x[0];
13136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13137 typedef const int *iptr;
13141 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13143 struct s { int j; const int *ap[3]; } bx;
13144 struct s *b = &bx; b->j = 5;
13146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13147 const int foo = 10;
13148 if (!foo) return 0;
13150 return !cs[0] && !zero.x;
13157 if ac_fn_c_try_compile "$LINENO"
13163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13166 printf "%s\n" "$ac_cv_c_const" >&6; }
13167 if test $ac_cv_c_const = no; then
13169 printf "%s\n" "#define const /**/" >>confdefs.h
13174 # Check whether --enable-freetype-config was given.
13175 if test ${enable_freetype_config+y}
13177 enableval=$enable_freetype_config; case "${enableval}" in
13178 yes) enable_freetype_config="TRUE" ;;
13179 no) enable_freetype_config="FALSE" ;;
13180 *) as_fn_error $? "unknown value '${enableval}' passed with --enable-freetype-config" "$LINENO" 5 ;;
13183 enable_freetype_config="FALSE"
13187 INSTALL_FT2_CONFIG=$enable_freetype_config
13190 # checks for library functions
13192 # Check whether --enable-largefile was given.
13193 if test ${enable_largefile+y}
13195 enableval=$enable_largefile;
13198 if test "$enable_largefile" != no; then
13200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13201 printf %s "checking for special C compiler options needed for large files... " >&6; }
13202 if test ${ac_cv_sys_largefile_CC+y}
13204 printf %s "(cached) " >&6
13206 ac_cv_sys_largefile_CC=no
13207 if test "$GCC" != yes; then
13210 # IRIX 6.2 and later do not support large files by default,
13211 # so use the C compiler's -n32 option if that helps.
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13214 #include <sys/types.h>
13215 /* Check that off_t can represent 2**63 - 1 correctly.
13216 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13217 since some C++ compilers masquerading as C compilers
13218 incorrectly reject 9223372036854775807. */
13219 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13220 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13221 && LARGE_OFF_T % 2147483647 == 1)
13231 if ac_fn_c_try_compile "$LINENO"
13235 rm -f core conftest.err conftest.$ac_objext conftest.beam
13237 if ac_fn_c_try_compile "$LINENO"
13239 ac_cv_sys_largefile_CC=' -n32'; break
13241 rm -f core conftest.err conftest.$ac_objext conftest.beam
13245 rm -f conftest.$ac_ext
13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13249 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
13250 if test "$ac_cv_sys_largefile_CC" != no; then
13251 CC=$CC$ac_cv_sys_largefile_CC
13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13255 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13256 if test ${ac_cv_sys_file_offset_bits+y}
13258 printf %s "(cached) " >&6
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13263 #include <sys/types.h>
13264 /* Check that off_t can represent 2**63 - 1 correctly.
13265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13266 since some C++ compilers masquerading as C compilers
13267 incorrectly reject 9223372036854775807. */
13268 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13270 && LARGE_OFF_T % 2147483647 == 1)
13280 if ac_fn_c_try_compile "$LINENO"
13282 ac_cv_sys_file_offset_bits=no; break
13284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13287 #define _FILE_OFFSET_BITS 64
13288 #include <sys/types.h>
13289 /* Check that off_t can represent 2**63 - 1 correctly.
13290 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13291 since some C++ compilers masquerading as C compilers
13292 incorrectly reject 9223372036854775807. */
13293 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13294 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13295 && LARGE_OFF_T % 2147483647 == 1)
13305 if ac_fn_c_try_compile "$LINENO"
13307 ac_cv_sys_file_offset_bits=64; break
13309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13310 ac_cv_sys_file_offset_bits=unknown
13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13315 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
13316 case $ac_cv_sys_file_offset_bits in #(
13319 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
13323 if test $ac_cv_sys_file_offset_bits = unknown; then
13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13325 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
13326 if test ${ac_cv_sys_large_files+y}
13328 printf %s "(cached) " >&6
13331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332 /* end confdefs.h. */
13333 #include <sys/types.h>
13334 /* Check that off_t can represent 2**63 - 1 correctly.
13335 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13336 since some C++ compilers masquerading as C compilers
13337 incorrectly reject 9223372036854775807. */
13338 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13339 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13340 && LARGE_OFF_T % 2147483647 == 1)
13350 if ac_fn_c_try_compile "$LINENO"
13352 ac_cv_sys_large_files=no; break
13354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h. */
13357 #define _LARGE_FILES 1
13358 #include <sys/types.h>
13359 /* Check that off_t can represent 2**63 - 1 correctly.
13360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13361 since some C++ compilers masquerading as C compilers
13362 incorrectly reject 9223372036854775807. */
13363 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
13364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13365 && LARGE_OFF_T % 2147483647 == 1)
13375 if ac_fn_c_try_compile "$LINENO"
13377 ac_cv_sys_large_files=1; break
13379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13380 ac_cv_sys_large_files=unknown
13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13385 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
13386 case $ac_cv_sys_large_files in #(
13389 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
13397 # Here we check whether we can use our mmap file component.
13399 # Note that `ftsystem.c` for Windows has its own mmap-like implementation
13400 # not covered by `AC_FUNC_MMAP` and/or `FT_UNMAP_PARAM`.
13402 # Check whether --enable-mmap was given.
13403 if test ${enable_mmap+y}
13405 enableval=$enable_mmap; enable_mmap="no"
13410 if test "x${enable_mmap}" != "xno"; then
13413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13414 printf %s "checking for working mmap... " >&6; }
13415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using MapViewOfFile in Windows" >&5
13416 printf "%s\n" "using MapViewOfFile in Windows" >&6; }
13417 FTSYS_SRC='$(TOP_DIR)/builds/windows/ftsystem.c'
13422 for ac_item in $ac_func_c_list
13424 if test $ac_func; then
13425 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
13426 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
13427 echo "#define $ac_item 1" >> confdefs.h
13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13437 printf %s "checking for working mmap... " >&6; }
13438 if test ${ac_cv_func_mmap_fixed_mapped+y}
13440 printf %s "(cached) " >&6
13442 if test "$cross_compiling" = yes
13444 case "$host_os" in # ((
13445 # Guess yes on platforms where we know the result.
13446 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
13447 # If we don't know, assume the worst.
13448 *) ac_cv_func_mmap_fixed_mapped=no ;;
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h. */
13453 $ac_includes_default
13454 /* malloc might have been renamed as rpl_malloc. */
13457 /* Thanks to Mike Haertel and Jim Avera for this test.
13458 Here is a matrix of mmap possibilities:
13459 mmap private not fixed
13460 mmap private fixed at somewhere currently unmapped
13461 mmap private fixed at somewhere already mapped
13462 mmap shared not fixed
13463 mmap shared fixed at somewhere currently unmapped
13464 mmap shared fixed at somewhere already mapped
13465 For private mappings, we should verify that changes cannot be read()
13466 back from the file, nor mmap's back from the file at a different
13467 address. (There have been systems where private was not correctly
13468 implemented like the infamous i386 svr4.0, and systems where the
13469 VM page cache was not coherent with the file system buffer cache
13470 like early versions of FreeBSD and possibly contemporary NetBSD.)
13471 For shared mappings, we should conversely verify that changes get
13472 propagated back to all the places they're supposed to be.
13474 Grep wants private fixed already mapped.
13475 The main things grep needs to know about mmap are:
13476 * does it exist and is it safe to write into the mmap'd area
13477 * how to use it (BSD variants) */
13480 #include <sys/mman.h>
13482 /* This mess was copied from the GNU getpagesize.h. */
13483 #ifndef HAVE_GETPAGESIZE
13484 # ifdef _SC_PAGESIZE
13485 # define getpagesize() sysconf(_SC_PAGESIZE)
13486 # else /* no _SC_PAGESIZE */
13487 # ifdef HAVE_SYS_PARAM_H
13488 # include <sys/param.h>
13489 # ifdef EXEC_PAGESIZE
13490 # define getpagesize() EXEC_PAGESIZE
13491 # else /* no EXEC_PAGESIZE */
13493 # define getpagesize() NBPG * CLSIZE
13496 # endif /* no CLSIZE */
13497 # else /* no NBPG */
13499 # define getpagesize() NBPC
13500 # else /* no NBPC */
13502 # define getpagesize() PAGESIZE
13503 # endif /* PAGESIZE */
13504 # endif /* no NBPC */
13505 # endif /* no NBPG */
13506 # endif /* no EXEC_PAGESIZE */
13507 # else /* no HAVE_SYS_PARAM_H */
13508 # define getpagesize() 8192 /* punt totally */
13509 # endif /* no HAVE_SYS_PARAM_H */
13510 # endif /* no _SC_PAGESIZE */
13512 #endif /* no HAVE_GETPAGESIZE */
13517 char *data, *data2, *data3;
13518 const char *cdata2;
13522 pagesize = getpagesize ();
13524 /* First, make a file with some known garbage in it. */
13525 data = (char *) malloc (pagesize);
13528 for (i = 0; i < pagesize; ++i)
13529 *(data + i) = rand ();
13531 fd = creat ("conftest.mmap", 0600);
13534 if (write (fd, data, pagesize) != pagesize)
13538 /* Next, check that the tail of a page is zero-filled. File must have
13539 non-zero length, otherwise we risk SIGBUS for entire page. */
13540 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13544 if (write (fd2, cdata2, 1) != 1)
13546 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13547 if (data2 == MAP_FAILED)
13549 for (i = 0; i < pagesize; ++i)
13553 if (munmap (data2, pagesize))
13556 /* Next, try to mmap the file at a fixed address which already has
13557 something else allocated at it. If we can, also make sure that
13558 we see the same garbage. */
13559 fd = open ("conftest.mmap", O_RDWR);
13562 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13563 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13565 for (i = 0; i < pagesize; ++i)
13566 if (*(data + i) != *(data2 + i))
13569 /* Finally, make sure that changes to the mapped area do not
13570 percolate back to the file as seen by read(). (This is a bug on
13571 some variants of i386 svr4.0.) */
13572 for (i = 0; i < pagesize; ++i)
13573 *(data2 + i) = *(data2 + i) + 1;
13574 data3 = (char *) malloc (pagesize);
13577 if (read (fd, data3, pagesize) != pagesize)
13579 for (i = 0; i < pagesize; ++i)
13580 if (*(data + i) != *(data3 + i))
13588 if ac_fn_c_try_run "$LINENO"
13590 ac_cv_func_mmap_fixed_mapped=yes
13592 ac_cv_func_mmap_fixed_mapped=no
13594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13595 conftest.$ac_objext conftest.beam conftest.$ac_ext
13599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13600 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
13601 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13603 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13606 rm -f conftest.mmap conftest.txt
13608 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
13609 FTSYS_SRC='$(PLATFORM_DIR)/ftsystem.c'
13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13612 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13613 if test ${ac_cv_c_undeclared_builtin_options+y}
13615 printf %s "(cached) " >&6
13617 ac_save_CFLAGS=$CFLAGS
13618 ac_cv_c_undeclared_builtin_options='cannot detect'
13619 for ac_arg in '' -fno-builtin; do
13620 CFLAGS="$ac_save_CFLAGS $ac_arg"
13621 # This test program should *not* compile successfully.
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13633 if ac_fn_c_try_compile "$LINENO"
13637 # This test program should compile successfully.
13638 # No library function is consistently available on
13639 # freestanding implementations, so test against a dummy
13640 # declaration. Include always-available headers on the
13641 # off chance that they somehow elicit warnings.
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13645 #include <limits.h>
13646 #include <stdarg.h>
13647 #include <stddef.h>
13648 extern void ac_decl (int, char *);
13653 (void) ac_decl (0, (char *) 0);
13660 if ac_fn_c_try_compile "$LINENO"
13662 if test x"$ac_arg" = x
13664 ac_cv_c_undeclared_builtin_options='none needed'
13666 ac_cv_c_undeclared_builtin_options=$ac_arg
13670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13674 CFLAGS=$ac_save_CFLAGS
13677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13678 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13679 case $ac_cv_c_undeclared_builtin_options in #(
13681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13682 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13683 as_fn_error $? "cannot make $CC report undeclared builtins
13684 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13686 ac_c_undeclared_builtin_options='' ;; #(
13688 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13691 ac_fn_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
13693 #ifdef HAVE_UNISTD_H
13694 #include <unistd.h>
13696 #include <sys/mman.h>
13699 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13700 if test "x$ac_cv_have_decl_munmap" = xyes
13706 printf "%s\n" "#define HAVE_DECL_MUNMAP $ac_have_decl" >>confdefs.h
13709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
13710 printf %s "checking for munmap's first parameter type... " >&6; }
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13716 #include <unistd.h>
13717 #include <sys/mman.h>
13718 int munmap(void *, size_t);
13723 if ac_fn_c_try_compile "$LINENO"
13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: void *" >&5
13726 printf "%s\n" "void *" >&6; }
13728 printf "%s\n" "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: char *" >&5
13732 printf "%s\n" "char *" >&6; }
13734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13741 if test -z "$FTSYS_SRC"; then
13742 FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
13747 # get compiler flags right
13749 # We try to make the compiler work for C99-strict source. Even if the
13750 # C compiler is gcc and C99 flags are available, some system headers
13751 # might be broken in C99 mode. We have to check whether compilation
13752 # finishes successfully.
13754 if test "x$GCC" = xyes; then
13758 XX_ANSIFLAGS="-pedantic"
13761 XX_ANSIFLAGS="-pedantic"
13766 for a in "-pedantic" "-std=c99"
13768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $CC compiler flag ${a} to assure ANSI C99 works correctly" >&5
13769 printf %s "checking $CC compiler flag ${a} to assure ANSI C99 works correctly... " >&6; }
13770 orig_CFLAGS="${CFLAGS}"
13771 CFLAGS="${CFLAGS} ${XX_ANSIFLAGS} ${a}"
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13795 if ac_fn_c_try_compile "$LINENO"
13797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok, adding to XX_ANSIFLAGS" >&5
13798 printf "%s\n" "ok, adding to XX_ANSIFLAGS" >&6; }
13799 XX_ANSIFLAGS="${XX_ANSIFLAGS} ${a}"
13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803 printf "%s\n" "no" >&6; }
13805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13806 CFLAGS="${orig_CFLAGS}"
13814 XX_CFLAGS="-std1 -g3"
13827 # It is recommended that shared libraries hide symbols except those with
13828 # explicit __attribute__((visibility("default"))).
13830 found_visibility_flag=no
13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
13832 printf %s "checking for -fvisibility=hidden compiler flag... " >&6; }
13833 orig_CFLAGS="${CFLAGS}"
13834 CFLAGS="${CFLAGS} -fvisibility=hidden"
13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13836 /* end confdefs.h. */
13846 if ac_fn_c_try_link "$LINENO"
13848 found_visibility_flag=yes
13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13850 printf "%s\n" "yes" >&6; }
13852 CFLAGS="${orig_CFLAGS}"
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 printf "%s\n" "no" >&6; }
13856 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13857 conftest$ac_exeext conftest.$ac_ext
13859 if test "${found_visibility_flag}" = "no"; then
13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -xldscope=hidden compiler flag" >&5
13861 printf %s "checking for -xldscope=hidden compiler flag... " >&6; }
13862 orig_CFLAGS="${CFLAGS}"
13863 CFLAGS="${CFLAGS} -xldscope=hidden"
13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865 /* end confdefs.h. */
13875 if ac_fn_c_try_link "$LINENO"
13877 found_visibility_flag=yes
13878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13879 printf "%s\n" "yes" >&6; }
13881 CFLAGS="${orig_CFLAGS}"
13882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13883 printf "%s\n" "no" >&6; }
13885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13886 conftest$ac_exeext conftest.$ac_ext
13889 # All library tests below try `pkg-config' first. If that fails, a function
13890 # from the library is tested in the traditional autoconf way (zlib, bzip2),
13891 # or a config script is called (libpng).
13893 # The `xxx_reqpriv' variables are for the `Requires.private' field in
13894 # `freetype2.pc'. The `xxx_libspriv' variables are for the `Libs.private'
13895 # field in `freetype2.pc' if pkg-config doesn't find a proper .pc file.
13897 # The `xxx_libsstaticconf' variables are for the `freetype-config' script.
13899 # Note that a call to PKG_CHECK_MODULES(XXX, ...) sets and creates the
13900 # output variables `XXX_CFLAGS' and `XXX_LIBS'. In case one or both are set
13901 # for a library by the user, no entry for this library is added to
13902 # `Requires.private'. Instead, it gets added to `Libs.private'
13905 # check for system zlib
13908 # Check whether --with-zlib was given.
13909 if test ${with_zlib+y}
13911 withval=$with_zlib;
13918 if test x"$with_zlib" = xyes -o x"$with_zlib" = xauto; then
13922 if test x"$ZLIB_CFLAGS" = x -a x"$ZLIB_LIBS" = x; then
13923 if test -n "$PKG_CONFIG" && \
13924 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13925 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928 test $ac_status = 0; }; then
13934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
13935 printf %s "checking for ZLIB... " >&6; }
13937 if test -n "$ZLIB_CFLAGS"; then
13938 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
13939 elif test -n "$PKG_CONFIG"; then
13940 if test -n "$PKG_CONFIG" && \
13941 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13942 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13944 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945 test $ac_status = 0; }; then
13946 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "$zlib_pkg" 2>/dev/null`
13947 test "x$?" != "x0" && pkg_failed=yes
13954 if test -n "$ZLIB_LIBS"; then
13955 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
13956 elif test -n "$PKG_CONFIG"; then
13957 if test -n "$PKG_CONFIG" && \
13958 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$zlib_pkg\""; } >&5
13959 ($PKG_CONFIG --exists --print-errors "$zlib_pkg") 2>&5
13961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13962 test $ac_status = 0; }; then
13963 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "$zlib_pkg" 2>/dev/null`
13964 test "x$?" != "x0" && pkg_failed=yes
13974 if test $pkg_failed = yes; then
13975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 printf "%s\n" "no" >&6; }
13978 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13979 _pkg_short_errors_supported=yes
13981 _pkg_short_errors_supported=no
13983 if test $_pkg_short_errors_supported = yes; then
13984 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$zlib_pkg" 2>&1`
13986 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$zlib_pkg" 2>&1`
13988 # Put the nasty error message in config.log where it belongs
13989 echo "$ZLIB_PKG_ERRORS" >&5
13992 elif test $pkg_failed = untried; then
13993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994 printf "%s\n" "no" >&6; }
13997 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
13998 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14000 printf "%s\n" "yes" >&6; }
14001 have_zlib="yes (pkg-config)"
14004 if test $have_zlib_pkg = yes; then
14006 zlib_reqpriv="$zlib_pkg"
14008 zlib_libsstaticconf=`$PKG_CONFIG --static --libs "$zlib_pkg"`
14012 if test "$have_zlib" != no; then
14013 # ZLIB_CFLAGS and ZLIB_LIBS are set by the user
14014 zlib_libspriv="$ZLIB_LIBS"
14015 zlib_libsstaticconf="$ZLIB_LIBS"
14016 have_zlib="yes (ZLIB_CFLAGS and ZLIB_LIBS)"
14018 # fall back to standard autoconf test
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
14020 printf %s "checking for gzsetparams in -lz... " >&6; }
14021 if test ${ac_cv_lib_z_gzsetparams+y}
14023 printf %s "(cached) " >&6
14025 ac_check_lib_save_LIBS=$LIBS
14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h. */
14030 /* Override any GCC internal prototype to avoid an error.
14031 Use char because int might match the return type of a GCC
14032 builtin and then its argument prototype would still apply. */
14033 char gzsetparams ();
14037 return gzsetparams ();
14042 if ac_fn_c_try_link "$LINENO"
14044 ac_cv_lib_z_gzsetparams=yes
14046 ac_cv_lib_z_gzsetparams=no
14048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14049 conftest$ac_exeext conftest.$ac_ext
14050 LIBS=$ac_check_lib_save_LIBS
14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
14053 printf "%s\n" "$ac_cv_lib_z_gzsetparams" >&6; }
14054 if test "x$ac_cv_lib_z_gzsetparams" = xyes
14056 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14057 if test "x$ac_cv_header_zlib_h" = xyes
14059 have_zlib="yes (autoconf test)"
14060 zlib_libspriv="-lz"
14061 zlib_libsstaticconf="$zlib_libspriv"
14062 ZLIB_LIBS="$zlib_libspriv"
14071 if test x"$with_zlib" = xyes -a "$have_zlib" = no; then
14072 as_fn_error $? "external zlib support requested but library not found" "$LINENO" 5
14076 if test "$have_zlib" != no; then
14082 # check for system libbz2
14085 # Check whether --with-bzip2 was given.
14086 if test ${with_bzip2+y}
14088 withval=$with_bzip2;
14095 if test x"$with_bzip2" = xyes -o x"$with_bzip2" = xauto; then
14099 if test x"$BZIP2_CFLAGS" = x -a x"$BZIP2_LIBS" = x; then
14100 if test -n "$PKG_CONFIG" && \
14101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
14102 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
14104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14105 test $ac_status = 0; }; then
14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZIP2" >&5
14112 printf %s "checking for BZIP2... " >&6; }
14114 if test -n "$BZIP2_CFLAGS"; then
14115 pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS"
14116 elif test -n "$PKG_CONFIG"; then
14117 if test -n "$PKG_CONFIG" && \
14118 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
14119 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
14121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14122 test $ac_status = 0; }; then
14123 pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "$bzip2_pkg" 2>/dev/null`
14124 test "x$?" != "x0" && pkg_failed=yes
14131 if test -n "$BZIP2_LIBS"; then
14132 pkg_cv_BZIP2_LIBS="$BZIP2_LIBS"
14133 elif test -n "$PKG_CONFIG"; then
14134 if test -n "$PKG_CONFIG" && \
14135 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$bzip2_pkg\""; } >&5
14136 ($PKG_CONFIG --exists --print-errors "$bzip2_pkg") 2>&5
14138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139 test $ac_status = 0; }; then
14140 pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "$bzip2_pkg" 2>/dev/null`
14141 test "x$?" != "x0" && pkg_failed=yes
14151 if test $pkg_failed = yes; then
14152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14153 printf "%s\n" "no" >&6; }
14155 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14156 _pkg_short_errors_supported=yes
14158 _pkg_short_errors_supported=no
14160 if test $_pkg_short_errors_supported = yes; then
14161 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
14163 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$bzip2_pkg" 2>&1`
14165 # Put the nasty error message in config.log where it belongs
14166 echo "$BZIP2_PKG_ERRORS" >&5
14169 elif test $pkg_failed = untried; then
14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 printf "%s\n" "no" >&6; }
14174 BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS
14175 BZIP2_LIBS=$pkg_cv_BZIP2_LIBS
14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14177 printf "%s\n" "yes" >&6; }
14178 have_bzip2="yes (pkg-config)"
14181 if test $have_bzip2_pkg = yes; then
14183 bzip2_reqpriv="$bzip2_pkg"
14185 bzip2_libsstaticconf=`$PKG_CONFIG --static --libs "$bzip2_pkg"`
14189 if test "$have_bzip2" != no; then
14190 # BZIP2_CFLAGS and BZIP2_LIBS are set by the user
14191 bzip2_libspriv="$BZIP2_LIBS"
14192 bzip2_libsstaticconf="$BZIP2_LIBS"
14193 have_bzip2="yes (BZIP2_CFLAGS and BZIP2_LIBS)"
14195 # fall back to standard autoconf test
14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
14197 printf %s "checking for BZ2_bzDecompress in -lbz2... " >&6; }
14198 if test ${ac_cv_lib_bz2_BZ2_bzDecompress+y}
14200 printf %s "(cached) " >&6
14202 ac_check_lib_save_LIBS=$LIBS
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14207 /* Override any GCC internal prototype to avoid an error.
14208 Use char because int might match the return type of a GCC
14209 builtin and then its argument prototype would still apply. */
14210 char BZ2_bzDecompress ();
14214 return BZ2_bzDecompress ();
14219 if ac_fn_c_try_link "$LINENO"
14221 ac_cv_lib_bz2_BZ2_bzDecompress=yes
14223 ac_cv_lib_bz2_BZ2_bzDecompress=no
14225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14226 conftest$ac_exeext conftest.$ac_ext
14227 LIBS=$ac_check_lib_save_LIBS
14229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
14230 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
14231 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes
14233 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14234 if test "x$ac_cv_header_bzlib_h" = xyes
14236 have_bzip2="yes (autoconf test)"
14237 bzip2_libspriv="-lbz2"
14238 bzip2_libsstaticconf="$bzip2_libspriv"
14239 BZIP2_LIBS="$bzip2_libspriv"
14248 if test x"$with_bzip2" = xyes -a "$have_bzip2" = no; then
14249 as_fn_error $? "bzip2 support requested but library not found" "$LINENO" 5
14253 # check for system libpng
14256 # Check whether --with-png was given.
14257 if test ${with_png+y}
14266 if test x"$with_png" = xyes -o x"$with_png" = xauto; then
14267 libpng_pkg="libpng"
14270 if test x"$LIBPNG_CFLAGS" = x -a x"$LIBPNG_LIBS" = x; then
14271 if test -n "$PKG_CONFIG" && \
14272 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
14273 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
14275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14276 test $ac_status = 0; }; then
14277 have_libpng_pkg=yes
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
14283 printf %s "checking for LIBPNG... " >&6; }
14285 if test -n "$LIBPNG_CFLAGS"; then
14286 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
14287 elif test -n "$PKG_CONFIG"; then
14288 if test -n "$PKG_CONFIG" && \
14289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
14290 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
14292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293 test $ac_status = 0; }; then
14294 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "$libpng_pkg" 2>/dev/null`
14295 test "x$?" != "x0" && pkg_failed=yes
14302 if test -n "$LIBPNG_LIBS"; then
14303 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
14304 elif test -n "$PKG_CONFIG"; then
14305 if test -n "$PKG_CONFIG" && \
14306 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$libpng_pkg\""; } >&5
14307 ($PKG_CONFIG --exists --print-errors "$libpng_pkg") 2>&5
14309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14310 test $ac_status = 0; }; then
14311 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "$libpng_pkg" 2>/dev/null`
14312 test "x$?" != "x0" && pkg_failed=yes
14322 if test $pkg_failed = yes; then
14323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14324 printf "%s\n" "no" >&6; }
14326 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14327 _pkg_short_errors_supported=yes
14329 _pkg_short_errors_supported=no
14331 if test $_pkg_short_errors_supported = yes; then
14332 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$libpng_pkg" 2>&1`
14334 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$libpng_pkg" 2>&1`
14336 # Put the nasty error message in config.log where it belongs
14337 echo "$LIBPNG_PKG_ERRORS" >&5
14340 elif test $pkg_failed = untried; then
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 printf "%s\n" "no" >&6; }
14345 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
14346 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14348 printf "%s\n" "yes" >&6; }
14349 have_libpng="yes (pkg-config)"
14352 if test $have_libpng_pkg = yes; then
14353 # we have libpng.pc
14354 libpng_reqpriv="$libpng_pkg"
14356 libpng_libsstaticconf=`$PKG_CONFIG --static --libs "$libpng_pkg"`
14360 if test "$have_libpng" != no; then
14361 # LIBPNG_CFLAGS and LIBPNG_LIBS are set by the user
14362 libpng_libspriv="$LIBPNG_LIBS"
14363 libpng_libsstaticconf="$LIBPNG_LIBS"
14364 have_libpng="yes (LIBPNG_CFLAGS and LIBPNG_LIBS)"
14366 # fall back to config script
14367 # Extract the first word of "libpng-config", so it can be a program name with args.
14368 set dummy libpng-config; ac_word=$2
14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14370 printf %s "checking for $ac_word... " >&6; }
14371 if test ${ac_cv_prog_have_libpng+y}
14373 printf %s "(cached) " >&6
14375 if test -n "$have_libpng"; then
14376 ac_cv_prog_have_libpng="$have_libpng" # Let the user override the test.
14378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14379 for as_dir in $PATH
14382 case $as_dir in #(((
14385 *) as_dir=$as_dir/ ;;
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14389 ac_cv_prog_have_libpng="yes (libpng-config)"
14390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14397 test -z "$ac_cv_prog_have_libpng" && ac_cv_prog_have_libpng="no"
14400 have_libpng=$ac_cv_prog_have_libpng
14401 if test -n "$have_libpng"; then
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_libpng" >&5
14403 printf "%s\n" "$have_libpng" >&6; }
14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14406 printf "%s\n" "no" >&6; }
14410 if test "$have_libpng" != no; then
14411 LIBPNG_CFLAGS=`libpng-config --cflags`
14412 LIBPNG_LIBS=`libpng-config --ldflags`
14413 libpng_libspriv=`libpng-config --static --ldflags`
14414 libpng_libsstaticconf="$libpng_libspriv"
14420 if test x"$with_png" = xyes -a "$have_libpng" = no; then
14421 as_fn_error $? "libpng support requested but library not found" "$LINENO" 5
14425 # check for system libharfbuzz
14428 # Check whether --with-harfbuzz was given.
14429 if test ${with_harfbuzz+y}
14431 withval=$with_harfbuzz;
14438 if test x"$with_harfbuzz" = xyes -o x"$with_harfbuzz" = xauto; then
14439 harfbuzz_pkg="harfbuzz >= 2.0.0"
14440 have_harfbuzz_pkg=no
14442 if test x"$HARFBUZZ_CFLAGS" = x -a x"$HARFBUZZ_LIBS" = x; then
14443 if test -n "$PKG_CONFIG" && \
14444 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14445 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14448 test $ac_status = 0; }; then
14449 have_harfbuzz_pkg=yes
14454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HARFBUZZ" >&5
14455 printf %s "checking for HARFBUZZ... " >&6; }
14457 if test -n "$HARFBUZZ_CFLAGS"; then
14458 pkg_cv_HARFBUZZ_CFLAGS="$HARFBUZZ_CFLAGS"
14459 elif test -n "$PKG_CONFIG"; then
14460 if test -n "$PKG_CONFIG" && \
14461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14462 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14465 test $ac_status = 0; }; then
14466 pkg_cv_HARFBUZZ_CFLAGS=`$PKG_CONFIG --cflags "$harfbuzz_pkg" 2>/dev/null`
14467 test "x$?" != "x0" && pkg_failed=yes
14474 if test -n "$HARFBUZZ_LIBS"; then
14475 pkg_cv_HARFBUZZ_LIBS="$HARFBUZZ_LIBS"
14476 elif test -n "$PKG_CONFIG"; then
14477 if test -n "$PKG_CONFIG" && \
14478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$harfbuzz_pkg\""; } >&5
14479 ($PKG_CONFIG --exists --print-errors "$harfbuzz_pkg") 2>&5
14481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14482 test $ac_status = 0; }; then
14483 pkg_cv_HARFBUZZ_LIBS=`$PKG_CONFIG --libs "$harfbuzz_pkg" 2>/dev/null`
14484 test "x$?" != "x0" && pkg_failed=yes
14494 if test $pkg_failed = yes; then
14495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14496 printf "%s\n" "no" >&6; }
14498 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14499 _pkg_short_errors_supported=yes
14501 _pkg_short_errors_supported=no
14503 if test $_pkg_short_errors_supported = yes; then
14504 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
14506 HARFBUZZ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$harfbuzz_pkg" 2>&1`
14508 # Put the nasty error message in config.log where it belongs
14509 echo "$HARFBUZZ_PKG_ERRORS" >&5
14512 elif test $pkg_failed = untried; then
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 printf "%s\n" "no" >&6; }
14517 HARFBUZZ_CFLAGS=$pkg_cv_HARFBUZZ_CFLAGS
14518 HARFBUZZ_LIBS=$pkg_cv_HARFBUZZ_LIBS
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14520 printf "%s\n" "yes" >&6; }
14521 have_harfbuzz="yes (pkg-config)"
14524 if test $have_harfbuzz_pkg = yes; then
14525 # we have harfbuzz.pc
14526 harfbuzz_reqpriv="$harfbuzz_pkg"
14528 harfbuzz_libsstaticconf=`$PKG_CONFIG --static --libs "$harfbuzz_pkg"`
14532 if test "$have_harfbuzz" != no; then
14533 # HARFBUZZ_CFLAGS and HARFBUZZ_LIBS are set by the user
14534 harfbuzz_libspriv="$HARFBUZZ_LIBS"
14535 harfbuzz_libsstaticconf="$HARFBUZZ_LIBS"
14536 have_harfbuzz="yes (HARFBUZZ_CFLAGS and HARFBUZZ_LIBS)"
14538 # since HarfBuzz is quite a new library we don't fall back to a
14539 # different test; additionally, it has too many dependencies
14545 if test x"$with_harfbuzz" = xyes -a "$have_harfbuzz" = no; then
14546 as_fn_error $? "harfbuzz support requested but library not found" "$LINENO" 5
14550 # check for system libbrotlidec
14553 # Check whether --with-brotli was given.
14554 if test ${with_brotli+y}
14556 withval=$with_brotli;
14563 if test x"$with_brotli" = xyes -o x"$with_brotli" = xauto; then
14564 brotli_pkg="libbrotlidec"
14567 if test x"$BROTLI_CFLAGS" = x -a x"$BROTLI_LIBS" = x; then
14568 if test -n "$PKG_CONFIG" && \
14569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14570 ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14573 test $ac_status = 0; }; then
14574 have_brotli_pkg=yes
14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BROTLI" >&5
14580 printf %s "checking for BROTLI... " >&6; }
14582 if test -n "$BROTLI_CFLAGS"; then
14583 pkg_cv_BROTLI_CFLAGS="$BROTLI_CFLAGS"
14584 elif test -n "$PKG_CONFIG"; then
14585 if test -n "$PKG_CONFIG" && \
14586 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14587 ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14590 test $ac_status = 0; }; then
14591 pkg_cv_BROTLI_CFLAGS=`$PKG_CONFIG --cflags "$brotli_pkg" 2>/dev/null`
14592 test "x$?" != "x0" && pkg_failed=yes
14599 if test -n "$BROTLI_LIBS"; then
14600 pkg_cv_BROTLI_LIBS="$BROTLI_LIBS"
14601 elif test -n "$PKG_CONFIG"; then
14602 if test -n "$PKG_CONFIG" && \
14603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$brotli_pkg\""; } >&5
14604 ($PKG_CONFIG --exists --print-errors "$brotli_pkg") 2>&5
14606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14607 test $ac_status = 0; }; then
14608 pkg_cv_BROTLI_LIBS=`$PKG_CONFIG --libs "$brotli_pkg" 2>/dev/null`
14609 test "x$?" != "x0" && pkg_failed=yes
14619 if test $pkg_failed = yes; then
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621 printf "%s\n" "no" >&6; }
14623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14624 _pkg_short_errors_supported=yes
14626 _pkg_short_errors_supported=no
14628 if test $_pkg_short_errors_supported = yes; then
14629 BROTLI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$brotli_pkg" 2>&1`
14631 BROTLI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$brotli_pkg" 2>&1`
14633 # Put the nasty error message in config.log where it belongs
14634 echo "$BROTLI_PKG_ERRORS" >&5
14637 elif test $pkg_failed = untried; then
14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14639 printf "%s\n" "no" >&6; }
14642 BROTLI_CFLAGS=$pkg_cv_BROTLI_CFLAGS
14643 BROTLI_LIBS=$pkg_cv_BROTLI_LIBS
14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14645 printf "%s\n" "yes" >&6; }
14646 have_brotli="yes (pkg-config)"
14649 if test $have_brotli_pkg = yes; then
14650 # we have libbrotlidec.pc
14651 brotli_reqpriv="$brotli_pkg"
14653 brotli_libsstaticconf=`$PKG_CONFIG --static --libs "$brotli_pkg"`
14657 if test "$have_brotli" != no; then
14658 # BROTLI_CFLAGS and BROTLI_LIBS are set by the user
14659 brotli_libspriv="$BROTLI_LIBS"
14660 brotli_libsstaticconf="$BROTLI_LIBS"
14661 have_brotli="yes (BROTLI_CFLAGS and BROTLI_LIBS)"
14663 # since Brotli is quite a new library we don't fall back to a
14670 if test x"$with_brotli" = xyes -a "$have_brotli" = no; then
14671 as_fn_error $? "brotli support requested but library not found" "$LINENO" 5
14675 # Checks for the demo programs.
14677 # FreeType doesn't need this. However, since the demo program repository
14678 # doesn't come with a `configure` script of its own, we integrate the tests
14679 # here for simplicity.
14681 # We need `clock_gettime` from 'librt' for the `ftbench` demo program.
14683 # The code is modeled after gnulib's file `clock_time.m4`, ignoring
14684 # very old Solaris systems.
14686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14687 printf %s "checking for library containing clock_gettime... " >&6; }
14688 if test ${ac_cv_search_clock_gettime+y}
14690 printf %s "(cached) " >&6
14692 ac_func_search_save_LIBS=$LIBS
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14696 /* Override any GCC internal prototype to avoid an error.
14697 Use char because int might match the return type of a GCC
14698 builtin and then its argument prototype would still apply. */
14699 char clock_gettime ();
14703 return clock_gettime ();
14708 for ac_lib in '' rt
14710 if test -z "$ac_lib"; then
14711 ac_res="none required"
14714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14716 if ac_fn_c_try_link "$LINENO"
14718 ac_cv_search_clock_gettime=$ac_res
14720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14722 if test ${ac_cv_search_clock_gettime+y}
14727 if test ${ac_cv_search_clock_gettime+y}
14731 ac_cv_search_clock_gettime=no
14733 rm conftest.$ac_ext
14734 LIBS=$ac_func_search_save_LIBS
14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14737 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
14738 ac_res=$ac_cv_search_clock_gettime
14739 if test "$ac_res" != no
14741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14742 test "$ac_cv_search_clock_gettime" = "none required" \
14743 || LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
14748 FT_DEMO_LDFLAGS="$LIB_CLOCK_GETTIME"
14750 # 'librsvg' is needed to demonstrate SVG support.
14752 # Check whether --with-librsvg was given.
14753 if test ${with_librsvg+y}
14755 withval=$with_librsvg;
14762 if test x"$with_librsvg" = xyes -o x"$with_librsvg" = xauto; then
14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBRSVG" >&5
14766 printf %s "checking for LIBRSVG... " >&6; }
14768 if test -n "$LIBRSVG_CFLAGS"; then
14769 pkg_cv_LIBRSVG_CFLAGS="$LIBRSVG_CFLAGS"
14770 elif test -n "$PKG_CONFIG"; then
14771 if test -n "$PKG_CONFIG" && \
14772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.46.0\""; } >&5
14773 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.46.0") 2>&5
14775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14776 test $ac_status = 0; }; then
14777 pkg_cv_LIBRSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.46.0" 2>/dev/null`
14778 test "x$?" != "x0" && pkg_failed=yes
14785 if test -n "$LIBRSVG_LIBS"; then
14786 pkg_cv_LIBRSVG_LIBS="$LIBRSVG_LIBS"
14787 elif test -n "$PKG_CONFIG"; then
14788 if test -n "$PKG_CONFIG" && \
14789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.46.0\""; } >&5
14790 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.46.0") 2>&5
14792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14793 test $ac_status = 0; }; then
14794 pkg_cv_LIBRSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.46.0" 2>/dev/null`
14795 test "x$?" != "x0" && pkg_failed=yes
14805 if test $pkg_failed = yes; then
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 printf "%s\n" "no" >&6; }
14809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14810 _pkg_short_errors_supported=yes
14812 _pkg_short_errors_supported=no
14814 if test $_pkg_short_errors_supported = yes; then
14815 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.46.0" 2>&1`
14817 LIBRSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.46.0" 2>&1`
14819 # Put the nasty error message in config.log where it belongs
14820 echo "$LIBRSVG_PKG_ERRORS" >&5
14823 elif test $pkg_failed = untried; then
14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14825 printf "%s\n" "no" >&6; }
14828 LIBRSVG_CFLAGS=$pkg_cv_LIBRSVG_CFLAGS
14829 LIBRSVG_LIBS=$pkg_cv_LIBRSVG_LIBS
14830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14831 printf "%s\n" "yes" >&6; }
14832 have_librsvg="yes (pkg-config)"
14835 if test "$have_librsvg" != no; then
14836 FT_DEMO_CFLAGS="$FT_DEMO_CFLAGS $LIBRSVG_CFLAGS -DHAVE_LIBRSVG"
14837 FT_DEMO_LDFLAGS="$FT_DEMO_LDFLAGS $LIBRSVG_LIBS"
14841 if test x"$with_librsvg" = xyes -a "$have_librsvg" = no; then
14842 as_fn_error $? "librsvg support requested but library not found" "$LINENO" 5
14849 # Some options handling SDKs/archs in CFLAGS should be copied
14850 # to LDFLAGS. Apple TechNote 2137 recommends to include these
14851 # options in CFLAGS but not in LDFLAGS.
14853 save_config_args=$*
14854 set dummy ${CFLAGS}
14856 while test $i -le $#
14861 -isysroot|-arch) # options taking 1 argument
14863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
14864 printf %s "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
14865 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14868 printf "%s\n" "yes" >&6; }
14870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
14871 printf "%s\n" "no, copy to LDFLAGS" >&6; }
14872 LDFLAGS="${LDFLAGS} ${c} ${a}"
14876 -m32|-m64|-march=*|-mcpu=*) # options taking no argument
14877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c}" >&5
14878 printf %s "checking whether CFLAGS and LDFLAGS share ${c}... " >&6; }
14879 if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
14881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14882 printf "%s\n" "yes" >&6; }
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
14885 printf "%s\n" "no, copy to LDFLAGS" >&6; }
14886 LDFLAGS="${LDFLAGS} ${c}"
14890 # AC_MSG_RESULT([${c} is not copied to LDFLAGS])
14896 set ${save_config_args}
14899 # Whether to use Mac OS resource-based fonts.
14901 ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
14904 # Check whether --with-old-mac-fonts was given.
14905 if test ${with_old_mac_fonts+y}
14907 withval=$with_old_mac_fonts;
14910 if test x$with_old_mac_fonts = xyes; then
14911 orig_LDFLAGS="${LDFLAGS}"
14912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
14913 printf %s "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
14914 ft2_extra_libs="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
14915 LDFLAGS="$LDFLAGS $ft2_extra_libs"
14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14921 #if defined(__GNUC__) && defined(__APPLE_CC__)
14922 # include <CoreServices/CoreServices.h>
14923 # include <ApplicationServices/ApplicationServices.h>
14925 # include <ConditionalMacros.h>
14926 # include <Files.h>
14945 if ac_fn_c_try_link "$LINENO"
14947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14948 printf "%s\n" "ok" >&6; }
14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS_INLINE macro is ANSI compatible" >&5
14951 printf %s "checking whether OS_INLINE macro is ANSI compatible... " >&6; }
14952 orig_CFLAGS="$CFLAGS -DFT_MACINTOSH"
14953 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14959 #if defined(__GNUC__) && defined(__APPLE_CC__)
14960 # include <CoreServices/CoreServices.h>
14961 # include <ApplicationServices/ApplicationServices.h>
14963 # include <ConditionalMacros.h>
14964 # include <Files.h>
14973 /* OSHostByteOrder() is typed as OS_INLINE */
14974 int32_t os_byte_order = OSHostByteOrder();
14977 if ( OSBigEndian != os_byte_order )
14985 if ac_fn_c_try_compile "$LINENO"
14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14988 printf "%s\n" "ok" >&6; }
14989 CFLAGS="$orig_CFLAGS"
14990 CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
14994 printf "%s\n" "no, ANSI incompatible" >&6; }
14995 CFLAGS="$orig_CFLAGS"
14998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
15000 printf %s "checking type ResourceIndex... " >&6; }
15001 orig_CFLAGS="$CFLAGS"
15002 CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
15003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15004 /* end confdefs.h. */
15008 #if defined(__GNUC__) && defined(__APPLE_CC__)
15009 # include <CoreServices/CoreServices.h>
15010 # include <ApplicationServices/ApplicationServices.h>
15012 # include <ConditionalMacros.h>
15013 # include <Files.h>
15014 # include <Resources.h>
15023 ResourceIndex i = 0;
15031 if ac_fn_c_try_compile "$LINENO"
15033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15034 printf "%s\n" "ok" >&6; }
15035 CFLAGS="$orig_CFLAGS"
15036 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040 printf "%s\n" "no" >&6; }
15041 CFLAGS="$orig_CFLAGS"
15042 CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
15045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15048 printf "%s\n" "not found" >&6; }
15050 LDFLAGS="${orig_LDFLAGS}"
15051 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
15053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15054 conftest$ac_exeext conftest.$ac_ext
15058 CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
15066 # Whether to use FileManager, which is deprecated since Mac OS X 10.4.
15069 # Check whether --with-fsspec was given.
15070 if test ${with_fsspec+y}
15072 withval=$with_fsspec;
15075 if test x$with_fsspec = xno; then
15076 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
15077 elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
15078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
15079 printf %s "checking FSSpec-based FileManager... " >&6; }
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15085 #if defined(__GNUC__) && defined(__APPLE_CC__)
15086 # include <CoreServices/CoreServices.h>
15087 # include <ApplicationServices/ApplicationServices.h>
15089 # include <ConditionalMacros.h>
15090 # include <Files.h>
15099 FCBPBPtr paramBlock;
15102 ConstStr255Param fileName;
15106 /* FSSpec functions: deprecated since Mac OS X 10.4 */
15107 PBGetFCBInfoSync( paramBlock );
15108 FSMakeFSSpec( vRefNum, dirID, fileName, spec );
15115 if ac_fn_c_try_link "$LINENO"
15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15118 printf "%s\n" "ok" >&6; }
15119 CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
15121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15122 printf "%s\n" "not found" >&6; }
15123 CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
15125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15126 conftest$ac_exeext conftest.$ac_ext
15130 # Whether to use FileManager in Carbon since MacOS 9.x.
15133 # Check whether --with-fsref was given.
15134 if test ${with_fsref+y}
15136 withval=$with_fsref;
15139 if test x$with_fsref = xno; then
15140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15142 FreeType2 built without FSRef API cannot load
15143 data-fork fonts on MacOS, except of XXX.dfont.
15145 printf "%s\n" "$as_me: WARNING:
15147 FreeType2 built without FSRef API cannot load
15148 data-fork fonts on MacOS, except of XXX.dfont.
15150 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
15151 elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
15152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
15153 printf %s "checking FSRef-based FileManager... " >&6; }
15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h. */
15159 #if defined(__GNUC__) && defined(__APPLE_CC__)
15160 # include <CoreServices/CoreServices.h>
15161 # include <ApplicationServices/ApplicationServices.h>
15163 # include <ConditionalMacros.h>
15164 # include <Files.h>
15175 ConstStr255Param fileName;
15177 Boolean* isDirectory;
15179 SInt16 desiredRefNum;
15181 SInt16* actualRefNum;
15182 HFSUniStr255* outForkName;
15183 FSVolumeRefNum volume;
15184 FSCatalogInfoBitmap whichInfo;
15185 FSCatalogInfo* catalogInfo;
15186 FSForkInfo* forkInfo;
15193 /* FSRef functions: no need to check? */
15194 FSGetForkCBInfo( desiredRefNum, volume, iterator,
15195 actualRefNum, forkInfo, ref,
15197 FSPathMakeRef( path, ref, isDirectory );
15200 FSpMakeFSRef ( spec, ref );
15201 FSGetCatalogInfo( ref, whichInfo, catalogInfo,
15202 outForkName, spec, ref );
15209 if ac_fn_c_try_link "$LINENO"
15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15212 printf "%s\n" "ok" >&6; }
15213 CFLAGS="$CFLAGS -DHAVE_FSREF=1"
15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15216 printf "%s\n" "not found" >&6; }
15217 CFLAGS="$CFLAGS -DHAVE_FSREF=0"
15219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15220 conftest$ac_exeext conftest.$ac_ext
15224 # Whether to use QuickDraw API in ToolBox, which is deprecated since
15228 # Check whether --with-quickdraw-toolbox was given.
15229 if test ${with_quickdraw_toolbox+y}
15231 withval=$with_quickdraw_toolbox;
15234 if test x$with_quickdraw_toolbox = xno; then
15235 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
15236 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
15238 printf %s "checking QuickDraw FontManager functions in ToolBox... " >&6; }
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h. */
15244 #if defined(__GNUC__) && defined(__APPLE_CC__)
15245 # include <CoreServices/CoreServices.h>
15246 # include <ApplicationServices/ApplicationServices.h>
15248 # include <ConditionalMacros.h>
15249 # include <Fonts.h>
15259 SInt16 familyID = 0;
15260 FMInput* fmIn = NULL;
15261 FMOutput* fmOut = NULL;
15264 GetFontName( familyID, familyName );
15265 GetFNum( familyName, &familyID );
15266 fmOut = FMSwapFont( fmIn );
15273 if ac_fn_c_try_link "$LINENO"
15275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15276 printf "%s\n" "ok" >&6; }
15277 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
15279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15280 printf "%s\n" "not found" >&6; }
15281 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
15283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15284 conftest$ac_exeext conftest.$ac_ext
15288 # Whether to use QuickDraw API in Carbon, which is deprecated since
15292 # Check whether --with-quickdraw-carbon was given.
15293 if test ${with_quickdraw_carbon+y}
15295 withval=$with_quickdraw_carbon;
15298 if test x$with_quickdraw_carbon = xno; then
15299 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
15300 elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
15301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
15302 printf %s "checking QuickDraw FontManager functions in Carbon... " >&6; }
15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h. */
15308 #if defined(__GNUC__) && defined(__APPLE_CC__)
15309 # include <CoreServices/CoreServices.h>
15310 # include <ApplicationServices/ApplicationServices.h>
15312 # include <ConditionalMacros.h>
15313 # include <Fonts.h>
15322 FMFontFamilyIterator famIter;
15323 FMFontFamily family;
15325 FMFontFamilyInstanceIterator instIter;
15332 FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
15334 FMGetNextFontFamily( &famIter, &family );
15335 FMGetFontFamilyName( family, famNameStr );
15336 FMCreateFontFamilyInstanceIterator( family, &instIter );
15337 FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
15338 FMDisposeFontFamilyInstanceIterator( &instIter );
15339 FMDisposeFontFamilyIterator( &famIter );
15340 FMGetFontContainer( font, pathSpec );
15347 if ac_fn_c_try_link "$LINENO"
15349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15350 printf "%s\n" "ok" >&6; }
15351 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15354 printf "%s\n" "not found" >&6; }
15355 CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
15357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15358 conftest$ac_exeext conftest.$ac_ext
15362 # Whether to use AppleTypeService since Mac OS X.
15365 # Check whether --with-ats was given.
15366 if test ${with_ats+y}
15371 if test x$with_ats = xno; then
15372 CFLAGS="$CFLAGS -DHAVE_ATS=0"
15373 elif test x$with_old_mac_fonts = xyes -a x$with_ats != x; then
15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
15375 printf %s "checking AppleTypeService functions... " >&6; }
15376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15377 /* end confdefs.h. */
15381 #if defined(__GNUC__) && defined(__APPLE_CC__)
15382 # include <CoreServices/CoreServices.h>
15383 # include <ApplicationServices/ApplicationServices.h>
15385 # include <ConditionalMacros.h>
15386 # include <Files.h>
15398 ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
15400 ATSFontGetFileSpecification( 0, pathSpec );
15408 if ac_fn_c_try_link "$LINENO"
15410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15411 printf "%s\n" "ok" >&6; }
15412 CFLAGS="$CFLAGS -DHAVE_ATS=1"
15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15415 printf "%s\n" "not found" >&6; }
15416 CFLAGS="$CFLAGS -DHAVE_ATS=0"
15418 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15419 conftest$ac_exeext conftest.$ac_ext
15423 *HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
15426 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
15427 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
15429 printf "%s\n" "$as_me: WARNING:
15431 FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
15432 thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
15434 CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
15440 # Check for pthreads
15442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
15443 printf %s "checking target system type... " >&6; }
15444 if test ${ac_cv_target+y}
15446 printf %s "(cached) " >&6
15448 if test "x$target_alias" = x; then
15449 ac_cv_target=$ac_cv_host
15451 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
15452 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
15456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
15457 printf "%s\n" "$ac_cv_target" >&6; }
15458 case $ac_cv_target in
15460 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
15462 target=$ac_cv_target
15463 ac_save_IFS=$IFS; IFS='-'
15464 set x $ac_cv_target
15469 # Remember, the first character of IFS is used to create $*,
15470 # except with old shells:
15473 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
15476 # The aliases save the names the user supplied, while $host etc.
15477 # will get canonicalized.
15478 test -n "$target_alias" &&
15479 test "$program_prefix$program_suffix$program_transform_name" = \
15481 program_prefix=${target_alias}-
15488 ac_cpp='$CPP $CPPFLAGS'
15489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15495 # We used to check for pthread.h first, but this fails if pthread.h
15496 # requires special compiler flags (e.g. on Tru64 or Sequent).
15497 # It gets checked for in the link test anyway.
15499 # First of all, check if the user has set any of the PTHREAD_LIBS,
15500 # etcetera environment variables, and if threads linking works using
15502 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15503 ax_pthread_save_CC="$CC"
15504 ax_pthread_save_CFLAGS="$CFLAGS"
15505 ax_pthread_save_LIBS="$LIBS"
15506 if test "x$PTHREAD_CC" != "x"
15510 if test "x$PTHREAD_CXX" != "x"
15514 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15515 LIBS="$PTHREAD_LIBS $LIBS"
15516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15517 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15521 /* Override any GCC internal prototype to avoid an error.
15522 Use char because int might match the return type of a GCC
15523 builtin and then its argument prototype would still apply. */
15524 char pthread_join ();
15528 return pthread_join ();
15533 if ac_fn_c_try_link "$LINENO"
15537 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15538 conftest$ac_exeext conftest.$ac_ext
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15540 printf "%s\n" "$ax_pthread_ok" >&6; }
15541 if test "x$ax_pthread_ok" = "xno"; then
15545 CC="$ax_pthread_save_CC"
15546 CFLAGS="$ax_pthread_save_CFLAGS"
15547 LIBS="$ax_pthread_save_LIBS"
15550 # We must check for the threads library under a number of different
15551 # names; the ordering is very important because some systems
15552 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15553 # libraries is broken (non-POSIX).
15555 # Create a list of thread flags to try. Items with a "," contain both
15556 # C compiler flags (before ",") and linker flags (after ","). Other items
15557 # starting with a "-" are C compiler flags, and remaining items are
15558 # library names, except for "none" which indicates that we try without
15559 # any flags at all, and "pthread-config" which is a program returning
15560 # the flags for the Pth emulation library.
15562 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15564 # The ordering *is* (sometimes) important. Some notes on the
15565 # individual items follow:
15567 # pthreads: AIX (must check this before -lpthread)
15568 # none: in case threads are in libc; should be tried before -Kthread and
15569 # other compiler flags to prevent continual compiler warnings
15570 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15571 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15572 # (Note: HP C rejects this with "bad form for `-t' option")
15573 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15574 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15575 # doesn't hurt to check since this sometimes defines pthreads and
15576 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15577 # is present but should not be used directly; and before -mthreads,
15578 # because the compiler interprets this as "-mt" + "-hreads")
15579 # -mthreads: Mingw32/gcc, Lynx/gcc
15580 # pthread: Linux, etcetera
15581 # --thread-safe: KAI C++
15582 # pthread-config: use pthread-config program (for GNU Pth library)
15588 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15589 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15591 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
15596 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15597 # multi-threading and also sets -lpthread."
15599 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
15604 # IBM z/OS requires a feature-test macro to be defined in order to
15605 # enable POSIX threads at all, so give the user a hint if this is
15606 # not set. (We don't define these ourselves, as they can affect
15607 # other portions of the system API in unpredictable ways.)
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15612 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15613 AX_PTHREAD_ZOS_MISSING
15617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15618 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
15620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15621 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15629 # On Solaris (at least, for some versions), libc contains stubbed
15630 # (non-functional) versions of the pthreads routines, so link-based
15631 # tests will erroneously succeed. (N.B.: The stubs are missing
15632 # pthread_cleanup_push, or rather a function called by this macro,
15633 # so we could check for that, but who knows whether they'll stub
15634 # that too in a future libc.) So we'll check first for the
15635 # standard Solaris way of linking pthreads (-mt -lpthread).
15637 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
15641 # Are we compiling with Clang?
15643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15644 printf %s "checking whether $CC is Clang... " >&6; }
15645 if test ${ax_cv_PTHREAD_CLANG+y}
15647 printf %s "(cached) " >&6
15649 ax_cv_PTHREAD_CLANG=no
15650 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15651 if test "x$GCC" = "xyes"; then
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h. */
15654 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15655 # if defined(__clang__) && defined(__llvm__)
15656 AX_PTHREAD_CC_IS_CLANG
15660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15661 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
15663 ax_cv_PTHREAD_CLANG=yes
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15671 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
15672 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
15675 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15677 # Note that for GCC and Clang -pthread generally implies -lpthread,
15678 # except when -nostdlib is passed.
15679 # This is problematic using libtool to build C++ shared libraries with pthread:
15680 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
15681 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
15682 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
15683 # To solve this, first try -pthread together with -lpthread for GCC
15685 if test "x$GCC" = "xyes"
15687 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
15690 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
15692 if test "x$ax_pthread_clang" = "xyes"
15694 ax_pthread_flags="-pthread,-lpthread -pthread"
15698 # The presence of a feature test macro requesting re-entrant function
15699 # definitions is, on some systems, a strong hint that pthreads support is
15700 # correctly enabled
15703 darwin* | hpux* | linux* | osf* | solaris*)
15704 ax_pthread_check_macro="_REENTRANT"
15708 ax_pthread_check_macro="_THREAD_SAFE"
15712 ax_pthread_check_macro="--"
15715 if test "x$ax_pthread_check_macro" = "x--"
15717 ax_pthread_check_cond=0
15719 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
15723 if test "x$ax_pthread_ok" = "xno"; then
15724 for ax_pthread_try_flag in $ax_pthread_flags; do
15726 case $ax_pthread_try_flag in
15728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15729 printf %s "checking whether pthreads work without any flags... " >&6; }
15733 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
15734 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
15735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
15736 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
15741 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
15742 PTHREAD_CFLAGS="$ax_pthread_try_flag"
15746 # Extract the first word of "pthread-config", so it can be a program name with args.
15747 set dummy pthread-config; ac_word=$2
15748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15749 printf %s "checking for $ac_word... " >&6; }
15750 if test ${ac_cv_prog_ax_pthread_config+y}
15752 printf %s "(cached) " >&6
15754 if test -n "$ax_pthread_config"; then
15755 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15761 case $as_dir in #(((
15764 *) as_dir=$as_dir/ ;;
15766 for ac_exec_ext in '' $ac_executable_extensions; do
15767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15768 ac_cv_prog_ax_pthread_config="yes"
15769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15776 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15779 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15780 if test -n "$ax_pthread_config"; then
15781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15782 printf "%s\n" "$ax_pthread_config" >&6; }
15784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15785 printf "%s\n" "no" >&6; }
15789 if test "x$ax_pthread_config" = "xno"
15793 PTHREAD_CFLAGS="`pthread-config --cflags`"
15794 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
15799 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
15800 PTHREAD_LIBS="-l$ax_pthread_try_flag"
15804 ax_pthread_save_CFLAGS="$CFLAGS"
15805 ax_pthread_save_LIBS="$LIBS"
15806 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15807 LIBS="$PTHREAD_LIBS $LIBS"
15809 # Check for various functions. We must include pthread.h,
15810 # since some functions may be macros. (On the Sequent, we
15811 # need a special flag -Kthread to make this header compile.)
15812 # We check for pthread_join because it is in -lpthread on IRIX
15813 # while pthread_create is in libc. We check for pthread_attr_init
15814 # due to DEC craziness with -lpthreads. We check for
15815 # pthread_cleanup_push because it is one of the few pthread
15816 # functions on Solaris that doesn't have a non-functional libc stub.
15817 # We try pthread_create on general principles.
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 #include <pthread.h>
15822 # if $ax_pthread_check_cond
15823 # error "$ax_pthread_check_macro must be defined"
15825 static void *some_global = NULL;
15826 static void routine(void *a)
15828 /* To avoid any unused-parameter or
15829 unused-but-set-parameter warning. */
15832 static void *start_routine(void *a) { return a; }
15836 pthread_t th; pthread_attr_t attr;
15837 pthread_create(&th, 0, start_routine, 0);
15838 pthread_join(th, 0);
15839 pthread_attr_init(&attr);
15840 pthread_cleanup_push(routine, 0);
15841 pthread_cleanup_pop(0) /* ; */
15846 if ac_fn_c_try_link "$LINENO"
15850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15851 conftest$ac_exeext conftest.$ac_ext
15853 CFLAGS="$ax_pthread_save_CFLAGS"
15854 LIBS="$ax_pthread_save_LIBS"
15856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15857 printf "%s\n" "$ax_pthread_ok" >&6; }
15858 if test "x$ax_pthread_ok" = "xyes"
15869 # Clang needs special handling, because older versions handle the -pthread
15870 # option in a rather... idiosyncratic way
15872 if test "x$ax_pthread_clang" = "xyes"; then
15874 # Clang takes -pthread; it has never supported any other flag
15876 # (Note 1: This will need to be revisited if a system that Clang
15877 # supports has POSIX threads in a separate library. This tends not
15878 # to be the way of modern systems, but it's conceivable.)
15880 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15881 # to get POSIX threads support; the API is always present and
15882 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15883 # -pthread does define _REENTRANT, and while the Darwin headers
15884 # ignore this macro, third-party headers might not.)
15886 # However, older versions of Clang make a point of warning the user
15887 # that, in an invocation where only linking and no compilation is
15888 # taking place, the -pthread option has no effect ("argument unused
15889 # during compilation"). They expect -pthread to be passed in only
15890 # when source code is being compiled.
15892 # Problem is, this is at odds with the way Automake and most other
15893 # C build frameworks function, which is that the same flags used in
15894 # compilation (CFLAGS) are also used in linking. Many systems
15895 # supported by AX_PTHREAD require exactly this for POSIX threads
15896 # support, and in fact it is often not straightforward to specify a
15897 # flag that is used only in the compilation phase and not in
15898 # linking. Such a scenario is extremely rare in practice.
15900 # Even though use of the -pthread flag in linking would only print
15901 # a warning, this can be a nuisance for well-run software projects
15902 # that build with -Werror. So if the active version of Clang has
15903 # this misfeature, we search for an option to squash it.
15905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
15906 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
15907 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
15909 printf %s "(cached) " >&6
15911 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
15912 # Create an alternate version of $ac_link that compiles and
15913 # links in two steps (.c -> .o, .o -> exe) instead of one
15914 # (.c -> exe), because the warning occurs only in the second
15916 ax_pthread_save_ac_link="$ac_link"
15917 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
15918 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
15919 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
15920 ax_pthread_save_CFLAGS="$CFLAGS"
15921 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
15922 if test "x$ax_pthread_try" = "xunknown"
15926 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
15927 ac_link="$ax_pthread_save_ac_link"
15928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15929 /* end confdefs.h. */
15930 int main(void){return 0;}
15932 if ac_fn_c_try_link "$LINENO"
15934 ac_link="$ax_pthread_2step_ac_link"
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15937 int main(void){return 0;}
15939 if ac_fn_c_try_link "$LINENO"
15943 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15944 conftest$ac_exeext conftest.$ac_ext
15947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15948 conftest$ac_exeext conftest.$ac_ext
15950 ac_link="$ax_pthread_save_ac_link"
15951 CFLAGS="$ax_pthread_save_CFLAGS"
15952 if test "x$ax_pthread_try" = "x"
15956 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
15959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
15960 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
15962 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
15964 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
15967 fi # $ax_pthread_clang = yes
15971 # Various other checks:
15972 if test "x$ax_pthread_ok" = "xyes"; then
15973 ax_pthread_save_CFLAGS="$CFLAGS"
15974 ax_pthread_save_LIBS="$LIBS"
15975 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15976 LIBS="$PTHREAD_LIBS $LIBS"
15978 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15980 printf %s "checking for joinable pthread attribute... " >&6; }
15981 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
15983 printf %s "(cached) " >&6
15985 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
15986 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15989 #include <pthread.h>
15993 int attr = $ax_pthread_attr; return attr /* ; */
15998 if ac_fn_c_try_link "$LINENO"
16000 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
16002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16003 conftest$ac_exeext conftest.$ac_ext
16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16008 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16009 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16010 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16011 test "x$ax_pthread_joinable_attr_defined" != "xyes"
16014 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
16016 ax_pthread_joinable_attr_defined=yes
16020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16021 printf %s "checking whether more special flags are required for pthreads... " >&6; }
16022 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
16024 printf %s "(cached) " >&6
16026 ax_cv_PTHREAD_SPECIAL_FLAGS=no
16029 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16035 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16036 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16037 test "x$ax_pthread_special_flags_added" != "xyes"
16039 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16040 ax_pthread_special_flags_added=yes
16043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16044 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16045 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
16047 printf %s "(cached) " >&6
16049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16050 /* end confdefs.h. */
16051 #include <pthread.h>
16055 int i = PTHREAD_PRIO_INHERIT;
16061 if ac_fn_c_try_link "$LINENO"
16063 ax_cv_PTHREAD_PRIO_INHERIT=yes
16065 ax_cv_PTHREAD_PRIO_INHERIT=no
16067 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16068 conftest$ac_exeext conftest.$ac_ext
16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16072 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16073 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16074 test "x$ax_pthread_prio_inherit_defined" != "xyes"
16077 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16079 ax_pthread_prio_inherit_defined=yes
16083 CFLAGS="$ax_pthread_save_CFLAGS"
16084 LIBS="$ax_pthread_save_LIBS"
16086 # More AIX lossage: compile with *_r variant
16087 if test "x$GCC" != "xyes"; then
16091 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16092 #handle absolute path differently from PATH based program lookup
16096 if as_fn_executable_p ${CC}_r
16098 PTHREAD_CC="${CC}_r"
16100 if test "x${CXX}" != "x"
16102 if as_fn_executable_p ${CXX}_r
16104 PTHREAD_CXX="${CXX}_r"
16110 for ac_prog in ${CC}_r
16112 # Extract the first word of "$ac_prog", so it can be a program name with args.
16113 set dummy $ac_prog; ac_word=$2
16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 printf %s "checking for $ac_word... " >&6; }
16116 if test ${ac_cv_prog_PTHREAD_CC+y}
16118 printf %s "(cached) " >&6
16120 if test -n "$PTHREAD_CC"; then
16121 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16124 for as_dir in $PATH
16127 case $as_dir in #(((
16130 *) as_dir=$as_dir/ ;;
16132 for ac_exec_ext in '' $ac_executable_extensions; do
16133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16134 ac_cv_prog_PTHREAD_CC="$ac_prog"
16135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16144 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16145 if test -n "$PTHREAD_CC"; then
16146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16147 printf "%s\n" "$PTHREAD_CC" >&6; }
16149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150 printf "%s\n" "no" >&6; }
16154 test -n "$PTHREAD_CC" && break
16156 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16158 if test "x${CXX}" != "x"
16160 for ac_prog in ${CXX}_r
16162 # Extract the first word of "$ac_prog", so it can be a program name with args.
16163 set dummy $ac_prog; ac_word=$2
16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16165 printf %s "checking for $ac_word... " >&6; }
16166 if test ${ac_cv_prog_PTHREAD_CXX+y}
16168 printf %s "(cached) " >&6
16170 if test -n "$PTHREAD_CXX"; then
16171 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
16173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16174 for as_dir in $PATH
16177 case $as_dir in #(((
16180 *) as_dir=$as_dir/ ;;
16182 for ac_exec_ext in '' $ac_executable_extensions; do
16183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16184 ac_cv_prog_PTHREAD_CXX="$ac_prog"
16185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16194 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
16195 if test -n "$PTHREAD_CXX"; then
16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
16197 printf "%s\n" "$PTHREAD_CXX" >&6; }
16199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16200 printf "%s\n" "no" >&6; }
16204 test -n "$PTHREAD_CXX" && break
16206 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
16221 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16222 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
16229 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16230 if test "x$ax_pthread_ok" = "xyes"; then
16238 ac_cpp='$CPP $CPPFLAGS'
16239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16245 # Check for Python and docwriter
16246 PYTHON_MIN_VERSION=3.5
16251 for ac_prog in python3 python
16253 # Extract the first word of "$ac_prog", so it can be a program name with args.
16254 set dummy $ac_prog; ac_word=$2
16255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16256 printf %s "checking for $ac_word... " >&6; }
16257 if test ${ac_cv_prog_PYTHON+y}
16259 printf %s "(cached) " >&6
16261 if test -n "$PYTHON"; then
16262 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
16264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16265 for as_dir in $PATH
16268 case $as_dir in #(((
16271 *) as_dir=$as_dir/ ;;
16273 for ac_exec_ext in '' $ac_executable_extensions; do
16274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16275 ac_cv_prog_PYTHON="$ac_prog"
16276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16285 PYTHON=$ac_cv_prog_PYTHON
16286 if test -n "$PYTHON"; then
16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
16288 printf "%s\n" "$PYTHON" >&6; }
16290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16291 printf "%s\n" "no" >&6; }
16295 test -n "$PYTHON" && break
16297 test -n "$PYTHON" || PYTHON="missing"
16299 if test "x$PYTHON" != "xmissing"; then
16304 if test -n "$PYTHON"
16307 ax_python_version="$PYTHON_MIN_VERSION"
16309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python version" >&5
16310 printf %s "checking for python version... " >&6; }
16312 python_version=`$PYTHON -V 2>&1 | $GREP "^Python " | $SED -e 's/^.* \([0-9]*\.[0-9]*\.[0-9]*\)/\1/'`
16314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $python_version" >&5
16315 printf "%s\n" "$python_version" >&6; }
16317 PYTHON_VERSION=$python_version
16323 # Used to indicate true or false condition
16324 ax_compare_version=false
16326 # Convert the two version strings to be compared into a format that
16327 # allows a simple string comparison. The end result is that a version
16328 # string of the form 1.12.5-r617 will be converted to the form
16329 # 0001001200050617. In other words, each number is zero padded to four
16330 # digits, and non digits are removed.
16332 ax_compare_version_A=`echo "$ax_python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16333 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16334 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16335 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16339 ax_compare_version_B=`echo "$python_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
16340 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
16341 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
16342 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
16346 ax_compare_version=`echo "x$ax_compare_version_A
16347 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
16351 if test "$ax_compare_version" = "true" ; then
16365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find the python interpreter" >&5
16366 printf "%s\n" "$as_me: WARNING: could not find the python interpreter" >&2;}
16372 if test "x$have_py3" = "xyes"; then
16373 PIP="$PYTHON -m $PIP"
16374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \`docwriter' Python module" >&5
16375 printf %s "checking for \`docwriter' Python module... " >&6; }
16376 $PYTHON -m docwriter -h > /dev/null 2>&1
16377 if test "x$?" = "x0"; then
16379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16380 printf "%s\n" "yes" >&6; }
16382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16383 printf "%s\n" "no" >&6; }
16389 # entries in Requires.private are separated by commas
16390 PKGCONFIG_REQUIRES_PRIVATE="$zlib_reqpriv, \
16393 $harfbuzz_reqpriv, \
16396 PKGCONFIG_REQUIRES_PRIVATE=`echo "$PKGCONFIG_REQUIRES_PRIVATE" \
16397 | sed -e 's/^ *//' \
16405 PKGCONFIG_LIBS_PRIVATE="$zlib_libspriv \
16408 $harfbuzz_libspriv \
16412 PKGCONFIG_LIBS_PRIVATE=`echo "$PKGCONFIG_LIBS_PRIVATE" \
16413 | sed -e 's/^ *//' \
16417 LIBSSTATIC_CONFIG="-lfreetype \
16418 $zlib_libsstaticconf \
16419 $bzip2_libsstaticconf \
16420 $libpng_libsstaticconf \
16421 $harfbuzz_libsstaticconf \
16422 $brotli_libsstaticconf \
16424 # remove -L/usr/lib and -L/usr/lib64 since `freetype-config' adds them later
16425 # on if necessary; also beautify
16426 LIBSSTATIC_CONFIG=`echo "$LIBSSTATIC_CONFIG" \
16427 | sed -e 's|-L */usr/lib64/* | |g' \
16428 -e 's|-L */usr/lib/* | |g' \
16433 # If FreeType gets installed with `--disable-shared', don't use
16434 # 'private' fields. `pkg-config' only looks into `.pc' files and is
16435 # completely agnostic to whether shared libraries are actually present
16436 # or not. As a consequence, the user had to specify `--static' while
16437 # calling `pkg-config', which configure scripts are normally not
16440 PKGCONFIG_REQUIRES=
16441 PKGCONFIG_LIBS='-L${libdir} -lfreetype'
16443 if test $enable_shared = "no"; then
16444 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES $PKGCONFIG_REQUIRES_PRIVATE"
16445 PKGCONFIG_REQUIRES_PRIVATE=
16446 PKGCONFIG_LIBS="$PKGCONFIG_LIBS $PKGCONFIG_LIBS_PRIVATE"
16447 PKGCONFIG_LIBS_PRIVATE=
16462 # changing LDFLAGS value should only be done after
16463 # lt_cv_prog_compiler_static_works test
16467 regexp="-e \\\"s|.*#.*def.*$1.*|#define $1|\\\""
16468 FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
16473 regexp="-e \\\"s|.*#.*def.*$1.*|/* #undef $1 */|\\\""
16474 FTOPTION_H_SED="$FTOPTION_H_SED $regexp"
16477 if test "$have_zlib" != no; then
16478 CFLAGS="$CFLAGS $ZLIB_CFLAGS"
16479 LDFLAGS="$LDFLAGS $ZLIB_LIBS"
16480 ftoption_set FT_CONFIG_OPTION_SYSTEM_ZLIB
16482 ftoption_unset FT_CONFIG_OPTION_SYSTEM_ZLIB
16484 if test "$have_bzip2" != no; then
16485 CFLAGS="$CFLAGS $BZIP2_CFLAGS"
16486 LDFLAGS="$LDFLAGS $BZIP2_LIBS"
16487 ftoption_set FT_CONFIG_OPTION_USE_BZIP2
16489 ftoption_unset FT_CONFIG_OPTION_USE_BZIP2
16491 if test "$have_libpng" != no; then
16492 CFLAGS="$CFLAGS $LIBPNG_CFLAGS"
16493 LDFLAGS="$LDFLAGS $LIBPNG_LIBS"
16494 ftoption_set FT_CONFIG_OPTION_USE_PNG
16496 ftoption_unset FT_CONFIG_OPTION_USE_PNG
16498 if test "$have_harfbuzz" != no; then
16499 CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS"
16500 LDFLAGS="$LDFLAGS $HARFBUZZ_LIBS"
16501 ftoption_set FT_CONFIG_OPTION_USE_HARFBUZZ
16503 ftoption_unset FT_CONFIG_OPTION_USE_HARFBUZZ
16505 if test "$have_brotli" != no; then
16506 CFLAGS="$CFLAGS $BROTLI_CFLAGS"
16507 LDFLAGS="$LDFLAGS $BROTLI_LIBS"
16508 ftoption_set FT_CONFIG_OPTION_USE_BROTLI
16510 ftoption_unset FT_CONFIG_OPTION_USE_BROTLI
16513 if test "$have_pthread" != no; then
16514 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16515 LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS $PTHREAD_LIBS"
16521 # We don't want to use a template file for `ftoption.h', since compilation
16522 # should work without calling a configure script also. For this reason, we
16523 # copy the `include/freetype/config/ftoption.h' file to the `unix/builds'
16524 # directory (using a dummy `AC_CONFIG_FILES' call) and apply the just
16525 # constructed $FTOPTION_H_SED regexp (using the post-action of
16526 # `AC_CONFIG_FILES'); this is also the version that gets installed later on.
16528 ac_config_files="$ac_config_files ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h"
16531 ac_config_headers="$ac_config_headers ftconfig.h"
16534 # create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
16535 # and `builds/unix/unix-cc.mk' that will be used by the build system
16537 ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in"
16540 cat >confcache <<\_ACEOF
16541 # This file is a shell script that caches the results of configure
16542 # tests run on this system so they can be shared between configure
16543 # scripts and configure runs, see configure's option --config-cache.
16544 # It is not useful on other systems. If it contains results you don't
16545 # want to keep, you may remove or edit it.
16547 # config.status only pays attention to the cache file if you give it
16548 # the --recheck option to rerun configure.
16550 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16551 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16552 # following values.
16556 # The following way of writing the cache mishandles newlines in values,
16557 # but we know of no workaround that is simple, portable, and efficient.
16558 # So, we kill variables containing newlines.
16559 # Ultrix sh set writes to stderr and can't be redirected directly,
16560 # and sets the high bit in the cache file unless we assign to the vars.
16562 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16563 eval ac_val=\$$ac_var
16567 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16568 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16571 _ | IFS | as_nl) ;; #(
16572 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16573 *) { eval $ac_var=; unset $ac_var;} ;;
16579 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16580 *${as_nl}ac_space=\ *)
16581 # `set' does not quote correctly, so add quotes: double-quote
16582 # substitution turns \\\\ into \\, and sed turns \\ into \.
16585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16588 # `set' quotes correctly as required by POSIX, so do not add quotes.
16589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16598 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16600 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16602 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16603 if test -w "$cache_file"; then
16604 if test "x$cache_file" != "x/dev/null"; then
16605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16606 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16607 if test ! -f "$cache_file" || test -h "$cache_file"; then
16608 cat confcache >"$cache_file"
16610 case $cache_file in #(
16612 mv -f confcache "$cache_file"$$ &&
16613 mv -f "$cache_file"$$ "$cache_file" ;; #(
16615 mv -f confcache "$cache_file" ;;
16620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16621 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16626 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16627 # Let make expand exec_prefix.
16628 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16630 DEFS=-DHAVE_CONFIG_H
16635 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16636 # 1. Remove the extension, and $U if already installed.
16637 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16638 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16639 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16640 # will be set to the directory where LIBOBJS objects are built.
16641 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16642 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16644 LIBOBJS=$ac_libobjs
16646 LTLIBOBJS=$ac_ltlibobjs
16650 : "${CONFIG_STATUS=./config.status}"
16652 ac_clean_files_save=$ac_clean_files
16653 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16655 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16657 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16659 # Generated by $as_me.
16660 # Run this file to recreate the current configuration.
16661 # Compiler output produced by configure, useful for debugging
16662 # configure, is in config.log if it exists.
16665 ac_cs_recheck=false
16668 SHELL=\${CONFIG_SHELL-$SHELL}
16671 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16672 ## -------------------- ##
16673 ## M4sh Initialization. ##
16674 ## -------------------- ##
16676 # Be more Bourne compatible
16677 DUALCASE=1; export DUALCASE # for MKS sh
16679 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16683 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16684 # is contrary to our usage. Disable this feature.
16685 alias -g '${1+"$@"}'='"$@"'
16686 setopt NO_GLOB_SUBST
16688 case `(set -o) 2>/dev/null` in #(
16698 # Reset variables that may have inherited troublesome values from
16701 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16702 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16703 # side effect of setting IFS to empty, thus disabling word splitting.)
16704 # Quoting is to prevent editors from complaining about space-tab.
16714 # Ensure predictable behavior from utilities with locale-dependent output.
16720 # We cannot yet rely on "unset" to work, but we need these variables
16721 # to be unset--not just set to an empty or harmless value--now, to
16722 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16723 # also avoids known problems related to "unset" and subshell syntax
16724 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16725 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16726 do eval test \${$as_var+y} \
16727 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16730 # Ensure that fds 0, 1, and 2 are open.
16731 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16732 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16733 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16735 # The user is always right.
16736 if ${PATH_SEPARATOR+false} :; then
16738 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16739 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16745 # Find who we are. Look in the path if we contain no directory separator.
16748 *[\\/]* ) as_myself=$0 ;;
16749 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16750 for as_dir in $PATH
16753 case $as_dir in #(((
16756 *) as_dir=$as_dir/ ;;
16758 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16764 # We did not find ourselves, most probably we were run as `sh COMMAND'
16765 # in which case we are not to be found in the path.
16766 if test "x$as_myself" = x; then
16769 if test ! -f "$as_myself"; then
16770 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16776 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16777 # ----------------------------------------
16778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16780 # script with STATUS, using 1 if that was 0.
16783 as_status=$1; test $as_status -eq 0 && as_status=1
16785 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16788 printf "%s\n" "$as_me: error: $2" >&2
16789 as_fn_exit $as_status
16794 # as_fn_set_status STATUS
16795 # -----------------------
16796 # Set $? to STATUS, without forking.
16797 as_fn_set_status ()
16800 } # as_fn_set_status
16802 # as_fn_exit STATUS
16803 # -----------------
16804 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16808 as_fn_set_status $1
16814 # Portably unset VAR.
16817 { eval $1=; unset $1;}
16819 as_unset=as_fn_unset
16821 # as_fn_append VAR VALUE
16822 # ----------------------
16823 # Append the text in VALUE to the end of the definition contained in VAR. Take
16824 # advantage of any shell optimizations that allow amortized linear growth over
16825 # repeated appends, instead of the typical quadratic growth present in naive
16827 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16829 eval 'as_fn_append ()
16840 # as_fn_arith ARG...
16841 # ------------------
16842 # Perform arithmetic evaluation on the ARGs, and store the result in the
16843 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16844 # must be portable across $(()) and expr.
16845 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16847 eval 'as_fn_arith ()
16854 as_val=`expr "$@" || test $? -eq 1`
16859 if expr a : '\(a\)' >/dev/null 2>&1 &&
16860 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16866 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16867 as_basename=basename
16872 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16878 as_me=`$as_basename -- "$0" ||
16879 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16880 X"$0" : 'X\(//\)$' \| \
16881 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16882 printf "%s\n" X/"$0" |
16883 sed '/^.*\/\([^/][^/]*\)\/*$/{
16897 # Avoid depending upon Character Ranges.
16898 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16899 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16900 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16901 as_cr_digits='0123456789'
16902 as_cr_alnum=$as_cr_Letters$as_cr_digits
16905 # Determine whether it's possible to make 'echo' print without a newline.
16906 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16907 # for compatibility with existing Makefiles.
16908 ECHO_C= ECHO_N= ECHO_T=
16909 case `echo -n x` in #(((((
16911 case `echo 'xy\c'` in
16912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16914 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16921 # For backward compatibility with old third-party macros, we provide
16922 # the shell variables $as_echo and $as_echo_n. New code should use
16923 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16924 as_echo='printf %s\n'
16925 as_echo_n='printf %s'
16927 rm -f conf$$ conf$$.exe conf$$.file
16928 if test -d conf$$.dir; then
16929 rm -f conf$$.dir/conf$$.file
16932 mkdir conf$$.dir 2>/dev/null
16934 if (echo >conf$$.file) 2>/dev/null; then
16935 if ln -s conf$$.file conf$$ 2>/dev/null; then
16937 # ... but there are two gotchas:
16938 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16939 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16940 # In both cases, we have to default to `cp -pR'.
16941 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16943 elif ln conf$$.file conf$$ 2>/dev/null; then
16951 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16952 rmdir conf$$.dir 2>/dev/null
16957 # Create "$as_dir" as a directory, including parents if necessary.
16962 -*) as_dir=./$as_dir;;
16964 test -d "$as_dir" || eval $as_mkdir_p || {
16968 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16969 *) as_qdir=$as_dir;;
16971 as_dirs="'$as_qdir' $as_dirs"
16972 as_dir=`$as_dirname -- "$as_dir" ||
16973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16974 X"$as_dir" : 'X\(//\)[^/]' \| \
16975 X"$as_dir" : 'X\(//\)$' \| \
16976 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16977 printf "%s\n" X"$as_dir" |
16978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16982 /^X\(\/\/\)[^/].*/{
16995 test -d "$as_dir" && break
16997 test -z "$as_dirs" || eval "mkdir $as_dirs"
16998 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17002 if mkdir -p . 2>/dev/null; then
17003 as_mkdir_p='mkdir -p "$as_dir"'
17005 test -d ./-p && rmdir ./-p
17010 # as_fn_executable_p FILE
17011 # -----------------------
17012 # Test if FILE is an executable regular file.
17013 as_fn_executable_p ()
17015 test -f "$1" && test -x "$1"
17016 } # as_fn_executable_p
17017 as_test_x='test -x'
17018 as_executable_p=as_fn_executable_p
17020 # Sed expression to map a string onto a valid CPP name.
17021 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17023 # Sed expression to map a string onto a valid variable name.
17024 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17028 ## ----------------------------------- ##
17029 ## Main body of $CONFIG_STATUS script. ##
17030 ## ----------------------------------- ##
17032 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17035 # Save the log message, to keep $0 and so on meaningful, and to
17036 # report actual input values of CONFIG_FILES etc. instead of their
17037 # values after options handling.
17039 This file was extended by FreeType $as_me 2.13.2, which was
17040 generated by GNU Autoconf 2.71. Invocation command line was
17042 CONFIG_FILES = $CONFIG_FILES
17043 CONFIG_HEADERS = $CONFIG_HEADERS
17044 CONFIG_LINKS = $CONFIG_LINKS
17045 CONFIG_COMMANDS = $CONFIG_COMMANDS
17048 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17053 case $ac_config_files in *"
17054 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17057 case $ac_config_headers in *"
17058 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17063 # Files that config.status was made for.
17064 config_files="$ac_config_files"
17065 config_headers="$ac_config_headers"
17066 config_commands="$ac_config_commands"
17070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17072 \`$as_me' instantiates files and other configuration actions
17073 from templates according to the current configuration. Unless the files
17074 and actions are specified as TAGs, all are instantiated by default.
17076 Usage: $0 [OPTION]... [TAG]...
17078 -h, --help print this help, then exit
17079 -V, --version print version number and configuration settings, then exit
17080 --config print configuration, then exit
17081 -q, --quiet, --silent
17082 do not print progress messages
17083 -d, --debug don't remove temporary files
17084 --recheck update $as_me by reconfiguring in the same conditions
17085 --file=FILE[:TEMPLATE]
17086 instantiate the configuration file FILE
17087 --header=FILE[:TEMPLATE]
17088 instantiate the configuration header FILE
17090 Configuration files:
17093 Configuration headers:
17096 Configuration commands:
17099 Report bugs to <freetype@nongnu.org>."
17102 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17103 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
17104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17105 ac_cs_config='$ac_cs_config_escaped'
17107 FreeType config.status 2.13.2
17108 configured by $0, generated by GNU Autoconf 2.71,
17109 with options \\"\$ac_cs_config\\"
17111 Copyright (C) 2021 Free Software Foundation, Inc.
17112 This config.status script is free software; the Free Software Foundation
17113 gives unlimited permission to copy, distribute and modify it."
17120 test -n "\$AWK" || AWK=awk
17123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17124 # The default lists apply if the user does not specify any file.
17130 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17131 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17135 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17147 # Handling of the options.
17148 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17150 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17151 printf "%s\n" "$ac_cs_version"; exit ;;
17152 --config | --confi | --conf | --con | --co | --c )
17153 printf "%s\n" "$ac_cs_config"; exit ;;
17154 --debug | --debu | --deb | --de | --d | -d )
17156 --file | --fil | --fi | --f )
17159 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17160 '') as_fn_error $? "missing file argument" ;;
17162 as_fn_append CONFIG_FILES " '$ac_optarg'"
17163 ac_need_defaults=false;;
17164 --header | --heade | --head | --hea )
17167 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17169 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17170 ac_need_defaults=false;;
17172 # Conflict between --help and --header
17173 as_fn_error $? "ambiguous option: \`$1'
17174 Try \`$0 --help' for more information.";;
17175 --help | --hel | -h )
17176 printf "%s\n" "$ac_cs_usage"; exit ;;
17177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17178 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17181 # This is an error.
17182 -*) as_fn_error $? "unrecognized option: \`$1'
17183 Try \`$0 --help' for more information." ;;
17185 *) as_fn_append ac_config_targets " $1"
17186 ac_need_defaults=false ;;
17192 ac_configure_extra_args=
17194 if $ac_cs_silent; then
17196 ac_configure_extra_args="$ac_configure_extra_args --silent"
17200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17201 if \$ac_cs_recheck; then
17202 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17204 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
17205 CONFIG_SHELL='$SHELL'
17206 export CONFIG_SHELL
17211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17215 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17216 ## Running $as_me. ##
17218 printf "%s\n" "$ac_log"
17222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17228 # The HP-UX ksh and POSIX shell print the target directory to stdout
17229 # if CDPATH is set.
17230 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17232 sed_quote_subst='$sed_quote_subst'
17233 double_quote_subst='$double_quote_subst'
17234 delay_variable_subst='$delay_variable_subst'
17235 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17236 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17237 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17238 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17239 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17240 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17241 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17242 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17243 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17244 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17245 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17246 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17247 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17248 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17249 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17250 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17251 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17252 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17253 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17254 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17255 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17256 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17257 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17258 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17259 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17260 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17261 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17262 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17263 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17264 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17265 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17266 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17267 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17268 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17269 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17270 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17271 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17272 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
17273 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17274 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17275 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17276 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17277 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17278 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17279 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
17280 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17281 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17282 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17283 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17284 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17285 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17286 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17287 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17288 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17289 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17290 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17291 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17292 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17293 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17294 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17295 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17296 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"`'
17297 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17298 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17299 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17300 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17301 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17302 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17303 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17304 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17305 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17306 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17307 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17308 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17309 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17310 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17311 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17312 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17313 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17314 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17315 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17316 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17317 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17318 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17319 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17320 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17321 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17322 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17323 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17324 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17325 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17326 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17327 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17328 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17329 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17330 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17331 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17332 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17333 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17334 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17335 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17336 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17337 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17338 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17339 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17340 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17341 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17342 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17343 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17344 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17345 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17346 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17347 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17348 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17349 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17350 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17351 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17352 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17353 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17354 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17355 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17356 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17357 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17358 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17359 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17360 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17361 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17362 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17363 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17364 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17365 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17366 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17367 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17368 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17369 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17370 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17371 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17372 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17373 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
17374 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
17375 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
17376 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17377 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
17378 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
17379 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
17380 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
17381 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
17382 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
17383 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
17384 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
17385 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
17386 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17387 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17388 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
17389 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
17390 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
17391 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
17392 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17393 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
17394 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
17395 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
17396 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17397 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
17398 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
17399 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
17400 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
17401 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
17402 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
17403 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
17404 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
17405 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
17406 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
17407 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
17408 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
17409 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17410 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
17411 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17412 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
17413 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
17414 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
17417 LTCFLAGS='$LTCFLAGS'
17418 compiler='$compiler_DEFAULT'
17420 # A function that is used when there is no print builtin or printf.
17421 func_fallback_echo ()
17423 eval 'cat <<_LTECHO_EOF
17428 # Quote evaled strings.
17446 deplibs_check_method \
17450 sharedlib_from_linklib_cmd \
17452 archiver_list_spec \
17458 lt_cv_sys_global_symbol_pipe \
17459 lt_cv_sys_global_symbol_to_cdecl \
17460 lt_cv_sys_global_symbol_to_import \
17461 lt_cv_sys_global_symbol_to_c_name_address \
17462 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17463 lt_cv_nm_interface \
17464 nm_file_list_spec \
17465 lt_cv_truncate_bin \
17466 lt_prog_compiler_no_builtin_flag \
17467 lt_prog_compiler_pic \
17468 lt_prog_compiler_wl \
17469 lt_prog_compiler_static \
17470 lt_cv_prog_compiler_c_o \
17479 export_dynamic_flag_spec \
17480 whole_archive_flag_spec \
17481 compiler_needs_object \
17483 allow_undefined_flag \
17484 no_undefined_flag \
17485 hardcode_libdir_flag_spec \
17486 hardcode_libdir_separator \
17490 variables_saved_for_relink \
17492 library_names_spec \
17494 install_override_mode \
17501 lt_prog_compiler_no_builtin_flag_RC \
17502 lt_prog_compiler_pic_RC \
17503 lt_prog_compiler_wl_RC \
17504 lt_prog_compiler_static_RC \
17505 lt_cv_prog_compiler_c_o_RC \
17506 export_dynamic_flag_spec_RC \
17507 whole_archive_flag_spec_RC \
17508 compiler_needs_object_RC \
17510 allow_undefined_flag_RC \
17511 no_undefined_flag_RC \
17512 hardcode_libdir_flag_spec_RC \
17513 hardcode_libdir_separator_RC \
17514 exclude_expsyms_RC \
17515 include_expsyms_RC \
17516 file_list_spec_RC; do
17517 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17518 *[\\\\\\\`\\"\\\$]*)
17519 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17522 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17527 # Double-quote double-evaled strings.
17528 for var in reload_cmds \
17529 old_postinstall_cmds \
17530 old_postuninstall_cmds \
17532 extract_expsyms_cmds \
17533 old_archive_from_new_cmds \
17534 old_archive_from_expsyms_cmds \
17536 archive_expsym_cmds \
17538 module_expsym_cmds \
17539 export_symbols_cmds \
17543 postuninstall_cmds \
17545 sys_lib_search_path_spec \
17546 configure_time_dlsearch_path \
17547 configure_time_lt_sys_library_path \
17549 old_archive_cmds_RC \
17550 old_archive_from_new_cmds_RC \
17551 old_archive_from_expsyms_cmds_RC \
17553 archive_expsym_cmds_RC \
17555 module_expsym_cmds_RC \
17556 export_symbols_cmds_RC \
17558 postlink_cmds_RC; do
17559 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17560 *[\\\\\\\`\\"\\\$]*)
17561 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17564 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17569 ac_aux_dir='$ac_aux_dir'
17571 # See if we are running on zsh, and set the options that allow our
17572 # commands through without removal of \ escapes INIT.
17573 if test -n "\${ZSH_VERSION+set}"; then
17574 setopt NO_GLOB_SUBST
17587 FTOPTION_H_SED="$FTOPTION_H_SED"
17591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17593 # Handling of arguments.
17594 for ac_config_target in $ac_config_targets
17596 case $ac_config_target in
17597 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17598 "ftoption.h") CONFIG_FILES="$CONFIG_FILES ftoption.h:${srcdir}/../../include/freetype/config/ftoption.h" ;;
17599 "ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h" ;;
17600 "unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
17601 "unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
17603 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17608 # If the user did not use the arguments to specify the items to instantiate,
17609 # then the envvar interface is used. Set only those that are not.
17610 # We use the long form for the default assignment because of an extremely
17611 # bizarre bug on SunOS 4.1.3.
17612 if $ac_need_defaults; then
17613 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17614 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17615 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17618 # Have a temporary directory for convenience. Make it in the build tree
17619 # simply because there is no reason against having it here, and in addition,
17620 # creating and moving files from /tmp can sometimes cause problems.
17621 # Hook for its removal unless debugging.
17622 # Note that there is a small window in which the directory will not be cleaned:
17623 # after its creation but before its name has been assigned to `$tmp'.
17627 trap 'exit_status=$?
17628 : "${ac_tmp:=$tmp}"
17629 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17631 trap 'as_fn_exit 1' 1 2 13 15
17633 # Create a (secure) tmp directory for tmp files.
17636 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17640 tmp=./conf$$-$RANDOM
17641 (umask 077 && mkdir "$tmp")
17642 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17645 # Set up the scripts for CONFIG_FILES section.
17646 # No need to generate them if there are no CONFIG_FILES.
17647 # This happens for instance with `./config.status config.h'.
17648 if test -n "$CONFIG_FILES"; then
17651 ac_cr=`echo X | tr X '\015'`
17652 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17653 # But we know of no other shell where ac_cr would be empty at this
17654 # point, so we can use a bashism as a fallback.
17655 if test "x$ac_cr" = x; then
17656 eval ac_cr=\$\'\\r\'
17658 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17659 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17662 ac_cs_awk_cr=$ac_cr
17665 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17670 echo "cat >conf$$subs.awk <<_ACEOF" &&
17671 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17673 } >conf$$subs.sh ||
17674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17675 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17677 for ac_last_try in false false false false false :; do
17678 . ./conf$$subs.sh ||
17679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17681 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17682 if test $ac_delim_n = $ac_delim_num; then
17684 elif $ac_last_try; then
17685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17690 rm -f conf$$subs.sh
17692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17693 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17697 s/^/S["/; s/!.*/"]=/
17707 s/\(.\{148\}\)..*/\1/
17709 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17714 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17721 s/\(.\{148\}\)..*/\1/
17723 s/["\\]/\\&/g; s/^/"/; s/$/"/
17727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17732 ' <conf$$subs.awk | sed '
17737 ' >>$CONFIG_STATUS || ac_write_fail=1
17738 rm -f conf$$subs.awk
17739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17741 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17742 for (key in S) S_is_set[key] = 1
17748 nfields = split(line, field, "@")
17750 len = length(field[1])
17751 for (i = 2; i < nfields; i++) {
17753 keylen = length(key)
17754 if (S_is_set[key]) {
17756 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17757 len += length(value) + length(field[++i])
17768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17769 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17770 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17773 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17774 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17777 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17778 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17779 # trailing colons and then remove the whole line if VPATH becomes empty
17780 # (actually we leave an empty line to preserve line numbers).
17781 if test "x$srcdir" = x.; then
17782 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17801 fi # test -n "$CONFIG_FILES"
17803 # Set up the scripts for CONFIG_HEADERS section.
17804 # No need to generate them if there are no CONFIG_HEADERS.
17805 # This happens for instance with `./config.status Makefile'.
17806 if test -n "$CONFIG_HEADERS"; then
17807 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17811 # Transform confdefs.h into an awk script `defines.awk', embedded as
17812 # here-document in config.status, that substitutes the proper values into
17813 # config.h.in to produce config.h.
17815 # Create a delimiter string that does not exist in confdefs.h, to ease
17816 # handling of long lines.
17818 for ac_last_try in false false :; do
17819 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17820 if test -z "$ac_tt"; then
17822 elif $ac_last_try; then
17823 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17829 # For the awk script, D is an array of macro values keyed by name,
17830 # likewise P contains macro parameters if any. Preserve backslash
17831 # newline sequences.
17833 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17835 s/.\{148\}/&'"$ac_delim"'/g
17838 s/^[ ]*#[ ]*define[ ][ ]*/ /
17845 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17847 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17851 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17852 D["\1"]=" \3\\\\\\n"\\/p
17854 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17859 s/.\{148\}/&'"$ac_delim"'/g
17864 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17867 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17869 ' <confdefs.h | sed '
17870 s/'"$ac_delim"'/"\\\
17871 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17874 for (key in D) D_is_set[key] = 1
17877 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17879 split(line, arg, " ")
17880 if (arg[1] == "#") {
17884 defundef = substr(arg[1], 2)
17887 split(mac1, mac2, "(") #)
17889 prefix = substr(line, 1, index(line, defundef) - 1)
17890 if (D_is_set[macro]) {
17891 # Preserve the white space surrounding the "#".
17892 print prefix "define", macro P[macro] D[macro]
17895 # Replace #undef with comments. This is necessary, for example,
17896 # in the case of _POSIX_SOURCE, which is predefined and required
17897 # on some systems where configure will not decide to define it.
17898 if (defundef == "undef") {
17899 print "/*", prefix defundef, macro, "*/"
17907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17908 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17909 fi # test -n "$CONFIG_HEADERS"
17912 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17917 :[FHLC]) ac_mode=$ac_tag; continue;;
17919 case $ac_mode$ac_tag in
17921 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17922 :[FH]-) ac_tag=-:-;;
17923 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17940 -) ac_f="$ac_tmp/stdin";;
17941 *) # Look for the file first in the build tree, then in the source tree
17942 # (if the path is not absolute). The absolute path cannot be DOS-style,
17943 # because $ac_f cannot contain `:'.
17947 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17949 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17951 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17952 as_fn_append ac_file_inputs " '$ac_f'"
17955 # Let's still pretend it is `configure' which instantiates (i.e., don't
17956 # use $as_me), people would be surprised to read:
17957 # /* config.h. Generated by config.status. */
17958 configure_input='Generated from '`
17959 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17961 if test x"$ac_file" != x-; then
17962 configure_input="$ac_file. $configure_input"
17963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17964 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17966 # Neutralize special characters interpreted by sed in replacement strings.
17967 case $configure_input in #(
17968 *\&* | *\|* | *\\* )
17969 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17970 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17971 *) ac_sed_conf_input=$configure_input;;
17975 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17981 ac_dir=`$as_dirname -- "$ac_file" ||
17982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17983 X"$ac_file" : 'X\(//\)[^/]' \| \
17984 X"$ac_file" : 'X\(//\)$' \| \
17985 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17986 printf "%s\n" X"$ac_file" |
17987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17991 /^X\(\/\/\)[^/].*/{
18004 as_dir="$ac_dir"; as_fn_mkdir_p
18008 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18010 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
18011 # A ".." for each directory in $ac_dir_suffix.
18012 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18013 case $ac_top_builddir_sub in
18014 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18015 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18018 ac_abs_top_builddir=$ac_pwd
18019 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18020 # for backward compatibility:
18021 ac_top_builddir=$ac_top_build_prefix
18024 .) # We are building in place.
18026 ac_top_srcdir=$ac_top_builddir_sub
18027 ac_abs_top_srcdir=$ac_pwd ;;
18028 [\\/]* | ?:[\\/]* ) # Absolute name.
18029 ac_srcdir=$srcdir$ac_dir_suffix;
18030 ac_top_srcdir=$srcdir
18031 ac_abs_top_srcdir=$srcdir ;;
18032 *) # Relative name.
18033 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18034 ac_top_srcdir=$ac_top_build_prefix$srcdir
18035 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18037 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18047 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18048 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18050 ac_MKDIR_P=$MKDIR_P
18052 [\\/$]* | ?:[\\/]* ) ;;
18053 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18058 # If the template does not know about datarootdir, expand it.
18059 # FIXME: This hack should be removed a few years after 2.60.
18060 ac_datarootdir_hack=; ac_datarootdir_seen=
18071 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18072 *datarootdir*) ac_datarootdir_seen=yes;;
18073 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18075 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18078 ac_datarootdir_hack='
18079 s&@datadir@&$datadir&g
18080 s&@docdir@&$docdir&g
18081 s&@infodir@&$infodir&g
18082 s&@localedir@&$localedir&g
18083 s&@mandir@&$mandir&g
18084 s&\\\${datarootdir}&$datarootdir&g' ;;
18088 # Neutralize VPATH when `$srcdir' = `.'.
18089 # Shell code in configure.ac might set extrasub.
18090 # FIXME: do we really want to maintain this feature?
18091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18092 ac_sed_extra="$ac_vpsub
18095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18098 s|@configure_input@|$ac_sed_conf_input|;t t
18099 s&@top_builddir@&$ac_top_builddir_sub&;t t
18100 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18101 s&@srcdir@&$ac_srcdir&;t t
18102 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18103 s&@top_srcdir@&$ac_top_srcdir&;t t
18104 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18105 s&@builddir@&$ac_builddir&;t t
18106 s&@abs_builddir@&$ac_abs_builddir&;t t
18107 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18108 s&@INSTALL@&$ac_INSTALL&;t t
18109 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18110 $ac_datarootdir_hack
18112 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18113 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18115 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18116 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18117 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18118 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18120 which seems to be undefined. Please make sure it is defined" >&5
18121 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18122 which seems to be undefined. Please make sure it is defined" >&2;}
18124 rm -f "$ac_tmp/stdin"
18126 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18127 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18135 if test x"$ac_file" != x-; then
18137 printf "%s\n" "/* $configure_input */" >&1 \
18138 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18139 } >"$ac_tmp/config.h" \
18140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18141 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18143 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
18146 mv "$ac_tmp/config.h" "$ac_file" \
18147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18150 printf "%s\n" "/* $configure_input */" >&1 \
18151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18152 || as_fn_error $? "could not create -" "$LINENO" 5
18156 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18157 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
18162 case $ac_file$ac_mode in
18165 # See if we are running on zsh, and set the options that allow our
18166 # commands through without removal of \ escapes.
18167 if test -n "${ZSH_VERSION+set}"; then
18168 setopt NO_GLOB_SUBST
18172 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18175 cat <<_LT_EOF >> "$cfgfile"
18177 # Generated automatically by $as_me ($PACKAGE) $VERSION
18178 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18180 # Provide generalized library-building support services.
18181 # Written by Gordon Matzigkeit, 1996
18183 # Copyright (C) 2014 Free Software Foundation, Inc.
18184 # This is free software; see the source for copying conditions. There is NO
18185 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18187 # GNU Libtool is free software; you can redistribute it and/or modify
18188 # it under the terms of the GNU General Public License as published by
18189 # the Free Software Foundation; either version 2 of of the License, or
18190 # (at your option) any later version.
18192 # As a special exception to the GNU General Public License, if you
18193 # distribute this file as part of a program or library that is built
18194 # using GNU Libtool, you may include this file under the same
18195 # distribution terms that you use for the rest of that program.
18197 # GNU Libtool is distributed in the hope that it will be useful, but
18198 # WITHOUT ANY WARRANTY; without even the implied warranty of
18199 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18200 # GNU General Public License for more details.
18202 # You should have received a copy of the GNU General Public License
18203 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18206 # The names of the tagged configurations supported by this script.
18207 available_tags='RC '
18209 # Configured defaults for sys_lib_dlsearch_path munging.
18210 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18212 # ### BEGIN LIBTOOL CONFIG
18214 # Which release of libtool.m4 was used?
18215 macro_version=$macro_version
18216 macro_revision=$macro_revision
18218 # Assembler program.
18221 # DLL creation program.
18222 DLLTOOL=$lt_DLLTOOL
18224 # Object dumper program.
18225 OBJDUMP=$lt_OBJDUMP
18227 # Whether or not to build shared libraries.
18228 build_libtool_libs=$enable_shared
18230 # Whether or not to build static libraries.
18231 build_old_libs=$enable_static
18233 # What type of objects to build.
18236 # Whether or not to optimize for fast installation.
18237 fast_install=$enable_fast_install
18239 # Shared archive member basename,for filename based shared library versioning on AIX.
18240 shared_archive_member_spec=$shared_archive_member_spec
18242 # Shell to use when invoking shell scripts.
18245 # An echo program that protects backslashes.
18248 # The PATH separator for the build system.
18249 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18252 host_alias=$host_alias
18256 # The build system.
18257 build_alias=$build_alias
18261 # A sed program that does not truncate output.
18264 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18265 Xsed="\$SED -e 1s/^X//"
18267 # A grep program that handles long lines.
18273 # A literal string matcher.
18276 # A BSD- or MS-compatible name lister.
18279 # Whether we need soft or hard links.
18282 # What is the maximum length of a command?
18283 max_cmd_len=$max_cmd_len
18285 # Object file suffix (normally "o").
18288 # Executable file suffix (normally "").
18291 # whether the shell understands "unset".
18294 # turn spaces into newlines.
18297 # turn newlines into spaces.
18300 # convert \$build file names to \$host format.
18301 to_host_file_cmd=$lt_cv_to_host_file_cmd
18303 # convert \$build files to toolchain format.
18304 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18306 # A file(cmd) program that detects file types.
18307 FILECMD=$lt_FILECMD
18309 # Method to check whether dependent libraries are shared objects.
18310 deplibs_check_method=$lt_deplibs_check_method
18312 # Command to use when deplibs_check_method = "file_magic".
18313 file_magic_cmd=$lt_file_magic_cmd
18315 # How to find potential files when deplibs_check_method = "file_magic".
18316 file_magic_glob=$lt_file_magic_glob
18318 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18319 want_nocaseglob=$lt_want_nocaseglob
18321 # Command to associate shared and link libraries.
18322 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18327 # Flags to create an archive (by configure).
18328 lt_ar_flags=$lt_ar_flags
18330 # Flags to create an archive.
18331 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
18333 # How to feed a file listing to the archiver.
18334 archiver_list_spec=$lt_archiver_list_spec
18336 # A symbol stripping program.
18339 # Commands used to install an old-style archive.
18341 old_postinstall_cmds=$lt_old_postinstall_cmds
18342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18344 # Whether to use a lock for old archive extraction.
18345 lock_old_archive_extraction=$lock_old_archive_extraction
18350 # LTCC compiler flags.
18351 LTCFLAGS=$lt_CFLAGS
18353 # Take the output of nm and produce a listing of raw symbols and C names.
18354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18356 # Transform the output of nm in a proper C declaration.
18357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18359 # Transform the output of nm into a list of symbols to manually relocate.
18360 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18362 # Transform the output of nm in a C name address pair.
18363 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18365 # Transform the output of nm in a C name address pair when lib prefix is needed.
18366 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18368 # The name lister interface.
18369 nm_interface=$lt_lt_cv_nm_interface
18371 # Specify filename containing input files for \$NM.
18372 nm_file_list_spec=$lt_nm_file_list_spec
18374 # The root where to search for dependent libraries,and where our libraries should be installed.
18375 lt_sysroot=$lt_sysroot
18377 # Command to truncate a binary pipe.
18378 lt_truncate_bin=$lt_lt_cv_truncate_bin
18380 # The name of the directory that contains temporary libtool files.
18383 # Used to examine libraries when file_magic_cmd begins with "file".
18384 MAGIC_CMD=$MAGIC_CMD
18386 # Must we lock files when doing compilation?
18387 need_locks=$lt_need_locks
18390 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18392 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18393 DSYMUTIL=$lt_DSYMUTIL
18395 # Tool to change global to local symbols on Mac OS X.
18398 # Tool to manipulate fat objects and archives on Mac OS X.
18401 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18404 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18405 OTOOL64=$lt_OTOOL64
18407 # Old archive suffix (normally "a").
18410 # Shared library suffix (normally ".so").
18411 shrext_cmds=$lt_shrext_cmds
18413 # The commands to extract the exported symbol list from a shared archive.
18414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18416 # Variables whose values should be saved in libtool wrapper scripts and
18417 # restored at link time.
18418 variables_saved_for_relink=$lt_variables_saved_for_relink
18420 # Do we need the "lib" prefix for modules?
18421 need_lib_prefix=$need_lib_prefix
18423 # Do we need a version for libraries?
18424 need_version=$need_version
18426 # Library versioning type.
18427 version_type=$version_type
18429 # Shared library runtime path variable.
18430 runpath_var=$runpath_var
18432 # Shared library path variable.
18433 shlibpath_var=$shlibpath_var
18435 # Is shlibpath searched before the hard-coded library search path?
18436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18438 # Format of library name prefix.
18439 libname_spec=$lt_libname_spec
18441 # List of archive names. First name is the real one, the rest are links.
18442 # The last name is the one that the linker finds with -lNAME
18443 library_names_spec=$lt_library_names_spec
18445 # The coded name of the library, if different from the real name.
18446 soname_spec=$lt_soname_spec
18448 # Permission mode override for installation of shared libraries.
18449 install_override_mode=$lt_install_override_mode
18451 # Command to use after installation of a shared archive.
18452 postinstall_cmds=$lt_postinstall_cmds
18454 # Command to use after uninstallation of a shared archive.
18455 postuninstall_cmds=$lt_postuninstall_cmds
18457 # Commands used to finish a libtool library installation in a directory.
18458 finish_cmds=$lt_finish_cmds
18460 # As "finish_cmds", except a single script fragment to be evaled but
18462 finish_eval=$lt_finish_eval
18464 # Whether we should hardcode library paths into libraries.
18465 hardcode_into_libs=$hardcode_into_libs
18467 # Compile-time system search path for libraries.
18468 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18470 # Detected run-time system search path for libraries.
18471 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18473 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18474 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18476 # Whether dlopen is supported.
18477 dlopen_support=$enable_dlopen
18479 # Whether dlopen of programs is supported.
18480 dlopen_self=$enable_dlopen_self
18482 # Whether dlopen of statically linked programs is supported.
18483 dlopen_self_static=$enable_dlopen_self_static
18485 # Commands to strip libraries.
18486 old_striplib=$lt_old_striplib
18487 striplib=$lt_striplib
18490 # The linker used to build libraries.
18493 # How to create reloadable object files.
18494 reload_flag=$lt_reload_flag
18495 reload_cmds=$lt_reload_cmds
18497 # Commands used to build an old-style archive.
18498 old_archive_cmds=$lt_old_archive_cmds
18500 # A language specific compiler.
18503 # Is the compiler the GNU compiler?
18506 # Compiler flag to turn off builtin functions.
18507 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18509 # Additional compiler flags for building library objects.
18510 pic_flag=$lt_lt_prog_compiler_pic
18512 # How to pass a linker flag through the compiler.
18513 wl=$lt_lt_prog_compiler_wl
18515 # Compiler flag to prevent dynamic linking.
18516 link_static_flag=$lt_lt_prog_compiler_static
18518 # Does compiler simultaneously support -c and -o options?
18519 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18521 # Whether or not to add -lc for building shared libraries.
18522 build_libtool_need_lc=$archive_cmds_need_lc
18524 # Whether or not to disallow shared libs when runtime libs are static.
18525 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18527 # Compiler flag to allow reflexive dlopens.
18528 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18530 # Compiler flag to generate shared objects directly from archives.
18531 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18533 # Whether the compiler copes with passing no objects directly.
18534 compiler_needs_object=$lt_compiler_needs_object
18536 # Create an old-style archive from a shared archive.
18537 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18539 # Create a temporary old-style archive to link instead of a shared archive.
18540 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18542 # Commands used to build a shared archive.
18543 archive_cmds=$lt_archive_cmds
18544 archive_expsym_cmds=$lt_archive_expsym_cmds
18546 # Commands used to build a loadable module if different from building
18547 # a shared archive.
18548 module_cmds=$lt_module_cmds
18549 module_expsym_cmds=$lt_module_expsym_cmds
18551 # Whether we are building with GNU ld or not.
18552 with_gnu_ld=$lt_with_gnu_ld
18554 # Flag that allows shared libraries with undefined symbols to be built.
18555 allow_undefined_flag=$lt_allow_undefined_flag
18557 # Flag that enforces no undefined symbols.
18558 no_undefined_flag=$lt_no_undefined_flag
18560 # Flag to hardcode \$libdir into a binary during linking.
18561 # This must work even if \$libdir does not exist
18562 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18564 # Whether we need a single "-rpath" flag with a separated argument.
18565 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18567 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18568 # DIR into the resulting binary.
18569 hardcode_direct=$hardcode_direct
18571 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18572 # DIR into the resulting binary and the resulting library dependency is
18573 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18574 # library is relocated.
18575 hardcode_direct_absolute=$hardcode_direct_absolute
18577 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18578 # into the resulting binary.
18579 hardcode_minus_L=$hardcode_minus_L
18581 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18582 # into the resulting binary.
18583 hardcode_shlibpath_var=$hardcode_shlibpath_var
18585 # Set to "yes" if building a shared library automatically hardcodes DIR
18586 # into the library and all subsequent libraries and executables linked
18588 hardcode_automatic=$hardcode_automatic
18590 # Set to yes if linker adds runtime paths of dependent libraries
18591 # to runtime path list.
18592 inherit_rpath=$inherit_rpath
18594 # Whether libtool must link a program against all its dependency libraries.
18595 link_all_deplibs=$link_all_deplibs
18597 # Set to "yes" if exported symbols are required.
18598 always_export_symbols=$always_export_symbols
18600 # The commands to list exported symbols.
18601 export_symbols_cmds=$lt_export_symbols_cmds
18603 # Symbols that should not be listed in the preloaded symbols.
18604 exclude_expsyms=$lt_exclude_expsyms
18606 # Symbols that must always be exported.
18607 include_expsyms=$lt_include_expsyms
18609 # Commands necessary for linking programs (against libraries) with templates.
18610 prelink_cmds=$lt_prelink_cmds
18612 # Commands necessary for finishing linking programs.
18613 postlink_cmds=$lt_postlink_cmds
18615 # Specify filename containing input files.
18616 file_list_spec=$lt_file_list_spec
18618 # How to hardcode a shared library path into an executable.
18619 hardcode_action=$hardcode_action
18621 # ### END LIBTOOL CONFIG
18625 cat <<'_LT_EOF' >> "$cfgfile"
18627 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18629 # func_munge_path_list VARIABLE PATH
18630 # -----------------------------------
18631 # VARIABLE is name of variable containing _space_ separated list of
18632 # directories to be munged by the contents of PATH, which is string
18635 # string "DIR[ DIR]" will be prepended to VARIABLE
18637 # string "DIR[ DIR]" will be appended to VARIABLE
18638 # "DIRP[:DIRP]::[DIRA:]DIRA"
18639 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18640 # "DIRA[ DIRA]" will be appended to VARIABLE
18642 # VARIABLE will be replaced by "DIR[ DIR]"
18643 func_munge_path_list ()
18649 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18652 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18655 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18656 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18659 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18665 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18666 func_cc_basename ()
18668 for cc_temp in $*""; do
18670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18676 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18680 # ### END FUNCTIONS SHARED WITH CONFIGURE
18686 cat <<\_LT_EOF >> "$cfgfile"
18687 # AIX sometimes has problems with the GCC collect2 program. For some
18688 # reason, if we set the COLLECT_NAMES environment variable, the problems
18689 # vanish in a puff of smoke.
18690 if test set != "${COLLECT_NAMES+set}"; then
18692 export COLLECT_NAMES
18700 ltmain=$ac_aux_dir/ltmain.sh
18703 # We use sed instead of cat because bash on DJGPP gets confused if
18704 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18705 # text mode, it properly converts lines to CR/LF. This bash problem
18706 # is reportedly fixed, but why not run on old versions too?
18707 $SED '$q' "$ltmain" >> "$cfgfile" \
18708 || (rm -f "$cfgfile"; exit 1)
18710 mv -f "$cfgfile" "$ofile" ||
18711 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18715 cat <<_LT_EOF >> "$ofile"
18717 # ### BEGIN LIBTOOL TAG CONFIG: RC
18719 # The linker used to build libraries.
18722 # How to create reloadable object files.
18723 reload_flag=$lt_reload_flag_RC
18724 reload_cmds=$lt_reload_cmds_RC
18726 # Commands used to build an old-style archive.
18727 old_archive_cmds=$lt_old_archive_cmds_RC
18729 # A language specific compiler.
18732 # Is the compiler the GNU compiler?
18735 # Compiler flag to turn off builtin functions.
18736 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18738 # Additional compiler flags for building library objects.
18739 pic_flag=$lt_lt_prog_compiler_pic_RC
18741 # How to pass a linker flag through the compiler.
18742 wl=$lt_lt_prog_compiler_wl_RC
18744 # Compiler flag to prevent dynamic linking.
18745 link_static_flag=$lt_lt_prog_compiler_static_RC
18747 # Does compiler simultaneously support -c and -o options?
18748 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18750 # Whether or not to add -lc for building shared libraries.
18751 build_libtool_need_lc=$archive_cmds_need_lc_RC
18753 # Whether or not to disallow shared libs when runtime libs are static.
18754 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18756 # Compiler flag to allow reflexive dlopens.
18757 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18759 # Compiler flag to generate shared objects directly from archives.
18760 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18762 # Whether the compiler copes with passing no objects directly.
18763 compiler_needs_object=$lt_compiler_needs_object_RC
18765 # Create an old-style archive from a shared archive.
18766 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18768 # Create a temporary old-style archive to link instead of a shared archive.
18769 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18771 # Commands used to build a shared archive.
18772 archive_cmds=$lt_archive_cmds_RC
18773 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18775 # Commands used to build a loadable module if different from building
18776 # a shared archive.
18777 module_cmds=$lt_module_cmds_RC
18778 module_expsym_cmds=$lt_module_expsym_cmds_RC
18780 # Whether we are building with GNU ld or not.
18781 with_gnu_ld=$lt_with_gnu_ld_RC
18783 # Flag that allows shared libraries with undefined symbols to be built.
18784 allow_undefined_flag=$lt_allow_undefined_flag_RC
18786 # Flag that enforces no undefined symbols.
18787 no_undefined_flag=$lt_no_undefined_flag_RC
18789 # Flag to hardcode \$libdir into a binary during linking.
18790 # This must work even if \$libdir does not exist
18791 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18793 # Whether we need a single "-rpath" flag with a separated argument.
18794 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18796 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18797 # DIR into the resulting binary.
18798 hardcode_direct=$hardcode_direct_RC
18800 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18801 # DIR into the resulting binary and the resulting library dependency is
18802 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18803 # library is relocated.
18804 hardcode_direct_absolute=$hardcode_direct_absolute_RC
18806 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18807 # into the resulting binary.
18808 hardcode_minus_L=$hardcode_minus_L_RC
18810 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18811 # into the resulting binary.
18812 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18814 # Set to "yes" if building a shared library automatically hardcodes DIR
18815 # into the library and all subsequent libraries and executables linked
18817 hardcode_automatic=$hardcode_automatic_RC
18819 # Set to yes if linker adds runtime paths of dependent libraries
18820 # to runtime path list.
18821 inherit_rpath=$inherit_rpath_RC
18823 # Whether libtool must link a program against all its dependency libraries.
18824 link_all_deplibs=$link_all_deplibs_RC
18826 # Set to "yes" if exported symbols are required.
18827 always_export_symbols=$always_export_symbols_RC
18829 # The commands to list exported symbols.
18830 export_symbols_cmds=$lt_export_symbols_cmds_RC
18832 # Symbols that should not be listed in the preloaded symbols.
18833 exclude_expsyms=$lt_exclude_expsyms_RC
18835 # Symbols that must always be exported.
18836 include_expsyms=$lt_include_expsyms_RC
18838 # Commands necessary for linking programs (against libraries) with templates.
18839 prelink_cmds=$lt_prelink_cmds_RC
18841 # Commands necessary for finishing linking programs.
18842 postlink_cmds=$lt_postlink_cmds_RC
18844 # Specify filename containing input files.
18845 file_list_spec=$lt_file_list_spec_RC
18847 # How to hardcode a shared library path into an executable.
18848 hardcode_action=$hardcode_action_RC
18850 # ### END LIBTOOL TAG CONFIG: RC
18854 "ftoption.h":F) mv ftoption.h ftoption.tmp
18855 eval "sed $FTOPTION_H_SED < ftoption.tmp > ftoption.h"
18864 ac_clean_files=$ac_clean_files_save
18866 test $ac_write_fail = 0 ||
18867 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18870 # configure is writing to config.log, and then calls config.status.
18871 # config.status does its own redirection, appending to config.log.
18872 # Unfortunately, on DOS this fails, as config.log is still kept open
18873 # by configure, so config.status won't be able to write to it; its
18874 # output is simply discarded. So we exec the FD to /dev/null,
18875 # effectively closing config.log, so it can be properly (re)opened and
18876 # appended to by config.status. When coming back to configure, we
18877 # need to make the FD available again.
18878 if test "$no_create" != yes; then
18880 ac_config_status_args=
18881 test "$silent" = yes &&
18882 ac_config_status_args="$ac_config_status_args --quiet"
18884 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18886 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18887 # would make configure fail if this is the last instruction.
18888 $ac_cs_success || as_fn_exit 1
18890 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18892 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
18898 Library configuration:
18899 external zlib: $have_zlib
18901 libpng: $have_libpng
18902 harfbuzz: $have_harfbuzz
18903 brotli: $have_brotli
18904 pthread: $have_pthread
18906 printf "%s\n" "$as_me:
18908 Library configuration:
18909 external zlib: $have_zlib
18911 libpng: $have_libpng
18912 harfbuzz: $have_harfbuzz
18913 brotli: $have_brotli
18914 pthread: $have_pthread
18917 # Warn if docwriter is not installed
18919 if test $have_docwriter = no; then
18920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
18921 \`make refdoc' will fail since pip package \`docwriter' is not installed.
18922 To install, run \`$PIP install docwriter', or to use a Python
18923 virtual environment, run \`make refdoc-venv' (requires pip package
18924 \`virtualenv'). These operations require Python >= $PYTHON_MIN_VERSION.
18926 printf "%s\n" "$as_me: WARNING:
18927 \`make refdoc' will fail since pip package \`docwriter' is not installed.
18928 To install, run \`$PIP install docwriter', or to use a Python
18929 virtual environment, run \`make refdoc-venv' (requires pip package
18930 \`virtualenv'). These operations require Python >= $PYTHON_MIN_VERSION.
18934 # Warn if pthread is not available
18936 if test $have_pthread = no; then
18937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
18938 \`FT_DEBUG_LOGGING' will not work since the \`pthread' library is not
18939 available. This warning can be safely ignored if you don't plan to use
18940 this configuration macro.
18942 printf "%s\n" "$as_me: WARNING:
18943 \`FT_DEBUG_LOGGING' will not work since the \`pthread' library is not
18944 available. This warning can be safely ignored if you don't plan to use
18945 this configuration macro.
18949 # end of configure.raw