2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.27.5.
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
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;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='pygobject'
593 PACKAGE_TARNAME='pygobject'
594 PACKAGE_VERSION='3.27.5'
595 PACKAGE_STRING='pygobject 3.27.5'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
597 PACKAGE_URL='https://wiki.gnome.org/Projects/PyGObject/'
599 ac_unique_file="gi/gimodule.c"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
641 CODE_COVERAGE_LDFLAGS
643 CODE_COVERAGE_CXXFLAGS
645 CODE_COVERAGE_CPPFLAGS
649 CODE_COVERAGE_ENABLED
650 CODE_COVERAGE_ENABLED_FALSE
651 CODE_COVERAGE_ENABLED_TRUE
664 HAVE_INTROSPECTION_FALSE
665 HAVE_INTROSPECTION_TRUE
666 INTROSPECTION_MAKEFILE
669 INTROSPECTION_TYPELIBDIR
671 INTROSPECTION_GENERATE
672 INTROSPECTION_COMPILER
673 INTROSPECTION_SCANNER
681 GLIB_COMPILE_RESOURCES
763 INSTALL_STRIP_PROGRAM
782 PYGOBJECT_MICRO_VERSION
783 PYGOBJECT_MINOR_VERSION
784 PYGOBJECT_MAJOR_VERSION
813 program_transform_name
826 enable_option_checking
833 enable_dependency_tracking
842 enable_compile_warnings
847 ac_precious_vars='build_alias
873 # Initialize some variables set by options.
875 ac_init_version=false
876 ac_unrecognized_opts=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
887 program_transform_name=s,x,x,
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 runstatedir='${localstatedir}/run'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 # Accept the important Cygnus configure options, so we can diagnose typos.
941 case $ac_dashdash$ac_option in
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
963 cache_file=config.cache ;;
965 -datadir | --datadir | --datadi | --datad)
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
977 -disable-* | --disable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
991 eval enable_$ac_useropt=no ;;
993 -docdir | --docdir | --docdi | --doc | --do)
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 htmldir=$ac_optarg ;;
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1062 -libdir | --libdir | --libdi | --libd)
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1153 -psdir | --psdir | --psdi | --psd | --ps)
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1162 -runstatedir | --runstatedir | --runstatedi | --runstated \
1163 | --runstate | --runstat | --runsta | --runst | --runs \
1164 | --run | --ru | --r)
1165 ac_prev=runstatedir ;;
1166 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1167 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1168 | --run=* | --ru=* | --r=*)
1169 runstatedir=$ac_optarg ;;
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 sbindir=$ac_optarg ;;
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 sharedstatedir=$ac_optarg ;;
1188 -site | --site | --sit)
1190 -site=* | --site=* | --sit=*)
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1230 eval with_$ac_useropt=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1246 eval with_$ac_useropt=no ;;
1249 # Obsolete; use --with-x.
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information"
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error $? "missing argument to $ac_option"
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir runstatedir
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1317 # Be sure to have absolute directory names.
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1330 target=$target_alias
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 elif test "x$build_alias" != "x$host_alias"; then
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1344 test "$silent" = yes && exec 6>/dev/null
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350 as_fn_error $? "working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 as_fn_error $? "pwd does not report name of working directory"
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357 ac_srcdir_defaulted=yes
1358 # Try the directory containing this script, then the parent directory.
1359 ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361 X"$as_myself" : 'X\(//\)[^/]' \| \
1362 X"$as_myself" : 'X\(//\)$' \| \
1363 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1387 ac_srcdir_defaulted=no
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 # Report the --help message.
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1421 \`configure' configures pygobject 3.27.5 to adapt to many kinds of systems.
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1428 Defaults for the options are specified in brackets.
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking ...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1452 For better control, use the options below.
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/pygobject]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of pygobject 3.27.5:";;
1497 --disable-option-checking ignore unrecognized --enable/--with options
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --enable-silent-rules less verbose build output (undo: "make V=1")
1501 --disable-silent-rules verbose build output (undo: "make V=0")
1502 --enable-static[=PKGS] build static libraries [default=no]
1503 --enable-shared[=PKGS] build shared libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --enable-dependency-tracking
1507 do not reject slow dependency extractors
1508 --disable-dependency-tracking
1509 speeds up one-time build
1510 --disable-libtool-lock avoid locking (might break parallel builds)
1511 --disable-glibtest do not try to compile and run a test GLIB program
1512 --enable-cairo Enable Cairo bindings using introspection
1514 --enable-introspection=[no/auto/yes]
1515 Enable introspection for this build
1516 --enable-compile-warnings=[no/yes/error]
1517 Enable compiler warnings and errors
1518 --disable-Werror Unconditionally make all compiler warnings non-fatal
1519 --enable-code-coverage Whether to enable code coverage support
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1526 --with-aix-soname=aix|svr4|both
1527 shared library versioning (aka "SONAME") variant to
1528 provide on AIX, [default=aix].
1529 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1530 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1531 compiler's sysroot if not specified).
1532 --with-python=PATH Path to Python interpreter; searches $PATH if only a
1533 program name is given; if not given, searches for a
1534 few standard names such as "python3" or "python2"
1535 --without-common For package maintainers: do not install Python
1536 version independent files
1537 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1539 Some influential environment variables:
1540 CC C compiler command
1541 CFLAGS C compiler flags
1542 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1543 nonstandard directory <lib dir>
1544 LIBS libraries to pass to the linker, e.g. -l<library>
1545 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546 you have headers in a nonstandard directory <include dir>
1548 User-defined run-time library search path.
1550 PYTHON the Python interpreter
1551 PKG_CONFIG path to pkg-config utility
1553 directories to add to pkg-config's search path
1555 path overriding pkg-config's built-in search path
1556 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config
1557 FFI_LIBS linker flags for FFI, overriding pkg-config
1558 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1559 GIO_LIBS linker flags for GIO, overriding pkg-config
1560 GI_CFLAGS C compiler flags for GI, overriding pkg-config
1561 GI_LIBS linker flags for GI, overriding pkg-config
1563 C compiler flags for CAIRO, overriding pkg-config
1564 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1566 C compiler flags for PYCAIRO, overriding pkg-config
1568 linker flags for PYCAIRO, overriding pkg-config
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1573 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1574 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>.
1579 if test "$ac_init_help" = "recursive"; then
1580 # If there are subdirs, report their specific --help.
1581 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1582 test -d "$ac_dir" ||
1583 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1591 # A ".." for each directory in $ac_dir_suffix.
1592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1604 .) # We are building in place.
1606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
1609 ac_srcdir=$srcdir$ac_dir_suffix;
1610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for guested configure.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1626 $SHELL "$ac_srcdir/configure" --help=recursive
1628 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 cd "$ac_pwd" || { ac_status=$?; break; }
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1637 pygobject configure 3.27.5
1638 generated by GNU Autoconf 2.69
1640 Copyright (C) 2012 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1647 ## ------------------------ ##
1648 ## Autoconf initialization. ##
1649 ## ------------------------ ##
1651 # ac_fn_c_try_compile LINENO
1652 # --------------------------
1653 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_compile ()
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext
1658 if { { ac_try="$ac_compile"
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_compile") 2>conftest.err
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_c_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest.$ac_objext; then :
1679 $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1687 } # ac_fn_c_try_compile
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 test -x conftest$ac_exeext
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1725 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727 # interfere with the next link command; also delete a directory that is
1728 # left behind by Apple's compiler. We do this before executing the actions.
1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1733 } # ac_fn_c_try_link
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745 $as_echo_n "(cached) " >&6
1747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h. */
1752 if ac_fn_c_try_compile "$LINENO"; then :
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 } # ac_fn_c_check_header_compile
1766 # ac_fn_c_try_cpp LINENO
1767 # ----------------------
1768 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 if { { ac_try="$ac_cpp conftest.$ac_ext"
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } > conftest.i && {
1788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1803 # ac_fn_c_try_run LINENO
1804 # ----------------------
1805 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806 # that executables *can* be run.
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_link"
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_link") 2>&5
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821 { { case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_try") 2>&5
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; }; }; then :
1833 $as_echo "$as_me: program exited with status $ac_status" >&5
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1837 ac_retval=$ac_status
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1860 #define $2 innocuous_$2
1862 /* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $2 (); below.
1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865 <limits.h> exists even on freestanding compilers. */
1868 # include <limits.h>
1870 # include <assert.h>
1875 /* Override any GCC internal prototype to avoid an error.
1876 Use char because int might match the return type of a GCC
1877 builtin and then its argument prototype would still apply. */
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined __stub_$2 || defined __stub___$2
1897 if ac_fn_c_try_link "$LINENO"; then :
1902 rm -f core conftest.err conftest.$ac_objext \
1903 conftest$ac_exeext conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_check_func
1911 cat >config.log <<_ACEOF
1912 This file contains any messages produced by compilers while
1913 running configure, to aid debugging if configure makes a mistake.
1915 It was created by pygobject $as_me 3.27.5, which was
1916 generated by GNU Autoconf 2.69. Invocation command line was
1928 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1929 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1930 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1931 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1932 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1934 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1935 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1937 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1938 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1939 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1940 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1941 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1942 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1943 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 test -z "$as_dir" && as_dir=.
1952 $as_echo "PATH: $as_dir"
1968 # Keep a trace of the command line.
1969 # Strip out --no-create and --no-recursion so they do not pile up.
1970 # Strip out --silent because we don't want to record it for future runs.
1971 # Also quote any args containing shell meta-characters.
1972 # Make two passes to allow for proper duplicate-argument suppression.
1976 ac_must_keep_next=false
1982 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1984 | -silent | --silent | --silen | --sile | --sil)
1987 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1990 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1992 as_fn_append ac_configure_args1 " '$ac_arg'"
1993 if test $ac_must_keep_next = true; then
1994 ac_must_keep_next=false # Got value, back to normal.
1997 *=* | --config-cache | -C | -disable-* | --disable-* \
1998 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1999 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2000 | -with-* | --with-* | -without-* | --without-* | --x)
2001 case "$ac_configure_args0 " in
2002 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2005 -* ) ac_must_keep_next=true ;;
2008 as_fn_append ac_configure_args " '$ac_arg'"
2013 { ac_configure_args0=; unset ac_configure_args0;}
2014 { ac_configure_args1=; unset ac_configure_args1;}
2016 # When interrupted or exit'd, cleanup temporary files, and complete
2017 # config.log. We remove comments because anyway the quotes in there
2018 # would cause problems or look ugly.
2019 # WARNING: Use '\'' to represent an apostrophe within the trap.
2020 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2021 trap 'exit_status=$?
2022 # Save into config.log some information that might help in debugging.
2026 $as_echo "## ---------------- ##
2027 ## Cache variables. ##
2028 ## ---------------- ##"
2030 # The following way of writing the cache mishandles newlines in values,
2032 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2033 eval ac_val=\$$ac_var
2037 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2041 _ | IFS | as_nl) ;; #(
2042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2043 *) { eval $ac_var=; unset $ac_var;} ;;
2048 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2049 *${as_nl}ac_space=\ *)
2051 "s/'\''/'\''\\\\'\'''\''/g;
2052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2062 $as_echo "## ----------------- ##
2063 ## Output variables. ##
2064 ## ----------------- ##"
2066 for ac_var in $ac_subst_vars
2068 eval ac_val=\$$ac_var
2070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 $as_echo "$ac_var='\''$ac_val'\''"
2076 if test -n "$ac_subst_files"; then
2077 $as_echo "## ------------------- ##
2078 ## File substitutions. ##
2079 ## ------------------- ##"
2081 for ac_var in $ac_subst_files
2083 eval ac_val=\$$ac_var
2085 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 $as_echo "$ac_var='\''$ac_val'\''"
2092 if test -s confdefs.h; then
2093 $as_echo "## ----------- ##
2100 test "$ac_signal" != 0 &&
2101 $as_echo "$as_me: caught signal $ac_signal"
2102 $as_echo "$as_me: exit $exit_status"
2104 rm -f core *.core core.conftest.* &&
2105 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2108 for ac_signal in 1 2 13 15; do
2109 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2113 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2114 rm -f -r conftest* confdefs.h
2116 $as_echo "/* confdefs.h */" > confdefs.h
2118 # Predefined preprocessor variables.
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_NAME "$PACKAGE_NAME"
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_STRING "$PACKAGE_STRING"
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_URL "$PACKAGE_URL"
2145 # Let the site file select an alternate cache file if it wants to.
2146 # Prefer an explicitly selected file to automatically selected ones.
2149 if test -n "$CONFIG_SITE"; then
2150 # We do not want a PATH search for config.site.
2151 case $CONFIG_SITE in #((
2152 -*) ac_site_file1=./$CONFIG_SITE;;
2153 */*) ac_site_file1=$CONFIG_SITE;;
2154 *) ac_site_file1=./$CONFIG_SITE;;
2156 elif test "x$prefix" != xNONE; then
2157 ac_site_file1=$prefix/share/config.site
2158 ac_site_file2=$prefix/etc/config.site
2160 ac_site_file1=$ac_default_prefix/share/config.site
2161 ac_site_file2=$ac_default_prefix/etc/config.site
2163 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2165 test "x$ac_site_file" = xNONE && continue
2166 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2168 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2169 sed 's/^/| /' "$ac_site_file" >&5
2171 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2173 as_fn_error $? "failed to load site script $ac_site_file
2174 See \`config.log' for more details" "$LINENO" 5; }
2178 if test -r "$cache_file"; then
2179 # Some versions of bash will fail to source /dev/null (special files
2180 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2181 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2183 $as_echo "$as_me: loading cache $cache_file" >&6;}
2185 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186 *) . "./$cache_file";;
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191 $as_echo "$as_me: creating cache $cache_file" >&6;}
2195 # Check that the precious variables saved in the cache have kept the same
2197 ac_cache_corrupted=false
2198 for ac_var in $ac_precious_vars; do
2199 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200 eval ac_new_set=\$ac_env_${ac_var}_set
2201 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202 eval ac_new_val=\$ac_env_${ac_var}_value
2203 case $ac_old_set,$ac_new_set in
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2214 if test "x$ac_old_val" != "x$ac_new_val"; then
2215 # differences in whitespace do not lead to failure.
2216 ac_old_val_w=`echo x $ac_old_val`
2217 ac_new_val_w=`echo x $ac_new_val`
2218 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221 ac_cache_corrupted=:
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225 eval $ac_var=\$ac_old_val
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2228 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2230 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2233 # Pass precious variables to config.status.
2234 if test "$ac_new_set" = set; then
2236 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 *) ac_arg=$ac_var=$ac_new_val ;;
2239 case " $ac_configure_args " in
2240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2241 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2245 if $ac_cache_corrupted; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2252 ## -------------------- ##
2253 ## Main body of script. ##
2254 ## -------------------- ##
2257 ac_cpp='$CPP $CPPFLAGS'
2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270 # $is_release = ($minor_version is even)
2271 minor_version=`echo "$PACKAGE_VERSION" | sed 's/[^.][^.]*.\([^.][^.]*\).*/\1/'`
2272 if test "$(( $minor_version % 2 ))" -ne 0; then :
2283 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2285 PYGOBJECT_MAJOR_VERSION=3
2288 $as_echo "#define PYGOBJECT_MINOR_VERSION 27" >>confdefs.h
2290 PYGOBJECT_MINOR_VERSION=27
2293 $as_echo "#define PYGOBJECT_MICRO_VERSION 5" >>confdefs.h
2295 PYGOBJECT_MICRO_VERSION=5
2298 ac_config_headers="$ac_config_headers config.h"
2300 # Check whether --enable-silent-rules was given.
2301 if test "${enable_silent_rules+set}" = set; then :
2302 enableval=$enable_silent_rules;
2305 case $enable_silent_rules in # (((
2306 yes) AM_DEFAULT_VERBOSITY=0;;
2307 no) AM_DEFAULT_VERBOSITY=1;;
2308 *) AM_DEFAULT_VERBOSITY=0;;
2310 am_make=${MAKE-make}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2312 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2313 if ${am_cv_make_support_nested_variables+:} false; then :
2314 $as_echo_n "(cached) " >&6
2316 if $as_echo 'TRUE=$(BAR$(V))
2322 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2323 am_cv_make_support_nested_variables=yes
2325 am_cv_make_support_nested_variables=no
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2329 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2330 if test $am_cv_make_support_nested_variables = yes; then
2332 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2334 AM_V=$AM_DEFAULT_VERBOSITY
2335 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2339 am__api_version='1.15'
2342 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2343 if test -f "$ac_dir/install-sh"; then
2345 ac_install_sh="$ac_aux_dir/install-sh -c"
2347 elif test -f "$ac_dir/install.sh"; then
2349 ac_install_sh="$ac_aux_dir/install.sh -c"
2351 elif test -f "$ac_dir/shtool"; then
2353 ac_install_sh="$ac_aux_dir/shtool install -c"
2357 if test -z "$ac_aux_dir"; then
2358 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2361 # These three variables are undocumented and unsupported,
2362 # and are intended to be withdrawn in a future Autoconf release.
2363 # They can cause serious problems if a builder's source tree is in a directory
2364 # whose full name contains unusual characters.
2365 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2366 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2367 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370 # Find a good install program. We prefer a C program (faster),
2371 # so one script is as good as another. But avoid the broken or
2372 # incompatible versions:
2373 # SysV /etc/install, /usr/sbin/install
2374 # SunOS /usr/etc/install
2375 # IRIX /sbin/install
2377 # AmigaOS /C/install, which installs bootblocks on floppy discs
2378 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2379 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2380 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2381 # OS/2's system install, which has a completely different semantic
2382 # ./install, which can be erroneously created by make from ./install.sh.
2383 # Reject install programs that cannot install multiple files.
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2385 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2386 if test -z "$INSTALL"; then
2387 if ${ac_cv_path_install+:} false; then :
2388 $as_echo_n "(cached) " >&6
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 # Account for people who put trailing slashes in PATH elements.
2396 case $as_dir/ in #((
2397 ./ | .// | /[cC]/* | \
2398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2399 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2402 # OSF1 and SCO ODT 3.0 have their own names for install.
2403 # Don't use installbsd from OSF since it installs stuff as root
2405 for ac_prog in ginstall scoinst install; do
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2408 if test $ac_prog = install &&
2409 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2410 # AIX install. It has an incompatible calling convention.
2412 elif test $ac_prog = install &&
2413 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414 # program-specific install script used by HP pwplus--don't use.
2417 rm -rf conftest.one conftest.two conftest.dir
2418 echo one > conftest.one
2419 echo two > conftest.two
2421 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2422 test -s conftest.one && test -s conftest.two &&
2423 test -s conftest.dir/conftest.one &&
2424 test -s conftest.dir/conftest.two
2426 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2439 rm -rf conftest.one conftest.two conftest.dir
2442 if test "${ac_cv_path_install+set}" = set; then
2443 INSTALL=$ac_cv_path_install
2445 # As a last resort, use the slow shell script. Don't cache a
2446 # value for INSTALL within a source directory, because that will
2447 # break other packages using the cache if that directory is
2448 # removed, or if the value is a relative name.
2449 INSTALL=$ac_install_sh
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2453 $as_echo "$INSTALL" >&6; }
2455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2456 # It thinks the first close brace ends the variable substitution.
2457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2464 $as_echo_n "checking whether build environment is sane... " >&6; }
2465 # Reject unsafe characters in $srcdir or the absolute working directory
2466 # name. Accept space and tab only in the latter.
2470 *[\\\"\#\$\&\'\`$am_lf]*)
2471 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2474 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2475 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2478 # Do 'set' in a subshell so we don't clobber the current shell's
2479 # arguments. Must try -L first in case configure is actually a
2480 # symlink; some systems play weird games with the mod time of symlinks
2481 # (eg FreeBSD returns the mod time of the symlink's containing
2485 for am_try in 1 2; do
2486 echo "timestamp, slept: $am_has_slept" > conftest.file
2487 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2488 if test "$*" = "X"; then
2490 set X `ls -t "$srcdir/configure" conftest.file`
2492 if test "$*" != "X $srcdir/configure conftest.file" \
2493 && test "$*" != "X conftest.file $srcdir/configure"; then
2495 # If neither matched, then we have a broken ls. This can happen
2496 # if, for instance, CONFIG_SHELL is bash and it inherits a
2497 # broken ls alias from the environment. This has actually
2498 # happened. Such a system could not be considered "sane".
2499 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2500 alias in your environment" "$LINENO" 5
2502 if test "$2" = conftest.file || test $am_try -eq 2; then
2509 test "$2" = conftest.file
2515 as_fn_error $? "newly created file is older than distributed files!
2516 Check your system clock" "$LINENO" 5
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2519 $as_echo "yes" >&6; }
2520 # If we didn't sleep, we still need to ensure time stamps of config.status and
2521 # generated files are strictly newer.
2523 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2530 test "$program_prefix" != NONE &&
2531 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2532 # Use a double $ so make ignores it.
2533 test "$program_suffix" != NONE &&
2534 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2535 # Double any \ or $.
2536 # By default was `s,x,x', remove it if useless.
2537 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2538 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2540 # Expand $ac_aux_dir to an absolute path.
2541 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2543 if test x"${MISSING+set}" != xset; then
2546 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2548 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2551 # Use eval to expand $SHELL
2552 if eval "$MISSING --is-lightweight"; then
2553 am_missing_run="$MISSING "
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2557 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2560 if test x"${install_sh+set}" != xset; then
2563 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2565 install_sh="\${SHELL} $am_aux_dir/install-sh"
2569 # Installed binaries are usually stripped using 'strip' when the user
2570 # run "make install-strip". However 'strip' might not be the right
2571 # tool to use in cross-compilation environments, therefore Automake
2572 # will honor the 'STRIP' environment variable to overrule this program.
2573 if test "$cross_compiling" != no; then
2574 if test -n "$ac_tool_prefix"; then
2575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2576 set dummy ${ac_tool_prefix}strip; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if ${ac_cv_prog_STRIP+:} false; then :
2580 $as_echo_n "(cached) " >&6
2582 if test -n "$STRIP"; then
2583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 STRIP=$ac_cv_prog_STRIP
2603 if test -n "$STRIP"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2605 $as_echo "$STRIP" >&6; }
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2613 if test -z "$ac_cv_prog_STRIP"; then
2615 # Extract the first word of "strip", so it can be a program name with args.
2616 set dummy strip; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2620 $as_echo_n "(cached) " >&6
2622 if test -n "$ac_ct_STRIP"; then
2623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632 ac_cv_prog_ac_ct_STRIP="strip"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2643 if test -n "$ac_ct_STRIP"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2645 $as_echo "$ac_ct_STRIP" >&6; }
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2651 if test "x$ac_ct_STRIP" = x; then
2654 case $cross_compiling:$ac_tool_warned in
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2658 ac_tool_warned=yes ;;
2663 STRIP="$ac_cv_prog_STRIP"
2667 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2670 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2671 if test -z "$MKDIR_P"; then
2672 if ${ac_cv_path_mkdir+:} false; then :
2673 $as_echo_n "(cached) " >&6
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2679 test -z "$as_dir" && as_dir=.
2680 for ac_prog in mkdir gmkdir; do
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2683 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2684 'mkdir (GNU coreutils) '* | \
2685 'mkdir (coreutils) '* | \
2686 'mkdir (fileutils) '4.1*)
2687 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2697 test -d ./--version && rmdir ./--version
2698 if test "${ac_cv_path_mkdir+set}" = set; then
2699 MKDIR_P="$ac_cv_path_mkdir -p"
2701 # As a last resort, use the slow shell script. Don't cache a
2702 # value for MKDIR_P within a source directory, because that will
2703 # break other packages using the cache if that directory is
2704 # removed, or if the value is a relative name.
2705 MKDIR_P="$ac_install_sh -d"
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2709 $as_echo "$MKDIR_P" >&6; }
2711 for ac_prog in gawk mawk nawk awk
2713 # Extract the first word of "$ac_prog", so it can be a program name with args.
2714 set dummy $ac_prog; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_AWK+:} false; then :
2718 $as_echo_n "(cached) " >&6
2720 if test -n "$AWK"; then
2721 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_AWK="$ac_prog"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 if test -n "$AWK"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2743 $as_echo "$AWK" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2750 test -n "$AWK" && break
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2754 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2756 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2757 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2758 $as_echo_n "(cached) " >&6
2760 cat >conftest.make <<\_ACEOF
2763 @echo '@@@%%%=$(MAKE)=@@@%%%'
2765 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2766 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2768 eval ac_cv_prog_make_${ac_make}_set=yes;;
2770 eval ac_cv_prog_make_${ac_make}_set=no;;
2774 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776 $as_echo "yes" >&6; }
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2781 SET_MAKE="MAKE=${MAKE-make}"
2784 rm -rf .tst 2>/dev/null
2785 mkdir .tst 2>/dev/null
2786 if test -d .tst; then
2791 rmdir .tst 2>/dev/null
2793 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2794 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2795 # is not polluted with repeated "-I."
2796 am__isrc=' -I$(srcdir)'
2797 # test to see if srcdir already configured
2798 if test -f $srcdir/config.status; then
2799 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2803 # test whether we have cygpath
2804 if test -z "$CYGPATH_W"; then
2805 if (cygpath --version) >/dev/null 2>/dev/null; then
2806 CYGPATH_W='cygpath -w'
2813 # Define the identity of the package.
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE "$PACKAGE"
2823 cat >>confdefs.h <<_ACEOF
2824 #define VERSION "$VERSION"
2827 # Some tools Automake needs.
2829 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2832 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2835 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2838 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2841 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2843 # For better backward compatibility. To be removed once Automake 1.9.x
2844 # dies out for good. For more background, see:
2845 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2846 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2847 mkdir_p='$(MKDIR_P)'
2849 # We need awk for the "check" target (and possibly the TAP driver). The
2850 # system "awk" is bad on some platforms.
2851 # Always define AMTAR for backward compatibility. Yes, it's still used
2852 # in the wild :-( We should find a proper way to deprecate it ...
2856 # We'll loop over all known methods to create a tar archive until one works.
2857 _am_tools='gnutar pax cpio none'
2859 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2866 # POSIX will say in a future version that running "rm -f" with no argument
2867 # is OK; and we want to be able to make that assumption in our Makefile
2868 # recipes. So use an aggressive probe to check that the usage we want is
2869 # actually supported "in the wild" to an acceptable degree.
2870 # See automake bug#10828.
2871 # To make any issue more visible, cause the running configure to be aborted
2872 # by default if the 'rm' program in use doesn't match our expectations; the
2873 # user can still override this though.
2874 if rm -f && rm -fr && rm -rf; then : OK; else
2878 Your 'rm' program seems unable to run without file operands specified
2879 on the command line, even when the '-f' option is present. This is contrary
2880 to the behaviour of most rm programs out there, and not conforming with
2881 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2883 Please tell bug-automake@gnu.org about your system, including the value
2884 of your $PATH and any error possibly output before this message. This
2885 can help us improve future automake versions.
2888 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2889 echo 'Configuration will proceed anyway, since you have set the' >&2
2890 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2894 Aborting the configuration process, to ensure you take notice of the issue.
2896 You can download and install GNU coreutils to get an 'rm' implementation
2897 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2899 If you want to complete the configuration process using your problematic
2900 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2901 to "yes", and re-run configure.
2904 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2909 # Make sure we can run config.sub.
2910 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2911 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2914 $as_echo_n "checking build system type... " >&6; }
2915 if ${ac_cv_build+:} false; then :
2916 $as_echo_n "(cached) " >&6
2918 ac_build_alias=$build_alias
2919 test "x$ac_build_alias" = x &&
2920 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2921 test "x$ac_build_alias" = x &&
2922 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2923 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2924 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2928 $as_echo "$ac_cv_build" >&6; }
2929 case $ac_cv_build in
2931 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2934 ac_save_IFS=$IFS; IFS='-'
2940 # Remember, the first character of IFS is used to create $*,
2941 # except with old shells:
2944 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2948 $as_echo_n "checking host system type... " >&6; }
2949 if ${ac_cv_host+:} false; then :
2950 $as_echo_n "(cached) " >&6
2952 if test "x$host_alias" = x; then
2953 ac_cv_host=$ac_cv_build
2955 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2956 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2961 $as_echo "$ac_cv_host" >&6; }
2964 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2967 ac_save_IFS=$IFS; IFS='-'
2973 # Remember, the first character of IFS is used to create $*,
2974 # except with old shells:
2977 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build time linking with Python (Win32)" >&5
2981 $as_echo_n "checking for build time linking with Python (Win32)... " >&6; }
2983 *-*-mingw*|*-*-cygwin*)
2985 link_python_libs=yes
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $link_python_libs" >&5
3000 $as_echo "$link_python_libs" >&6; }
3001 if test "$os_win32" = "yes"; then
3012 cat >>confdefs.h <<_ACEOF
3013 #define OS_EXT "$OS_EXT"
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3021 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3026 macro_version='2.4.6'
3027 macro_revision='2.4.6'
3041 ltmain=$ac_aux_dir/ltmain.sh
3043 # Backslashify metacharacters that are still active within
3044 # double-quoted strings.
3045 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3047 # Same as above, but do not quote variable references.
3048 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3050 # Sed substitution to delay expansion of an escaped shell variable in a
3051 # double_quote_subst'ed string.
3052 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3054 # Sed substitution to delay expansion of an escaped single quote.
3055 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3057 # Sed substitution to avoid accidental globbing in evaled expressions
3058 no_glob_subst='s/\*/\\\*/g'
3060 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3061 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3062 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3065 $as_echo_n "checking how to print strings... " >&6; }
3066 # Test print first, because it will be a builtin if present.
3067 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3068 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3070 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3073 # Use this function as a fallback that always works.
3074 func_fallback_echo ()
3076 eval 'cat <<_LTECHO_EOF
3080 ECHO='func_fallback_echo'
3083 # func_echo_all arg...
3084 # Invoke $ECHO with all args, space-separated.
3091 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3092 $as_echo "printf" >&6; } ;;
3093 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3094 $as_echo "print -r" >&6; } ;;
3095 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3096 $as_echo "cat" >&6; } ;;
3112 DEPDIR="${am__leading_dot}deps"
3114 ac_config_commands="$ac_config_commands depfiles"
3117 am_make=${MAKE-make}
3118 cat > confinc << 'END'
3120 @echo this is the am__doit target
3123 # If we don't find an include directive, just comment out the code.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3125 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3129 # First try GNU make style include.
3130 echo "include confinc" > confmf
3131 # Ignore all kinds of additional output from 'make'.
3132 case `$am_make -s -f confmf 2> /dev/null` in #(
3133 *the\ am__doit\ target*)
3139 # Now try BSD make style include.
3140 if test "$am__include" = "#"; then
3141 echo '.include "confinc"' > confmf
3142 case `$am_make -s -f confmf 2> /dev/null` in #(
3143 *the\ am__doit\ target*)
3144 am__include=.include
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3153 $as_echo "$_am_result" >&6; }
3154 rm -f confinc confmf
3156 # Check whether --enable-dependency-tracking was given.
3157 if test "${enable_dependency_tracking+set}" = set; then :
3158 enableval=$enable_dependency_tracking;
3161 if test "x$enable_dependency_tracking" != xno; then
3162 am_depcomp="$ac_aux_dir/depcomp"
3166 if test "x$enable_dependency_tracking" != xno; then
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 if test -n "$ac_tool_prefix"; then
3181 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3188 if test -n "$CC"; then
3189 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 if test -n "$CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3219 if test -z "$ac_cv_prog_CC"; then
3221 # Extract the first word of "gcc", so it can be a program name with args.
3222 set dummy gcc; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3226 $as_echo_n "(cached) " >&6
3228 if test -n "$ac_ct_CC"; then
3229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_ac_ct_CC="gcc"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251 $as_echo "$ac_ct_CC" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3257 if test "x$ac_ct_CC" = x; then
3260 case $cross_compiling:$ac_tool_warned in
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3272 if test -z "$CC"; then
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}cc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_CC="${ac_tool_prefix}cc"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3313 if test -z "$CC"; then
3314 # Extract the first word of "cc", so it can be a program name with args.
3315 set dummy cc; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if ${ac_cv_prog_CC+:} false; then :
3319 $as_echo_n "(cached) " >&6
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333 ac_prog_rejected=yes
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 if test $ac_prog_rejected = yes; then
3345 # We found a bogon in the path, so make sure we never use it.
3346 set dummy $ac_cv_prog_CC
3348 if test $# != 0; then
3349 # We chose a different compiler from the bogus one.
3350 # However, it has the same basename, so the bogon will be chosen
3351 # first if we set CC to just the basename; use the full file name.
3353 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3359 if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 for ac_prog in cl.exe
3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_CC+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 if test -n "$CC"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403 $as_echo "$CC" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3410 test -n "$CC" && break
3413 if test -z "$CC"; then
3415 for ac_prog in cl.exe
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3422 $as_echo_n "(cached) " >&6
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434 ac_cv_prog_ac_ct_CC="$ac_prog"
3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447 $as_echo "$ac_ct_CC" >&6; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3454 test -n "$ac_ct_CC" && break
3457 if test "x$ac_ct_CC" = x; then
3460 case $cross_compiling:$ac_tool_warned in
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3473 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error $? "no acceptable C compiler found in \$PATH
3476 See \`config.log' for more details" "$LINENO" 5; }
3478 # Provide some information about the compiler.
3479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3482 for ac_option in --version -v -V -qversion; do
3483 { { ac_try="$ac_compiler $ac_option >&5"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3492 if test -s conftest.err; then
3494 ... rest of stderr output deleted ...
3495 10q' conftest.err >conftest.er1
3496 cat conftest.er1 >&5
3498 rm -f conftest.er1 conftest.err
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3514 ac_clean_files_save=$ac_clean_files
3515 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3516 # Try to create an executable without -o first, disregard a.out.
3517 # It will help us diagnose broken compilers, and finding out an intuition
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3520 $as_echo_n "checking whether the C compiler works... " >&6; }
3521 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3523 # The possible output files:
3524 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3527 for ac_file in $ac_files
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3536 if { { ac_try="$ac_link_default"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543 (eval "$ac_link_default") 2>&5
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }; then :
3547 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3548 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3549 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3550 # so that the user can short-circuit this test for compilers unknown to
3552 for ac_file in $ac_files ''
3554 test -f "$ac_file" || continue
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3559 # We found the default executable, but exeext='' is most
3563 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3565 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3567 # We set ac_cv_exeext here because the later test for it is not
3568 # safe: cross compilers may not add the suffix if given an `-o'
3569 # argument, so we may need to know it at that point already.
3570 # Even if this section looks crufty: it has the advantage of
3577 test "$ac_cv_exeext" = no && ac_cv_exeext=
3582 if test -z "$ac_file"; then :
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error 77 "C compiler cannot create executables
3591 See \`config.log' for more details" "$LINENO" 5; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 $as_echo "yes" >&6; }
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3597 $as_echo_n "checking for C compiler default output file name... " >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3599 $as_echo "$ac_file" >&6; }
3600 ac_exeext=$ac_cv_exeext
3602 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3603 ac_clean_files=$ac_clean_files_save
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3605 $as_echo_n "checking for suffix of executables... " >&6; }
3606 if { { ac_try="$ac_link"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_link") 2>&5
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; then :
3617 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3618 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3619 # work properly (i.e., refer to `conftest.exe'), while it won't with
3621 for ac_file in conftest.exe conftest conftest.*; do
3622 test -f "$ac_file" || continue
3624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3634 See \`config.log' for more details" "$LINENO" 5; }
3636 rm -f conftest conftest$ac_cv_exeext
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3638 $as_echo "$ac_cv_exeext" >&6; }
3640 rm -f conftest.$ac_ext
3641 EXEEXT=$ac_cv_exeext
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3649 FILE *f = fopen ("conftest.out", "w");
3650 return ferror (f) || fclose (f) != 0;
3656 ac_clean_files="$ac_clean_files conftest.out"
3657 # Check that the compiler produces executables we can run. If not, either
3658 # the compiler is broken, or we cross compile.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660 $as_echo_n "checking whether we are cross compiling... " >&6; }
3661 if test "$cross_compiling" != yes; then
3662 { { ac_try="$ac_link"
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link") 2>&5
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }
3673 if { ac_try='./conftest$ac_cv_exeext'
3674 { { case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_try") 2>&5
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }; }; then
3686 if test "$cross_compiling" = maybe; then
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "cannot run C compiled programs.
3692 If you meant to cross compile, use \`--host'.
3693 See \`config.log' for more details" "$LINENO" 5; }
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3698 $as_echo "$cross_compiling" >&6; }
3700 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3701 ac_clean_files=$ac_clean_files_save
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3703 $as_echo_n "checking for suffix of object files... " >&6; }
3704 if ${ac_cv_objext+:} false; then :
3705 $as_echo_n "(cached) " >&6
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3718 rm -f conftest.o conftest.obj
3719 if { { ac_try="$ac_compile"
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726 (eval "$ac_compile") 2>&5
3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }; then :
3730 for ac_file in conftest.o conftest.obj conftest.*; do
3731 test -f "$ac_file" || continue;
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3734 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3739 $as_echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot compute suffix of object files: cannot compile
3745 See \`config.log' for more details" "$LINENO" 5; }
3747 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3750 $as_echo "$ac_cv_objext" >&6; }
3751 OBJEXT=$ac_cv_objext
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3754 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3755 if ${ac_cv_c_compiler_gnu+:} false; then :
3756 $as_echo_n "(cached) " >&6
3758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h. */
3772 if ac_fn_c_try_compile "$LINENO"; then :
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3782 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3783 if test $ac_compiler_gnu = yes; then
3788 ac_test_CFLAGS=${CFLAGS+set}
3789 ac_save_CFLAGS=$CFLAGS
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3791 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3792 if ${ac_cv_prog_cc_g+:} false; then :
3793 $as_echo_n "(cached) " >&6
3795 ac_save_c_werror_flag=$ac_c_werror_flag
3796 ac_c_werror_flag=yes
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3810 if ac_fn_c_try_compile "$LINENO"; then :
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3825 if ac_fn_c_try_compile "$LINENO"; then :
3828 ac_c_werror_flag=$ac_save_c_werror_flag
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3841 if ac_fn_c_try_compile "$LINENO"; then :
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 ac_c_werror_flag=$ac_save_c_werror_flag
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3852 $as_echo "$ac_cv_prog_cc_g" >&6; }
3853 if test "$ac_test_CFLAGS" = set; then
3854 CFLAGS=$ac_save_CFLAGS
3855 elif test $ac_cv_prog_cc_g = yes; then
3856 if test "$GCC" = yes; then
3862 if test "$GCC" = yes; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3869 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3870 if ${ac_cv_prog_cc_c89+:} false; then :
3871 $as_echo_n "(cached) " >&6
3873 ac_cv_prog_cc_c89=no
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3881 struct buf { int x; };
3882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3883 static char *e (p, i)
3889 static char *f (char * (*g) (char **, int), char **p, ...)
3894 s = g (p, va_arg (v,int));
3899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3900 function prototypes and stuff, but not '\xHH' hex character constants.
3901 These don't provoke an error unfortunately, instead are silently treated
3902 as 'x'. The following induces an error, until -std is added to get
3903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3904 array size at least. It's necessary to write '\x00'==0 to get something
3905 that's true only with -std. */
3906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3908 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3909 inside strings and character constants. */
3911 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3913 int test (int i, double x);
3914 struct s1 {int (*f) (int a);};
3915 struct s2 {int (*f) (double a);};
3916 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3922 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3927 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3928 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3930 CC="$ac_save_CC $ac_arg"
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_c89=$ac_arg
3934 rm -f core conftest.err conftest.$ac_objext
3935 test "x$ac_cv_prog_cc_c89" != "xno" && break
3937 rm -f conftest.$ac_ext
3942 case "x$ac_cv_prog_cc_c89" in
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3945 $as_echo "none needed" >&6; } ;;
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3948 $as_echo "unsupported" >&6; } ;;
3950 CC="$CC $ac_cv_prog_cc_c89"
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3952 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3954 if test "x$ac_cv_prog_cc_c89" != xno; then :
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3970 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3971 if ${am_cv_prog_cc_c_o+:} false; then :
3972 $as_echo_n "(cached) " >&6
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3985 # Make sure it works both with $CC and with simple cc.
3986 # Following AC_PROG_CC_C_O, we do the test twice because some
3987 # compilers refuse to overwrite an existing .o file with -o,
3988 # though they will create one.
3989 am_cv_prog_cc_c_o=yes
3991 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3992 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } \
3996 && test -f conftest2.$ac_objext; then
3999 am_cv_prog_cc_c_o=no
4003 rm -f core conftest*
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4007 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4008 if test "$am_cv_prog_cc_c_o" != yes; then
4009 # Losing compiler, so override with the script.
4010 # FIXME: It is wrong to rewrite CC.
4011 # But if we don't then we get into trouble of one sort or another.
4012 # A longer-term fix would be to have automake use am__CC in this case,
4013 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4014 CC="$am_aux_dir/compile $CC"
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 depcc="$CC" am_compiler_list=
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4026 $as_echo_n "checking dependency style of $depcc... " >&6; }
4027 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4028 $as_echo_n "(cached) " >&6
4030 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4031 # We make a subdir and do the tests there. Otherwise we can end up
4032 # making bogus files that we don't know about and never remove. For
4033 # instance it was reported that on HP-UX the gcc test will end up
4034 # making a dummy file named 'D' -- because '-MD' means "put the output
4038 # Copy depcomp to subdir because otherwise we won't find it if we're
4039 # using a relative directory.
4040 cp "$am_depcomp" conftest.dir
4042 # We will build objects and dependencies in a subdirectory because
4043 # it helps to detect inapplicable dependency modes. For instance
4044 # both Tru64's cc and ICC support -MD to output dependencies as a
4045 # side effect of compilation, but ICC will put the dependencies in
4046 # the current directory while Tru64 will put them in the object
4050 am_cv_CC_dependencies_compiler_type=none
4051 if test "$am_compiler_list" = ""; then
4052 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4055 case " $depcc " in #(
4056 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4059 for depmode in $am_compiler_list; do
4060 # Setup a source with many dependencies, because some compilers
4061 # like to wrap large dependency lists on column 80 (with \), and
4062 # we should not choose a depcomp mode which is confused by this.
4064 # We need to recreate these files for each test, as the compiler may
4065 # overwrite some of them when testing with obscure command lines.
4066 # This happens at least with the AIX C compiler.
4068 for i in 1 2 3 4 5 6; do
4069 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4070 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4071 # Solaris 10 /bin/sh.
4072 echo '/* dummy */' > sub/conftst$i.h
4074 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4076 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4077 # mode. It turns out that the SunPro C++ compiler does not properly
4078 # handle '-M -o', and we need to detect this. Also, some Intel
4079 # versions had trouble with output in subdirs.
4080 am__obj=sub/conftest.${OBJEXT-o}
4081 am__minus_obj="-o $am__obj"
4084 # This depmode causes a compiler race in universal mode.
4085 test "$am__universal" = false || continue
4088 # After this tag, mechanisms are not by side-effect, so they'll
4089 # only be used when explicitly requested.
4090 if test "x$enable_dependency_tracking" = xyes; then
4096 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4097 # This compiler won't grok '-c -o', but also, the minuso test has
4098 # not run yet. These depmodes are late enough in the game, and
4099 # so weak that their functioning should not be impacted.
4100 am__obj=conftest.${OBJEXT-o}
4105 if depmode=$depmode \
4106 source=sub/conftest.c object=$am__obj \
4107 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4108 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4109 >/dev/null 2>conftest.err &&
4110 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4111 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4112 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4113 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4114 # icc doesn't choke on unknown options, it will just issue warnings
4115 # or remarks (even with -Werror). So we grep stderr for any message
4116 # that says an option was ignored or not supported.
4117 # When given -MP, icc 7.0 and 7.1 complain thusly:
4118 # icc: Command line warning: ignoring option '-M'; no argument required
4119 # The diagnosis changed in icc 8.0:
4120 # icc: Command line remark: option '-MP' not supported
4121 if (grep 'ignoring option' conftest.err ||
4122 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4123 am_cv_CC_dependencies_compiler_type=$depmode
4132 am_cv_CC_dependencies_compiler_type=none
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4137 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4138 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4141 test "x$enable_dependency_tracking" != xno \
4142 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4144 am__fastdepCC_FALSE='#'
4146 am__fastdepCC_TRUE='#'
4147 am__fastdepCC_FALSE=
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4152 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4153 if ${ac_cv_path_SED+:} false; then :
4154 $as_echo_n "(cached) " >&6
4156 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4157 for ac_i in 1 2 3 4 5 6 7; do
4158 ac_script="$ac_script$as_nl$ac_script"
4160 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4161 { ac_script=; unset ac_script;}
4162 if test -z "$SED"; then
4163 ac_path_SED_found=false
4164 # Loop through the user's path and test for each of PROGNAME-LIST
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_prog in sed gsed; do
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4173 as_fn_executable_p "$ac_path_SED" || continue
4174 # Check for GNU ac_path_SED and select it if it is found.
4175 # Check for GNU $ac_path_SED
4176 case `"$ac_path_SED" --version 2>&1` in
4178 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4181 $as_echo_n 0123456789 >"conftest.in"
4184 cat "conftest.in" "conftest.in" >"conftest.tmp"
4185 mv "conftest.tmp" "conftest.in"
4186 cp "conftest.in" "conftest.nl"
4187 $as_echo '' >> "conftest.nl"
4188 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4189 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4190 as_fn_arith $ac_count + 1 && ac_count=$as_val
4191 if test $ac_count -gt ${ac_path_SED_max-0}; then
4192 # Best one so far, save it but keep looking for a better one
4193 ac_cv_path_SED="$ac_path_SED"
4194 ac_path_SED_max=$ac_count
4196 # 10*(2^10) chars as input seems more than enough
4197 test $ac_count -gt 10 && break
4199 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4202 $ac_path_SED_found && break 3
4207 if test -z "$ac_cv_path_SED"; then
4208 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4216 $as_echo "$ac_cv_path_SED" >&6; }
4217 SED="$ac_cv_path_SED"
4220 test -z "$SED" && SED=sed
4221 Xsed="$SED -e 1s/^X//"
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4234 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4235 if ${ac_cv_path_GREP+:} false; then :
4236 $as_echo_n "(cached) " >&6
4238 if test -z "$GREP"; then
4239 ac_path_GREP_found=false
4240 # Loop through the user's path and test for each of PROGNAME-LIST
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4245 test -z "$as_dir" && as_dir=.
4246 for ac_prog in grep ggrep; do
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4249 as_fn_executable_p "$ac_path_GREP" || continue
4250 # Check for GNU ac_path_GREP and select it if it is found.
4251 # Check for GNU $ac_path_GREP
4252 case `"$ac_path_GREP" --version 2>&1` in
4254 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4257 $as_echo_n 0123456789 >"conftest.in"
4260 cat "conftest.in" "conftest.in" >"conftest.tmp"
4261 mv "conftest.tmp" "conftest.in"
4262 cp "conftest.in" "conftest.nl"
4263 $as_echo 'GREP' >> "conftest.nl"
4264 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4266 as_fn_arith $ac_count + 1 && ac_count=$as_val
4267 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4268 # Best one so far, save it but keep looking for a better one
4269 ac_cv_path_GREP="$ac_path_GREP"
4270 ac_path_GREP_max=$ac_count
4272 # 10*(2^10) chars as input seems more than enough
4273 test $ac_count -gt 10 && break
4275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4278 $ac_path_GREP_found && break 3
4283 if test -z "$ac_cv_path_GREP"; then
4284 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4287 ac_cv_path_GREP=$GREP
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4292 $as_echo "$ac_cv_path_GREP" >&6; }
4293 GREP="$ac_cv_path_GREP"
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4297 $as_echo_n "checking for egrep... " >&6; }
4298 if ${ac_cv_path_EGREP+:} false; then :
4299 $as_echo_n "(cached) " >&6
4301 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4302 then ac_cv_path_EGREP="$GREP -E"
4304 if test -z "$EGREP"; then
4305 ac_path_EGREP_found=false
4306 # Loop through the user's path and test for each of PROGNAME-LIST
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4311 test -z "$as_dir" && as_dir=.
4312 for ac_prog in egrep; do
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4315 as_fn_executable_p "$ac_path_EGREP" || continue
4316 # Check for GNU ac_path_EGREP and select it if it is found.
4317 # Check for GNU $ac_path_EGREP
4318 case `"$ac_path_EGREP" --version 2>&1` in
4320 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4323 $as_echo_n 0123456789 >"conftest.in"
4326 cat "conftest.in" "conftest.in" >"conftest.tmp"
4327 mv "conftest.tmp" "conftest.in"
4328 cp "conftest.in" "conftest.nl"
4329 $as_echo 'EGREP' >> "conftest.nl"
4330 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4332 as_fn_arith $ac_count + 1 && ac_count=$as_val
4333 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4334 # Best one so far, save it but keep looking for a better one
4335 ac_cv_path_EGREP="$ac_path_EGREP"
4336 ac_path_EGREP_max=$ac_count
4338 # 10*(2^10) chars as input seems more than enough
4339 test $ac_count -gt 10 && break
4341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4344 $ac_path_EGREP_found && break 3
4349 if test -z "$ac_cv_path_EGREP"; then
4350 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4353 ac_cv_path_EGREP=$EGREP
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4359 $as_echo "$ac_cv_path_EGREP" >&6; }
4360 EGREP="$ac_cv_path_EGREP"
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4364 $as_echo_n "checking for fgrep... " >&6; }
4365 if ${ac_cv_path_FGREP+:} false; then :
4366 $as_echo_n "(cached) " >&6
4368 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4369 then ac_cv_path_FGREP="$GREP -F"
4371 if test -z "$FGREP"; then
4372 ac_path_FGREP_found=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4378 test -z "$as_dir" && as_dir=.
4379 for ac_prog in fgrep; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4382 as_fn_executable_p "$ac_path_FGREP" || continue
4383 # Check for GNU ac_path_FGREP and select it if it is found.
4384 # Check for GNU $ac_path_FGREP
4385 case `"$ac_path_FGREP" --version 2>&1` in
4387 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4390 $as_echo_n 0123456789 >"conftest.in"
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 $as_echo 'FGREP' >> "conftest.nl"
4397 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399 as_fn_arith $ac_count + 1 && ac_count=$as_val
4400 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_FGREP="$ac_path_FGREP"
4403 ac_path_FGREP_max=$ac_count
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4411 $ac_path_FGREP_found && break 3
4416 if test -z "$ac_cv_path_FGREP"; then
4417 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4420 ac_cv_path_FGREP=$FGREP
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4426 $as_echo "$ac_cv_path_FGREP" >&6; }
4427 FGREP="$ac_cv_path_FGREP"
4430 test -z "$GREP" && GREP=grep
4450 # Check whether --with-gnu-ld was given.
4451 if test "${with_gnu_ld+set}" = set; then :
4452 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4458 if test yes = "$GCC"; then
4459 # Check if gcc -print-prog-name=ld gives a path.
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4461 $as_echo_n "checking for ld used by $CC... " >&6; }
4464 # gcc leaves a trailing carriage return, which upsets mingw
4465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4470 # Accept absolute paths.
4472 re_direlt='/[^/][^/]*/\.\./'
4473 # Canonicalize the pathname of ld
4474 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4475 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4476 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4478 test -z "$LD" && LD=$ac_prog
4481 # If it fails, then pretend we aren't using GCC.
4485 # If it is relative, then search for the first ld in PATH.
4489 elif test yes = "$with_gnu_ld"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4491 $as_echo_n "checking for GNU ld... " >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4494 $as_echo_n "checking for non-GNU ld... " >&6; }
4496 if ${lt_cv_path_LD+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 if test -z "$LD"; then
4500 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4501 for ac_dir in $PATH; do
4503 test -z "$ac_dir" && ac_dir=.
4504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4505 lt_cv_path_LD=$ac_dir/$ac_prog
4506 # Check to see if the program is GNU ld. I'd rather use --version,
4507 # but apparently some variants of GNU ld only accept -v.
4508 # Break only if it was the GNU/non-GNU ld that we prefer.
4509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4510 *GNU* | *'with BFD'*)
4511 test no != "$with_gnu_ld" && break
4514 test yes != "$with_gnu_ld" && break
4521 lt_cv_path_LD=$LD # Let the user override the test with a path.
4526 if test -n "$LD"; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4528 $as_echo "$LD" >&6; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4533 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4535 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4536 if ${lt_cv_prog_gnu_ld+:} false; then :
4537 $as_echo_n "(cached) " >&6
4539 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4540 case `$LD -v 2>&1 </dev/null` in
4541 *GNU* | *'with BFD'*)
4542 lt_cv_prog_gnu_ld=yes
4545 lt_cv_prog_gnu_ld=no
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4550 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4551 with_gnu_ld=$lt_cv_prog_gnu_ld
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4562 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4563 if ${lt_cv_path_NM+:} false; then :
4564 $as_echo_n "(cached) " >&6
4566 if test -n "$NM"; then
4567 # Let the user override the test.
4570 lt_nm_to_check=${ac_tool_prefix}nm
4571 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4572 lt_nm_to_check="$lt_nm_to_check nm"
4574 for lt_tmp_nm in $lt_nm_to_check; do
4575 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4576 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4578 test -z "$ac_dir" && ac_dir=.
4579 tmp_nm=$ac_dir/$lt_tmp_nm
4580 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4581 # Check to see if the nm accepts a BSD-compat flag.
4582 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4583 # nm: unknown option "B" ignored
4584 # Tru64's nm complains that /dev/null is an invalid object file
4585 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4587 mingw*) lt_bad_file=conftest.nm/nofile ;;
4588 *) lt_bad_file=/dev/null ;;
4590 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4591 *$lt_bad_file* | *'Invalid file or object type'*)
4592 lt_cv_path_NM="$tmp_nm -B"
4596 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4598 lt_cv_path_NM="$tmp_nm -p"
4602 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4603 continue # so that we can try to find one that supports BSD flags
4612 : ${lt_cv_path_NM=no}
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4616 $as_echo "$lt_cv_path_NM" >&6; }
4617 if test no != "$lt_cv_path_NM"; then
4620 # Didn't find any BSD compatible name lister, look for dumpbin.
4621 if test -n "$DUMPBIN"; then :
4622 # Let the user override the test.
4624 if test -n "$ac_tool_prefix"; then
4625 for ac_prog in dumpbin "link -dump"
4627 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if ${ac_cv_prog_DUMPBIN+:} false; then :
4632 $as_echo_n "(cached) " >&6
4634 if test -n "$DUMPBIN"; then
4635 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 DUMPBIN=$ac_cv_prog_DUMPBIN
4655 if test -n "$DUMPBIN"; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4657 $as_echo "$DUMPBIN" >&6; }
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4664 test -n "$DUMPBIN" && break
4667 if test -z "$DUMPBIN"; then
4668 ac_ct_DUMPBIN=$DUMPBIN
4669 for ac_prog in dumpbin "link -dump"
4671 # Extract the first word of "$ac_prog", so it can be a program name with args.
4672 set dummy $ac_prog; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4676 $as_echo_n "(cached) " >&6
4678 if test -n "$ac_ct_DUMPBIN"; then
4679 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4699 if test -n "$ac_ct_DUMPBIN"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4701 $as_echo "$ac_ct_DUMPBIN" >&6; }
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4708 test -n "$ac_ct_DUMPBIN" && break
4711 if test "x$ac_ct_DUMPBIN" = x; then
4714 case $cross_compiling:$ac_tool_warned in
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718 ac_tool_warned=yes ;;
4720 DUMPBIN=$ac_ct_DUMPBIN
4724 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4726 DUMPBIN="$DUMPBIN -symbols -headers"
4734 if test : != "$DUMPBIN"; then
4738 test -z "$NM" && NM=nm
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4746 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4747 if ${lt_cv_nm_interface+:} false; then :
4748 $as_echo_n "(cached) " >&6
4750 lt_cv_nm_interface="BSD nm"
4751 echo "int some_variable = 0;" > conftest.$ac_ext
4752 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4753 (eval "$ac_compile" 2>conftest.err)
4754 cat conftest.err >&5
4755 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4756 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4757 cat conftest.err >&5
4758 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4759 cat conftest.out >&5
4760 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4761 lt_cv_nm_interface="MS dumpbin"
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4766 $as_echo "$lt_cv_nm_interface" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4769 $as_echo_n "checking whether ln -s works... " >&6; }
4771 if test "$LN_S" = "ln -s"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4773 $as_echo "yes" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4776 $as_echo "no, using $LN_S" >&6; }
4779 # find the maximum length of command line arguments
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4781 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4782 if ${lt_cv_sys_max_cmd_len+:} false; then :
4783 $as_echo_n "(cached) " >&6
4790 # On DJGPP, this test can blow up pretty badly due to problems in libc
4791 # (any single argument exceeding 2000 bytes causes a buffer overrun
4792 # during glob expansion). Even if it were fixed, the result of this
4793 # check would be larger than it should be.
4794 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4798 # Under GNU Hurd, this test is not required because there is
4799 # no limit to the length of command line arguments.
4800 # Libtool will interpret -1 as no limit whatsoever
4801 lt_cv_sys_max_cmd_len=-1;
4804 cygwin* | mingw* | cegcc*)
4805 # On Win9x/ME, this test blows up -- it succeeds, but takes
4806 # about 5 minutes as the teststring grows exponentially.
4807 # Worse, since 9x/ME are not pre-emptively multitasking,
4808 # you end up with a "frozen" computer, even though with patience
4809 # the test eventually succeeds (with a max line length of 256k).
4810 # Instead, let's just punt: use the minimum linelength reported by
4811 # all of the supported platforms: 8192 (on NT/2K/XP).
4812 lt_cv_sys_max_cmd_len=8192;
4816 # On MiNT this can take a long time and run out of memory.
4817 lt_cv_sys_max_cmd_len=8192;
4821 # On AmigaOS with pdksh, this test takes hours, literally.
4822 # So we just punt and use a minimum line length of 8192.
4823 lt_cv_sys_max_cmd_len=8192;
4826 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4827 # This has been around since 386BSD, at least. Likely further.
4828 if test -x /sbin/sysctl; then
4829 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4830 elif test -x /usr/sbin/sysctl; then
4831 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4833 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4835 # And add a safety zone
4836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4841 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4842 lt_cv_sys_max_cmd_len=196608
4846 # The test takes a long time on OS/2.
4847 lt_cv_sys_max_cmd_len=8192
4851 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4852 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4853 # nice to cause kernel panics so lets avoid the loop below.
4854 # First set a reasonable default.
4855 lt_cv_sys_max_cmd_len=16384
4857 if test -x /sbin/sysconfig; then
4858 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4859 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4864 lt_cv_sys_max_cmd_len=102400
4866 sysv5* | sco5v6* | sysv4.2uw2*)
4867 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4868 if test -n "$kargmax"; then
4869 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4871 lt_cv_sys_max_cmd_len=32768
4875 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4876 if test -n "$lt_cv_sys_max_cmd_len" && \
4877 test undefined != "$lt_cv_sys_max_cmd_len"; then
4878 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4881 # Make teststring a little bigger before we do anything with it.
4882 # a 1K string should be a reasonable start.
4883 for i in 1 2 3 4 5 6 7 8; do
4884 teststring=$teststring$teststring
4886 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4887 # If test is not a shell built-in, we'll probably end up computing a
4888 # maximum length that is only half of the actual maximum length, but
4890 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4891 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4892 test 17 != "$i" # 1/2 MB should be enough
4895 teststring=$teststring$teststring
4897 # Only check the string length outside the loop.
4898 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4900 # Add a significant safety factor because C++ compilers can tack on
4901 # massive amounts of additional arguments before passing them to the
4902 # linker. It appears as though 1/2 is a usable value.
4903 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4910 if test -n "$lt_cv_sys_max_cmd_len"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4912 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4915 $as_echo "none" >&6; }
4917 max_cmd_len=$lt_cv_sys_max_cmd_len
4928 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4938 # test EBCDIC or ASCII
4939 case `echo X|tr X '\101'` in
4940 A) # ASCII based system
4941 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4942 lt_SP2NL='tr \040 \012'
4943 lt_NL2SP='tr \015\012 \040\040'
4945 *) # EBCDIC based system
4946 lt_SP2NL='tr \100 \n'
4947 lt_NL2SP='tr \r\n \100\100'
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4960 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4961 if ${lt_cv_to_host_file_cmd+:} false; then :
4962 $as_echo_n "(cached) " >&6
4967 *-*-mingw* ) # actually msys
4968 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4971 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4973 * ) # otherwise, assume *nix
4974 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4980 *-*-mingw* ) # actually msys
4981 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4984 lt_cv_to_host_file_cmd=func_convert_file_noop
4986 * ) # otherwise, assume *nix
4987 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4991 * ) # unhandled hosts (and "normal" native builds)
4992 lt_cv_to_host_file_cmd=func_convert_file_noop
4998 to_host_file_cmd=$lt_cv_to_host_file_cmd
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5000 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5007 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5008 if ${lt_cv_to_tool_file_cmd+:} false; then :
5009 $as_echo_n "(cached) " >&6
5011 #assume ordinary cross tools, or native build.
5012 lt_cv_to_tool_file_cmd=func_convert_file_noop
5016 *-*-mingw* ) # actually msys
5017 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5025 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5027 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5034 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5035 if ${lt_cv_ld_reload_flag+:} false; then :
5036 $as_echo_n "(cached) " >&6
5038 lt_cv_ld_reload_flag='-r'
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5041 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5042 reload_flag=$lt_cv_ld_reload_flag
5043 case $reload_flag in
5045 *) reload_flag=" $reload_flag" ;;
5047 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5049 cygwin* | mingw* | pw32* | cegcc*)
5050 if test yes != "$GCC"; then
5055 if test yes = "$GCC"; then
5056 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5071 if test -n "$ac_tool_prefix"; then
5072 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5073 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_prog_OBJDUMP+:} false; then :
5077 $as_echo_n "(cached) " >&6
5079 if test -n "$OBJDUMP"; then
5080 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 OBJDUMP=$ac_cv_prog_OBJDUMP
5100 if test -n "$OBJDUMP"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5102 $as_echo "$OBJDUMP" >&6; }
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5110 if test -z "$ac_cv_prog_OBJDUMP"; then
5111 ac_ct_OBJDUMP=$OBJDUMP
5112 # Extract the first word of "objdump", so it can be a program name with args.
5113 set dummy objdump; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5117 $as_echo_n "(cached) " >&6
5119 if test -n "$ac_ct_OBJDUMP"; then
5120 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5140 if test -n "$ac_ct_OBJDUMP"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5142 $as_echo "$ac_ct_OBJDUMP" >&6; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5148 if test "x$ac_ct_OBJDUMP" = x; then
5151 case $cross_compiling:$ac_tool_warned in
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5155 ac_tool_warned=yes ;;
5157 OBJDUMP=$ac_ct_OBJDUMP
5160 OBJDUMP="$ac_cv_prog_OBJDUMP"
5163 test -z "$OBJDUMP" && OBJDUMP=objdump
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5171 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5172 if ${lt_cv_deplibs_check_method+:} false; then :
5173 $as_echo_n "(cached) " >&6
5175 lt_cv_file_magic_cmd='$MAGIC_CMD'
5176 lt_cv_file_magic_test_file=
5177 lt_cv_deplibs_check_method='unknown'
5178 # Need to set the preceding variable on all platforms that support
5179 # interlibrary dependencies.
5180 # 'none' -- dependencies not supported.
5181 # 'unknown' -- same as none, but documents that we really don't know.
5182 # 'pass_all' -- all dependencies passed with no checks.
5183 # 'test_compile' -- check by making test program.
5184 # 'file_magic [[regex]]' -- check by looking for files in library path
5185 # that responds to the $file_magic_cmd with a given extended regex.
5186 # If you have 'file' or equivalent on your system and you're not sure
5187 # whether 'pass_all' will *always* work, you probably want this one.
5191 lt_cv_deplibs_check_method=pass_all
5195 lt_cv_deplibs_check_method=pass_all
5199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5200 lt_cv_file_magic_cmd='/usr/bin/file -L'
5201 lt_cv_file_magic_test_file=/shlib/libc.so
5205 # func_win32_libid is a shell function defined in ltmain.sh
5206 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5207 lt_cv_file_magic_cmd='func_win32_libid'
5211 # Base MSYS/MinGW do not provide the 'file' command needed by
5212 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5213 # unless we find 'file', for example because we are cross-compiling.
5214 if ( file / ) >/dev/null 2>&1; then
5215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5216 lt_cv_file_magic_cmd='func_win32_libid'
5218 # Keep this pattern in sync with the one in func_win32_libid.
5219 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5220 lt_cv_file_magic_cmd='$OBJDUMP -f'
5225 # use the weaker test based on 'objdump'. See mingw*.
5226 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5227 lt_cv_file_magic_cmd='$OBJDUMP -f'
5230 darwin* | rhapsody*)
5231 lt_cv_deplibs_check_method=pass_all
5234 freebsd* | dragonfly*)
5235 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5238 # Not sure whether the presence of OpenBSD here was a mistake.
5239 # Let's accept both of them until this is cleared up.
5240 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5241 lt_cv_file_magic_cmd=/usr/bin/file
5242 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5246 lt_cv_deplibs_check_method=pass_all
5251 lt_cv_deplibs_check_method=pass_all
5254 hpux10.20* | hpux11*)
5255 lt_cv_file_magic_cmd=/usr/bin/file
5258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5259 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5262 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]'
5263 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5267 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5273 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5274 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5277 irix5* | irix6* | nonstopux*)
5279 *-32|*"-32 ") libmagic=32-bit;;
5280 *-n32|*"-n32 ") libmagic=N32;;
5281 *-64|*"-64 ") libmagic=64-bit;;
5282 *) libmagic=never-match;;
5284 lt_cv_deplibs_check_method=pass_all
5287 # This must be glibc/ELF.
5288 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5289 lt_cv_deplibs_check_method=pass_all
5292 netbsd* | netbsdelf*-gnu)
5293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5296 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5302 lt_cv_file_magic_cmd=/usr/bin/file
5303 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5307 lt_cv_deplibs_check_method=pass_all
5311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5318 osf3* | osf4* | osf5*)
5319 lt_cv_deplibs_check_method=pass_all
5323 lt_cv_deplibs_check_method=pass_all
5327 lt_cv_deplibs_check_method=pass_all
5330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5331 lt_cv_deplibs_check_method=pass_all
5335 case $host_vendor in
5337 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]'
5338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5341 lt_cv_deplibs_check_method=pass_all
5344 lt_cv_file_magic_cmd='/bin/file'
5345 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5348 lt_cv_file_magic_cmd='/bin/file'
5349 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5350 lt_cv_file_magic_test_file=/lib/libc.so
5353 lt_cv_deplibs_check_method=pass_all
5356 lt_cv_deplibs_check_method=pass_all
5362 lt_cv_deplibs_check_method=pass_all
5365 lt_cv_deplibs_check_method=pass_all
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5371 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5375 if test "$build" = "$host"; then
5378 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5381 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5387 file_magic_cmd=$lt_cv_file_magic_cmd
5388 deplibs_check_method=$lt_cv_deplibs_check_method
5389 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5412 if test -n "$ac_tool_prefix"; then
5413 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5414 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_prog_DLLTOOL+:} false; then :
5418 $as_echo_n "(cached) " >&6
5420 if test -n "$DLLTOOL"; then
5421 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 DLLTOOL=$ac_cv_prog_DLLTOOL
5441 if test -n "$DLLTOOL"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5443 $as_echo "$DLLTOOL" >&6; }
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5451 if test -z "$ac_cv_prog_DLLTOOL"; then
5452 ac_ct_DLLTOOL=$DLLTOOL
5453 # Extract the first word of "dlltool", so it can be a program name with args.
5454 set dummy dlltool; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5458 $as_echo_n "(cached) " >&6
5460 if test -n "$ac_ct_DLLTOOL"; then
5461 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5481 if test -n "$ac_ct_DLLTOOL"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5483 $as_echo "$ac_ct_DLLTOOL" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5489 if test "x$ac_ct_DLLTOOL" = x; then
5492 case $cross_compiling:$ac_tool_warned in
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5496 ac_tool_warned=yes ;;
5498 DLLTOOL=$ac_ct_DLLTOOL
5501 DLLTOOL="$ac_cv_prog_DLLTOOL"
5504 test -z "$DLLTOOL" && DLLTOOL=dlltool
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5513 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5514 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5515 $as_echo_n "(cached) " >&6
5517 lt_cv_sharedlib_from_linklib_cmd='unknown'
5520 cygwin* | mingw* | pw32* | cegcc*)
5521 # two different shell functions defined in ltmain.sh;
5522 # decide which one to use based on capabilities of $DLLTOOL
5523 case `$DLLTOOL --help 2>&1` in
5524 *--identify-strict*)
5525 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5528 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5533 # fallback: assume linklib IS sharedlib
5534 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5540 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5541 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5542 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5551 if test -n "$ac_tool_prefix"; then
5554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_prog_AR+:} false; then :
5559 $as_echo_n "(cached) " >&6
5561 if test -n "$AR"; then
5562 ac_cv_prog_AR="$AR" # Let the user override the test.
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 if test -n "$AR"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5584 $as_echo "$AR" >&6; }
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5591 test -n "$AR" && break
5594 if test -z "$AR"; then
5598 # Extract the first word of "$ac_prog", so it can be a program name with args.
5599 set dummy $ac_prog; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5603 $as_echo_n "(cached) " >&6
5605 if test -n "$ac_ct_AR"; then
5606 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615 ac_cv_prog_ac_ct_AR="$ac_prog"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5626 if test -n "$ac_ct_AR"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5628 $as_echo "$ac_ct_AR" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5635 test -n "$ac_ct_AR" && break
5638 if test "x$ac_ct_AR" = x; then
5641 case $cross_compiling:$ac_tool_warned in
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645 ac_tool_warned=yes ;;
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5665 $as_echo_n "checking for archiver @FILE support... " >&6; }
5666 if ${lt_cv_ar_at_file+:} false; then :
5667 $as_echo_n "(cached) " >&6
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5681 if ac_fn_c_try_compile "$LINENO"; then :
5682 echo conftest.$ac_objext > conftest.lst
5683 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5685 (eval $lt_ar_try) 2>&5
5687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5688 test $ac_status = 0; }
5689 if test 0 -eq "$ac_status"; then
5690 # Ensure the archiver fails upon bogus file names.
5691 rm -f conftest.$ac_objext libconftest.a
5692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5693 (eval $lt_ar_try) 2>&5
5695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696 test $ac_status = 0; }
5697 if test 0 -ne "$ac_status"; then
5701 rm -f conftest.* libconftest.a
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5708 $as_echo "$lt_cv_ar_at_file" >&6; }
5710 if test no = "$lt_cv_ar_at_file"; then
5713 archiver_list_spec=$lt_cv_ar_at_file
5722 if test -n "$ac_tool_prefix"; then
5723 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5724 set dummy ${ac_tool_prefix}strip; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_prog_STRIP+:} false; then :
5728 $as_echo_n "(cached) " >&6
5730 if test -n "$STRIP"; then
5731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 STRIP=$ac_cv_prog_STRIP
5751 if test -n "$STRIP"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5753 $as_echo "$STRIP" >&6; }
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5761 if test -z "$ac_cv_prog_STRIP"; then
5763 # Extract the first word of "strip", so it can be a program name with args.
5764 set dummy strip; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5768 $as_echo_n "(cached) " >&6
5770 if test -n "$ac_ct_STRIP"; then
5771 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_ac_ct_STRIP="strip"
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5790 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5791 if test -n "$ac_ct_STRIP"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5793 $as_echo "$ac_ct_STRIP" >&6; }
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5799 if test "x$ac_ct_STRIP" = x; then
5802 case $cross_compiling:$ac_tool_warned in
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5806 ac_tool_warned=yes ;;
5811 STRIP="$ac_cv_prog_STRIP"
5814 test -z "$STRIP" && STRIP=:
5821 if test -n "$ac_tool_prefix"; then
5822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_prog_RANLIB+:} false; then :
5827 $as_echo_n "(cached) " >&6
5829 if test -n "$RANLIB"; then
5830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 RANLIB=$ac_cv_prog_RANLIB
5850 if test -n "$RANLIB"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5852 $as_echo "$RANLIB" >&6; }
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5860 if test -z "$ac_cv_prog_RANLIB"; then
5861 ac_ct_RANLIB=$RANLIB
5862 # Extract the first word of "ranlib", so it can be a program name with args.
5863 set dummy ranlib; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5867 $as_echo_n "(cached) " >&6
5869 if test -n "$ac_ct_RANLIB"; then
5870 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_ac_ct_RANLIB="ranlib"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5890 if test -n "$ac_ct_RANLIB"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5892 $as_echo "$ac_ct_RANLIB" >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5898 if test "x$ac_ct_RANLIB" = x; then
5901 case $cross_compiling:$ac_tool_warned in
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5907 RANLIB=$ac_ct_RANLIB
5910 RANLIB="$ac_cv_prog_RANLIB"
5913 test -z "$RANLIB" && RANLIB=:
5920 # Determine commands to create old-style static archives.
5921 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5922 old_postinstall_cmds='chmod 644 $oldlib'
5923 old_postuninstall_cmds=
5925 if test -n "$RANLIB"; then
5928 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5931 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5934 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5939 lock_old_archive_extraction=yes ;;
5941 lock_old_archive_extraction=no ;;
5982 # If no C compiler was specified, use CC.
5985 # If no C compiler flags were specified, use CFLAGS.
5986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5988 # Allow CC to be a program name with arguments.
5992 # Check for command to grab the raw symbol name followed by C symbol from nm.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5994 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5995 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5996 $as_echo_n "(cached) " >&6
5999 # These are sane defaults that work on at least a few old systems.
6000 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6002 # Character class describing NM global symbol codes.
6003 symcode='[BCDEGRST]'
6005 # Regexp to match symbols that can be accessed directly from C.
6006 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6008 # Define system-specific variables.
6013 cygwin* | mingw* | pw32* | cegcc*)
6014 symcode='[ABCDGISTW]'
6017 if test ia64 = "$host_cpu"; then
6018 symcode='[ABCDEGRST]'
6022 symcode='[BCDEGRST]'
6025 symcode='[BCDEGQRST]'
6036 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6044 # If we're using GNU nm, then use its standard symbol codes.
6045 case `$NM -V 2>&1` in
6046 *GNU* | *'with BFD'*)
6047 symcode='[ABCDGIRSTW]' ;;
6050 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6051 # Gets list of data symbols to import.
6052 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6053 # Adjust the below global symbol transforms to fixup imported variables.
6054 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6055 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6056 lt_c_name_lib_hook="\
6057 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6058 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6060 # Disable hooks by default.
6061 lt_cv_sys_global_symbol_to_import=
6067 # Transform an extracted symbol line into a proper C declaration.
6068 # Some systems (esp. on ia64) link data and code symbols differently,
6069 # so use this general approach.
6070 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6072 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6073 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6075 # Transform an extracted symbol line into symbol name and symbol address
6076 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6078 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6079 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6081 # Transform an extracted symbol line into symbol name with lib prefix and
6083 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6084 $lt_c_name_lib_hook\
6085 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6086 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6087 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6089 # Handle CRLF in mingw tool chain
6093 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6097 # Try without a prefix underscore, then with it.
6098 for ac_symprfx in "" "_"; do
6100 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6101 symxfrm="\\1 $ac_symprfx\\2 \\2"
6103 # Write the raw and C identifiers.
6104 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6105 # Fake it for dumpbin and say T for any non-static function,
6106 # D for any global variable and I for any imported variable.
6107 # Also find C++ and __fastcall symbols from MSVC++,
6108 # which start with @ or ?.
6109 lt_cv_sys_global_symbol_pipe="$AWK '"\
6110 " {last_section=section; section=\$ 3};"\
6111 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6112 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6113 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6114 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6115 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6116 " \$ 0!~/External *\|/{next};"\
6117 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6118 " {if(hide[section]) next};"\
6119 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6120 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6121 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6122 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6123 " ' prfx=^$ac_symprfx"
6125 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6127 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6129 # Check to see that the pipe works correctly.
6133 cat > conftest.$ac_ext <<_LT_EOF
6138 void nm_test_func(void);
6139 void nm_test_func(void){}
6143 int main(){nm_test_var='a';nm_test_func();return(0);}
6146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6147 (eval $ac_compile) 2>&5
6149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6150 test $ac_status = 0; }; then
6151 # Now try to grab the symbols.
6153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6154 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6157 test $ac_status = 0; } && test -s "$nlist"; then
6158 # Try sorting and uniquifying the output.
6159 if sort "$nlist" | uniq > "$nlist"T; then
6160 mv -f "$nlist"T "$nlist"
6165 # Make sure that we snagged all the symbols we need.
6166 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6167 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6168 cat <<_LT_EOF > conftest.$ac_ext
6169 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6170 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6171 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6172 relocations are performed -- see ld's documentation on pseudo-relocs. */
6173 # define LT_DLSYM_CONST
6174 #elif defined __osf__
6175 /* This system does not cope well with relocations in const data. */
6176 # define LT_DLSYM_CONST
6178 # define LT_DLSYM_CONST const
6186 # Now generate the symbol file.
6187 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6189 cat <<_LT_EOF >> conftest.$ac_ext
6191 /* The mapping between symbol names and symbols. */
6192 LT_DLSYM_CONST struct {
6196 lt__PROGRAM__LTX_preloaded_symbols[] =
6198 { "@PROGRAM@", (void *) 0 },
6200 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6201 cat <<\_LT_EOF >> conftest.$ac_ext
6205 /* This works around a problem in FreeBSD linker */
6206 #ifdef FREEBSD_WORKAROUND
6207 static const void *lt_preloaded_setup() {
6208 return lt__PROGRAM__LTX_preloaded_symbols;
6216 # Now try linking the two files.
6217 mv conftest.$ac_objext conftstm.$ac_objext
6218 lt_globsym_save_LIBS=$LIBS
6219 lt_globsym_save_CFLAGS=$CFLAGS
6220 LIBS=conftstm.$ac_objext
6221 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6223 (eval $ac_link) 2>&5
6225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6229 LIBS=$lt_globsym_save_LIBS
6230 CFLAGS=$lt_globsym_save_CFLAGS
6232 echo "cannot find nm_test_func in $nlist" >&5
6235 echo "cannot find nm_test_var in $nlist" >&5
6238 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6241 echo "$progname: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6244 rm -rf conftest* conftst*
6246 # Do not use the global_symbol_pipe unless it works.
6247 if test yes = "$pipe_works"; then
6250 lt_cv_sys_global_symbol_pipe=
6256 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6257 lt_cv_sys_global_symbol_to_cdecl=
6259 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6261 $as_echo "failed" >&6; }
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6264 $as_echo "ok" >&6; }
6267 # Response file support.
6268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6269 nm_file_list_spec='@'
6270 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6271 nm_file_list_spec='@'
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6311 $as_echo_n "checking for sysroot... " >&6; }
6313 # Check whether --with-sysroot was given.
6314 if test "${with_sysroot+set}" = set; then :
6315 withval=$with_sysroot;
6322 case $with_sysroot in #(
6324 if test yes = "$GCC"; then
6325 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6329 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6335 $as_echo "$with_sysroot" >&6; }
6336 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6341 $as_echo "${lt_sysroot:-no}" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6348 $as_echo_n "checking for a working dd... " >&6; }
6349 if ${ac_cv_path_lt_DD+:} false; then :
6350 $as_echo_n "(cached) " >&6
6352 printf 0123456789abcdef0123456789abcdef >conftest.i
6353 cat conftest.i conftest.i >conftest2.i
6355 if test -z "$lt_DD"; then
6356 ac_path_lt_DD_found=false
6357 # Loop through the user's path and test for each of PROGNAME-LIST
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_prog in dd; do
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6366 as_fn_executable_p "$ac_path_lt_DD" || continue
6367 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6368 cmp -s conftest.i conftest.out \
6369 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6371 $ac_path_lt_DD_found && break 3
6376 if test -z "$ac_cv_path_lt_DD"; then
6380 ac_cv_path_lt_DD=$lt_DD
6383 rm -f conftest.i conftest2.i conftest.out
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6386 $as_echo "$ac_cv_path_lt_DD" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6390 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6391 if ${lt_cv_truncate_bin+:} false; then :
6392 $as_echo_n "(cached) " >&6
6394 printf 0123456789abcdef0123456789abcdef >conftest.i
6395 cat conftest.i conftest.i >conftest2.i
6397 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6398 cmp -s conftest.i conftest.out \
6399 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6401 rm -f conftest.i conftest2.i conftest.out
6402 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6405 $as_echo "$lt_cv_truncate_bin" >&6; }
6413 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6416 for cc_temp in $*""; do
6418 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6419 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6424 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6427 # Check whether --enable-libtool-lock was given.
6428 if test "${enable_libtool_lock+set}" = set; then :
6429 enableval=$enable_libtool_lock;
6432 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6434 # Some flags need to be propagated to the compiler or linker for good
6438 # Find out what ABI is being produced by ac_compile, and set mode
6439 # options accordingly.
6440 echo 'int i;' > conftest.$ac_ext
6441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6442 (eval $ac_compile) 2>&5
6444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445 test $ac_status = 0; }; then
6446 case `/usr/bin/file conftest.$ac_objext` in
6458 # Find out what ABI is being produced by ac_compile, and set linker
6459 # options accordingly.
6460 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462 (eval $ac_compile) 2>&5
6464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465 test $ac_status = 0; }; then
6466 if test yes = "$lt_cv_prog_gnu_ld"; then
6467 case `/usr/bin/file conftest.$ac_objext` in
6469 LD="${LD-ld} -melf32bsmip"
6472 LD="${LD-ld} -melf32bmipn32"
6475 LD="${LD-ld} -melf64bmip"
6479 case `/usr/bin/file conftest.$ac_objext` in
6496 # Find out what ABI is being produced by ac_compile, and set linker
6497 # options accordingly.
6498 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500 (eval $ac_compile) 2>&5
6502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503 test $ac_status = 0; }; then
6505 case `/usr/bin/file conftest.$ac_objext` in
6513 case `/usr/bin/file conftest.$ac_objext` in
6515 emul="${emul}btsmip"
6518 emul="${emul}ltsmip"
6521 case `/usr/bin/file conftest.$ac_objext` in
6526 LD="${LD-ld} -m $emul"
6531 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6532 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6533 # Find out what ABI is being produced by ac_compile, and set linker
6534 # options accordingly. Note that the listed cases only cover the
6535 # situations where additional linker options are needed (such as when
6536 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6537 # vice versa); the common cases where no linker options are needed do
6538 # not appear in the list.
6539 echo 'int i;' > conftest.$ac_ext
6540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541 (eval $ac_compile) 2>&5
6543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544 test $ac_status = 0; }; then
6545 case `/usr/bin/file conftest.o` in
6548 x86_64-*kfreebsd*-gnu)
6549 LD="${LD-ld} -m elf_i386_fbsd"
6552 case `/usr/bin/file conftest.o` in
6554 LD="${LD-ld} -m elf32_x86_64"
6557 LD="${LD-ld} -m elf_i386"
6561 powerpc64le-*linux*)
6562 LD="${LD-ld} -m elf32lppclinux"
6565 LD="${LD-ld} -m elf32ppclinux"
6568 LD="${LD-ld} -m elf_s390"
6571 LD="${LD-ld} -m elf32_sparc"
6577 x86_64-*kfreebsd*-gnu)
6578 LD="${LD-ld} -m elf_x86_64_fbsd"
6581 LD="${LD-ld} -m elf_x86_64"
6584 LD="${LD-ld} -m elf64lppc"
6587 LD="${LD-ld} -m elf64ppc"
6589 s390*-*linux*|s390*-*tpf*)
6590 LD="${LD-ld} -m elf64_s390"
6593 LD="${LD-ld} -m elf64_sparc"
6603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6605 CFLAGS="$CFLAGS -belf"
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6607 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6608 if ${lt_cv_cc_needs_belf+:} false; then :
6609 $as_echo_n "(cached) " >&6
6612 ac_cpp='$CPP $CPPFLAGS'
6613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6628 if ac_fn_c_try_link "$LINENO"; then :
6629 lt_cv_cc_needs_belf=yes
6631 lt_cv_cc_needs_belf=no
6633 rm -f core conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6643 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6644 if test yes != "$lt_cv_cc_needs_belf"; then
6645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6650 # Find out what ABI is being produced by ac_compile, and set linker
6651 # options accordingly.
6652 echo 'int i;' > conftest.$ac_ext
6653 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6654 (eval $ac_compile) 2>&5
6656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657 test $ac_status = 0; }; then
6658 case `/usr/bin/file conftest.o` in
6660 case $lt_cv_prog_gnu_ld in
6663 i?86-*-solaris*|x86_64-*-solaris*)
6664 LD="${LD-ld} -m elf_x86_64"
6667 LD="${LD-ld} -m elf64_sparc"
6670 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6671 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6676 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6688 need_locks=$enable_libtool_lock
6690 if test -n "$ac_tool_prefix"; then
6691 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6692 set dummy ${ac_tool_prefix}mt; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6696 $as_echo_n "(cached) " >&6
6698 if test -n "$MANIFEST_TOOL"; then
6699 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6719 if test -n "$MANIFEST_TOOL"; then
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6721 $as_echo "$MANIFEST_TOOL" >&6; }
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6729 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6730 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6731 # Extract the first word of "mt", so it can be a program name with args.
6732 set dummy mt; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6736 $as_echo_n "(cached) " >&6
6738 if test -n "$ac_ct_MANIFEST_TOOL"; then
6739 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6759 if test -n "$ac_ct_MANIFEST_TOOL"; then
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6761 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6767 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6770 case $cross_compiling:$ac_tool_warned in
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774 ac_tool_warned=yes ;;
6776 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6779 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6782 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6784 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6785 if ${lt_cv_path_mainfest_tool+:} false; then :
6786 $as_echo_n "(cached) " >&6
6788 lt_cv_path_mainfest_tool=no
6789 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6790 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6791 cat conftest.err >&5
6792 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6793 lt_cv_path_mainfest_tool=yes
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6798 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6799 if test yes != "$lt_cv_path_mainfest_tool"; then
6809 rhapsody* | darwin*)
6810 if test -n "$ac_tool_prefix"; then
6811 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6816 $as_echo_n "(cached) " >&6
6818 if test -n "$DSYMUTIL"; then
6819 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 test -z "$as_dir" && as_dir=.
6826 for ac_exec_ext in '' $ac_executable_extensions; do
6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6839 if test -n "$DSYMUTIL"; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6841 $as_echo "$DSYMUTIL" >&6; }
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6849 if test -z "$ac_cv_prog_DSYMUTIL"; then
6850 ac_ct_DSYMUTIL=$DSYMUTIL
6851 # Extract the first word of "dsymutil", so it can be a program name with args.
6852 set dummy dsymutil; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6856 $as_echo_n "(cached) " >&6
6858 if test -n "$ac_ct_DSYMUTIL"; then
6859 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6879 if test -n "$ac_ct_DSYMUTIL"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6881 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6887 if test "x$ac_ct_DSYMUTIL" = x; then
6890 case $cross_compiling:$ac_tool_warned in
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6896 DSYMUTIL=$ac_ct_DSYMUTIL
6899 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6902 if test -n "$ac_tool_prefix"; then
6903 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6904 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if ${ac_cv_prog_NMEDIT+:} false; then :
6908 $as_echo_n "(cached) " >&6
6910 if test -n "$NMEDIT"; then
6911 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 NMEDIT=$ac_cv_prog_NMEDIT
6931 if test -n "$NMEDIT"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6933 $as_echo "$NMEDIT" >&6; }
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6941 if test -z "$ac_cv_prog_NMEDIT"; then
6942 ac_ct_NMEDIT=$NMEDIT
6943 # Extract the first word of "nmedit", so it can be a program name with args.
6944 set dummy nmedit; ac_word=$2
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6948 $as_echo_n "(cached) " >&6
6950 if test -n "$ac_ct_NMEDIT"; then
6951 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6971 if test -n "$ac_ct_NMEDIT"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6973 $as_echo "$ac_ct_NMEDIT" >&6; }
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 $as_echo "no" >&6; }
6979 if test "x$ac_ct_NMEDIT" = x; then
6982 case $cross_compiling:$ac_tool_warned in
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned=yes ;;
6988 NMEDIT=$ac_ct_NMEDIT
6991 NMEDIT="$ac_cv_prog_NMEDIT"
6994 if test -n "$ac_tool_prefix"; then
6995 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6996 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if ${ac_cv_prog_LIPO+:} false; then :
7000 $as_echo_n "(cached) " >&6
7002 if test -n "$LIPO"; then
7003 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 LIPO=$ac_cv_prog_LIPO
7023 if test -n "$LIPO"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7025 $as_echo "$LIPO" >&6; }
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7033 if test -z "$ac_cv_prog_LIPO"; then
7035 # Extract the first word of "lipo", so it can be a program name with args.
7036 set dummy lipo; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7040 $as_echo_n "(cached) " >&6
7042 if test -n "$ac_ct_LIPO"; then
7043 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_ac_ct_LIPO="lipo"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7062 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7063 if test -n "$ac_ct_LIPO"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7065 $as_echo "$ac_ct_LIPO" >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7071 if test "x$ac_ct_LIPO" = x; then
7074 case $cross_compiling:$ac_tool_warned in
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078 ac_tool_warned=yes ;;
7083 LIPO="$ac_cv_prog_LIPO"
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7088 set dummy ${ac_tool_prefix}otool; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_OTOOL+:} false; then :
7092 $as_echo_n "(cached) " >&6
7094 if test -n "$OTOOL"; then
7095 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 OTOOL=$ac_cv_prog_OTOOL
7115 if test -n "$OTOOL"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7117 $as_echo "$OTOOL" >&6; }
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7125 if test -z "$ac_cv_prog_OTOOL"; then
7127 # Extract the first word of "otool", so it can be a program name with args.
7128 set dummy otool; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7132 $as_echo_n "(cached) " >&6
7134 if test -n "$ac_ct_OTOOL"; then
7135 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144 ac_cv_prog_ac_ct_OTOOL="otool"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7155 if test -n "$ac_ct_OTOOL"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7157 $as_echo "$ac_ct_OTOOL" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7163 if test "x$ac_ct_OTOOL" = x; then
7166 case $cross_compiling:$ac_tool_warned in
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7175 OTOOL="$ac_cv_prog_OTOOL"
7178 if test -n "$ac_tool_prefix"; then
7179 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7180 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_OTOOL64+:} false; then :
7184 $as_echo_n "(cached) " >&6
7186 if test -n "$OTOOL64"; then
7187 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 OTOOL64=$ac_cv_prog_OTOOL64
7207 if test -n "$OTOOL64"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7209 $as_echo "$OTOOL64" >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7217 if test -z "$ac_cv_prog_OTOOL64"; then
7218 ac_ct_OTOOL64=$OTOOL64
7219 # Extract the first word of "otool64", so it can be a program name with args.
7220 set dummy otool64; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7224 $as_echo_n "(cached) " >&6
7226 if test -n "$ac_ct_OTOOL64"; then
7227 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236 ac_cv_prog_ac_ct_OTOOL64="otool64"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7247 if test -n "$ac_ct_OTOOL64"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7249 $as_echo "$ac_ct_OTOOL64" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7255 if test "x$ac_ct_OTOOL64" = x; then
7258 case $cross_compiling:$ac_tool_warned in
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262 ac_tool_warned=yes ;;
7264 OTOOL64=$ac_ct_OTOOL64
7267 OTOOL64="$ac_cv_prog_OTOOL64"
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7297 $as_echo_n "checking for -single_module linker flag... " >&6; }
7298 if ${lt_cv_apple_cc_single_mod+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 lt_cv_apple_cc_single_mod=no
7302 if test -z "$LT_MULTI_MODULE"; then
7303 # By default we will add the -single_module flag. You can override
7304 # by either setting the environment variable LT_MULTI_MODULE
7305 # non-empty at configure time, or by adding -multi_module to the
7307 rm -rf libconftest.dylib*
7308 echo "int foo(void){return 1;}" > conftest.c
7309 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7310 -dynamiclib -Wl,-single_module conftest.c" >&5
7311 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7312 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7314 # If there is a non-empty error log, and "single_module"
7315 # appears in it, assume the flag caused a linker warning
7316 if test -s conftest.err && $GREP single_module conftest.err; then
7317 cat conftest.err >&5
7318 # Otherwise, if the output was created with a 0 exit code from
7319 # the compiler, it worked.
7320 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7321 lt_cv_apple_cc_single_mod=yes
7323 cat conftest.err >&5
7325 rm -rf libconftest.dylib*
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7330 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7333 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7334 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7335 $as_echo_n "(cached) " >&6
7337 lt_cv_ld_exported_symbols_list=no
7338 save_LDFLAGS=$LDFLAGS
7339 echo "_main" > conftest.sym
7340 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7352 if ac_fn_c_try_link "$LINENO"; then :
7353 lt_cv_ld_exported_symbols_list=yes
7355 lt_cv_ld_exported_symbols_list=no
7357 rm -f core conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext
7359 LDFLAGS=$save_LDFLAGS
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7363 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7366 $as_echo_n "checking for -force_load linker flag... " >&6; }
7367 if ${lt_cv_ld_force_load+:} false; then :
7368 $as_echo_n "(cached) " >&6
7370 lt_cv_ld_force_load=no
7371 cat > conftest.c << _LT_EOF
7372 int forced_loaded() { return 2;}
7374 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7375 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7376 echo "$AR cru libconftest.a conftest.o" >&5
7377 $AR cru libconftest.a conftest.o 2>&5
7378 echo "$RANLIB libconftest.a" >&5
7379 $RANLIB libconftest.a 2>&5
7380 cat > conftest.c << _LT_EOF
7381 int main() { return 0;}
7383 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7384 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7386 if test -s conftest.err && $GREP force_load conftest.err; then
7387 cat conftest.err >&5
7388 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7389 lt_cv_ld_force_load=yes
7391 cat conftest.err >&5
7393 rm -f conftest.err libconftest.a conftest conftest.c
7394 rm -rf conftest.dSYM
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7398 $as_echo "$lt_cv_ld_force_load" >&6; }
7400 rhapsody* | darwin1.[012])
7401 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7403 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7404 darwin*) # darwin 5.x on
7405 # if running on 10.5 or later, the deployment target defaults
7406 # to the OS version, if on x86, and 10.4, the deployment
7407 # target defaults to 10.4. Don't you love it?
7408 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7409 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7410 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7412 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7414 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7418 if test yes = "$lt_cv_apple_cc_single_mod"; then
7419 _lt_dar_single_mod='$single_module'
7421 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7422 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7424 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7426 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7427 _lt_dsymutil='~$DSYMUTIL $lib || :'
7434 # func_munge_path_list VARIABLE PATH
7435 # -----------------------------------
7436 # VARIABLE is name of variable containing _space_ separated list of
7437 # directories to be munged by the contents of PATH, which is string
7440 # string "DIR[ DIR]" will be prepended to VARIABLE
7442 # string "DIR[ DIR]" will be appended to VARIABLE
7443 # "DIRP[:DIRP]::[DIRA:]DIRA"
7444 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7445 # "DIRA[ DIRA]" will be appended to VARIABLE
7447 # VARIABLE will be replaced by "DIR[ DIR]"
7448 func_munge_path_list ()
7454 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7457 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7460 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7461 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7464 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7470 ac_cpp='$CPP $CPPFLAGS'
7471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7475 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7476 # On Suns, sometimes $CPP names a directory.
7477 if test -n "$CPP" && test -d "$CPP"; then
7480 if test -z "$CPP"; then
7481 if ${ac_cv_prog_CPP+:} false; then :
7482 $as_echo_n "(cached) " >&6
7484 # Double quotes because CPP needs to be expanded
7485 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7488 for ac_c_preproc_warn_flag in '' yes
7490 # Use a header file that comes with gcc, so configuring glibc
7491 # with a fresh cross-compiler works.
7492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7493 # <limits.h> exists even on freestanding compilers.
7494 # On the NeXT, cc -E runs the code through the compiler's parser,
7495 # not just through cpp. "Syntax error" is here to catch this case.
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7499 # include <limits.h>
7501 # include <assert.h>
7505 if ac_fn_c_try_cpp "$LINENO"; then :
7508 # Broken: fails on valid input.
7511 rm -f conftest.err conftest.i conftest.$ac_ext
7513 # OK, works on sane cases. Now check whether nonexistent headers
7514 # can be detected and how.
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7517 #include <ac_nonexistent.h>
7519 if ac_fn_c_try_cpp "$LINENO"; then :
7520 # Broken: success on invalid input.
7523 # Passes both tests.
7527 rm -f conftest.err conftest.i conftest.$ac_ext
7530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7531 rm -f conftest.i conftest.err conftest.$ac_ext
7532 if $ac_preproc_ok; then :
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7545 $as_echo "$CPP" >&6; }
7547 for ac_c_preproc_warn_flag in '' yes
7549 # Use a header file that comes with gcc, so configuring glibc
7550 # with a fresh cross-compiler works.
7551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7552 # <limits.h> exists even on freestanding compilers.
7553 # On the NeXT, cc -E runs the code through the compiler's parser,
7554 # not just through cpp. "Syntax error" is here to catch this case.
7555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h. */
7558 # include <limits.h>
7560 # include <assert.h>
7564 if ac_fn_c_try_cpp "$LINENO"; then :
7567 # Broken: fails on valid input.
7570 rm -f conftest.err conftest.i conftest.$ac_ext
7572 # OK, works on sane cases. Now check whether nonexistent headers
7573 # can be detected and how.
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7576 #include <ac_nonexistent.h>
7578 if ac_fn_c_try_cpp "$LINENO"; then :
7579 # Broken: success on invalid input.
7582 # Passes both tests.
7586 rm -f conftest.err conftest.i conftest.$ac_ext
7589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7590 rm -f conftest.i conftest.err conftest.$ac_ext
7591 if $ac_preproc_ok; then :
7594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7596 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7597 See \`config.log' for more details" "$LINENO" 5; }
7601 ac_cpp='$CPP $CPPFLAGS'
7602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7608 $as_echo_n "checking for ANSI C header files... " >&6; }
7609 if ${ac_cv_header_stdc+:} false; then :
7610 $as_echo_n "(cached) " >&6
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7627 if ac_fn_c_try_compile "$LINENO"; then :
7628 ac_cv_header_stdc=yes
7630 ac_cv_header_stdc=no
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 if test $ac_cv_header_stdc = yes; then
7635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7642 $EGREP "memchr" >/dev/null 2>&1; then :
7645 ac_cv_header_stdc=no
7651 if test $ac_cv_header_stdc = yes; then
7652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7659 $EGREP "free" >/dev/null 2>&1; then :
7662 ac_cv_header_stdc=no
7668 if test $ac_cv_header_stdc = yes; then
7669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7670 if test "$cross_compiling" = yes; then :
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h. */
7677 #if ((' ' & 0x0FF) == 0x020)
7678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7681 # define ISLOWER(c) \
7682 (('a' <= (c) && (c) <= 'i') \
7683 || ('j' <= (c) && (c) <= 'r') \
7684 || ('s' <= (c) && (c) <= 'z'))
7685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7693 for (i = 0; i < 256; i++)
7694 if (XOR (islower (i), ISLOWER (i))
7695 || toupper (i) != TOUPPER (i))
7700 if ac_fn_c_try_run "$LINENO"; then :
7703 ac_cv_header_stdc=no
7705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7706 conftest.$ac_objext conftest.beam conftest.$ac_ext
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7712 $as_echo "$ac_cv_header_stdc" >&6; }
7713 if test $ac_cv_header_stdc = yes; then
7715 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7719 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7720 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7721 inttypes.h stdint.h unistd.h
7723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7724 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7726 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7727 cat >>confdefs.h <<_ACEOF
7728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 for ac_header in dlfcn.h
7738 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7740 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7741 cat >>confdefs.h <<_ACEOF
7742 #define HAVE_DLFCN_H 1
7755 enable_win32_dll=yes
7758 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7759 if test -n "$ac_tool_prefix"; then
7760 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7761 set dummy ${ac_tool_prefix}as; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if ${ac_cv_prog_AS+:} false; then :
7765 $as_echo_n "(cached) " >&6
7767 if test -n "$AS"; then
7768 ac_cv_prog_AS="$AS" # Let the user override the test.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777 ac_cv_prog_AS="${ac_tool_prefix}as"
7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 if test -n "$AS"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7790 $as_echo "$AS" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7798 if test -z "$ac_cv_prog_AS"; then
7800 # Extract the first word of "as", so it can be a program name with args.
7801 set dummy as; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7805 $as_echo_n "(cached) " >&6
7807 if test -n "$ac_ct_AS"; then
7808 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7817 ac_cv_prog_ac_ct_AS="as"
7818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7828 if test -n "$ac_ct_AS"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7830 $as_echo "$ac_ct_AS" >&6; }
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7836 if test "x$ac_ct_AS" = x; then
7839 case $cross_compiling:$ac_tool_warned in
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7843 ac_tool_warned=yes ;;
7851 if test -n "$ac_tool_prefix"; then
7852 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7853 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_prog_DLLTOOL+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 if test -n "$DLLTOOL"; then
7860 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 DLLTOOL=$ac_cv_prog_DLLTOOL
7880 if test -n "$DLLTOOL"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7882 $as_echo "$DLLTOOL" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7890 if test -z "$ac_cv_prog_DLLTOOL"; then
7891 ac_ct_DLLTOOL=$DLLTOOL
7892 # Extract the first word of "dlltool", so it can be a program name with args.
7893 set dummy dlltool; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7897 $as_echo_n "(cached) " >&6
7899 if test -n "$ac_ct_DLLTOOL"; then
7900 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7920 if test -n "$ac_ct_DLLTOOL"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7922 $as_echo "$ac_ct_DLLTOOL" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7928 if test "x$ac_ct_DLLTOOL" = x; then
7931 case $cross_compiling:$ac_tool_warned in
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7935 ac_tool_warned=yes ;;
7937 DLLTOOL=$ac_ct_DLLTOOL
7940 DLLTOOL="$ac_cv_prog_DLLTOOL"
7943 if test -n "$ac_tool_prefix"; then
7944 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7945 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if ${ac_cv_prog_OBJDUMP+:} false; then :
7949 $as_echo_n "(cached) " >&6
7951 if test -n "$OBJDUMP"; then
7952 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7961 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 OBJDUMP=$ac_cv_prog_OBJDUMP
7972 if test -n "$OBJDUMP"; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7974 $as_echo "$OBJDUMP" >&6; }
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7982 if test -z "$ac_cv_prog_OBJDUMP"; then
7983 ac_ct_OBJDUMP=$OBJDUMP
7984 # Extract the first word of "objdump", so it can be a program name with args.
7985 set dummy objdump; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7989 $as_echo_n "(cached) " >&6
7991 if test -n "$ac_ct_OBJDUMP"; then
7992 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8001 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8012 if test -n "$ac_ct_OBJDUMP"; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8014 $as_echo "$ac_ct_OBJDUMP" >&6; }
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8020 if test "x$ac_ct_OBJDUMP" = x; then
8023 case $cross_compiling:$ac_tool_warned in
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8027 ac_tool_warned=yes ;;
8029 OBJDUMP=$ac_ct_OBJDUMP
8032 OBJDUMP="$ac_cv_prog_OBJDUMP"
8038 test -z "$AS" && AS=as
8044 test -z "$DLLTOOL" && DLLTOOL=dlltool
8050 test -z "$OBJDUMP" && OBJDUMP=objdump
8055 # Check whether --enable-static was given.
8056 if test "${enable_static+set}" = set; then :
8057 enableval=$enable_static; p=${PACKAGE-default}
8059 yes) enable_static=yes ;;
8060 no) enable_static=no ;;
8063 # Look at the argument we got. We use all the common list separators.
8064 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8065 for pkg in $enableval; do
8067 if test "X$pkg" = "X$p"; then
8089 # Check whether --enable-shared was given.
8090 if test "${enable_shared+set}" = set; then :
8091 enableval=$enable_shared; p=${PACKAGE-default}
8093 yes) enable_shared=yes ;;
8094 no) enable_shared=no ;;
8097 # Look at the argument we got. We use all the common list separators.
8098 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8099 for pkg in $enableval; do
8101 if test "X$pkg" = "X$p"; then
8122 # Check whether --with-pic was given.
8123 if test "${with_pic+set}" = set; then :
8124 withval=$with_pic; lt_p=${PACKAGE-default}
8126 yes|no) pic_mode=$withval ;;
8129 # Look at the argument we got. We use all the common list separators.
8130 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8131 for lt_pkg in $withval; do
8133 if test "X$lt_pkg" = "X$lt_p"; then
8151 # Check whether --enable-fast-install was given.
8152 if test "${enable_fast_install+set}" = set; then :
8153 enableval=$enable_fast_install; p=${PACKAGE-default}
8155 yes) enable_fast_install=yes ;;
8156 no) enable_fast_install=no ;;
8158 enable_fast_install=no
8159 # Look at the argument we got. We use all the common list separators.
8160 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8161 for pkg in $enableval; do
8163 if test "X$pkg" = "X$p"; then
8164 enable_fast_install=yes
8171 enable_fast_install=yes
8181 shared_archive_member_spec=
8182 case $host,$enable_shared in
8183 power*-*-aix[5-9]*,yes)
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8185 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8187 # Check whether --with-aix-soname was given.
8188 if test "${with_aix_soname+set}" = set; then :
8189 withval=$with_aix_soname; case $withval in
8193 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8196 lt_cv_with_aix_soname=$with_aix_soname
8198 if ${lt_cv_with_aix_soname+:} false; then :
8199 $as_echo_n "(cached) " >&6
8201 lt_cv_with_aix_soname=aix
8204 with_aix_soname=$lt_cv_with_aix_soname
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8208 $as_echo "$with_aix_soname" >&6; }
8209 if test aix != "$with_aix_soname"; then
8210 # For the AIX way of multilib, we name the shared archive member
8211 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8212 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8213 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8214 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8215 if test 64 = "${OBJECT_MODE-32}"; then
8216 shared_archive_member_spec=shr_64
8218 shared_archive_member_spec=shr
8236 # This can be used to rebuild libtool when needed
8237 LIBTOOL_DEPS=$ltmain
8239 # Always use our own libtool.
8240 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8271 test -z "$LN_S" && LN_S="ln -s"
8286 if test -n "${ZSH_VERSION+set}"; then
8287 setopt NO_GLOB_SUBST
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8291 $as_echo_n "checking for objdir... " >&6; }
8292 if ${lt_cv_objdir+:} false; then :
8293 $as_echo_n "(cached) " >&6
8295 rm -f .libs 2>/dev/null
8296 mkdir .libs 2>/dev/null
8297 if test -d .libs; then
8300 # MS-DOS does not allow filenames that begin with a dot.
8303 rmdir .libs 2>/dev/null
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8306 $as_echo "$lt_cv_objdir" >&6; }
8307 objdir=$lt_cv_objdir
8313 cat >>confdefs.h <<_ACEOF
8314 #define LT_OBJDIR "$lt_cv_objdir/"
8322 # AIX sometimes has problems with the GCC collect2 program. For some
8323 # reason, if we set the COLLECT_NAMES environment variable, the problems
8324 # vanish in a puff of smoke.
8325 if test set != "${COLLECT_NAMES+set}"; then
8327 export COLLECT_NAMES
8334 can_build_shared=yes
8336 # All known linkers require a '.a' archive for static linking (except MSVC,
8337 # which needs '.lib').
8340 with_gnu_ld=$lt_cv_prog_gnu_ld
8345 # Set sane defaults for various variables
8346 test -z "$CC" && CC=cc
8347 test -z "$LTCC" && LTCC=$CC
8348 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8349 test -z "$LD" && LD=ld
8350 test -z "$ac_objext" && ac_objext=o
8352 func_cc_basename $compiler
8353 cc_basename=$func_cc_basename_result
8356 # Only perform the check for file, if the check method requires it
8357 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8358 case $deplibs_check_method in
8360 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8362 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8363 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8364 $as_echo_n "(cached) " >&6
8368 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8371 lt_save_MAGIC_CMD=$MAGIC_CMD
8372 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8374 for ac_dir in $ac_dummy; do
8376 test -z "$ac_dir" && ac_dir=.
8377 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8378 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8379 if test -n "$file_magic_test_file"; then
8380 case $deplibs_check_method in
8382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8383 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8385 $EGREP "$file_magic_regex" > /dev/null; then
8390 *** Warning: the command libtool uses to detect shared libraries,
8391 *** $file_magic_cmd, produces output that libtool cannot recognize.
8392 *** The result is that libtool may fail to recognize shared libraries
8393 *** as such. This will affect the creation of libtool libraries that
8394 *** depend on shared libraries, but programs linked with such libtool
8395 *** libraries will work regardless of this problem. Nevertheless, you
8396 *** may want to report the problem to your system manager and/or to
8397 *** bug-libtool@gnu.org
8407 MAGIC_CMD=$lt_save_MAGIC_CMD
8412 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8413 if test -n "$MAGIC_CMD"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8415 $as_echo "$MAGIC_CMD" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8425 if test -z "$lt_cv_path_MAGIC_CMD"; then
8426 if test -n "$ac_tool_prefix"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8428 $as_echo_n "checking for file... " >&6; }
8429 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8430 $as_echo_n "(cached) " >&6
8434 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8437 lt_save_MAGIC_CMD=$MAGIC_CMD
8438 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8440 for ac_dir in $ac_dummy; do
8442 test -z "$ac_dir" && ac_dir=.
8443 if test -f "$ac_dir/file"; then
8444 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8445 if test -n "$file_magic_test_file"; then
8446 case $deplibs_check_method in
8448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8449 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8451 $EGREP "$file_magic_regex" > /dev/null; then
8456 *** Warning: the command libtool uses to detect shared libraries,
8457 *** $file_magic_cmd, produces output that libtool cannot recognize.
8458 *** The result is that libtool may fail to recognize shared libraries
8459 *** as such. This will affect the creation of libtool libraries that
8460 *** depend on shared libraries, but programs linked with such libtool
8461 *** libraries will work regardless of this problem. Nevertheless, you
8462 *** may want to report the problem to your system manager and/or to
8463 *** bug-libtool@gnu.org
8473 MAGIC_CMD=$lt_save_MAGIC_CMD
8478 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8479 if test -n "$MAGIC_CMD"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8481 $as_echo "$MAGIC_CMD" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8497 # Use C for the default configuration in the libtool script
8501 ac_cpp='$CPP $CPPFLAGS'
8502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8507 # Source file extension for C test sources.
8510 # Object file extension for compiled C test sources.
8514 # Code to be used in simple compile tests
8515 lt_simple_compile_test_code="int some_variable = 0;"
8517 # Code to be used in simple link tests
8518 lt_simple_link_test_code='int main(){return(0);}'
8526 # If no C compiler was specified, use CC.
8529 # If no C compiler flags were specified, use CFLAGS.
8530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8532 # Allow CC to be a program name with arguments.
8535 # Save the default compiler, since it gets overwritten when the other
8536 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8537 compiler_DEFAULT=$CC
8539 # save warnings/boilerplate of simple test code
8540 ac_outfile=conftest.$ac_objext
8541 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8542 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8543 _lt_compiler_boilerplate=`cat conftest.err`
8546 ac_outfile=conftest.$ac_objext
8547 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8548 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8549 _lt_linker_boilerplate=`cat conftest.err`
8554 ## There is no encapsulation within the following macros, do not change
8555 ## the running order or otherwise move them around unless you know exactly
8556 ## what you are doing...
8557 if test -n "$compiler"; then
8559 lt_prog_compiler_no_builtin_flag=
8561 if test yes = "$GCC"; then
8562 case $cc_basename in
8564 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8566 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8570 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8571 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8572 $as_echo_n "(cached) " >&6
8574 lt_cv_prog_compiler_rtti_exceptions=no
8575 ac_outfile=conftest.$ac_objext
8576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8578 # Insert the option either (1) after the last *FLAGS variable, or
8579 # (2) before a word containing "conftest.", or (3) at the end.
8580 # Note that $ac_compile itself does not contain backslashes and begins
8581 # with a dollar sign (not a hyphen), so the echo should work correctly.
8582 # The option is referenced via a variable to avoid confusing sed.
8583 lt_compile=`echo "$ac_compile" | $SED \
8584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586 -e 's:$: $lt_compiler_flag:'`
8587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8588 (eval "$lt_compile" 2>conftest.err)
8590 cat conftest.err >&5
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 if (exit $ac_status) && test -s "$ac_outfile"; then
8593 # The compiler can only warn and ignore the option if not recognized
8594 # So say no if there are warnings other than the usual output.
8595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8598 lt_cv_prog_compiler_rtti_exceptions=yes
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8605 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8607 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8608 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8620 lt_prog_compiler_wl=
8621 lt_prog_compiler_pic=
8622 lt_prog_compiler_static=
8625 if test yes = "$GCC"; then
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_static='-static'
8631 # All AIX code is PIC.
8632 if test ia64 = "$host_cpu"; then
8633 # AIX 5 now supports IA64 processor
8634 lt_prog_compiler_static='-Bstatic'
8636 lt_prog_compiler_pic='-fPIC'
8642 # see comment about AmigaOS4 .so support
8643 lt_prog_compiler_pic='-fPIC'
8646 # FIXME: we need at least 68020 code to build shared libraries, but
8647 # adding the '-m68020' flag to GCC prevents building anything better,
8649 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8654 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8655 # PIC is the default for these OSes.
8658 mingw* | cygwin* | pw32* | os2* | cegcc*)
8659 # This hack is so that the source file can tell whether it is being
8660 # built for inclusion in a dll (and should export symbols for example).
8661 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8662 # (--disable-auto-import) libraries
8663 lt_prog_compiler_pic='-DDLL_EXPORT'
8666 lt_prog_compiler_static='$wl-static'
8671 darwin* | rhapsody*)
8672 # PIC is the default on this platform
8673 # Common symbols not allowed in MH_DYLIB files
8674 lt_prog_compiler_pic='-fno-common'
8678 # PIC is the default for Haiku.
8679 # The "-static" flag exists, but is broken.
8680 lt_prog_compiler_static=
8684 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8685 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8686 # sets the default TLS model and affects inlining.
8692 lt_prog_compiler_pic='-fPIC'
8698 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8699 # Instead, we relocate shared libraries at runtime.
8703 # Just because we use GCC doesn't mean we suddenly get shared libraries
8704 # on systems that don't support them.
8705 lt_prog_compiler_can_build_shared=no
8710 # QNX uses GNU C++, but need to define -shared option too, otherwise
8712 lt_prog_compiler_pic='-fPIC -shared'
8716 if test -d /usr/nec; then
8717 lt_prog_compiler_pic=-Kconform_pic
8722 lt_prog_compiler_pic='-fPIC'
8726 case $cc_basename in
8727 nvcc*) # Cuda Compiler Driver 2.2
8728 lt_prog_compiler_wl='-Xlinker '
8729 if test -n "$lt_prog_compiler_pic"; then
8730 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8735 # PORTME Check for flag to pass linker flags through the system compiler.
8738 lt_prog_compiler_wl='-Wl,'
8739 if test ia64 = "$host_cpu"; then
8740 # AIX 5 now supports IA64 processor
8741 lt_prog_compiler_static='-Bstatic'
8743 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8747 darwin* | rhapsody*)
8748 # PIC is the default on this platform
8749 # Common symbols not allowed in MH_DYLIB files
8750 lt_prog_compiler_pic='-fno-common'
8751 case $cc_basename in
8753 # NAG Fortran compiler
8754 lt_prog_compiler_wl='-Wl,-Wl,,'
8755 lt_prog_compiler_pic='-PIC'
8756 lt_prog_compiler_static='-Bstatic'
8761 mingw* | cygwin* | pw32* | os2* | cegcc*)
8762 # This hack is so that the source file can tell whether it is being
8763 # built for inclusion in a dll (and should export symbols for example).
8764 lt_prog_compiler_pic='-DDLL_EXPORT'
8767 lt_prog_compiler_static='$wl-static'
8772 hpux9* | hpux10* | hpux11*)
8773 lt_prog_compiler_wl='-Wl,'
8774 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8781 lt_prog_compiler_pic='+Z'
8784 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8785 lt_prog_compiler_static='$wl-a ${wl}archive'
8788 irix5* | irix6* | nonstopux*)
8789 lt_prog_compiler_wl='-Wl,'
8790 # PIC (with -KPIC) is the default.
8791 lt_prog_compiler_static='-non_shared'
8794 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8795 case $cc_basename in
8796 # old Intel for x86_64, which still supported -KPIC.
8798 lt_prog_compiler_wl='-Wl,'
8799 lt_prog_compiler_pic='-KPIC'
8800 lt_prog_compiler_static='-static'
8802 # icc used to be incompatible with GCC.
8803 # ICC 10 doesn't accept -KPIC any more.
8805 lt_prog_compiler_wl='-Wl,'
8806 lt_prog_compiler_pic='-fPIC'
8807 lt_prog_compiler_static='-static'
8809 # Lahey Fortran 8.1.
8811 lt_prog_compiler_wl='-Wl,'
8812 lt_prog_compiler_pic='--shared'
8813 lt_prog_compiler_static='--static'
8816 # NAG Fortran compiler
8817 lt_prog_compiler_wl='-Wl,-Wl,,'
8818 lt_prog_compiler_pic='-PIC'
8819 lt_prog_compiler_static='-Bstatic'
8822 # Fabrice Bellard et al's Tiny C Compiler
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_pic='-fPIC'
8825 lt_prog_compiler_static='-static'
8827 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8828 # Portland Group compilers (*not* the Pentium gcc compiler,
8829 # which looks to be a dead project)
8830 lt_prog_compiler_wl='-Wl,'
8831 lt_prog_compiler_pic='-fpic'
8832 lt_prog_compiler_static='-Bstatic'
8835 lt_prog_compiler_wl='-Wl,'
8836 # All Alpha code is PIC.
8837 lt_prog_compiler_static='-non_shared'
8839 xl* | bgxl* | bgf* | mpixl*)
8840 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8841 lt_prog_compiler_wl='-Wl,'
8842 lt_prog_compiler_pic='-qpic'
8843 lt_prog_compiler_static='-qstaticlink'
8846 case `$CC -V 2>&1 | sed 5q` in
8847 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8848 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8849 lt_prog_compiler_pic='-KPIC'
8850 lt_prog_compiler_static='-Bstatic'
8851 lt_prog_compiler_wl=''
8853 *Sun\ F* | *Sun*Fortran*)
8854 lt_prog_compiler_pic='-KPIC'
8855 lt_prog_compiler_static='-Bstatic'
8856 lt_prog_compiler_wl='-Qoption ld '
8860 lt_prog_compiler_pic='-KPIC'
8861 lt_prog_compiler_static='-Bstatic'
8862 lt_prog_compiler_wl='-Wl,'
8864 *Intel*\ [CF]*Compiler*)
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_pic='-fPIC'
8867 lt_prog_compiler_static='-static'
8870 lt_prog_compiler_wl='-Wl,'
8871 lt_prog_compiler_pic='-fpic'
8872 lt_prog_compiler_static='-Bstatic'
8880 lt_prog_compiler_pic='-KPIC'
8881 lt_prog_compiler_static='-Bstatic'
8885 # QNX uses GNU C++, but need to define -shared option too, otherwise
8887 lt_prog_compiler_pic='-fPIC -shared'
8890 osf3* | osf4* | osf5*)
8891 lt_prog_compiler_wl='-Wl,'
8892 # All OSF/1 code is PIC.
8893 lt_prog_compiler_static='-non_shared'
8897 lt_prog_compiler_static='-non_shared'
8901 lt_prog_compiler_pic='-KPIC'
8902 lt_prog_compiler_static='-Bstatic'
8903 case $cc_basename in
8904 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8905 lt_prog_compiler_wl='-Qoption ld ';;
8907 lt_prog_compiler_wl='-Wl,';;
8912 lt_prog_compiler_wl='-Qoption ld '
8913 lt_prog_compiler_pic='-PIC'
8914 lt_prog_compiler_static='-Bstatic'
8917 sysv4 | sysv4.2uw2* | sysv4.3*)
8918 lt_prog_compiler_wl='-Wl,'
8919 lt_prog_compiler_pic='-KPIC'
8920 lt_prog_compiler_static='-Bstatic'
8924 if test -d /usr/nec; then
8925 lt_prog_compiler_pic='-Kconform_pic'
8926 lt_prog_compiler_static='-Bstatic'
8930 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_pic='-KPIC'
8933 lt_prog_compiler_static='-Bstatic'
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_can_build_shared=no
8942 lt_prog_compiler_pic='-pic'
8943 lt_prog_compiler_static='-Bstatic'
8947 lt_prog_compiler_can_build_shared=no
8953 # For platforms that do not support PIC, -DPIC is meaningless:
8955 lt_prog_compiler_pic=
8958 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8963 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8964 if ${lt_cv_prog_compiler_pic+:} false; then :
8965 $as_echo_n "(cached) " >&6
8967 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8970 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8971 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8974 # Check to make sure the PIC flag actually works.
8976 if test -n "$lt_prog_compiler_pic"; then
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8978 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8979 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8980 $as_echo_n "(cached) " >&6
8982 lt_cv_prog_compiler_pic_works=no
8983 ac_outfile=conftest.$ac_objext
8984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8985 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8986 # Insert the option either (1) after the last *FLAGS variable, or
8987 # (2) before a word containing "conftest.", or (3) at the end.
8988 # Note that $ac_compile itself does not contain backslashes and begins
8989 # with a dollar sign (not a hyphen), so the echo should work correctly.
8990 # The option is referenced via a variable to avoid confusing sed.
8991 lt_compile=`echo "$ac_compile" | $SED \
8992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8994 -e 's:$: $lt_compiler_flag:'`
8995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8996 (eval "$lt_compile" 2>conftest.err)
8998 cat conftest.err >&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 if (exit $ac_status) && test -s "$ac_outfile"; then
9001 # The compiler can only warn and ignore the option if not recognized
9002 # So say no if there are warnings other than the usual output.
9003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9006 lt_cv_prog_compiler_pic_works=yes
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9013 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9015 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9016 case $lt_prog_compiler_pic in
9018 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9021 lt_prog_compiler_pic=
9022 lt_prog_compiler_can_build_shared=no
9038 # Check to make sure the static flag actually works.
9040 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9042 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9043 if ${lt_cv_prog_compiler_static_works+:} false; then :
9044 $as_echo_n "(cached) " >&6
9046 lt_cv_prog_compiler_static_works=no
9047 save_LDFLAGS=$LDFLAGS
9048 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9049 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9050 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9051 # The linker can only warn and ignore the option if not recognized
9052 # So say no if there are warnings
9053 if test -s conftest.err; then
9054 # Append any errors to the config.log.
9055 cat conftest.err 1>&5
9056 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9058 if diff conftest.exp conftest.er2 >/dev/null; then
9059 lt_cv_prog_compiler_static_works=yes
9062 lt_cv_prog_compiler_static_works=yes
9066 LDFLAGS=$save_LDFLAGS
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9070 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9072 if test yes = "$lt_cv_prog_compiler_static_works"; then
9075 lt_prog_compiler_static=
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9085 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9086 if ${lt_cv_prog_compiler_c_o+:} false; then :
9087 $as_echo_n "(cached) " >&6
9089 lt_cv_prog_compiler_c_o=no
9090 $RM -r conftest 2>/dev/null
9094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9096 lt_compiler_flag="-o out/conftest2.$ac_objext"
9097 # Insert the option either (1) after the last *FLAGS variable, or
9098 # (2) before a word containing "conftest.", or (3) at the end.
9099 # Note that $ac_compile itself does not contain backslashes and begins
9100 # with a dollar sign (not a hyphen), so the echo should work correctly.
9101 lt_compile=`echo "$ac_compile" | $SED \
9102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9104 -e 's:$: $lt_compiler_flag:'`
9105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9106 (eval "$lt_compile" 2>out/conftest.err)
9108 cat out/conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9112 # The compiler can only warn and ignore the option if not recognized
9113 # So say no if there are warnings
9114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9117 lt_cv_prog_compiler_c_o=yes
9122 # SGI C++ compiler will create directory out/ii_files/ for
9123 # template instantiation
9124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9125 $RM out/* && rmdir out
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9132 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9140 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9141 if ${lt_cv_prog_compiler_c_o+:} false; then :
9142 $as_echo_n "(cached) " >&6
9144 lt_cv_prog_compiler_c_o=no
9145 $RM -r conftest 2>/dev/null
9149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9151 lt_compiler_flag="-o out/conftest2.$ac_objext"
9152 # Insert the option either (1) after the last *FLAGS variable, or
9153 # (2) before a word containing "conftest.", or (3) at the end.
9154 # Note that $ac_compile itself does not contain backslashes and begins
9155 # with a dollar sign (not a hyphen), so the echo should work correctly.
9156 lt_compile=`echo "$ac_compile" | $SED \
9157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9159 -e 's:$: $lt_compiler_flag:'`
9160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9161 (eval "$lt_compile" 2>out/conftest.err)
9163 cat out/conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9167 # The compiler can only warn and ignore the option if not recognized
9168 # So say no if there are warnings
9169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9172 lt_cv_prog_compiler_c_o=yes
9177 # SGI C++ compiler will create directory out/ii_files/ for
9178 # template instantiation
9179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9180 $RM out/* && rmdir out
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9187 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9192 hard_links=nottested
9193 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9194 # do not overwrite the value of need_locks provided by the user
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9196 $as_echo_n "checking if we can lock with hard links... " >&6; }
9199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9201 ln conftest.a conftest.b 2>&5 || hard_links=no
9202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9204 $as_echo "$hard_links" >&6; }
9205 if test no = "$hard_links"; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9207 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9220 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9223 allow_undefined_flag=
9224 always_export_symbols=no
9226 archive_expsym_cmds=
9227 compiler_needs_object=no
9228 enable_shared_with_static_runtimes=no
9229 export_dynamic_flag_spec=
9230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9231 hardcode_automatic=no
9233 hardcode_direct_absolute=no
9234 hardcode_libdir_flag_spec=
9235 hardcode_libdir_separator=
9237 hardcode_shlibpath_var=unsupported
9239 link_all_deplibs=unknown
9242 old_archive_from_new_cmds=
9243 old_archive_from_expsyms_cmds=
9244 thread_safe_flag_spec=
9245 whole_archive_flag_spec=
9246 # include_expsyms should be a list of space-separated symbols to be *always*
9247 # included in the symbol list
9249 # exclude_expsyms can be an extended regexp of symbols to exclude
9250 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9251 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9252 # as well as any symbol that contains 'd'.
9253 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9254 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9255 # platforms (ab)use it in PIC code, but their linkers get confused if
9256 # the symbol is explicitly referenced. Since portable code cannot
9257 # rely on this symbol name, it's probably fine to never include it in
9258 # preloaded symbol tables.
9259 # Exclude shared library initialization/finalization symbols.
9260 extract_expsyms_cmds=
9263 cygwin* | mingw* | pw32* | cegcc*)
9264 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9265 # When not using gcc, we currently assume that we are using
9266 # Microsoft Visual C++.
9267 if test yes != "$GCC"; then
9272 # we just hope/assume this is gcc and not c89 (= MSVC++)
9278 linux* | k*bsd*-gnu | gnu*)
9285 # On some targets, GNU ld is compatible enough with the native linker
9286 # that we're better off using the native interface for both.
9287 lt_use_gnu_ld_interface=no
9288 if test yes = "$with_gnu_ld"; then
9291 # The AIX port of GNU ld has always aspired to compatibility
9292 # with the native linker. However, as the warning in the GNU ld
9293 # block says, versions before 2.19.5* couldn't really create working
9294 # shared libraries, regardless of the interface used.
9295 case `$LD -v 2>&1` in
9296 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9297 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9298 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9300 lt_use_gnu_ld_interface=yes
9305 lt_use_gnu_ld_interface=yes
9310 if test yes = "$lt_use_gnu_ld_interface"; then
9311 # If archive_cmds runs LD, not CC, wlarc should be empty
9314 # Set some defaults for GNU ld with shared library support. These
9315 # are reset later if shared libraries are not supported. Putting them
9316 # here allows them to be overridden if necessary.
9317 runpath_var=LD_RUN_PATH
9318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9319 export_dynamic_flag_spec='$wl--export-dynamic'
9320 # ancient GNU ld didn't support --whole-archive et. al.
9321 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9322 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9324 whole_archive_flag_spec=
9326 supports_anon_versioning=no
9327 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9328 *GNU\ gold*) supports_anon_versioning=yes ;;
9329 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9330 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9331 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9332 *\ 2.11.*) ;; # other 2.11 versions
9333 *) supports_anon_versioning=yes ;;
9336 # See if GNU ld supports shared libraries.
9339 # On AIX/PPC, the GNU linker is very broken
9340 if test ia64 != "$host_cpu"; then
9344 *** Warning: the GNU linker, at least up to release 2.19, is reported
9345 *** to be unable to reliably create shared libraries on AIX.
9346 *** Therefore, libtool is disabling shared libraries support. If you
9347 *** really care for shared libraries, you may want to install binutils
9348 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9349 *** You will then need to restart the configuration process.
9358 # see comment about AmigaOS4 .so support
9359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9360 archive_expsym_cmds=''
9363 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)'
9364 hardcode_libdir_flag_spec='-L$libdir'
9365 hardcode_minus_L=yes
9371 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9372 allow_undefined_flag=unsupported
9373 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9374 # support --undefined. This deserves some investigation. FIXME
9375 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9381 cygwin* | mingw* | pw32* | cegcc*)
9382 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9383 # as there is no search path for DLLs.
9384 hardcode_libdir_flag_spec='-L$libdir'
9385 export_dynamic_flag_spec='$wl--export-all-symbols'
9386 allow_undefined_flag=unsupported
9387 always_export_symbols=no
9388 enable_shared_with_static_runtimes=yes
9389 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'
9390 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9392 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9394 # If the export-symbols file already is a .def file, use it as
9395 # is; otherwise, prepend EXPORTS...
9396 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9397 cp $export_symbols $output_objdir/$soname.def;
9399 echo EXPORTS > $output_objdir/$soname.def;
9400 cat $export_symbols >> $output_objdir/$soname.def;
9402 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9410 link_all_deplibs=yes
9414 hardcode_libdir_flag_spec='-L$libdir'
9415 hardcode_minus_L=yes
9416 allow_undefined_flag=unsupported
9418 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9419 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9420 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9421 $ECHO EXPORTS >> $output_objdir/$libname.def~
9422 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9423 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9424 emximp -o $lib $output_objdir/$libname.def'
9425 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9426 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9427 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9428 $ECHO EXPORTS >> $output_objdir/$libname.def~
9430 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9431 prefix_cmds="$prefix_cmds -e 1d";
9433 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9434 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9435 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9436 emximp -o $lib $output_objdir/$libname.def'
9437 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9438 enable_shared_with_static_runtimes=yes
9443 hardcode_shlibpath_var=no
9444 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9445 export_dynamic_flag_spec='$wl-E'
9446 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9447 # Instead, shared libraries are loaded at an image base (0x10000000 by
9448 # default) and relocated if they conflict, which is a slow very memory
9449 # consuming and fragmenting process. To avoid this, we pick a random,
9450 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9451 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9452 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9453 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'
9456 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9458 if test linux-dietlibc = "$host_os"; then
9459 case $cc_basename in
9460 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9463 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9464 && test no = "$tmp_diet"
9466 tmp_addflag=' $pic_flag'
9467 tmp_sharedflag='-shared'
9468 case $cc_basename,$host_cpu in
9469 pgcc*) # Portland Group C compiler
9470 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'
9471 tmp_addflag=' $pic_flag'
9473 pgf77* | pgf90* | pgf95* | pgfortran*)
9474 # Portland Group f77 and f90 compilers
9475 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'
9476 tmp_addflag=' $pic_flag -Mnomain' ;;
9477 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9478 tmp_addflag=' -i_dynamic' ;;
9479 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9480 tmp_addflag=' -i_dynamic -nofor_main' ;;
9481 ifc* | ifort*) # Intel Fortran compiler
9482 tmp_addflag=' -nofor_main' ;;
9483 lf95*) # Lahey Fortran 8.1
9484 whole_archive_flag_spec=
9485 tmp_sharedflag='--shared' ;;
9486 nagfor*) # NAGFOR 5.3
9487 tmp_sharedflag='-Wl,-shared' ;;
9488 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9489 tmp_sharedflag='-qmkshrobj'
9491 nvcc*) # Cuda Compiler Driver 2.2
9492 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'
9493 compiler_needs_object=yes
9496 case `$CC -V 2>&1 | sed 5q` in
9497 *Sun\ C*) # Sun C 5.9
9498 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'
9499 compiler_needs_object=yes
9500 tmp_sharedflag='-G' ;;
9501 *Sun\ F*) # Sun Fortran 8.3
9502 tmp_sharedflag='-G' ;;
9504 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9506 if test yes = "$supports_anon_versioning"; then
9507 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9509 echo "local: *; };" >> $output_objdir/$libname.ver~
9510 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9513 case $cc_basename in
9515 export_dynamic_flag_spec='-rdynamic'
9517 xlf* | bgf* | bgxlf* | mpixlf*)
9518 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9519 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9520 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9521 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9522 if test yes = "$supports_anon_versioning"; then
9523 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9524 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9525 echo "local: *; };" >> $output_objdir/$libname.ver~
9526 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9535 netbsd* | netbsdelf*-gnu)
9536 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9537 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9540 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9541 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9546 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9550 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9551 *** create shared libraries on Solaris systems. Therefore, libtool
9552 *** is disabling shared libraries support. We urge you to upgrade GNU
9553 *** binutils to release 2.9.1 or newer. Another option is to modify
9554 *** your PATH or compiler configuration so that the native linker is
9555 *** used, and then restart.
9558 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9560 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9567 case `$LD -v 2>&1` in
9568 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9572 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9573 *** reliably create shared libraries on SCO systems. Therefore, libtool
9574 *** is disabling shared libraries support. We urge you to upgrade GNU
9575 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9576 *** your PATH or compiler configuration so that the native linker is
9577 *** used, and then restart.
9582 # For security reasons, it is highly recommended that you always
9583 # use absolute paths for naming shared libraries, and exclude the
9584 # DT_RUNPATH tag from executables and libraries. But doing so
9585 # requires that you compile everything twice, which is a pain.
9586 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9587 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9598 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_shlibpath_var=no
9605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9607 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9614 if test no = "$ld_shlibs"; then
9616 hardcode_libdir_flag_spec=
9617 export_dynamic_flag_spec=
9618 whole_archive_flag_spec=
9621 # PORTME fill in a description of your system's linker (not GNU ld)
9624 allow_undefined_flag=unsupported
9625 always_export_symbols=yes
9626 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'
9627 # Note: this linker hardcodes the directories in LIBPATH if there
9628 # are no directories specified by -L.
9629 hardcode_minus_L=yes
9630 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9631 # Neither direct hardcoding nor static linking is supported with a
9633 hardcode_direct=unsupported
9638 if test ia64 = "$host_cpu"; then
9639 # On IA64, the linker does run time linking by default, so we don't
9640 # have to do anything special.
9641 aix_use_runtimelinking=no
9642 exp_sym_flag='-Bexport'
9645 # If we're using GNU nm, then we don't want the "-C" option.
9646 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9647 # Without the "-l" option, or with the "-B" option, AIX nm treats
9648 # weak defined symbols like other global defined symbols, whereas
9649 # GNU nm marks them as "W".
9650 # While the 'weak' keyword is ignored in the Export File, we need
9651 # it in the Import File for the 'aix-soname' feature, so we have
9652 # to replace the "-B" option with "-P" for AIX nm.
9653 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9654 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'
9656 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9658 aix_use_runtimelinking=no
9660 # Test if we are trying to use run time linking or normal
9661 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9662 # have runtime linking enabled, and use it for executables.
9663 # For shared libraries, we enable/disable runtime linking
9664 # depending on the kind of the shared library created -
9665 # when "with_aix_soname,aix_use_runtimelinking" is:
9666 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9667 # "aix,yes" lib.so shared, rtl:yes, for executables
9668 # lib.a static archive
9669 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9670 # lib.a(lib.so.V) shared, rtl:no, for executables
9671 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9672 # lib.a(lib.so.V) shared, rtl:no
9673 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9674 # lib.a static archive
9675 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9676 for ld_flag in $LDFLAGS; do
9677 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9678 aix_use_runtimelinking=yes
9682 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9683 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9684 # so we don't have lib.a shared libs to link our executables.
9685 # We have to force runtime linking in this case.
9686 aix_use_runtimelinking=yes
9687 LDFLAGS="$LDFLAGS -Wl,-brtl"
9692 exp_sym_flag='-bexport'
9693 no_entry_flag='-bnoentry'
9696 # When large executables or shared objects are built, AIX ld can
9697 # have problems creating the table of contents. If linking a library
9698 # or program results in "error TOC overflow" add -mminimal-toc to
9699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9704 hardcode_direct_absolute=yes
9705 hardcode_libdir_separator=':'
9706 link_all_deplibs=yes
9707 file_list_spec='$wl-f,'
9708 case $with_aix_soname,$aix_use_runtimelinking in
9709 aix,*) ;; # traditional, no import file
9710 svr4,* | *,yes) # use import file
9711 # The Import File defines what to hardcode.
9713 hardcode_direct_absolute=no
9717 if test yes = "$GCC"; then
9718 case $host_os in aix4.[012]|aix4.[012].*)
9719 # We only want to do this on AIX 4.2 and lower, the check
9720 # below for broken collect2 doesn't work under 4.3+
9721 collect2name=`$CC -print-prog-name=collect2`
9722 if test -f "$collect2name" &&
9723 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9725 # We have reworked collect2
9728 # We have old collect2
9729 hardcode_direct=unsupported
9730 # It fails to find uninstalled libraries when the uninstalled
9731 # path is not listed in the libpath. Setting hardcode_minus_L
9732 # to unsupported forces relinking
9733 hardcode_minus_L=yes
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_libdir_separator=
9739 shared_flag='-shared'
9740 if test yes = "$aix_use_runtimelinking"; then
9741 shared_flag="$shared_flag "'$wl-G'
9743 # Need to ensure runtime linking is disabled for the traditional
9744 # shared library, or the linker may eventually find shared libraries
9745 # /with/ Import File - we do not want to mix them.
9746 shared_flag_aix='-shared'
9747 shared_flag_svr4='-shared $wl-G'
9750 if test ia64 = "$host_cpu"; then
9751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9752 # chokes on -Wl,-G. The following line is correct:
9755 if test yes = "$aix_use_runtimelinking"; then
9758 shared_flag='$wl-bM:SRE'
9760 shared_flag_aix='$wl-bM:SRE'
9761 shared_flag_svr4='$wl-G'
9765 export_dynamic_flag_spec='$wl-bexpall'
9766 # It seems that -bexpall does not export symbols beginning with
9767 # underscore (_), so it is better to generate a list of symbols to export.
9768 always_export_symbols=yes
9769 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9770 # Warning - without using the other runtime loading flags (-brtl),
9771 # -berok will link without error, but may produce a broken library.
9772 allow_undefined_flag='-berok'
9773 # Determine the default libpath from the value encoded in an
9775 if test set = "${lt_cv_aix_libpath+set}"; then
9776 aix_libpath=$lt_cv_aix_libpath
9778 if ${lt_cv_aix_libpath_+:} false; then :
9779 $as_echo_n "(cached) " >&6
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9792 if ac_fn_c_try_link "$LINENO"; then :
9794 lt_aix_libpath_sed='
9795 /Import File Strings/,/^$/ {
9797 s/^0 *\([^ ]*\) *$/\1/
9801 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802 # Check for a 64-bit object if we didn't find anything.
9803 if test -z "$lt_cv_aix_libpath_"; then
9804 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9807 rm -f core conftest.err conftest.$ac_objext \
9808 conftest$ac_exeext conftest.$ac_ext
9809 if test -z "$lt_cv_aix_libpath_"; then
9810 lt_cv_aix_libpath_=/usr/lib:/lib
9815 aix_libpath=$lt_cv_aix_libpath_
9818 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9819 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
9821 if test ia64 = "$host_cpu"; then
9822 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9823 allow_undefined_flag="-z nodefs"
9824 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"
9826 # Determine the default libpath from the value encoded in an
9828 if test set = "${lt_cv_aix_libpath+set}"; then
9829 aix_libpath=$lt_cv_aix_libpath
9831 if ${lt_cv_aix_libpath_+:} false; then :
9832 $as_echo_n "(cached) " >&6
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9845 if ac_fn_c_try_link "$LINENO"; then :
9847 lt_aix_libpath_sed='
9848 /Import File Strings/,/^$/ {
9850 s/^0 *\([^ ]*\) *$/\1/
9854 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855 # Check for a 64-bit object if we didn't find anything.
9856 if test -z "$lt_cv_aix_libpath_"; then
9857 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9860 rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 if test -z "$lt_cv_aix_libpath_"; then
9863 lt_cv_aix_libpath_=/usr/lib:/lib
9868 aix_libpath=$lt_cv_aix_libpath_
9871 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9872 # Warning - without using the other run time loading flags,
9873 # -berok will link without error, but may produce a broken library.
9874 no_undefined_flag=' $wl-bernotok'
9875 allow_undefined_flag=' $wl-berok'
9876 if test yes = "$with_gnu_ld"; then
9877 # We only use this code for GNU lds that support --whole-archive.
9878 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9880 # Exported symbols can be pulled into shared objects from archives
9881 whole_archive_flag_spec='$convenience'
9883 archive_cmds_need_lc=yes
9884 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9885 # -brtl affects multiple linker settings, -berok does not and is overridden later
9886 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9887 if test svr4 != "$with_aix_soname"; then
9888 # This is similar to how AIX traditionally builds its shared libraries.
9889 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'
9891 if test aix != "$with_aix_soname"; then
9892 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'
9894 # used by -dlpreopen to get the symbols
9895 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9897 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9905 # see comment about AmigaOS4 .so support
9906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9907 archive_expsym_cmds=''
9910 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)'
9911 hardcode_libdir_flag_spec='-L$libdir'
9912 hardcode_minus_L=yes
9918 export_dynamic_flag_spec=-rdynamic
9921 cygwin* | mingw* | pw32* | cegcc*)
9922 # When not using gcc, we currently assume that we are using
9923 # Microsoft Visual C++.
9924 # hardcode_libdir_flag_spec is actually meaningless, as there is
9925 # no search path for DLLs.
9926 case $cc_basename in
9929 hardcode_libdir_flag_spec=' '
9930 allow_undefined_flag=unsupported
9931 always_export_symbols=yes
9933 # Tell ltmain to make .lib files, not .a files.
9935 # Tell ltmain to make .dll files, not .so files.
9937 # FIXME: Setting linknames here is a bad hack.
9938 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9939 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9940 cp "$export_symbols" "$output_objdir/$soname.def";
9941 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9943 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9945 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9947 # The linker will not automatically build a static lib if we build a DLL.
9948 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9949 enable_shared_with_static_runtimes=yes
9950 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9951 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9953 old_postinstall_cmds='chmod 644 $oldlib'
9954 postlink_cmds='lt_outputfile="@OUTPUT@"~
9955 lt_tool_outputfile="@TOOL_OUTPUT@"~
9956 case $lt_outputfile in
9959 lt_outputfile=$lt_outputfile.exe
9960 lt_tool_outputfile=$lt_tool_outputfile.exe
9963 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9964 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9965 $RM "$lt_outputfile.manifest";
9969 # Assume MSVC wrapper
9970 hardcode_libdir_flag_spec=' '
9971 allow_undefined_flag=unsupported
9972 # Tell ltmain to make .lib files, not .a files.
9974 # Tell ltmain to make .dll files, not .so files.
9976 # FIXME: Setting linknames here is a bad hack.
9977 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9978 # The linker will automatically build a .lib file if we build a DLL.
9979 old_archive_from_new_cmds='true'
9980 # FIXME: Should let the user specify the lib program.
9981 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9982 enable_shared_with_static_runtimes=yes
9987 darwin* | rhapsody*)
9990 archive_cmds_need_lc=no
9992 hardcode_automatic=yes
9993 hardcode_shlibpath_var=unsupported
9994 if test yes = "$lt_cv_ld_force_load"; then
9995 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\"`'
9998 whole_archive_flag_spec=''
10000 link_all_deplibs=yes
10001 allow_undefined_flag=$_lt_dar_allow_undefined
10002 case $cc_basename in
10003 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10004 *) _lt_dar_can_shared=$GCC ;;
10006 if test yes = "$_lt_dar_can_shared"; then
10007 output_verbose_link_cmd=func_echo_all
10008 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10009 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10010 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"
10011 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"
10020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021 hardcode_libdir_flag_spec='-L$libdir'
10022 hardcode_shlibpath_var=no
10025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10026 # support. Future versions do this automatically, but an explicit c++rt0.o
10027 # does not break anything, and helps significantly (at the cost of a little
10030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10031 hardcode_libdir_flag_spec='-R$libdir'
10032 hardcode_direct=yes
10033 hardcode_shlibpath_var=no
10036 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_direct=yes
10040 hardcode_minus_L=yes
10041 hardcode_shlibpath_var=no
10044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10045 freebsd* | dragonfly*)
10046 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10047 hardcode_libdir_flag_spec='-R$libdir'
10048 hardcode_direct=yes
10049 hardcode_shlibpath_var=no
10053 if test yes = "$GCC"; then
10054 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'
10056 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'
10058 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10059 hardcode_libdir_separator=:
10060 hardcode_direct=yes
10062 # hardcode_minus_L: Not really in the search PATH,
10063 # but as the default location of the library.
10064 hardcode_minus_L=yes
10065 export_dynamic_flag_spec='$wl-E'
10069 if test yes,no = "$GCC,$with_gnu_ld"; then
10070 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10074 if test no = "$with_gnu_ld"; then
10075 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10076 hardcode_libdir_separator=:
10077 hardcode_direct=yes
10078 hardcode_direct_absolute=yes
10079 export_dynamic_flag_spec='$wl-E'
10080 # hardcode_minus_L: Not really in the search PATH,
10081 # but as the default location of the library.
10082 hardcode_minus_L=yes
10087 if test yes,no = "$GCC,$with_gnu_ld"; then
10090 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10102 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10105 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10109 # Older versions of the 11.00 compiler do not understand -b yet
10110 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10112 $as_echo_n "checking if $CC understands -b... " >&6; }
10113 if ${lt_cv_prog_compiler__b+:} false; then :
10114 $as_echo_n "(cached) " >&6
10116 lt_cv_prog_compiler__b=no
10117 save_LDFLAGS=$LDFLAGS
10118 LDFLAGS="$LDFLAGS -b"
10119 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10121 # The linker can only warn and ignore the option if not recognized
10122 # So say no if there are warnings
10123 if test -s conftest.err; then
10124 # Append any errors to the config.log.
10125 cat conftest.err 1>&5
10126 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10128 if diff conftest.exp conftest.er2 >/dev/null; then
10129 lt_cv_prog_compiler__b=yes
10132 lt_cv_prog_compiler__b=yes
10136 LDFLAGS=$save_LDFLAGS
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10140 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10142 if test yes = "$lt_cv_prog_compiler__b"; then
10143 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10151 if test no = "$with_gnu_ld"; then
10152 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10153 hardcode_libdir_separator=:
10158 hardcode_shlibpath_var=no
10161 hardcode_direct=yes
10162 hardcode_direct_absolute=yes
10163 export_dynamic_flag_spec='$wl-E'
10165 # hardcode_minus_L: Not really in the search PATH,
10166 # but as the default location of the library.
10167 hardcode_minus_L=yes
10173 irix5* | irix6* | nonstopux*)
10174 if test yes = "$GCC"; then
10175 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'
10176 # Try to use the -exported_symbol ld option, if it does not
10177 # work, assume that -exports_file does not work either and
10178 # implicitly export all symbols.
10179 # This should be the same for all languages, so no per-tag cache variable.
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10181 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10182 if ${lt_cv_irix_exported_symbol+:} false; then :
10183 $as_echo_n "(cached) " >&6
10185 save_LDFLAGS=$LDFLAGS
10186 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10189 int foo (void) { return 0; }
10191 if ac_fn_c_try_link "$LINENO"; then :
10192 lt_cv_irix_exported_symbol=yes
10194 lt_cv_irix_exported_symbol=no
10196 rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 LDFLAGS=$save_LDFLAGS
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10201 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10202 if test yes = "$lt_cv_irix_exported_symbol"; then
10203 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'
10205 link_all_deplibs=no
10207 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'
10208 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'
10210 archive_cmds_need_lc='no'
10211 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10212 hardcode_libdir_separator=:
10214 link_all_deplibs=yes
10218 case $cc_basename in
10220 # Fabrice Bellard et al's Tiny C Compiler
10222 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10227 netbsd* | netbsdelf*-gnu)
10228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10231 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10233 hardcode_libdir_flag_spec='-R$libdir'
10234 hardcode_direct=yes
10235 hardcode_shlibpath_var=no
10239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240 hardcode_direct=yes
10241 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10242 hardcode_libdir_separator=:
10243 hardcode_shlibpath_var=no
10249 openbsd* | bitrig*)
10250 if test -f /usr/libexec/ld.so; then
10251 hardcode_direct=yes
10252 hardcode_shlibpath_var=no
10253 hardcode_direct_absolute=yes
10254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10256 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10257 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10258 export_dynamic_flag_spec='$wl-E'
10260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10261 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10269 hardcode_libdir_flag_spec='-L$libdir'
10270 hardcode_minus_L=yes
10271 allow_undefined_flag=unsupported
10273 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10274 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10275 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10276 $ECHO EXPORTS >> $output_objdir/$libname.def~
10277 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10278 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10279 emximp -o $lib $output_objdir/$libname.def'
10280 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10281 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10282 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10283 $ECHO EXPORTS >> $output_objdir/$libname.def~
10284 prefix_cmds="$SED"~
10285 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10286 prefix_cmds="$prefix_cmds -e 1d";
10288 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10289 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10290 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10291 emximp -o $lib $output_objdir/$libname.def'
10292 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10293 enable_shared_with_static_runtimes=yes
10297 if test yes = "$GCC"; then
10298 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10299 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'
10301 allow_undefined_flag=' -expect_unresolved \*'
10302 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'
10304 archive_cmds_need_lc='no'
10305 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10306 hardcode_libdir_separator=:
10309 osf4* | osf5*) # as osf3* with the addition of -msym flag
10310 if test yes = "$GCC"; then
10311 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10312 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'
10313 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10315 allow_undefined_flag=' -expect_unresolved \*'
10316 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'
10317 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~
10318 $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'
10320 # Both c and cxx compiler support -rpath directly
10321 hardcode_libdir_flag_spec='-rpath $libdir'
10323 archive_cmds_need_lc='no'
10324 hardcode_libdir_separator=:
10328 no_undefined_flag=' -z defs'
10329 if test yes = "$GCC"; then
10331 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10333 $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'
10335 case `$CC -V 2>&1` in
10338 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10340 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10344 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10345 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10346 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10350 hardcode_libdir_flag_spec='-R$libdir'
10351 hardcode_shlibpath_var=no
10353 solaris2.[0-5] | solaris2.[0-5].*) ;;
10355 # The compiler driver will combine and reorder linker options,
10356 # but understands '-z linker_flag'. GCC discards it without '$wl',
10357 # but is careful enough not to reorder.
10358 # Supported since Solaris 2.6 (maybe 2.5.1?)
10359 if test yes = "$GCC"; then
10360 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10362 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10366 link_all_deplibs=yes
10370 if test sequent = "$host_vendor"; then
10371 # Use $CC to link under sequent, because it throws in some extra .o
10372 # files that make .init and .fini sections work.
10373 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10375 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10377 hardcode_libdir_flag_spec='-L$libdir'
10378 hardcode_direct=yes
10379 hardcode_minus_L=yes
10380 hardcode_shlibpath_var=no
10384 case $host_vendor in
10386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10387 hardcode_direct=yes # is this really true???
10390 ## LD is ld it makes a PLAMLIB
10391 ## CC just makes a GrossModule.
10392 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10393 reload_cmds='$CC -r -o $output$reload_objs'
10397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10398 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10401 runpath_var='LD_RUN_PATH'
10402 hardcode_shlibpath_var=no
10406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10407 hardcode_shlibpath_var=no
10408 export_dynamic_flag_spec='-Bexport'
10412 if test -d /usr/nec; then
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_shlibpath_var=no
10415 runpath_var=LD_RUN_PATH
10416 hardcode_runpath_var=yes
10421 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10422 no_undefined_flag='$wl-z,text'
10423 archive_cmds_need_lc=no
10424 hardcode_shlibpath_var=no
10425 runpath_var='LD_RUN_PATH'
10427 if test yes = "$GCC"; then
10428 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10429 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10436 sysv5* | sco3.2v5* | sco5v6*)
10437 # Note: We CANNOT use -z defs as we might desire, because we do not
10438 # link with -lc, and that would cause any symbols used from libc to
10439 # always be unresolved, which means just about no library would
10440 # ever link correctly. If we're not using GNU ld we use -z text
10441 # though, which does catch some bad symbols but isn't as heavy-handed
10443 no_undefined_flag='$wl-z,text'
10444 allow_undefined_flag='$wl-z,nodefs'
10445 archive_cmds_need_lc=no
10446 hardcode_shlibpath_var=no
10447 hardcode_libdir_flag_spec='$wl-R,$libdir'
10448 hardcode_libdir_separator=':'
10449 link_all_deplibs=yes
10450 export_dynamic_flag_spec='$wl-Bexport'
10451 runpath_var='LD_RUN_PATH'
10453 if test yes = "$GCC"; then
10454 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10464 hardcode_libdir_flag_spec='-L$libdir'
10465 hardcode_shlibpath_var=no
10473 if test sni = "$host_vendor"; then
10475 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10476 export_dynamic_flag_spec='$wl-Blargedynsym'
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10483 $as_echo "$ld_shlibs" >&6; }
10484 test no = "$ld_shlibs" && can_build_shared=no
10486 with_gnu_ld=$with_gnu_ld
10503 # Do we need to explicitly link libc?
10505 case "x$archive_cmds_need_lc" in
10507 # Assume -lc should be added
10508 archive_cmds_need_lc=yes
10510 if test yes,yes = "$GCC,$enable_shared"; then
10511 case $archive_cmds in
10513 # FIXME: we may have to deal with multi-command sequences.
10516 # Test whether the compiler implicitly links with -lc since on some
10517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10518 # to ld, don't add -lc before -lgcc.
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10520 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10521 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10522 $as_echo_n "(cached) " >&6
10525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10528 (eval $ac_compile) 2>&5
10530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10531 test $ac_status = 0; } 2>conftest.err; then
10534 libobjs=conftest.$ac_objext
10536 wl=$lt_prog_compiler_wl
10537 pic_flag=$lt_prog_compiler_pic
10543 lt_save_allow_undefined_flag=$allow_undefined_flag
10544 allow_undefined_flag=
10545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10546 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10549 test $ac_status = 0; }
10551 lt_cv_archive_cmds_need_lc=no
10553 lt_cv_archive_cmds_need_lc=yes
10555 allow_undefined_flag=$lt_save_allow_undefined_flag
10557 cat conftest.err 1>&5
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10563 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10564 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10723 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10725 if test yes = "$GCC"; then
10727 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10728 *) lt_awk_arg='/^libraries:/' ;;
10731 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10732 *) lt_sed_strip_eq='s|=/|/|g' ;;
10734 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10735 case $lt_search_path_spec in
10737 # if the path contains ";" then we assume it to be the separator
10738 # otherwise default to the standard path separator (i.e. ":") - it is
10739 # assumed that no part of a normal pathname contains ";" but that should
10740 # okay in the real world where ";" in dirpaths is itself problematic.
10741 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10744 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10747 # Ok, now we have the path, separated by spaces, we can step through it
10748 # and add multilib dir if necessary...
10749 lt_tmp_lt_search_path_spec=
10750 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10751 # ...but if some path component already ends with the multilib dir we assume
10752 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10753 case "$lt_multi_os_dir; $lt_search_path_spec " in
10754 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10758 for lt_sys_path in $lt_search_path_spec; do
10759 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10760 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10761 elif test -n "$lt_multi_os_dir"; then
10762 test -d "$lt_sys_path" && \
10763 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10766 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10767 BEGIN {RS = " "; FS = "/|\n";} {
10770 for (lt_i = NF; lt_i > 0; lt_i--) {
10771 if ($lt_i != "" && $lt_i != ".") {
10772 if ($lt_i == "..") {
10775 if (lt_count == 0) {
10776 lt_foo = "/" $lt_i lt_foo;
10783 if (lt_foo != "") { lt_freq[lt_foo]++; }
10784 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10786 # AWK program above erroneously prepends '/' to C:/dos/paths
10789 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10790 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10792 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10796 library_names_spec=
10797 libname_spec='lib$name'
10801 postuninstall_cmds=
10805 shlibpath_overrides_runpath=unknown
10807 dynamic_linker="$host_os ld.so"
10808 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10809 need_lib_prefix=unknown
10810 hardcode_into_libs=no
10812 # when you set need_version to no, make sure it does not cause -set_version
10813 # flags to be left without arguments
10814 need_version=unknown
10820 version_type=linux # correct to gnu/linux during the next big refactor
10821 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10822 shlibpath_var=LIBPATH
10824 # AIX 3 has no versioning support, so we append a major version to the name.
10825 soname_spec='$libname$release$shared_ext$major'
10829 version_type=linux # correct to gnu/linux during the next big refactor
10832 hardcode_into_libs=yes
10833 if test ia64 = "$host_cpu"; then
10834 # AIX 5 supports IA64
10835 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10836 shlibpath_var=LD_LIBRARY_PATH
10838 # With GCC up to 2.95.x, collect2 would create an import file
10839 # for dependence libraries. The import file would start with
10840 # the line '#! .'. This would cause the generated library to
10841 # depend on '.', always an invalid library. This was fixed in
10842 # development snapshots of GCC prior to 3.0.
10844 aix4 | aix4.[01] | aix4.[01].*)
10845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10847 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10850 can_build_shared=no
10854 # Using Import Files as archive members, it is possible to support
10855 # filename-based versioning of shared library archives on AIX. While
10856 # this would work for both with and without runtime linking, it will
10857 # prevent static linking of such archives. So we do filename-based
10858 # shared library versioning with .so extension only, which is used
10859 # when both runtime linking and shared linking is enabled.
10860 # Unfortunately, runtime linking may impact performance, so we do
10861 # not want this to be the default eventually. Also, we use the
10862 # versioned .so libs for executables only if there is the -brtl
10863 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10864 # To allow for filename-based versioning support, we need to create
10865 # libNAME.so.V as an archive file, containing:
10866 # *) an Import File, referring to the versioned filename of the
10867 # archive as well as the shared archive member, telling the
10868 # bitwidth (32 or 64) of that shared object, and providing the
10869 # list of exported symbols of that shared object, eventually
10870 # decorated with the 'weak' keyword
10871 # *) the shared object with the F_LOADONLY flag set, to really avoid
10872 # it being seen by the linker.
10873 # At run time we better use the real file rather than another symlink,
10874 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10876 case $with_aix_soname,$aix_use_runtimelinking in
10877 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10878 # soname into executable. Probably we can add versioning support to
10879 # collect2, so additional links can be useful in future.
10880 aix,yes) # traditional libtool
10881 dynamic_linker='AIX unversionable lib.so'
10882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10883 # instead of lib<name>.a to let people know that these are not
10884 # typical AIX shared libraries.
10885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10887 aix,no) # traditional AIX only
10888 dynamic_linker='AIX lib.a(lib.so.V)'
10889 # We preserve .a as extension for shared libraries through AIX4.2
10890 # and later when we are not doing run time linking.
10891 library_names_spec='$libname$release.a $libname.a'
10892 soname_spec='$libname$release$shared_ext$major'
10894 svr4,*) # full svr4 only
10895 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10896 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10897 # We do not specify a path in Import Files, so LIBPATH fires.
10898 shlibpath_overrides_runpath=yes
10900 *,yes) # both, prefer svr4
10901 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10902 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10903 # unpreferred sharedlib libNAME.a needs extra handling
10904 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"'
10905 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"'
10906 # We do not specify a path in Import Files, so LIBPATH fires.
10907 shlibpath_overrides_runpath=yes
10909 *,no) # both, prefer aix
10910 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10911 library_names_spec='$libname$release.a $libname.a'
10912 soname_spec='$libname$release$shared_ext$major'
10913 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10914 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)'
10915 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"'
10918 shlibpath_var=LIBPATH
10925 # Since July 2007 AmigaOS4 officially supports .so libraries.
10926 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10927 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10930 library_names_spec='$libname.ixlibrary $libname.a'
10931 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10932 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'
10938 library_names_spec='$libname$shared_ext'
10939 dynamic_linker="$host_os ld.so"
10940 shlibpath_var=LIBRARY_PATH
10944 version_type=linux # correct to gnu/linux during the next big refactor
10946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10947 soname_spec='$libname$release$shared_ext$major'
10948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10952 # the default ld.so.conf also contains /usr/contrib/lib and
10953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10954 # libtool to hard-code these into programs
10957 cygwin* | mingw* | pw32* | cegcc*)
10958 version_type=windows
10963 case $GCC,$cc_basename in
10966 library_names_spec='$libname.dll.a'
10967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10968 postinstall_cmds='base_file=`basename \$file`~
10969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10970 dldir=$destdir/`dirname \$dlpath`~
10971 test -d \$dldir || mkdir -p \$dldir~
10972 $install_prog $dir/$dlname \$dldir/$dlname~
10973 chmod a+x \$dldir/$dlname~
10974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10978 dlpath=$dir/\$dldll~
10980 shlibpath_overrides_runpath=yes
10984 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10985 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10987 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10990 # MinGW DLLs use traditional 'lib' prefix
10991 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10994 # pw32 DLLs use 'pw' prefix rather than 'lib'
10995 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10998 dynamic_linker='Win32 ld.exe'
11003 libname_spec='$name'
11004 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11005 library_names_spec='$libname.dll.lib'
11009 sys_lib_search_path_spec=
11012 for lt_path in $LIB
11015 # Let DOS variable expansion print the short 8.3 style file name.
11016 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11017 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11020 # Convert to MSYS style.
11021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11024 # Convert to unix form, then to dos form, then back to unix form
11025 # but this time dos style (no spaces!) so that the unix form looks
11026 # like /cygdrive/c/PROGRA~1:/cygdr...
11027 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11028 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11029 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11032 sys_lib_search_path_spec=$LIB
11033 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11034 # It is most probably a Windows format PATH.
11035 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11037 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11039 # FIXME: find the short name or the path components, as spaces are
11040 # common. (e.g. "Program Files" -> "PROGRA~1")
11044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11045 postinstall_cmds='base_file=`basename \$file`~
11046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11047 dldir=$destdir/`dirname \$dlpath`~
11048 test -d \$dldir || mkdir -p \$dldir~
11049 $install_prog $dir/$dlname \$dldir/$dlname'
11050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11051 dlpath=$dir/\$dldll~
11053 shlibpath_overrides_runpath=yes
11054 dynamic_linker='Win32 link.exe'
11058 # Assume MSVC wrapper
11059 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11060 dynamic_linker='Win32 ld.exe'
11063 # FIXME: first we should search . and the directory the executable is in
11067 darwin* | rhapsody*)
11068 dynamic_linker="$host_os dyld"
11069 version_type=darwin
11072 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11073 soname_spec='$libname$release$major$shared_ext'
11074 shlibpath_overrides_runpath=yes
11075 shlibpath_var=DYLD_LIBRARY_PATH
11076 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11078 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11079 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11083 version_type=linux # correct to gnu/linux during the next big refactor
11086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11087 soname_spec='$libname$release$shared_ext$major'
11088 shlibpath_var=LD_LIBRARY_PATH
11091 freebsd* | dragonfly*)
11092 # DragonFly does not have aout. When/if they implement a new
11093 # versioning mechanism, adjust this.
11094 if test -x /usr/bin/objformat; then
11095 objformat=`/usr/bin/objformat`
11098 freebsd[23].*) objformat=aout ;;
11099 *) objformat=elf ;;
11102 version_type=freebsd-$objformat
11103 case $version_type in
11105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11106 soname_spec='$libname$release$shared_ext$major'
11111 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11115 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=yes
11120 freebsd3.[01]* | freebsdelf3.[01]*)
11121 shlibpath_overrides_runpath=yes
11122 hardcode_into_libs=yes
11124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11126 shlibpath_overrides_runpath=no
11127 hardcode_into_libs=yes
11129 *) # from 4.6 on, and DragonFly
11130 shlibpath_overrides_runpath=yes
11131 hardcode_into_libs=yes
11137 version_type=linux # correct to gnu/linux during the next big refactor
11140 dynamic_linker="$host_os runtime_loader"
11141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142 soname_spec='$libname$release$shared_ext$major'
11143 shlibpath_var=LIBRARY_PATH
11144 shlibpath_overrides_runpath=no
11145 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11146 hardcode_into_libs=yes
11149 hpux9* | hpux10* | hpux11*)
11150 # Give a soname corresponding to the major version so that dld.sl refuses to
11151 # link against other versions.
11158 hardcode_into_libs=yes
11159 dynamic_linker="$host_os dld.so"
11160 shlibpath_var=LD_LIBRARY_PATH
11161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11163 soname_spec='$libname$release$shared_ext$major'
11164 if test 32 = "$HPUX_IA64_MODE"; then
11165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11166 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11168 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11169 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11174 hardcode_into_libs=yes
11175 dynamic_linker="$host_os dld.sl"
11176 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11179 soname_spec='$libname$release$shared_ext$major'
11180 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11181 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11185 dynamic_linker="$host_os dld.sl"
11186 shlibpath_var=SHLIB_PATH
11187 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11189 soname_spec='$libname$release$shared_ext$major'
11192 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11193 postinstall_cmds='chmod 555 $lib'
11194 # or fails outright, so override atomically:
11195 install_override_mode=555
11199 version_type=linux # correct to gnu/linux during the next big refactor
11202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11203 soname_spec='$libname$release$shared_ext$major'
11204 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=no
11207 hardcode_into_libs=yes
11210 irix5* | irix6* | nonstopux*)
11212 nonstopux*) version_type=nonstopux ;;
11214 if test yes = "$lt_cv_prog_gnu_ld"; then
11215 version_type=linux # correct to gnu/linux during the next big refactor
11222 soname_spec='$libname$release$shared_ext$major'
11223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11225 irix5* | nonstopux*)
11226 libsuff= shlibsuff=
11229 case $LD in # libtool.m4 will add one of these switches to LD
11230 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11231 libsuff= shlibsuff= libmagic=32-bit;;
11232 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11233 libsuff=32 shlibsuff=N32 libmagic=N32;;
11234 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11235 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11236 *) libsuff= shlibsuff= libmagic=never-match;;
11240 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11241 shlibpath_overrides_runpath=no
11242 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11243 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11244 hardcode_into_libs=yes
11247 # No shared lib support for Linux oldld, aout, or coff.
11248 linux*oldld* | linux*aout* | linux*coff*)
11253 version_type=none # Android doesn't support versioned libraries.
11256 library_names_spec='$libname$release$shared_ext'
11257 soname_spec='$libname$release$shared_ext'
11259 shlibpath_var=LD_LIBRARY_PATH
11260 shlibpath_overrides_runpath=yes
11262 # This implies no fast_install, which is unacceptable.
11263 # Some rework will be needed to allow for fast_install
11264 # before this can be enabled.
11265 hardcode_into_libs=yes
11267 dynamic_linker='Android linker'
11268 # Don't embed -rpath directories since the linker doesn't support them.
11269 hardcode_libdir_flag_spec='-L$libdir'
11272 # This must be glibc/ELF.
11273 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11274 version_type=linux # correct to gnu/linux during the next big refactor
11277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11278 soname_spec='$libname$release$shared_ext$major'
11279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 shlibpath_overrides_runpath=no
11283 # Some binutils ld are patched to set DT_RUNPATH
11284 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11285 $as_echo_n "(cached) " >&6
11287 lt_cv_shlibpath_overrides_runpath=no
11288 save_LDFLAGS=$LDFLAGS
11289 save_libdir=$libdir
11290 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11291 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11303 if ac_fn_c_try_link "$LINENO"; then :
11304 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11305 lt_cv_shlibpath_overrides_runpath=yes
11308 rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310 LDFLAGS=$save_LDFLAGS
11311 libdir=$save_libdir
11315 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11317 # This implies no fast_install, which is unacceptable.
11318 # Some rework will be needed to allow for fast_install
11319 # before this can be enabled.
11320 hardcode_into_libs=yes
11322 # Ideally, we could use ldconfig to report *all* directores which are
11323 # searched for libraries, however this is still not possible. Aside from not
11324 # being certain /sbin/ldconfig is available, command
11325 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11326 # even though it is searched at run-time. Try to do the best guess by
11327 # appending ld.so.conf contents (and includes) to the search path.
11328 if test -f /etc/ld.so.conf; then
11329 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' ' '`
11330 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11333 # We used to test for /lib/ld.so.1 and disable shared libraries on
11334 # powerpc, because MkLinux only supported shared libraries with the
11335 # GNU dynamic linker. Since this was broken with cross compilers,
11336 # most powerpc-linux boxes support dynamic linking these days and
11337 # people can always --disable-shared, the test was removed, and we
11338 # assume the GNU/Linux dynamic linker is in use.
11339 dynamic_linker='GNU/Linux ld.so'
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 shlibpath_var=LD_LIBRARY_PATH
11349 shlibpath_overrides_runpath=no
11350 hardcode_into_libs=yes
11351 dynamic_linker='NetBSD ld.elf_so'
11358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11359 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11361 dynamic_linker='NetBSD (a.out) ld.so'
11363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11364 soname_spec='$libname$release$shared_ext$major'
11365 dynamic_linker='NetBSD ld.elf_so'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 shlibpath_overrides_runpath=yes
11369 hardcode_into_libs=yes
11373 version_type=linux # correct to gnu/linux during the next big refactor
11374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 shlibpath_overrides_runpath=yes
11383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11384 soname_spec='$libname$release$shared_ext$major'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=no
11387 hardcode_into_libs=yes
11388 dynamic_linker='ldqnx.so'
11391 openbsd* | bitrig*)
11393 sys_lib_dlsearch_path_spec=/usr/lib
11395 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11400 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11402 shlibpath_var=LD_LIBRARY_PATH
11403 shlibpath_overrides_runpath=yes
11407 libname_spec='$name'
11408 version_type=windows
11412 # OS/2 can only load a DLL with a base name of 8 characters or less.
11413 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11414 v=$($ECHO $release$versuffix | tr -d .-);
11415 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11416 $ECHO $n$v`$shared_ext'
11417 library_names_spec='${libname}_dll.$libext'
11418 dynamic_linker='OS/2 ld.exe'
11419 shlibpath_var=BEGINLIBPATH
11420 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11422 postinstall_cmds='base_file=`basename \$file`~
11423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11424 dldir=$destdir/`dirname \$dlpath`~
11425 test -d \$dldir || mkdir -p \$dldir~
11426 $install_prog $dir/$dlname \$dldir/$dlname~
11427 chmod a+x \$dldir/$dlname~
11428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11432 dlpath=$dir/\$dldll~
11436 osf3* | osf4* | osf5*)
11440 soname_spec='$libname$release$shared_ext$major'
11441 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11452 version_type=linux # correct to gnu/linux during the next big refactor
11455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11456 soname_spec='$libname$release$shared_ext$major'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath=yes
11459 hardcode_into_libs=yes
11460 # ldd complains unless libraries are executable
11461 postinstall_cmds='chmod +x $lib'
11466 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11467 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11468 shlibpath_var=LD_LIBRARY_PATH
11469 shlibpath_overrides_runpath=yes
11470 if test yes = "$with_gnu_ld"; then
11477 version_type=linux # correct to gnu/linux during the next big refactor
11478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11479 soname_spec='$libname$release$shared_ext$major'
11480 shlibpath_var=LD_LIBRARY_PATH
11481 case $host_vendor in
11483 shlibpath_overrides_runpath=no
11485 runpath_var=LD_RUN_PATH
11493 shlibpath_overrides_runpath=no
11494 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11500 if test -d /usr/nec; then
11501 version_type=linux # correct to gnu/linux during the next big refactor
11502 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11503 soname_spec='$libname$shared_ext.$major'
11504 shlibpath_var=LD_LIBRARY_PATH
11508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11513 soname_spec='$libname$release$shared_ext$major'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 shlibpath_overrides_runpath=yes
11516 hardcode_into_libs=yes
11517 if test yes = "$with_gnu_ld"; then
11518 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11520 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11523 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11527 sys_lib_dlsearch_path_spec='/usr/lib'
11531 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11532 version_type=linux # correct to gnu/linux during the next big refactor
11535 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=no
11538 hardcode_into_libs=yes
11542 version_type=linux # correct to gnu/linux during the next big refactor
11543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544 soname_spec='$libname$release$shared_ext$major'
11545 shlibpath_var=LD_LIBRARY_PATH
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11553 $as_echo "$dynamic_linker" >&6; }
11554 test no = "$dynamic_linker" && can_build_shared=no
11556 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11557 if test yes = "$GCC"; then
11558 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11561 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11562 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11565 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11566 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11569 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11570 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11572 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11573 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11575 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11576 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11675 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11677 if test -n "$hardcode_libdir_flag_spec" ||
11678 test -n "$runpath_var" ||
11679 test yes = "$hardcode_automatic"; then
11681 # We can hardcode non-existent directories.
11682 if test no != "$hardcode_direct" &&
11683 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11684 # have to relink, otherwise we might link with an installed library
11685 # when we should be linking with a yet-to-be-installed one
11686 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11687 test no != "$hardcode_minus_L"; then
11688 # Linking always hardcodes the temporary library directory.
11689 hardcode_action=relink
11691 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11692 hardcode_action=immediate
11695 # We cannot hardcode anything, or else we can only hardcode existing
11697 hardcode_action=unsupported
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11700 $as_echo "$hardcode_action" >&6; }
11702 if test relink = "$hardcode_action" ||
11703 test yes = "$inherit_rpath"; then
11704 # Fast installation is not supported
11705 enable_fast_install=no
11706 elif test yes = "$shlibpath_overrides_runpath" ||
11707 test no = "$enable_shared"; then
11708 # Fast installation is not necessary
11709 enable_fast_install=needless
11717 if test yes != "$enable_dlopen"; then
11718 enable_dlopen=unknown
11719 enable_dlopen_self=unknown
11720 enable_dlopen_self_static=unknown
11727 lt_cv_dlopen=load_add_on
11729 lt_cv_dlopen_self=yes
11732 mingw* | pw32* | cegcc*)
11733 lt_cv_dlopen=LoadLibrary
11738 lt_cv_dlopen=dlopen
11743 # if libdl is installed we need to link against it
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11745 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11746 if ${ac_cv_lib_dl_dlopen+:} false; then :
11747 $as_echo_n "(cached) " >&6
11749 ac_check_lib_save_LIBS=$LIBS
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11769 if ac_fn_c_try_link "$LINENO"; then :
11770 ac_cv_lib_dl_dlopen=yes
11772 ac_cv_lib_dl_dlopen=no
11774 rm -f core conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11779 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11780 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11781 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11786 lt_cv_dlopen_self=yes
11793 # Don't try to run any link tests for TPF. We know it's impossible
11794 # because TPF is a cross-compiler, and we know how we open DSOs.
11795 lt_cv_dlopen=dlopen
11797 lt_cv_dlopen_self=no
11801 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11802 if test "x$ac_cv_func_shl_load" = xyes; then :
11803 lt_cv_dlopen=shl_load
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11806 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11807 if ${ac_cv_lib_dld_shl_load+:} false; then :
11808 $as_echo_n "(cached) " >&6
11810 ac_check_lib_save_LIBS=$LIBS
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11815 /* Override any GCC internal prototype to avoid an error.
11816 Use char because int might match the return type of a GCC
11817 builtin and then its argument prototype would still apply. */
11825 return shl_load ();
11830 if ac_fn_c_try_link "$LINENO"; then :
11831 ac_cv_lib_dld_shl_load=yes
11833 ac_cv_lib_dld_shl_load=no
11835 rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11837 LIBS=$ac_check_lib_save_LIBS
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11840 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11841 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11842 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11844 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11845 if test "x$ac_cv_func_dlopen" = xyes; then :
11846 lt_cv_dlopen=dlopen
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11849 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11850 if ${ac_cv_lib_dl_dlopen+:} false; then :
11851 $as_echo_n "(cached) " >&6
11853 ac_check_lib_save_LIBS=$LIBS
11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h. */
11858 /* Override any GCC internal prototype to avoid an error.
11859 Use char because int might match the return type of a GCC
11860 builtin and then its argument prototype would still apply. */
11873 if ac_fn_c_try_link "$LINENO"; then :
11874 ac_cv_lib_dl_dlopen=yes
11876 ac_cv_lib_dl_dlopen=no
11878 rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11880 LIBS=$ac_check_lib_save_LIBS
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11883 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11884 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11885 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11888 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11889 if ${ac_cv_lib_svld_dlopen+:} false; then :
11890 $as_echo_n "(cached) " >&6
11892 ac_check_lib_save_LIBS=$LIBS
11893 LIBS="-lsvld $LIBS"
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11897 /* Override any GCC internal prototype to avoid an error.
11898 Use char because int might match the return type of a GCC
11899 builtin and then its argument prototype would still apply. */
11912 if ac_fn_c_try_link "$LINENO"; then :
11913 ac_cv_lib_svld_dlopen=yes
11915 ac_cv_lib_svld_dlopen=no
11917 rm -f core conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919 LIBS=$ac_check_lib_save_LIBS
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11922 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11923 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11924 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11927 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11928 if ${ac_cv_lib_dld_dld_link+:} false; then :
11929 $as_echo_n "(cached) " >&6
11931 ac_check_lib_save_LIBS=$LIBS
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11936 /* Override any GCC internal prototype to avoid an error.
11937 Use char because int might match the return type of a GCC
11938 builtin and then its argument prototype would still apply. */
11946 return dld_link ();
11951 if ac_fn_c_try_link "$LINENO"; then :
11952 ac_cv_lib_dld_dld_link=yes
11954 ac_cv_lib_dld_dld_link=no
11956 rm -f core conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11958 LIBS=$ac_check_lib_save_LIBS
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11961 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11962 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11963 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11984 if test no = "$lt_cv_dlopen"; then
11990 case $lt_cv_dlopen in
11992 save_CPPFLAGS=$CPPFLAGS
11993 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11995 save_LDFLAGS=$LDFLAGS
11996 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11999 LIBS="$lt_cv_dlopen_libs $LIBS"
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12002 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12003 if ${lt_cv_dlopen_self+:} false; then :
12004 $as_echo_n "(cached) " >&6
12006 if test yes = "$cross_compiling"; then :
12007 lt_cv_dlopen_self=cross
12009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12010 lt_status=$lt_dlunknown
12011 cat > conftest.$ac_ext <<_LT_EOF
12012 #line $LINENO "configure"
12013 #include "confdefs.h"
12022 # define LT_DLGLOBAL RTLD_GLOBAL
12025 # define LT_DLGLOBAL DL_GLOBAL
12027 # define LT_DLGLOBAL 0
12031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12032 find out it does not work in some platform. */
12033 #ifndef LT_DLLAZY_OR_NOW
12035 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12038 # define LT_DLLAZY_OR_NOW DL_LAZY
12041 # define LT_DLLAZY_OR_NOW RTLD_NOW
12044 # define LT_DLLAZY_OR_NOW DL_NOW
12046 # define LT_DLLAZY_OR_NOW 0
12053 /* When -fvisibility=hidden is used, assume the code has been annotated
12054 correspondingly for the symbols needed. */
12055 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12056 int fnord () __attribute__((visibility("default")));
12059 int fnord () { return 42; }
12062 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12063 int status = $lt_dlunknown;
12067 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12070 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12071 else puts (dlerror ());
12073 /* dlclose (self); */
12081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12082 (eval $ac_link) 2>&5
12084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12085 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12086 (./conftest; exit; ) >&5 2>/dev/null
12088 case x$lt_status in
12089 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12090 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12091 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12094 # compilation failed
12095 lt_cv_dlopen_self=no
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12103 $as_echo "$lt_cv_dlopen_self" >&6; }
12105 if test yes = "$lt_cv_dlopen_self"; then
12106 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12108 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12109 if ${lt_cv_dlopen_self_static+:} false; then :
12110 $as_echo_n "(cached) " >&6
12112 if test yes = "$cross_compiling"; then :
12113 lt_cv_dlopen_self_static=cross
12115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12116 lt_status=$lt_dlunknown
12117 cat > conftest.$ac_ext <<_LT_EOF
12118 #line $LINENO "configure"
12119 #include "confdefs.h"
12128 # define LT_DLGLOBAL RTLD_GLOBAL
12131 # define LT_DLGLOBAL DL_GLOBAL
12133 # define LT_DLGLOBAL 0
12137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12138 find out it does not work in some platform. */
12139 #ifndef LT_DLLAZY_OR_NOW
12141 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12144 # define LT_DLLAZY_OR_NOW DL_LAZY
12147 # define LT_DLLAZY_OR_NOW RTLD_NOW
12150 # define LT_DLLAZY_OR_NOW DL_NOW
12152 # define LT_DLLAZY_OR_NOW 0
12159 /* When -fvisibility=hidden is used, assume the code has been annotated
12160 correspondingly for the symbols needed. */
12161 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12162 int fnord () __attribute__((visibility("default")));
12165 int fnord () { return 42; }
12168 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12169 int status = $lt_dlunknown;
12173 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12176 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12177 else puts (dlerror ());
12179 /* dlclose (self); */
12187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12188 (eval $ac_link) 2>&5
12190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12191 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12192 (./conftest; exit; ) >&5 2>/dev/null
12194 case x$lt_status in
12195 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12196 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12197 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12200 # compilation failed
12201 lt_cv_dlopen_self_static=no
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12209 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12212 CPPFLAGS=$save_CPPFLAGS
12213 LDFLAGS=$save_LDFLAGS
12218 case $lt_cv_dlopen_self in
12219 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12220 *) enable_dlopen_self=unknown ;;
12223 case $lt_cv_dlopen_self_static in
12224 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12225 *) enable_dlopen_self_static=unknown ;;
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12248 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12249 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12250 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12251 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12253 $as_echo "yes" >&6; }
12255 # FIXME - insert some real tests, host_os isn't really good enough
12258 if test -n "$STRIP"; then
12259 striplib="$STRIP -x"
12260 old_striplib="$STRIP -S"
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12262 $as_echo "yes" >&6; }
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12286 # Report what library types will actually be built
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12288 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12290 $as_echo "$can_build_shared" >&6; }
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12293 $as_echo_n "checking whether to build shared libraries... " >&6; }
12294 test no = "$can_build_shared" && enable_shared=no
12296 # On AIX, shared libraries and static libraries use the same namespace, and
12297 # are all built from PIC.
12300 test yes = "$enable_shared" && enable_static=no
12301 if test -n "$RANLIB"; then
12302 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12303 postinstall_cmds='$RANLIB $lib'
12308 if test ia64 != "$host_cpu"; then
12309 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12310 yes,aix,yes) ;; # shared object as lib.so file only
12311 yes,svr4,*) ;; # shared object as lib.so archive member only
12312 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12318 $as_echo "$enable_shared" >&6; }
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12321 $as_echo_n "checking whether to build static libraries... " >&6; }
12322 # Make sure either enable_shared or enable_static is yes.
12323 test yes = "$enable_shared" || enable_static=yes
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12325 $as_echo "$enable_static" >&6; }
12332 ac_cpp='$CPP $CPPFLAGS'
12333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12353 ac_config_commands="$ac_config_commands libtool"
12358 # Only expand once:
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
12363 $as_echo_n "checking for library containing strerror... " >&6; }
12364 if ${ac_cv_search_strerror+:} false; then :
12365 $as_echo_n "(cached) " >&6
12367 ac_func_search_save_LIBS=$LIBS
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12371 /* Override any GCC internal prototype to avoid an error.
12372 Use char because int might match the return type of a GCC
12373 builtin and then its argument prototype would still apply. */
12381 return strerror ();
12386 for ac_lib in '' cposix; do
12387 if test -z "$ac_lib"; then
12388 ac_res="none required"
12391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12393 if ac_fn_c_try_link "$LINENO"; then :
12394 ac_cv_search_strerror=$ac_res
12396 rm -f core conftest.err conftest.$ac_objext \
12398 if ${ac_cv_search_strerror+:} false; then :
12402 if ${ac_cv_search_strerror+:} false; then :
12405 ac_cv_search_strerror=no
12407 rm conftest.$ac_ext
12408 LIBS=$ac_func_search_save_LIBS
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
12411 $as_echo "$ac_cv_search_strerror" >&6; }
12412 ac_res=$ac_cv_search_strerror
12413 if test "$ac_res" != no; then :
12414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12419 ac_cpp='$CPP $CPPFLAGS'
12420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12423 if test -n "$ac_tool_prefix"; then
12424 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12425 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if ${ac_cv_prog_CC+:} false; then :
12429 $as_echo_n "(cached) " >&6
12431 if test -n "$CC"; then
12432 ac_cv_prog_CC="$CC" # Let the user override the test.
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12441 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12452 if test -n "$CC"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12454 $as_echo "$CC" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12462 if test -z "$ac_cv_prog_CC"; then
12464 # Extract the first word of "gcc", so it can be a program name with args.
12465 set dummy gcc; ac_word=$2
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467 $as_echo_n "checking for $ac_word... " >&6; }
12468 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12469 $as_echo_n "(cached) " >&6
12471 if test -n "$ac_ct_CC"; then
12472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12478 test -z "$as_dir" && as_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12481 ac_cv_prog_ac_ct_CC="gcc"
12482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12492 if test -n "$ac_ct_CC"; then
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12494 $as_echo "$ac_ct_CC" >&6; }
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12500 if test "x$ac_ct_CC" = x; then
12503 case $cross_compiling:$ac_tool_warned in
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12507 ac_tool_warned=yes ;;
12512 CC="$ac_cv_prog_CC"
12515 if test -z "$CC"; then
12516 if test -n "$ac_tool_prefix"; then
12517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12518 set dummy ${ac_tool_prefix}cc; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if ${ac_cv_prog_CC+:} false; then :
12522 $as_echo_n "(cached) " >&6
12524 if test -n "$CC"; then
12525 ac_cv_prog_CC="$CC" # Let the user override the test.
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
12533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534 ac_cv_prog_CC="${ac_tool_prefix}cc"
12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12545 if test -n "$CC"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12547 $as_echo "$CC" >&6; }
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12556 if test -z "$CC"; then
12557 # Extract the first word of "cc", so it can be a program name with args.
12558 set dummy cc; ac_word=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560 $as_echo_n "checking for $ac_word... " >&6; }
12561 if ${ac_cv_prog_CC+:} false; then :
12562 $as_echo_n "(cached) " >&6
12564 if test -n "$CC"; then
12565 ac_cv_prog_CC="$CC" # Let the user override the test.
12567 ac_prog_rejected=no
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $PATH
12572 test -z "$as_dir" && as_dir=.
12573 for ac_exec_ext in '' $ac_executable_extensions; do
12574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12576 ac_prog_rejected=yes
12580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12587 if test $ac_prog_rejected = yes; then
12588 # We found a bogon in the path, so make sure we never use it.
12589 set dummy $ac_cv_prog_CC
12591 if test $# != 0; then
12592 # We chose a different compiler from the bogus one.
12593 # However, it has the same basename, so the bogon will be chosen
12594 # first if we set CC to just the basename; use the full file name.
12596 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12602 if test -n "$CC"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12604 $as_echo "$CC" >&6; }
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607 $as_echo "no" >&6; }
12612 if test -z "$CC"; then
12613 if test -n "$ac_tool_prefix"; then
12614 for ac_prog in cl.exe
12616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619 $as_echo_n "checking for $ac_word... " >&6; }
12620 if ${ac_cv_prog_CC+:} false; then :
12621 $as_echo_n "(cached) " >&6
12623 if test -n "$CC"; then
12624 ac_cv_prog_CC="$CC" # Let the user override the test.
12626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627 for as_dir in $PATH
12630 test -z "$as_dir" && as_dir=.
12631 for ac_exec_ext in '' $ac_executable_extensions; do
12632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12633 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644 if test -n "$CC"; then
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12646 $as_echo "$CC" >&6; }
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12653 test -n "$CC" && break
12656 if test -z "$CC"; then
12658 for ac_prog in cl.exe
12660 # Extract the first word of "$ac_prog", so it can be a program name with args.
12661 set dummy $ac_prog; ac_word=$2
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663 $as_echo_n "checking for $ac_word... " >&6; }
12664 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12665 $as_echo_n "(cached) " >&6
12667 if test -n "$ac_ct_CC"; then
12668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671 for as_dir in $PATH
12674 test -z "$as_dir" && as_dir=.
12675 for ac_exec_ext in '' $ac_executable_extensions; do
12676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12677 ac_cv_prog_ac_ct_CC="$ac_prog"
12678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12688 if test -n "$ac_ct_CC"; then
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12690 $as_echo "$ac_ct_CC" >&6; }
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12697 test -n "$ac_ct_CC" && break
12700 if test "x$ac_ct_CC" = x; then
12703 case $cross_compiling:$ac_tool_warned in
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12707 ac_tool_warned=yes ;;
12716 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12718 as_fn_error $? "no acceptable C compiler found in \$PATH
12719 See \`config.log' for more details" "$LINENO" 5; }
12721 # Provide some information about the compiler.
12722 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12725 for ac_option in --version -v -V -qversion; do
12726 { { ac_try="$ac_compiler $ac_option >&5"
12727 case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12732 $as_echo "$ac_try_echo"; } >&5
12733 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12735 if test -s conftest.err; then
12737 ... rest of stderr output deleted ...
12738 10q' conftest.err >conftest.er1
12739 cat conftest.er1 >&5
12741 rm -f conftest.er1 conftest.err
12742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12743 test $ac_status = 0; }
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12747 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12748 if ${ac_cv_c_compiler_gnu+:} false; then :
12749 $as_echo_n "(cached) " >&6
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12765 if ac_fn_c_try_compile "$LINENO"; then :
12766 ac_compiler_gnu=yes
12770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12775 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12776 if test $ac_compiler_gnu = yes; then
12781 ac_test_CFLAGS=${CFLAGS+set}
12782 ac_save_CFLAGS=$CFLAGS
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12784 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12785 if ${ac_cv_prog_cc_g+:} false; then :
12786 $as_echo_n "(cached) " >&6
12788 ac_save_c_werror_flag=$ac_c_werror_flag
12789 ac_c_werror_flag=yes
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12803 if ac_fn_c_try_compile "$LINENO"; then :
12804 ac_cv_prog_cc_g=yes
12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h. */
12818 if ac_fn_c_try_compile "$LINENO"; then :
12821 ac_c_werror_flag=$ac_save_c_werror_flag
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12834 if ac_fn_c_try_compile "$LINENO"; then :
12835 ac_cv_prog_cc_g=yes
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842 ac_c_werror_flag=$ac_save_c_werror_flag
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12845 $as_echo "$ac_cv_prog_cc_g" >&6; }
12846 if test "$ac_test_CFLAGS" = set; then
12847 CFLAGS=$ac_save_CFLAGS
12848 elif test $ac_cv_prog_cc_g = yes; then
12849 if test "$GCC" = yes; then
12855 if test "$GCC" = yes; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12862 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12863 if ${ac_cv_prog_cc_c89+:} false; then :
12864 $as_echo_n "(cached) " >&6
12866 ac_cv_prog_cc_c89=no
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12870 #include <stdarg.h>
12873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12874 struct buf { int x; };
12875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12876 static char *e (p, i)
12882 static char *f (char * (*g) (char **, int), char **p, ...)
12887 s = g (p, va_arg (v,int));
12892 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12893 function prototypes and stuff, but not '\xHH' hex character constants.
12894 These don't provoke an error unfortunately, instead are silently treated
12895 as 'x'. The following induces an error, until -std is added to get
12896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12897 array size at least. It's necessary to write '\x00'==0 to get something
12898 that's true only with -std. */
12899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12901 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12902 inside strings and character constants. */
12904 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12906 int test (int i, double x);
12907 struct s1 {int (*f) (int a);};
12908 struct s2 {int (*f) (double a);};
12909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12920 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12923 CC="$ac_save_CC $ac_arg"
12924 if ac_fn_c_try_compile "$LINENO"; then :
12925 ac_cv_prog_cc_c89=$ac_arg
12927 rm -f core conftest.err conftest.$ac_objext
12928 test "x$ac_cv_prog_cc_c89" != "xno" && break
12930 rm -f conftest.$ac_ext
12935 case "x$ac_cv_prog_cc_c89" in
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12938 $as_echo "none needed" >&6; } ;;
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12941 $as_echo "unsupported" >&6; } ;;
12943 CC="$CC $ac_cv_prog_cc_c89"
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12947 if test "x$ac_cv_prog_cc_c89" != xno; then :
12952 ac_cpp='$CPP $CPPFLAGS'
12953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12958 ac_cpp='$CPP $CPPFLAGS'
12959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12963 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12964 if ${am_cv_prog_cc_c_o+:} false; then :
12965 $as_echo_n "(cached) " >&6
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12978 # Make sure it works both with $CC and with simple cc.
12979 # Following AC_PROG_CC_C_O, we do the test twice because some
12980 # compilers refuse to overwrite an existing .o file with -o,
12981 # though they will create one.
12982 am_cv_prog_cc_c_o=yes
12983 for am_i in 1 2; do
12984 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12985 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } \
12989 && test -f conftest2.$ac_objext; then
12992 am_cv_prog_cc_c_o=no
12996 rm -f core conftest*
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13000 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13001 if test "$am_cv_prog_cc_c_o" != yes; then
13002 # Losing compiler, so override with the script.
13003 # FIXME: It is wrong to rewrite CC.
13004 # But if we don't then we get into trouble of one sort or another.
13005 # A longer-term fix would be to have automake use am__CC in this case,
13006 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13007 CC="$am_aux_dir/compile $CC"
13010 ac_cpp='$CPP $CPPFLAGS'
13011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13016 depcc="$CC" am_compiler_list=
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13019 $as_echo_n "checking dependency style of $depcc... " >&6; }
13020 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13021 $as_echo_n "(cached) " >&6
13023 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13024 # We make a subdir and do the tests there. Otherwise we can end up
13025 # making bogus files that we don't know about and never remove. For
13026 # instance it was reported that on HP-UX the gcc test will end up
13027 # making a dummy file named 'D' -- because '-MD' means "put the output
13029 rm -rf conftest.dir
13031 # Copy depcomp to subdir because otherwise we won't find it if we're
13032 # using a relative directory.
13033 cp "$am_depcomp" conftest.dir
13035 # We will build objects and dependencies in a subdirectory because
13036 # it helps to detect inapplicable dependency modes. For instance
13037 # both Tru64's cc and ICC support -MD to output dependencies as a
13038 # side effect of compilation, but ICC will put the dependencies in
13039 # the current directory while Tru64 will put them in the object
13043 am_cv_CC_dependencies_compiler_type=none
13044 if test "$am_compiler_list" = ""; then
13045 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13047 am__universal=false
13048 case " $depcc " in #(
13049 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13052 for depmode in $am_compiler_list; do
13053 # Setup a source with many dependencies, because some compilers
13054 # like to wrap large dependency lists on column 80 (with \), and
13055 # we should not choose a depcomp mode which is confused by this.
13057 # We need to recreate these files for each test, as the compiler may
13058 # overwrite some of them when testing with obscure command lines.
13059 # This happens at least with the AIX C compiler.
13061 for i in 1 2 3 4 5 6; do
13062 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13063 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13064 # Solaris 10 /bin/sh.
13065 echo '/* dummy */' > sub/conftst$i.h
13067 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13069 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13070 # mode. It turns out that the SunPro C++ compiler does not properly
13071 # handle '-M -o', and we need to detect this. Also, some Intel
13072 # versions had trouble with output in subdirs.
13073 am__obj=sub/conftest.${OBJEXT-o}
13074 am__minus_obj="-o $am__obj"
13077 # This depmode causes a compiler race in universal mode.
13078 test "$am__universal" = false || continue
13081 # After this tag, mechanisms are not by side-effect, so they'll
13082 # only be used when explicitly requested.
13083 if test "x$enable_dependency_tracking" = xyes; then
13089 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13090 # This compiler won't grok '-c -o', but also, the minuso test has
13091 # not run yet. These depmodes are late enough in the game, and
13092 # so weak that their functioning should not be impacted.
13093 am__obj=conftest.${OBJEXT-o}
13098 if depmode=$depmode \
13099 source=sub/conftest.c object=$am__obj \
13100 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13101 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13102 >/dev/null 2>conftest.err &&
13103 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13104 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13105 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13106 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13107 # icc doesn't choke on unknown options, it will just issue warnings
13108 # or remarks (even with -Werror). So we grep stderr for any message
13109 # that says an option was ignored or not supported.
13110 # When given -MP, icc 7.0 and 7.1 complain thusly:
13111 # icc: Command line warning: ignoring option '-M'; no argument required
13112 # The diagnosis changed in icc 8.0:
13113 # icc: Command line remark: option '-MP' not supported
13114 if (grep 'ignoring option' conftest.err ||
13115 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13116 am_cv_CC_dependencies_compiler_type=$depmode
13123 rm -rf conftest.dir
13125 am_cv_CC_dependencies_compiler_type=none
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13130 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13131 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13134 test "x$enable_dependency_tracking" != xno \
13135 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13136 am__fastdepCC_TRUE=
13137 am__fastdepCC_FALSE='#'
13139 am__fastdepCC_TRUE='#'
13140 am__fastdepCC_FALSE=
13146 # option to specify python interpreter to use; this just sets $PYTHON, so that
13147 # we will fallback to reading $PYTHON if --with-python is not given, and
13148 # python.m4 will get the expected input
13150 # Check whether --with-python was given.
13151 if test "${with_python+set}" = set; then :
13152 withval=$with_python; PYTHON="$withval"
13155 if test x"$PYTHON" = xyes; then
13156 as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
13158 if test -n "$PYTHON" && ! which "$PYTHON"; then
13159 as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
13162 # check that we have the minimum version of python necessary to build
13167 if test -n "$PYTHON"; then
13168 # If the user set $PYTHON, use it and don't search something else.
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
13170 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
13172 # split strings by '.' and convert to numeric. Append some zeros
13173 # because we need at least 4 digits for the hex conversion.
13174 # map returns an iterator in Python 3.0 and a list in 2.x
13175 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
13177 # xrange is not present in Python 3.0 and range returns an iterator
13178 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13179 sys.exit(sys.hexversion < minverhex)"
13180 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13181 ($PYTHON -c "$prog") >&5 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; then :
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13186 $as_echo "yes" >&6; }
13188 as_fn_error $? "too old" "$LINENO" 5
13190 am_display_PYTHON=$PYTHON
13192 # Otherwise, try each interpreter until we find one that satisfies
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
13195 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
13196 if ${am_cv_pathless_PYTHON+:} false; then :
13197 $as_echo_n "(cached) " >&6
13200 for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
13201 test "$am_cv_pathless_PYTHON" = none && break
13203 # split strings by '.' and convert to numeric. Append some zeros
13204 # because we need at least 4 digits for the hex conversion.
13205 # map returns an iterator in Python 3.0 and a list in 2.x
13206 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
13208 # xrange is not present in Python 3.0 and range returns an iterator
13209 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13210 sys.exit(sys.hexversion < minverhex)"
13211 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
13212 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; then :
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
13221 $as_echo "$am_cv_pathless_PYTHON" >&6; }
13222 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
13223 if test "$am_cv_pathless_PYTHON" = none; then
13226 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
13227 set dummy $am_cv_pathless_PYTHON; ac_word=$2
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13229 $as_echo_n "checking for $ac_word... " >&6; }
13230 if ${ac_cv_path_PYTHON+:} false; then :
13231 $as_echo_n "(cached) " >&6
13235 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13245 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13256 PYTHON=$ac_cv_path_PYTHON
13257 if test -n "$PYTHON"; then
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13259 $as_echo "$PYTHON" >&6; }
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13267 am_display_PYTHON=$am_cv_pathless_PYTHON
13271 if test "$PYTHON" = :; then
13272 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13277 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13278 if ${am_cv_python_version+:} false; then :
13279 $as_echo_n "(cached) " >&6
13281 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13284 $as_echo "$am_cv_python_version" >&6; }
13285 PYTHON_VERSION=$am_cv_python_version
13289 PYTHON_PREFIX='${prefix}'
13291 PYTHON_EXEC_PREFIX='${exec_prefix}'
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13296 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13297 if ${am_cv_python_platform+:} false; then :
13298 $as_echo_n "(cached) " >&6
13300 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13303 $as_echo "$am_cv_python_platform" >&6; }
13304 PYTHON_PLATFORM=$am_cv_python_platform
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13310 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13311 if ${am_cv_python_pythondir+:} false; then :
13312 $as_echo_n "(cached) " >&6
13314 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
13315 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13318 $as_echo "$am_cv_python_pythondir" >&6; }
13319 pythondir=$am_cv_python_pythondir
13323 pkgpythondir=\${pythondir}/$PACKAGE
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13327 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13328 if ${am_cv_python_pyexecdir+:} false; then :
13329 $as_echo_n "(cached) " >&6
13331 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
13332 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13335 $as_echo "$am_cv_python_pyexecdir" >&6; }
13336 pyexecdir=$am_cv_python_pyexecdir
13340 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13348 # check if we are building for python 3
13350 # split strings by '.' and convert to numeric. Append some zeros
13351 # because we need at least 4 digits for the hex conversion.
13352 # map returns an iterator in Python 3.0 and a list in 2.x
13353 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
13355 # xrange is not present in Python 3.0 and range returns an iterator
13356 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13357 sys.exit(sys.hexversion < minverhex)"
13358 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13359 ($PYTHON -c "$prog") >&5 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); }; then :
13368 # if building for python 3 make sure we have the minimum version supported
13369 if test $build_py3k = true ; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.4" >&5
13371 $as_echo_n "checking for $PYTHON >= 3.4... " >&6; }
13373 # split strings by '.' and convert to numeric. Append some zeros
13374 # because we need at least 4 digits for the hex conversion.
13375 # map returns an iterator in Python 3.0 and a list in 2.x
13376 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
13378 # xrange is not present in Python 3.0 and range returns an iterator
13379 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13380 sys.exit(sys.hexversion < minverhex)"
13381 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13382 ($PYTHON -c "$prog") >&5 2>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; then :
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13387 $as_echo "yes" >&6; }
13389 as_fn_error $? "too old" "$LINENO" 5
13393 # - 'SO' for PyPy, CPython 2.7-3.2
13394 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
13395 # - fallback to '.so'
13396 PYTHON_SO=`$PYTHON -c "import distutils.sysconfig, sys; get = distutils.sysconfig.get_config_var; sys.stdout.write(get('EXT_SUFFIX') or get('SO') or '.so');"`
13405 # Find any Python interpreter.
13406 if test -z "$PYTHON"; then
13407 for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
13409 # Extract the first word of "$ac_prog", so it can be a program name with args.
13410 set dummy $ac_prog; ac_word=$2
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412 $as_echo_n "checking for $ac_word... " >&6; }
13413 if ${ac_cv_path_PYTHON+:} false; then :
13414 $as_echo_n "(cached) " >&6
13418 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $PATH
13425 test -z "$as_dir" && as_dir=.
13426 for ac_exec_ext in '' $ac_executable_extensions; do
13427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13428 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13439 PYTHON=$ac_cv_path_PYTHON
13440 if test -n "$PYTHON"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13442 $as_echo "$PYTHON" >&6; }
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13449 test -n "$PYTHON" && break
13451 test -n "$PYTHON" || PYTHON=":"
13454 am_display_PYTHON=python
13457 if test "$PYTHON" = :; then
13458 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13463 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13464 if ${am_cv_python_version+:} false; then :
13465 $as_echo_n "(cached) " >&6
13467 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13470 $as_echo "$am_cv_python_version" >&6; }
13471 PYTHON_VERSION=$am_cv_python_version
13475 PYTHON_PREFIX='${prefix}'
13477 PYTHON_EXEC_PREFIX='${exec_prefix}'
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13482 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13483 if ${am_cv_python_platform+:} false; then :
13484 $as_echo_n "(cached) " >&6
13486 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13489 $as_echo "$am_cv_python_platform" >&6; }
13490 PYTHON_PLATFORM=$am_cv_python_platform
13493 # Just factor out some code duplication.
13494 am_python_setup_sysconfig="\
13496 # Prefer sysconfig over distutils.sysconfig, for better compatibility
13497 # with python 3.x. See automake bug#10227.
13500 except ImportError:
13501 can_use_sysconfig = 0
13503 can_use_sysconfig = 1
13504 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13505 # <https://github.com/pypa/virtualenv/issues/118>
13507 from platform import python_implementation
13508 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13509 can_use_sysconfig = 0
13510 except ImportError:
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13515 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13516 if ${am_cv_python_pythondir+:} false; then :
13517 $as_echo_n "(cached) " >&6
13519 if test "x$prefix" = xNONE
13521 am_py_prefix=$ac_default_prefix
13523 am_py_prefix=$prefix
13525 am_cv_python_pythondir=`$PYTHON -c "
13526 $am_python_setup_sysconfig
13527 if can_use_sysconfig:
13528 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13530 from distutils import sysconfig
13531 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13532 sys.stdout.write(sitedir)"`
13533 case $am_cv_python_pythondir in
13535 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13536 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13539 case $am_py_prefix in
13542 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13550 $as_echo "$am_cv_python_pythondir" >&6; }
13551 pythondir=$am_cv_python_pythondir
13555 pkgpythondir=\${pythondir}/$PACKAGE
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13559 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13560 if ${am_cv_python_pyexecdir+:} false; then :
13561 $as_echo_n "(cached) " >&6
13563 if test "x$exec_prefix" = xNONE
13565 am_py_exec_prefix=$am_py_prefix
13567 am_py_exec_prefix=$exec_prefix
13569 am_cv_python_pyexecdir=`$PYTHON -c "
13570 $am_python_setup_sysconfig
13571 if can_use_sysconfig:
13572 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13574 from distutils import sysconfig
13575 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13576 sys.stdout.write(sitedir)"`
13577 case $am_cv_python_pyexecdir in
13578 $am_py_exec_prefix*)
13579 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13580 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13583 case $am_py_exec_prefix in
13586 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13594 $as_echo "$am_cv_python_pyexecdir" >&6; }
13595 pyexecdir=$am_cv_python_pyexecdir
13599 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13608 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13609 if test "x$PYTHON_INCLUDES" = x; then
13610 PYTHON_CONFIG=`which $PYTHON`-config
13611 if test -x "$PYTHON_CONFIG"; then
13612 PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13614 PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
13615 PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
13619 save_CPPFLAGS="$CPPFLAGS"
13620 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623 #include <Python.h>
13625 if ac_fn_c_try_cpp "$LINENO"; then :
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13627 $as_echo "found" >&6; }
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13631 $as_echo "not found" >&6; }
13632 as_fn_error $? "Python headers not found" "$LINENO" 5
13634 rm -f conftest.err conftest.i conftest.$ac_ext
13635 CPPFLAGS="$save_CPPFLAGS"
13637 if test "x$link_python_libs" = "xyes"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13640 $as_echo_n "checking for libraries required to embed python... " >&6; }
13641 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13642 if test "x$PYTHON_LIBS" = x; then
13643 PYTHON_CONFIG=`which $PYTHON`-config
13644 if test -x "$PYTHON_CONFIG"; then
13645 PYTHON_LIBS=`$PYTHON_CONFIG --ldflags 2>/dev/null`
13647 PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13650 if test "x$PYTHON_LIB_LOC" = x; then
13651 PYTHON_LIB_LOC="${py_prefix}/lib"
13656 LIBS="$LIBS $PYTHON_LIBS"
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13660 /* Override any GCC internal prototype to avoid an error.
13661 Use char because int might match the return type of a GCC
13662 builtin and then its argument prototype would still apply. */
13666 char Py_Initialize ();
13670 return Py_Initialize ();
13675 if ac_fn_c_try_link "$LINENO"; then :
13676 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13677 $as_echo "yes" >&6; };
13679 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13680 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
13682 rm -f core conftest.err conftest.$ac_objext \
13683 conftest$ac_exeext conftest.$ac_ext
13688 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13690 # Check whether --enable-glibtest was given.
13691 if test "${enable_glibtest+set}" = set; then :
13692 enableval=$enable_glibtest;
13694 enable_glibtest=yes
13698 pkg_config_args=glib-2.0
13699 for module in . gobject $extra_mods
13703 pkg_config_args="$pkg_config_args gmodule-2.0"
13706 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13709 pkg_config_args="$pkg_config_args gobject-2.0"
13712 pkg_config_args="$pkg_config_args gthread-2.0"
13715 pkg_config_args="$pkg_config_args $module-2.0"
13727 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13728 if test -n "$ac_tool_prefix"; then
13729 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13730 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13732 $as_echo_n "checking for $ac_word... " >&6; }
13733 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13734 $as_echo_n "(cached) " >&6
13736 case $PKG_CONFIG in
13738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13760 if test -n "$PKG_CONFIG"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13762 $as_echo "$PKG_CONFIG" >&6; }
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13770 if test -z "$ac_cv_path_PKG_CONFIG"; then
13771 ac_pt_PKG_CONFIG=$PKG_CONFIG
13772 # Extract the first word of "pkg-config", so it can be a program name with args.
13773 set dummy pkg-config; ac_word=$2
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13775 $as_echo_n "checking for $ac_word... " >&6; }
13776 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13777 $as_echo_n "(cached) " >&6
13779 case $ac_pt_PKG_CONFIG in
13781 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13788 test -z "$as_dir" && as_dir=.
13789 for ac_exec_ext in '' $ac_executable_extensions; do
13790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13791 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13802 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13803 if test -n "$ac_pt_PKG_CONFIG"; then
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13805 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13811 if test "x$ac_pt_PKG_CONFIG" = x; then
13814 case $cross_compiling:$ac_tool_warned in
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13818 ac_tool_warned=yes ;;
13820 PKG_CONFIG=$ac_pt_PKG_CONFIG
13823 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13827 if test -n "$PKG_CONFIG"; then
13828 _pkg_min_version=0.16
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13830 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13831 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13833 $as_echo "yes" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13843 if test "x$PKG_CONFIG" = x ; then
13848 min_glib_version=2.38.0
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13850 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13852 if test x$PKG_CONFIG != xno ; then
13853 ## don't try to run the test against uninstalled libtool libs
13854 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13855 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13859 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13866 if test x"$no_glib" = x ; then
13867 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13868 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13869 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13870 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13872 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13873 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13874 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13875 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13876 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13877 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13878 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13879 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13880 if test "x$enable_glibtest" = "xyes" ; then
13881 ac_save_CFLAGS="$CFLAGS"
13882 ac_save_LIBS="$LIBS"
13883 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13884 LIBS="$GLIB_LIBS $LIBS"
13885 rm -f conf.glibtest
13886 if test "$cross_compiling" = yes; then :
13887 echo $ac_n "cross compiling; assumed OK... $ac_c"
13889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13894 #include <stdlib.h>
13899 unsigned int major, minor, micro;
13901 fclose (fopen ("conf.glibtest", "w"));
13903 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) {
13904 printf("%s, bad version string\n", "$min_glib_version");
13908 if ((glib_major_version != $glib_config_major_version) ||
13909 (glib_minor_version != $glib_config_minor_version) ||
13910 (glib_micro_version != $glib_config_micro_version))
13912 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13913 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13914 glib_major_version, glib_minor_version, glib_micro_version);
13915 printf ("*** was found! If pkg-config was correct, then it is best\n");
13916 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13917 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13918 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13919 printf("*** required on your system.\n");
13920 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13921 printf("*** to point to the correct configuration files\n");
13923 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13924 (glib_minor_version != GLIB_MINOR_VERSION) ||
13925 (glib_micro_version != GLIB_MICRO_VERSION))
13927 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13928 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13929 printf("*** library (version %d.%d.%d)\n",
13930 glib_major_version, glib_minor_version, glib_micro_version);
13934 if ((glib_major_version > major) ||
13935 ((glib_major_version == major) && (glib_minor_version > minor)) ||
13936 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13942 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13943 glib_major_version, glib_minor_version, glib_micro_version);
13944 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13945 major, minor, micro);
13946 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13948 printf("*** If you have already installed a sufficiently new version, this error\n");
13949 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13950 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13951 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13952 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13953 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13954 printf("*** so that the correct libraries are found at run-time))\n");
13961 if ac_fn_c_try_run "$LINENO"; then :
13966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13967 conftest.$ac_objext conftest.beam conftest.$ac_ext
13970 CFLAGS="$ac_save_CFLAGS"
13971 LIBS="$ac_save_LIBS"
13974 if test "x$no_glib" = x ; then
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13976 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13980 $as_echo "no" >&6; }
13981 if test "$PKG_CONFIG" = "no" ; then
13982 echo "*** A new enough version of pkg-config was not found."
13983 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13985 if test -f conf.glibtest ; then
13988 echo "*** Could not run GLIB test program, checking why..."
13989 ac_save_CFLAGS="$CFLAGS"
13990 ac_save_LIBS="$LIBS"
13991 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13992 LIBS="$LIBS $GLIB_LIBS"
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
14002 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
14007 if ac_fn_c_try_link "$LINENO"; then :
14008 echo "*** The test program compiled, but did not run. This usually means"
14009 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
14010 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
14011 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14012 echo "*** to the installed location Also, make sure you have run ldconfig if that"
14013 echo "*** is required on your system"
14015 echo "*** If you have an old version installed, it is best to remove it, although"
14016 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14018 echo "*** The test program failed to compile or link. See the file config.log for the"
14019 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
14021 rm -f core conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext conftest.$ac_ext
14023 CFLAGS="$ac_save_CFLAGS"
14024 LIBS="$ac_save_LIBS"
14032 GLIB_COMPILE_RESOURCES=""
14033 as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
14041 rm -f conf.glibtest
14043 if test -n "$export_dynamic"; then
14044 GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
14047 PYTHON_VALGRIND_SUPP=`$PYTHON -c "import sys; sys.stdout.write('python' + sys.version.__getitem__(0))"`
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
14053 $as_echo_n "checking for FFI... " >&6; }
14055 if test -n "$FFI_CFLAGS"; then
14056 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
14057 elif test -n "$PKG_CONFIG"; then
14058 if test -n "$PKG_CONFIG" && \
14059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
14060 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
14062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14063 test $ac_status = 0; }; then
14064 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
14065 test "x$?" != "x0" && pkg_failed=yes
14072 if test -n "$FFI_LIBS"; then
14073 pkg_cv_FFI_LIBS="$FFI_LIBS"
14074 elif test -n "$PKG_CONFIG"; then
14075 if test -n "$PKG_CONFIG" && \
14076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
14077 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
14079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14080 test $ac_status = 0; }; then
14081 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
14082 test "x$?" != "x0" && pkg_failed=yes
14092 if test $pkg_failed = yes; then
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14097 _pkg_short_errors_supported=yes
14099 _pkg_short_errors_supported=no
14101 if test $_pkg_short_errors_supported = yes; then
14102 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
14104 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
14106 # Put the nasty error message in config.log where it belongs
14107 echo "$FFI_PKG_ERRORS" >&5
14109 as_fn_error $? "Package requirements (libffi >= 3.0) were not met:
14113 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14114 installed software in a non-standard prefix.
14116 Alternatively, you may set the environment variables FFI_CFLAGS
14117 and FFI_LIBS to avoid the need to call pkg-config.
14118 See the pkg-config man page for more details." "$LINENO" 5
14119 elif test $pkg_failed = untried; then
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121 $as_echo "no" >&6; }
14122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14124 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14125 is in your PATH or set the PKG_CONFIG environment variable to the full
14126 path to pkg-config.
14128 Alternatively, you may set the environment variables FFI_CFLAGS
14129 and FFI_LIBS to avoid the need to call pkg-config.
14130 See the pkg-config man page for more details.
14132 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14133 See \`config.log' for more details" "$LINENO" 5; }
14135 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
14136 FFI_LIBS=$pkg_cv_FFI_LIBS
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14138 $as_echo "yes" >&6; }
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
14148 $as_echo_n "checking for GIO... " >&6; }
14150 if test -n "$GIO_CFLAGS"; then
14151 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
14152 elif test -n "$PKG_CONFIG"; then
14153 if test -n "$PKG_CONFIG" && \
14154 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
14155 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
14157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14158 test $ac_status = 0; }; then
14159 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.38.0" 2>/dev/null`
14160 test "x$?" != "x0" && pkg_failed=yes
14167 if test -n "$GIO_LIBS"; then
14168 pkg_cv_GIO_LIBS="$GIO_LIBS"
14169 elif test -n "$PKG_CONFIG"; then
14170 if test -n "$PKG_CONFIG" && \
14171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
14172 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175 test $ac_status = 0; }; then
14176 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.38.0" 2>/dev/null`
14177 test "x$?" != "x0" && pkg_failed=yes
14187 if test $pkg_failed = yes; then
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189 $as_echo "no" >&6; }
14191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14192 _pkg_short_errors_supported=yes
14194 _pkg_short_errors_supported=no
14196 if test $_pkg_short_errors_supported = yes; then
14197 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
14199 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
14201 # Put the nasty error message in config.log where it belongs
14202 echo "$GIO_PKG_ERRORS" >&5
14204 as_fn_error $? "Package requirements (gio-2.0 >= 2.38.0) were not met:
14208 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14209 installed software in a non-standard prefix.
14211 Alternatively, you may set the environment variables GIO_CFLAGS
14212 and GIO_LIBS to avoid the need to call pkg-config.
14213 See the pkg-config man page for more details." "$LINENO" 5
14214 elif test $pkg_failed = untried; then
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14219 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14220 is in your PATH or set the PKG_CONFIG environment variable to the full
14221 path to pkg-config.
14223 Alternatively, you may set the environment variables GIO_CFLAGS
14224 and GIO_LIBS to avoid the need to call pkg-config.
14225 See the pkg-config man page for more details.
14227 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14228 See \`config.log' for more details" "$LINENO" 5; }
14230 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
14231 GIO_LIBS=$pkg_cv_GIO_LIBS
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14233 $as_echo "yes" >&6; }
14237 # Check whether --enable-cairo was given.
14238 if test "${enable_cairo+set}" = set; then :
14239 enableval=$enable_cairo; enable_cairo=$enableval
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
14248 $as_echo_n "checking for GI... " >&6; }
14250 if test -n "$GI_CFLAGS"; then
14251 pkg_cv_GI_CFLAGS="$GI_CFLAGS"
14252 elif test -n "$PKG_CONFIG"; then
14253 if test -n "$PKG_CONFIG" && \
14254 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
14255 gobject-introspection-1.0 >= 1.46.0
14257 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
14258 gobject-introspection-1.0 >= 1.46.0
14261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14262 test $ac_status = 0; }; then
14263 pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0
14264 gobject-introspection-1.0 >= 1.46.0
14266 test "x$?" != "x0" && pkg_failed=yes
14273 if test -n "$GI_LIBS"; then
14274 pkg_cv_GI_LIBS="$GI_LIBS"
14275 elif test -n "$PKG_CONFIG"; then
14276 if test -n "$PKG_CONFIG" && \
14277 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
14278 gobject-introspection-1.0 >= 1.46.0
14280 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
14281 gobject-introspection-1.0 >= 1.46.0
14284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14285 test $ac_status = 0; }; then
14286 pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0
14287 gobject-introspection-1.0 >= 1.46.0
14289 test "x$?" != "x0" && pkg_failed=yes
14299 if test $pkg_failed = yes; then
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14301 $as_echo "no" >&6; }
14303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14304 _pkg_short_errors_supported=yes
14306 _pkg_short_errors_supported=no
14308 if test $_pkg_short_errors_supported = yes; then
14309 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.38.0
14310 gobject-introspection-1.0 >= 1.46.0
14313 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.38.0
14314 gobject-introspection-1.0 >= 1.46.0
14317 # Put the nasty error message in config.log where it belongs
14318 echo "$GI_PKG_ERRORS" >&5
14320 as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0
14321 gobject-introspection-1.0 >= 1.46.0
14326 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14327 installed software in a non-standard prefix.
14329 Alternatively, you may set the environment variables GI_CFLAGS
14330 and GI_LIBS to avoid the need to call pkg-config.
14331 See the pkg-config man page for more details." "$LINENO" 5
14332 elif test $pkg_failed = untried; then
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14334 $as_echo "no" >&6; }
14335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14337 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14338 is in your PATH or set the PKG_CONFIG environment variable to the full
14339 path to pkg-config.
14341 Alternatively, you may set the environment variables GI_CFLAGS
14342 and GI_LIBS to avoid the need to call pkg-config.
14343 See the pkg-config man page for more details.
14345 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14346 See \`config.log' for more details" "$LINENO" 5; }
14348 GI_CFLAGS=$pkg_cv_GI_CFLAGS
14349 GI_LIBS=$pkg_cv_GI_LIBS
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14351 $as_echo "yes" >&6; }
14358 # Check whether --enable-introspection was given.
14359 if test "${enable_introspection+set}" = set; then :
14360 enableval=$enable_introspection;
14362 enable_introspection=auto
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
14367 $as_echo_n "checking for gobject-introspection... " >&6; }
14369 case $enable_introspection in #(
14371 found_introspection="no (disabled, use --enable-introspection to enable)"
14374 if test -n "$PKG_CONFIG" && \
14375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
14376 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
14378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14379 test $ac_status = 0; }; then
14382 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
14384 if test -n "$PKG_CONFIG" && \
14385 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.46.0\""; } >&5
14386 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.46.0") 2>&5
14388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14389 test $ac_status = 0; }; then
14390 found_introspection=yes
14392 as_fn_error $? "You need to have gobject-introspection >= 1.46.0 installed to build pygobject" "$LINENO" 5
14396 if test -n "$PKG_CONFIG" && \
14397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.46.0\""; } >&5
14398 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.46.0") 2>&5
14400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14401 test $ac_status = 0; }; then
14402 found_introspection=yes
14404 found_introspection=no
14406 enable_introspection=$found_introspection
14409 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
14413 $as_echo "$found_introspection" >&6; }
14415 INTROSPECTION_SCANNER=
14416 INTROSPECTION_COMPILER=
14417 INTROSPECTION_GENERATE=
14418 INTROSPECTION_GIRDIR=
14419 INTROSPECTION_TYPELIBDIR=
14420 if test "x$found_introspection" = "xyes"; then
14421 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14422 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14423 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
14424 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
14425 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
14426 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
14427 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
14428 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
14439 if test "x$found_introspection" = "xyes"; then
14440 HAVE_INTROSPECTION_TRUE=
14441 HAVE_INTROSPECTION_FALSE='#'
14443 HAVE_INTROSPECTION_TRUE='#'
14444 HAVE_INTROSPECTION_FALSE=
14450 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
14453 if test "$enable_cairo" != no; then
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
14457 $as_echo_n "checking for CAIRO... " >&6; }
14459 if test -n "$CAIRO_CFLAGS"; then
14460 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
14461 elif test -n "$PKG_CONFIG"; then
14462 if test -n "$PKG_CONFIG" && \
14463 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14464 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14467 test $ac_status = 0; }; then
14468 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
14469 test "x$?" != "x0" && pkg_failed=yes
14476 if test -n "$CAIRO_LIBS"; then
14477 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
14478 elif test -n "$PKG_CONFIG"; then
14479 if test -n "$PKG_CONFIG" && \
14480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14481 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14484 test $ac_status = 0; }; then
14485 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
14486 test "x$?" != "x0" && pkg_failed=yes
14496 if test $pkg_failed = yes; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14498 $as_echo "no" >&6; }
14500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14501 _pkg_short_errors_supported=yes
14503 _pkg_short_errors_supported=no
14505 if test $_pkg_short_errors_supported = yes; then
14506 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14508 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14510 # Put the nasty error message in config.log where it belongs
14511 echo "$CAIRO_PKG_ERRORS" >&5
14513 as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14517 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14518 installed software in a non-standard prefix.
14520 Alternatively, you may set the environment variables CAIRO_CFLAGS
14521 and CAIRO_LIBS to avoid the need to call pkg-config.
14522 See the pkg-config man page for more details." "$LINENO" 5
14523 elif test $pkg_failed = untried; then
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14525 $as_echo "no" >&6; }
14526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14528 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14529 is in your PATH or set the PKG_CONFIG environment variable to the full
14530 path to pkg-config.
14532 Alternatively, you may set the environment variables CAIRO_CFLAGS
14533 and CAIRO_LIBS to avoid the need to call pkg-config.
14534 See the pkg-config man page for more details.
14536 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14537 See \`config.log' for more details" "$LINENO" 5; }
14539 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14540 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14542 $as_echo "yes" >&6; }
14546 if test $build_py3k = true; then
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14550 $as_echo_n "checking for PYCAIRO... " >&6; }
14552 if test -n "$PYCAIRO_CFLAGS"; then
14553 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14554 elif test -n "$PKG_CONFIG"; then
14555 if test -n "$PKG_CONFIG" && \
14556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.11.1
14558 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.11.1
14561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14562 test $ac_status = 0; }; then
14563 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.11.1
14565 test "x$?" != "x0" && pkg_failed=yes
14572 if test -n "$PYCAIRO_LIBS"; then
14573 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14574 elif test -n "$PKG_CONFIG"; then
14575 if test -n "$PKG_CONFIG" && \
14576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.11.1
14578 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.11.1
14581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14582 test $ac_status = 0; }; then
14583 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.11.1
14585 test "x$?" != "x0" && pkg_failed=yes
14595 if test $pkg_failed = yes; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14597 $as_echo "no" >&6; }
14599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14600 _pkg_short_errors_supported=yes
14602 _pkg_short_errors_supported=no
14604 if test $_pkg_short_errors_supported = yes; then
14605 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.11.1
14608 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.11.1
14611 # Put the nasty error message in config.log where it belongs
14612 echo "$PYCAIRO_PKG_ERRORS" >&5
14614 as_fn_error $? "Package requirements (py3cairo >= 1.11.1
14617 $PYCAIRO_PKG_ERRORS
14619 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14620 installed software in a non-standard prefix.
14622 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14623 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14624 See the pkg-config man page for more details." "$LINENO" 5
14625 elif test $pkg_failed = untried; then
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627 $as_echo "no" >&6; }
14628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14630 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14631 is in your PATH or set the PKG_CONFIG environment variable to the full
14632 path to pkg-config.
14634 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14635 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14636 See the pkg-config man page for more details.
14638 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14639 See \`config.log' for more details" "$LINENO" 5; }
14641 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14642 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14644 $as_echo "yes" >&6; }
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14651 $as_echo_n "checking for PYCAIRO... " >&6; }
14653 if test -n "$PYCAIRO_CFLAGS"; then
14654 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14655 elif test -n "$PKG_CONFIG"; then
14656 if test -n "$PKG_CONFIG" && \
14657 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.11.1
14659 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.11.1
14662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14663 test $ac_status = 0; }; then
14664 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.11.1
14666 test "x$?" != "x0" && pkg_failed=yes
14673 if test -n "$PYCAIRO_LIBS"; then
14674 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14675 elif test -n "$PKG_CONFIG"; then
14676 if test -n "$PKG_CONFIG" && \
14677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.11.1
14679 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.11.1
14682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14683 test $ac_status = 0; }; then
14684 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.11.1
14686 test "x$?" != "x0" && pkg_failed=yes
14696 if test $pkg_failed = yes; then
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14698 $as_echo "no" >&6; }
14700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14701 _pkg_short_errors_supported=yes
14703 _pkg_short_errors_supported=no
14705 if test $_pkg_short_errors_supported = yes; then
14706 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.11.1
14709 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.11.1
14712 # Put the nasty error message in config.log where it belongs
14713 echo "$PYCAIRO_PKG_ERRORS" >&5
14715 as_fn_error $? "Package requirements (pycairo >= 1.11.1
14718 $PYCAIRO_PKG_ERRORS
14720 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14721 installed software in a non-standard prefix.
14723 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14724 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14725 See the pkg-config man page for more details." "$LINENO" 5
14726 elif test $pkg_failed = untried; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14728 $as_echo "no" >&6; }
14729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14731 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14732 is in your PATH or set the PKG_CONFIG environment variable to the full
14733 path to pkg-config.
14735 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14736 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14737 See the pkg-config man page for more details.
14739 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14740 See \`config.log' for more details" "$LINENO" 5; }
14742 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14743 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14745 $as_echo "yes" >&6; }
14750 if test "$enable_cairo" = "yes"; then
14752 ENABLE_CAIRO_FALSE='#'
14754 ENABLE_CAIRO_TRUE='#'
14755 ENABLE_CAIRO_FALSE=
14760 # Check whether --with-common was given.
14761 if test "${with_common+set}" = set; then :
14762 withval=$with_common; with_common=$enableval
14767 if test "$with_common" = "yes"; then
14769 WITH_COMMON_FALSE='#'
14771 WITH_COMMON_TRUE='#'
14776 # Disable -Werror always, see
14777 # https://mail.gnome.org/archives/desktop-devel-list/2017-April/msg00009.html
14779 # C support is enabled by default.
14782 # Only enable C++ support if AC_PROG_CXX is called. The redefinition of
14783 # AC_PROG_CXX is so that a fatal error is emitted if this macro is called
14784 # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be
14790 # Default value for IS-RELEASE is $ax_is_release
14791 ax_compiler_flags_is_release=yes
14793 # Check whether --enable-compile-warnings was given.
14794 if test "${enable_compile_warnings+set}" = set; then :
14795 enableval=$enable_compile_warnings;
14797 if test "$ax_compiler_flags_is_release" = "yes"; then :
14798 enable_compile_warnings="yes"
14800 enable_compile_warnings="error"
14804 # Check whether --enable-Werror was given.
14805 if test "${enable_Werror+set}" = set; then :
14806 enableval=$enable_Werror;
14808 enable_Werror=maybe
14812 # Return the user's chosen warning level
14813 if test "$enable_Werror" = "no" -a \
14814 "$enable_compile_warnings" = "error"; then :
14816 enable_compile_warnings="yes"
14820 ax_enable_compile_warnings=$enable_compile_warnings
14835 ac_cpp='$CPP $CPPFLAGS'
14836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14841 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
14842 # flags, otherwise they are always appended to the warn_cflags variable, and
14843 # Clang warns on them for every compilation unit.
14844 # If this is passed to GCC, it will explode, so the flag must be enabled
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
14847 $as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
14848 if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
14849 $as_echo_n "(cached) " >&6
14852 ax_check_save_flags=$CFLAGS
14853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14865 if ac_fn_c_try_compile "$LINENO"; then :
14866 ax_cv_check_cflags___Werror_unknown_warning_option=yes
14868 ax_cv_check_cflags___Werror_unknown_warning_option=no
14870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 CFLAGS=$ax_check_save_flags
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
14874 $as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
14875 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
14877 ax_compiler_flags_test="-Werror=unknown-warning-option"
14881 ax_compiler_flags_test=""
14886 # Check that -Wno-suggest-attribute=format is supported
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-suggest-attribute=format" >&5
14888 $as_echo_n "checking whether C compiler accepts -Wno-suggest-attribute=format... " >&6; }
14889 if ${ax_cv_check_cflags___Wno_suggest_attribute_format+:} false; then :
14890 $as_echo_n "(cached) " >&6
14893 ax_check_save_flags=$CFLAGS
14894 CFLAGS="$CFLAGS -Wno-suggest-attribute=format"
14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h. */
14906 if ac_fn_c_try_compile "$LINENO"; then :
14907 ax_cv_check_cflags___Wno_suggest_attribute_format=yes
14909 ax_cv_check_cflags___Wno_suggest_attribute_format=no
14911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912 CFLAGS=$ax_check_save_flags
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_suggest_attribute_format" >&5
14915 $as_echo "$ax_cv_check_cflags___Wno_suggest_attribute_format" >&6; }
14916 if test "x$ax_cv_check_cflags___Wno_suggest_attribute_format" = xyes; then :
14918 ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format"
14922 ax_compiler_no_suggest_attribute_flags=""
14932 for flag in -fno-strict-aliasing ; do
14933 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14935 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14936 if eval \${$as_CACHEVAR+:} false; then :
14937 $as_echo_n "(cached) " >&6
14940 ax_check_save_flags=$CFLAGS
14941 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14953 if ac_fn_c_try_compile "$LINENO"; then :
14954 eval "$as_CACHEVAR=yes"
14956 eval "$as_CACHEVAR=no"
14958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14959 CFLAGS=$ax_check_save_flags
14961 eval ac_res=\$$as_CACHEVAR
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14963 $as_echo "$ac_res" >&6; }
14964 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14966 if ${WARN_CFLAGS+:} false; then :
14968 case " $WARN_CFLAGS " in #(
14970 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
14971 (: WARN_CFLAGS already contains $flag) 2>&5
14973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14974 test $ac_status = 0; } ;; #(
14977 as_fn_append WARN_CFLAGS " $flag"
14978 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14979 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14982 test $ac_status = 0; }
14989 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14990 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14993 test $ac_status = 0; }
15004 if test "$ax_enable_compile_warnings" != "no"; then :
15011 for flag in -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wformat=2 -Wold-style-definition -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wimplicit-function-declaration -Wreturn-type -Wswitch-enum -Wswitch-default ; do
15012 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15014 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15015 if eval \${$as_CACHEVAR+:} false; then :
15016 $as_echo_n "(cached) " >&6
15019 ax_check_save_flags=$CFLAGS
15020 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15032 if ac_fn_c_try_compile "$LINENO"; then :
15033 eval "$as_CACHEVAR=yes"
15035 eval "$as_CACHEVAR=no"
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038 CFLAGS=$ax_check_save_flags
15040 eval ac_res=\$$as_CACHEVAR
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15042 $as_echo "$ac_res" >&6; }
15043 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15045 if ${WARN_CFLAGS+:} false; then :
15047 case " $WARN_CFLAGS " in #(
15049 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
15050 (: WARN_CFLAGS already contains $flag) 2>&5
15052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15053 test $ac_status = 0; } ;; #(
15056 as_fn_append WARN_CFLAGS " $flag"
15057 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15058 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15061 test $ac_status = 0; }
15068 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15069 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15072 test $ac_status = 0; }
15084 if test "$ax_enable_compile_warnings" = "error"; then :
15086 # "error" flags; -Werror has to be appended unconditionally because
15087 # it's not possible to test for
15089 # suggest-attribute=format is disabled because it gives too many false
15092 if ${WARN_CFLAGS+:} false; then :
15094 case " $WARN_CFLAGS " in #(
15096 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5
15097 (: WARN_CFLAGS already contains -Werror) 2>&5
15099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15100 test $ac_status = 0; } ;; #(
15103 as_fn_append WARN_CFLAGS " -Werror"
15104 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15105 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15108 test $ac_status = 0; }
15114 WARN_CFLAGS=-Werror
15115 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15116 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15119 test $ac_status = 0; }
15128 for flag in $ax_compiler_no_suggest_attribute_flags ; do
15129 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15131 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15132 if eval \${$as_CACHEVAR+:} false; then :
15133 $as_echo_n "(cached) " >&6
15136 ax_check_save_flags=$CFLAGS
15137 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15149 if ac_fn_c_try_compile "$LINENO"; then :
15150 eval "$as_CACHEVAR=yes"
15152 eval "$as_CACHEVAR=no"
15154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155 CFLAGS=$ax_check_save_flags
15157 eval ac_res=\$$as_CACHEVAR
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15159 $as_echo "$ac_res" >&6; }
15160 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15162 if ${WARN_CFLAGS+:} false; then :
15164 case " $WARN_CFLAGS " in #(
15166 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
15167 (: WARN_CFLAGS already contains $flag) 2>&5
15169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15170 test $ac_status = 0; } ;; #(
15173 as_fn_append WARN_CFLAGS " $flag"
15174 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15175 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15178 test $ac_status = 0; }
15185 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15186 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15189 test $ac_status = 0; }
15202 # In the flags below, when disabling specific flags, always add *both*
15203 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
15204 # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall,
15205 # which effectively turns that flag back on again as an error.
15206 for flag in $WARN_CFLAGS; do
15216 for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
15217 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15219 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15220 if eval \${$as_CACHEVAR+:} false; then :
15221 $as_echo_n "(cached) " >&6
15224 ax_check_save_flags=$CFLAGS
15225 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15237 if ac_fn_c_try_compile "$LINENO"; then :
15238 eval "$as_CACHEVAR=yes"
15240 eval "$as_CACHEVAR=no"
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243 CFLAGS=$ax_check_save_flags
15245 eval ac_res=\$$as_CACHEVAR
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15247 $as_echo "$ac_res" >&6; }
15248 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15250 if ${WARN_CFLAGS+:} false; then :
15252 case " $WARN_CFLAGS " in #(
15254 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
15255 (: WARN_CFLAGS already contains $flag) 2>&5
15257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15258 test $ac_status = 0; } ;; #(
15261 as_fn_append WARN_CFLAGS " $flag"
15262 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15263 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15266 test $ac_status = 0; }
15273 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15274 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15277 test $ac_status = 0; }
15294 ac_cpp='$CPP $CPPFLAGS'
15295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15300 # Substitute the variables
15317 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
15318 # flags, otherwise they are always appended to the warn_ldflags variable,
15319 # and Clang warns on them for every compilation unit.
15320 # If this is passed to GCC, it will explode, so the flag must be enabled
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
15323 $as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
15324 if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
15325 $as_echo_n "(cached) " >&6
15328 ax_check_save_flags=$CFLAGS
15329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15341 if ac_fn_c_try_compile "$LINENO"; then :
15342 ax_cv_check_cflags___Werror_unknown_warning_option=yes
15344 ax_cv_check_cflags___Werror_unknown_warning_option=no
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347 CFLAGS=$ax_check_save_flags
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
15350 $as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
15351 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
15353 ax_compiler_flags_test="-Werror=unknown-warning-option"
15357 ax_compiler_flags_test=""
15362 # macOS linker does not have --as-needed
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-as-needed" >&5
15364 $as_echo_n "checking whether the linker accepts -Wl,--no-as-needed... " >&6; }
15365 if ${ax_cv_check_ldflags___Wl___no_as_needed+:} false; then :
15366 $as_echo_n "(cached) " >&6
15369 ax_check_save_flags=$LDFLAGS
15370 LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
15371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15372 /* end confdefs.h. */
15382 if ac_fn_c_try_link "$LINENO"; then :
15383 ax_cv_check_ldflags___Wl___no_as_needed=yes
15385 ax_cv_check_ldflags___Wl___no_as_needed=no
15387 rm -f core conftest.err conftest.$ac_objext \
15388 conftest$ac_exeext conftest.$ac_ext
15389 LDFLAGS=$ax_check_save_flags
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___no_as_needed" >&5
15392 $as_echo "$ax_cv_check_ldflags___Wl___no_as_needed" >&6; }
15393 if test "x$ax_cv_check_ldflags___Wl___no_as_needed" = xyes; then :
15395 ax_compiler_flags_as_needed_option="-Wl,--no-as-needed"
15399 ax_compiler_flags_as_needed_option=""
15404 # macOS linker speaks with a different accent
15405 ax_compiler_flags_fatal_warnings_option=""
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--fatal-warnings" >&5
15407 $as_echo_n "checking whether the linker accepts -Wl,--fatal-warnings... " >&6; }
15408 if ${ax_cv_check_ldflags___Wl___fatal_warnings+:} false; then :
15409 $as_echo_n "(cached) " >&6
15412 ax_check_save_flags=$LDFLAGS
15413 LDFLAGS="$LDFLAGS -Wl,--fatal-warnings"
15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h. */
15425 if ac_fn_c_try_link "$LINENO"; then :
15426 ax_cv_check_ldflags___Wl___fatal_warnings=yes
15428 ax_cv_check_ldflags___Wl___fatal_warnings=no
15430 rm -f core conftest.err conftest.$ac_objext \
15431 conftest$ac_exeext conftest.$ac_ext
15432 LDFLAGS=$ax_check_save_flags
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___fatal_warnings" >&5
15435 $as_echo "$ax_cv_check_ldflags___Wl___fatal_warnings" >&6; }
15436 if test "x$ax_cv_check_ldflags___Wl___fatal_warnings" = xyes; then :
15438 ax_compiler_flags_fatal_warnings_option="-Wl,--fatal-warnings"
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-fatal_warnings" >&5
15445 $as_echo_n "checking whether the linker accepts -Wl,-fatal_warnings... " >&6; }
15446 if ${ax_cv_check_ldflags___Wl__fatal_warnings+:} false; then :
15447 $as_echo_n "(cached) " >&6
15450 ax_check_save_flags=$LDFLAGS
15451 LDFLAGS="$LDFLAGS -Wl,-fatal_warnings"
15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453 /* end confdefs.h. */
15463 if ac_fn_c_try_link "$LINENO"; then :
15464 ax_cv_check_ldflags___Wl__fatal_warnings=yes
15466 ax_cv_check_ldflags___Wl__fatal_warnings=no
15468 rm -f core conftest.err conftest.$ac_objext \
15469 conftest$ac_exeext conftest.$ac_ext
15470 LDFLAGS=$ax_check_save_flags
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__fatal_warnings" >&5
15473 $as_echo "$ax_cv_check_ldflags___Wl__fatal_warnings" >&6; }
15474 if test "x$ax_cv_check_ldflags___Wl__fatal_warnings" = xyes; then :
15476 ax_compiler_flags_fatal_warnings_option="-Wl,-fatal_warnings"
15488 for flag in $ax_compiler_flags_as_needed_option ; do
15489 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15491 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
15492 if eval \${$as_CACHEVAR+:} false; then :
15493 $as_echo_n "(cached) " >&6
15496 ax_check_save_flags=$LDFLAGS
15497 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h. */
15509 if ac_fn_c_try_link "$LINENO"; then :
15510 eval "$as_CACHEVAR=yes"
15512 eval "$as_CACHEVAR=no"
15514 rm -f core conftest.err conftest.$ac_objext \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LDFLAGS=$ax_check_save_flags
15518 eval ac_res=\$$as_CACHEVAR
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15520 $as_echo "$ac_res" >&6; }
15521 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15523 if ${WARN_LDFLAGS+:} false; then :
15525 case " $WARN_LDFLAGS " in #(
15527 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
15528 (: WARN_LDFLAGS already contains $flag) 2>&5
15530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15531 test $ac_status = 0; } ;; #(
15534 as_fn_append WARN_LDFLAGS " $flag"
15535 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15536 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15539 test $ac_status = 0; }
15546 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15547 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15550 test $ac_status = 0; }
15561 if test "$ax_enable_compile_warnings" != "no"; then :
15569 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15571 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
15572 if eval \${$as_CACHEVAR+:} false; then :
15573 $as_echo_n "(cached) " >&6
15576 ax_check_save_flags=$LDFLAGS
15577 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15589 if ac_fn_c_try_link "$LINENO"; then :
15590 eval "$as_CACHEVAR=yes"
15592 eval "$as_CACHEVAR=no"
15594 rm -f core conftest.err conftest.$ac_objext \
15595 conftest$ac_exeext conftest.$ac_ext
15596 LDFLAGS=$ax_check_save_flags
15598 eval ac_res=\$$as_CACHEVAR
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15600 $as_echo "$ac_res" >&6; }
15601 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15603 if ${WARN_LDFLAGS+:} false; then :
15605 case " $WARN_LDFLAGS " in #(
15607 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
15608 (: WARN_LDFLAGS already contains $flag) 2>&5
15610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15611 test $ac_status = 0; } ;; #(
15614 as_fn_append WARN_LDFLAGS " $flag"
15615 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15616 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15619 test $ac_status = 0; }
15626 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15627 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15630 test $ac_status = 0; }
15642 if test "$ax_enable_compile_warnings" = "error"; then :
15644 # "error" flags; -Werror has to be appended unconditionally because
15645 # it's not possible to test for
15647 # suggest-attribute=format is disabled because it gives too many false
15653 for flag in $ax_compiler_flags_fatal_warnings_option ; do
15654 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15656 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
15657 if eval \${$as_CACHEVAR+:} false; then :
15658 $as_echo_n "(cached) " >&6
15661 ax_check_save_flags=$LDFLAGS
15662 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15674 if ac_fn_c_try_link "$LINENO"; then :
15675 eval "$as_CACHEVAR=yes"
15677 eval "$as_CACHEVAR=no"
15679 rm -f core conftest.err conftest.$ac_objext \
15680 conftest$ac_exeext conftest.$ac_ext
15681 LDFLAGS=$ax_check_save_flags
15683 eval ac_res=\$$as_CACHEVAR
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15685 $as_echo "$ac_res" >&6; }
15686 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15688 if ${WARN_LDFLAGS+:} false; then :
15690 case " $WARN_LDFLAGS " in #(
15692 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
15693 (: WARN_LDFLAGS already contains $flag) 2>&5
15695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15696 test $ac_status = 0; } ;; #(
15699 as_fn_append WARN_LDFLAGS " $flag"
15700 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15701 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15704 test $ac_status = 0; }
15711 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15712 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15715 test $ac_status = 0; }
15728 # Substitute the variables
15740 if ${WARN_SCANNERFLAGS+:} false; then :
15742 case " $WARN_SCANNERFLAGS " in #(
15744 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5
15745 (: WARN_SCANNERFLAGS already contains ) 2>&5
15747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15748 test $ac_status = 0; } ;; #(
15751 as_fn_append WARN_SCANNERFLAGS " "
15752 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15753 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15756 test $ac_status = 0; }
15763 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15764 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15767 test $ac_status = 0; }
15772 if test "$ax_enable_compile_warnings" != "no"; then :
15776 if ${WARN_SCANNERFLAGS+:} false; then :
15778 case " $WARN_SCANNERFLAGS " in #(
15779 *" --warn-all "*) :
15780 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-all "; } >&5
15781 (: WARN_SCANNERFLAGS already contains --warn-all ) 2>&5
15783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15784 test $ac_status = 0; } ;; #(
15787 as_fn_append WARN_SCANNERFLAGS " --warn-all "
15788 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15789 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15792 test $ac_status = 0; }
15798 WARN_SCANNERFLAGS= --warn-all
15799 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15800 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15803 test $ac_status = 0; }
15809 if test "$ax_enable_compile_warnings" = "error"; then :
15813 if ${WARN_SCANNERFLAGS+:} false; then :
15815 case " $WARN_SCANNERFLAGS " in #(
15816 *" --warn-error "*) :
15817 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-error "; } >&5
15818 (: WARN_SCANNERFLAGS already contains --warn-error ) 2>&5
15820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15821 test $ac_status = 0; } ;; #(
15824 as_fn_append WARN_SCANNERFLAGS " --warn-error "
15825 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15826 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15829 test $ac_status = 0; }
15835 WARN_SCANNERFLAGS= --warn-error
15836 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15837 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15840 test $ac_status = 0; }
15847 # Substitute the variables
15851 # Disable some warnings, either because they get generated by headers of
15852 # dependencies we don't control or because it was hard to fix them.
15853 # Feel free and try to get rid of them.
15859 for flag in -Wno-unknown-warning-option -Wno-incompatible-pointer-types-discards-qualifiers -Wno-cast-align; do
15860 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15862 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15863 if eval \${$as_CACHEVAR+:} false; then :
15864 $as_echo_n "(cached) " >&6
15867 ax_check_save_flags=$CFLAGS
15868 CFLAGS="$CFLAGS $flag"
15869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h. */
15880 if ac_fn_c_try_compile "$LINENO"; then :
15881 eval "$as_CACHEVAR=yes"
15883 eval "$as_CACHEVAR=no"
15885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886 CFLAGS=$ax_check_save_flags
15888 eval ac_res=\$$as_CACHEVAR
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15890 $as_echo "$ac_res" >&6; }
15891 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15893 if ${CFLAGS+:} false; then :
15895 case " $CFLAGS " in #(
15897 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15898 (: CFLAGS already contains $flag) 2>&5
15900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15901 test $ac_status = 0; } ;; #(
15904 as_fn_append CFLAGS " $flag"
15905 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15906 (: CFLAGS="$CFLAGS") 2>&5
15908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15909 test $ac_status = 0; }
15916 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15917 (: CFLAGS="$CFLAGS") 2>&5
15919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15920 test $ac_status = 0; }
15935 for flag in -Wno-discarded-qualifiers -Wno-redundant-decls -Wno-switch-enum -Wno-undef; do
15936 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15938 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15939 if eval \${$as_CACHEVAR+:} false; then :
15940 $as_echo_n "(cached) " >&6
15943 ax_check_save_flags=$CFLAGS
15944 CFLAGS="$CFLAGS $flag"
15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15956 if ac_fn_c_try_compile "$LINENO"; then :
15957 eval "$as_CACHEVAR=yes"
15959 eval "$as_CACHEVAR=no"
15961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962 CFLAGS=$ax_check_save_flags
15964 eval ac_res=\$$as_CACHEVAR
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15966 $as_echo "$ac_res" >&6; }
15967 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15969 if ${CFLAGS+:} false; then :
15971 case " $CFLAGS " in #(
15973 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15974 (: CFLAGS already contains $flag) 2>&5
15976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15977 test $ac_status = 0; } ;; #(
15980 as_fn_append CFLAGS " $flag"
15981 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15982 (: CFLAGS="$CFLAGS") 2>&5
15984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15985 test $ac_status = 0; }
15992 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15993 (: CFLAGS="$CFLAGS") 2>&5
15995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15996 test $ac_status = 0; }
16010 # allow to override gcov location
16012 # Check whether --with-gcov was given.
16013 if test "${with_gcov+set}" = set; then :
16014 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
16016 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
16021 $as_echo_n "checking whether to build with code coverage support... " >&6; }
16022 # Check whether --enable-code-coverage was given.
16023 if test "${enable_code_coverage+set}" = set; then :
16024 enableval=$enable_code_coverage;
16026 enable_code_coverage=no
16030 if test x$enable_code_coverage = xyes; then
16031 CODE_COVERAGE_ENABLED_TRUE=
16032 CODE_COVERAGE_ENABLED_FALSE='#'
16034 CODE_COVERAGE_ENABLED_TRUE='#'
16035 CODE_COVERAGE_ENABLED_FALSE=
16038 CODE_COVERAGE_ENABLED=$enable_code_coverage
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
16041 $as_echo "$enable_code_coverage" >&6; }
16043 if test "$enable_code_coverage" = "yes" ; then :
16046 if test -n "$ac_tool_prefix"; then
16047 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16048 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16050 $as_echo_n "checking for $ac_word... " >&6; }
16051 if ${ac_cv_prog_GCOV+:} false; then :
16052 $as_echo_n "(cached) " >&6
16054 if test -n "$GCOV"; then
16055 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
16057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16058 for as_dir in $PATH
16061 test -z "$as_dir" && as_dir=.
16062 for ac_exec_ext in '' $ac_executable_extensions; do
16063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16064 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16074 GCOV=$ac_cv_prog_GCOV
16075 if test -n "$GCOV"; then
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
16077 $as_echo "$GCOV" >&6; }
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16080 $as_echo "no" >&6; }
16085 if test -z "$ac_cv_prog_GCOV"; then
16087 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16088 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16090 $as_echo_n "checking for $ac_word... " >&6; }
16091 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
16092 $as_echo_n "(cached) " >&6
16094 if test -n "$ac_ct_GCOV"; then
16095 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
16097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16098 for as_dir in $PATH
16101 test -z "$as_dir" && as_dir=.
16102 for ac_exec_ext in '' $ac_executable_extensions; do
16103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16104 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16114 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
16115 if test -n "$ac_ct_GCOV"; then
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
16117 $as_echo "$ac_ct_GCOV" >&6; }
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120 $as_echo "no" >&6; }
16123 if test "x$ac_ct_GCOV" = x; then
16126 case $cross_compiling:$ac_tool_warned in
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16130 ac_tool_warned=yes ;;
16135 GCOV="$ac_cv_prog_GCOV"
16138 if test "X$GCOV" = "X:"; then :
16139 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
16143 if test "$GCC" = "no" ; then :
16145 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
16149 # Extract the first word of "lcov", so it can be a program name with args.
16150 set dummy lcov; ac_word=$2
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16152 $as_echo_n "checking for $ac_word... " >&6; }
16153 if ${ac_cv_prog_LCOV+:} false; then :
16154 $as_echo_n "(cached) " >&6
16156 if test -n "$LCOV"; then
16157 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
16159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16160 for as_dir in $PATH
16163 test -z "$as_dir" && as_dir=.
16164 for ac_exec_ext in '' $ac_executable_extensions; do
16165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16166 ac_cv_prog_LCOV="lcov"
16167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16176 LCOV=$ac_cv_prog_LCOV
16177 if test -n "$LCOV"; then
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
16179 $as_echo "$LCOV" >&6; }
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16182 $as_echo "no" >&6; }
16186 # Extract the first word of "genhtml", so it can be a program name with args.
16187 set dummy genhtml; ac_word=$2
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16189 $as_echo_n "checking for $ac_word... " >&6; }
16190 if ${ac_cv_prog_GENHTML+:} false; then :
16191 $as_echo_n "(cached) " >&6
16193 if test -n "$GENHTML"; then
16194 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
16196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16197 for as_dir in $PATH
16200 test -z "$as_dir" && as_dir=.
16201 for ac_exec_ext in '' $ac_executable_extensions; do
16202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16203 ac_cv_prog_GENHTML="genhtml"
16204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16213 GENHTML=$ac_cv_prog_GENHTML
16214 if test -n "$GENHTML"; then
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
16216 $as_echo "$GENHTML" >&6; }
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16219 $as_echo "no" >&6; }
16224 if test -z "$LCOV" ; then :
16226 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
16230 if test -z "$GENHTML" ; then :
16232 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
16236 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
16237 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
16238 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
16239 CODE_COVERAGE_LIBS="-lgcov"
16240 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
16248 CODE_COVERAGE_RULES_CHECK='
16249 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
16250 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
16252 CODE_COVERAGE_RULES_CAPTURE='
16253 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
16254 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
16255 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
16256 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
16257 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
16259 CODE_COVERAGE_RULES_CLEAN='
16260 clean: code-coverage-clean
16261 distclean: code-coverage-clean
16262 code-coverage-clean:
16263 -$(LCOV) --directory $(top_builddir) -z
16264 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16265 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
16270 CODE_COVERAGE_RULES_CHECK='
16271 @echo "Need to reconfigure with --enable-code-coverage"
16273 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
16274 CODE_COVERAGE_RULES_CLEAN=''
16278 CODE_COVERAGE_RULES='
16282 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
16283 # Multiple directories may be specified, separated by whitespace.
16284 # (Default: $(top_builddir))
16285 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
16286 # by lcov for code coverage. (Default:
16287 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
16288 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
16289 # reports to be created. (Default:
16290 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
16291 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
16292 # set to 0 to disable it and leave empty to stay with the default.
16294 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
16295 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
16296 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
16297 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
16298 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
16299 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
16300 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16301 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
16302 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16303 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
16304 # lcov instance. (Default: empty)
16305 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
16306 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
16307 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
16308 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
16309 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
16310 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
16311 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
16313 # The generated report will be titled using the $(PACKAGE_NAME) and
16314 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
16315 # use the git-version-gen script, available online.
16317 # Optional variables
16318 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
16319 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
16320 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
16321 CODE_COVERAGE_BRANCH_COVERAGE ?=
16322 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
16323 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
16324 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
16325 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
16326 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16327 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16328 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
16329 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
16330 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
16331 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
16332 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
16333 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULTS)
16334 CODE_COVERAGE_IGNORE_PATTERN ?=
16336 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
16337 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
16338 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
16339 $(CODE_COVERAGE_OUTPUT_FILE);
16340 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
16341 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
16342 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
16343 $(CODE_COVERAGE_IGNORE_PATTERN);
16344 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
16345 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
16346 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
16347 code_coverage_quiet = $(code_coverage_quiet_$(V))
16348 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
16349 code_coverage_quiet_0 = --quiet
16351 # sanitizes the test-name: replaces with underscores: dashes and dots
16352 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
16354 # Use recursive makes in order to ignore errors during check
16355 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
16357 # Capture code coverage data
16358 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
16360 # Hook rule executed before code-coverage-capture, overridable by the user
16361 code-coverage-capture-hook:
16363 '"$CODE_COVERAGE_RULES_CLEAN"'
16366 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16368 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
16369 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
16371 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
16378 ac_config_files="$ac_config_files Makefile pygobject-3.0.pc gi/Makefile gi/repository/Makefile gi/overrides/Makefile examples/Makefile tests/Makefile pygtkcompat/Makefile PKG-INFO"
16380 cat >confcache <<\_ACEOF
16381 # This file is a shell script that caches the results of configure
16382 # tests run on this system so they can be shared between configure
16383 # scripts and configure runs, see configure's option --config-cache.
16384 # It is not useful on other systems. If it contains results you don't
16385 # want to keep, you may remove or edit it.
16387 # config.status only pays attention to the cache file if you give it
16388 # the --recheck option to rerun configure.
16390 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16391 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16392 # following values.
16396 # The following way of writing the cache mishandles newlines in values,
16397 # but we know of no workaround that is simple, portable, and efficient.
16398 # So, we kill variables containing newlines.
16399 # Ultrix sh set writes to stderr and can't be redirected directly,
16400 # and sets the high bit in the cache file unless we assign to the vars.
16402 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16403 eval ac_val=\$$ac_var
16407 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16408 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16411 _ | IFS | as_nl) ;; #(
16412 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16413 *) { eval $ac_var=; unset $ac_var;} ;;
16419 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16420 *${as_nl}ac_space=\ *)
16421 # `set' does not quote correctly, so add quotes: double-quote
16422 # substitution turns \\\\ into \\, and sed turns \\ into \.
16425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16428 # `set' quotes correctly as required by POSIX, so do not add quotes.
16429 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16438 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16440 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16442 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16443 if test -w "$cache_file"; then
16444 if test "x$cache_file" != "x/dev/null"; then
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16446 $as_echo "$as_me: updating cache $cache_file" >&6;}
16447 if test ! -f "$cache_file" || test -h "$cache_file"; then
16448 cat confcache >"$cache_file"
16450 case $cache_file in #(
16452 mv -f confcache "$cache_file"$$ &&
16453 mv -f "$cache_file"$$ "$cache_file" ;; #(
16455 mv -f confcache "$cache_file" ;;
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16461 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16466 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16467 # Let make expand exec_prefix.
16468 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16470 DEFS=-DHAVE_CONFIG_H
16475 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16476 # 1. Remove the extension, and $U if already installed.
16477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16478 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16480 # will be set to the directory where LIBOBJS objects are built.
16481 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16482 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16484 LIBOBJS=$ac_libobjs
16486 LTLIBOBJS=$ac_ltlibobjs
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16490 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16491 if test -n "$am_sleep_pid"; then
16492 # Hide warnings about reused PIDs.
16493 wait $am_sleep_pid 2>/dev/null
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16496 $as_echo "done" >&6; }
16497 if test -n "$EXEEXT"; then
16499 am__EXEEXT_FALSE='#'
16501 am__EXEEXT_TRUE='#'
16505 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16506 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16509 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16510 as_fn_error $? "conditional \"AMDEP\" was never defined.
16511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16513 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16514 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16517 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16518 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16521 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
16522 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
16523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16525 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
16526 as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
16527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16529 if test -z "${WITH_COMMON_TRUE}" && test -z "${WITH_COMMON_FALSE}"; then
16530 as_fn_error $? "conditional \"WITH_COMMON\" was never defined.
16531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16533 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
16534 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
16535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16538 : "${CONFIG_STATUS=./config.status}"
16540 ac_clean_files_save=$ac_clean_files
16541 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16543 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16545 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16547 # Generated by $as_me.
16548 # Run this file to recreate the current configuration.
16549 # Compiler output produced by configure, useful for debugging
16550 # configure, is in config.log if it exists.
16553 ac_cs_recheck=false
16556 SHELL=\${CONFIG_SHELL-$SHELL}
16559 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16560 ## -------------------- ##
16561 ## M4sh Initialization. ##
16562 ## -------------------- ##
16564 # Be more Bourne compatible
16565 DUALCASE=1; export DUALCASE # for MKS sh
16566 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16570 # is contrary to our usage. Disable this feature.
16571 alias -g '${1+"$@"}'='"$@"'
16572 setopt NO_GLOB_SUBST
16574 case `(set -o) 2>/dev/null` in #(
16586 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16587 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16588 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16590 # Prefer a ksh shell builtin over an external printf program on Solaris,
16591 # but without wasting forks for bash or zsh.
16592 if test -z "$BASH_VERSION$ZSH_VERSION" \
16593 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16594 as_echo='print -r --'
16595 as_echo_n='print -rn --'
16596 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16597 as_echo='printf %s\n'
16598 as_echo_n='printf %s'
16600 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16601 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16602 as_echo_n='/usr/ucb/echo -n'
16604 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16605 as_echo_n_body='eval
16609 expr "X$arg" : "X\\(.*\\)$as_nl";
16610 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16612 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16614 export as_echo_n_body
16615 as_echo_n='sh -c $as_echo_n_body as_echo'
16617 export as_echo_body
16618 as_echo='sh -c $as_echo_body as_echo'
16621 # The user is always right.
16622 if test "${PATH_SEPARATOR+set}" != set; then
16624 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16625 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16632 # We need space, tab and new line, in precisely that order. Quoting is
16633 # there to prevent editors from complaining about space-tab.
16634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16635 # splitting by setting IFS to empty value.)
16638 # Find who we are. Look in the path if we contain no directory separator.
16641 *[\\/]* ) as_myself=$0 ;;
16642 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16643 for as_dir in $PATH
16646 test -z "$as_dir" && as_dir=.
16647 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16653 # We did not find ourselves, most probably we were run as `sh COMMAND'
16654 # in which case we are not to be found in the path.
16655 if test "x$as_myself" = x; then
16658 if test ! -f "$as_myself"; then
16659 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16663 # Unset variables that we do not need and which cause bugs (e.g. in
16664 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16665 # suppresses any "Segmentation fault" message there. '((' could
16666 # trigger a bug in pdksh 5.2.14.
16667 for as_var in BASH_ENV ENV MAIL MAILPATH
16668 do eval test x\${$as_var+set} = xset \
16669 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16682 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16685 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16686 # ----------------------------------------
16687 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16688 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16689 # script with STATUS, using 1 if that was 0.
16692 as_status=$1; test $as_status -eq 0 && as_status=1
16694 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16695 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16697 $as_echo "$as_me: error: $2" >&2
16698 as_fn_exit $as_status
16702 # as_fn_set_status STATUS
16703 # -----------------------
16704 # Set $? to STATUS, without forking.
16705 as_fn_set_status ()
16708 } # as_fn_set_status
16710 # as_fn_exit STATUS
16711 # -----------------
16712 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16716 as_fn_set_status $1
16722 # Portably unset VAR.
16725 { eval $1=; unset $1;}
16727 as_unset=as_fn_unset
16728 # as_fn_append VAR VALUE
16729 # ----------------------
16730 # Append the text in VALUE to the end of the definition contained in VAR. Take
16731 # advantage of any shell optimizations that allow amortized linear growth over
16732 # repeated appends, instead of the typical quadratic growth present in naive
16734 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16735 eval 'as_fn_append ()
16746 # as_fn_arith ARG...
16747 # ------------------
16748 # Perform arithmetic evaluation on the ARGs, and store the result in the
16749 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16750 # must be portable across $(()) and expr.
16751 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16752 eval 'as_fn_arith ()
16759 as_val=`expr "$@" || test $? -eq 1`
16764 if expr a : '\(a\)' >/dev/null 2>&1 &&
16765 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16771 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16772 as_basename=basename
16777 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16783 as_me=`$as_basename -- "$0" ||
16784 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16785 X"$0" : 'X\(//\)$' \| \
16786 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16788 sed '/^.*\/\([^/][^/]*\)\/*$/{
16802 # Avoid depending upon Character Ranges.
16803 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16804 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16805 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16806 as_cr_digits='0123456789'
16807 as_cr_alnum=$as_cr_Letters$as_cr_digits
16809 ECHO_C= ECHO_N= ECHO_T=
16810 case `echo -n x` in #(((((
16812 case `echo 'xy\c'` in
16813 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16815 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16822 rm -f conf$$ conf$$.exe conf$$.file
16823 if test -d conf$$.dir; then
16824 rm -f conf$$.dir/conf$$.file
16827 mkdir conf$$.dir 2>/dev/null
16829 if (echo >conf$$.file) 2>/dev/null; then
16830 if ln -s conf$$.file conf$$ 2>/dev/null; then
16832 # ... but there are two gotchas:
16833 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16834 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16835 # In both cases, we have to default to `cp -pR'.
16836 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16838 elif ln conf$$.file conf$$ 2>/dev/null; then
16846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16847 rmdir conf$$.dir 2>/dev/null
16852 # Create "$as_dir" as a directory, including parents if necessary.
16857 -*) as_dir=./$as_dir;;
16859 test -d "$as_dir" || eval $as_mkdir_p || {
16863 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16864 *) as_qdir=$as_dir;;
16866 as_dirs="'$as_qdir' $as_dirs"
16867 as_dir=`$as_dirname -- "$as_dir" ||
16868 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16869 X"$as_dir" : 'X\(//\)[^/]' \| \
16870 X"$as_dir" : 'X\(//\)$' \| \
16871 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16872 $as_echo X"$as_dir" |
16873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16877 /^X\(\/\/\)[^/].*/{
16890 test -d "$as_dir" && break
16892 test -z "$as_dirs" || eval "mkdir $as_dirs"
16893 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16897 if mkdir -p . 2>/dev/null; then
16898 as_mkdir_p='mkdir -p "$as_dir"'
16900 test -d ./-p && rmdir ./-p
16905 # as_fn_executable_p FILE
16906 # -----------------------
16907 # Test if FILE is an executable regular file.
16908 as_fn_executable_p ()
16910 test -f "$1" && test -x "$1"
16911 } # as_fn_executable_p
16912 as_test_x='test -x'
16913 as_executable_p=as_fn_executable_p
16915 # Sed expression to map a string onto a valid CPP name.
16916 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16918 # Sed expression to map a string onto a valid variable name.
16919 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16923 ## ----------------------------------- ##
16924 ## Main body of $CONFIG_STATUS script. ##
16925 ## ----------------------------------- ##
16927 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16930 # Save the log message, to keep $0 and so on meaningful, and to
16931 # report actual input values of CONFIG_FILES etc. instead of their
16932 # values after options handling.
16934 This file was extended by pygobject $as_me 3.27.5, which was
16935 generated by GNU Autoconf 2.69. Invocation command line was
16937 CONFIG_FILES = $CONFIG_FILES
16938 CONFIG_HEADERS = $CONFIG_HEADERS
16939 CONFIG_LINKS = $CONFIG_LINKS
16940 CONFIG_COMMANDS = $CONFIG_COMMANDS
16943 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16948 case $ac_config_files in *"
16949 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16952 case $ac_config_headers in *"
16953 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16958 # Files that config.status was made for.
16959 config_files="$ac_config_files"
16960 config_headers="$ac_config_headers"
16961 config_commands="$ac_config_commands"
16965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16967 \`$as_me' instantiates files and other configuration actions
16968 from templates according to the current configuration. Unless the files
16969 and actions are specified as TAGs, all are instantiated by default.
16971 Usage: $0 [OPTION]... [TAG]...
16973 -h, --help print this help, then exit
16974 -V, --version print version number and configuration settings, then exit
16975 --config print configuration, then exit
16976 -q, --quiet, --silent
16977 do not print progress messages
16978 -d, --debug don't remove temporary files
16979 --recheck update $as_me by reconfiguring in the same conditions
16980 --file=FILE[:TEMPLATE]
16981 instantiate the configuration file FILE
16982 --header=FILE[:TEMPLATE]
16983 instantiate the configuration header FILE
16985 Configuration files:
16988 Configuration headers:
16991 Configuration commands:
16994 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
16995 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>."
16998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16999 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17001 pygobject config.status 3.27.5
17002 configured by $0, generated by GNU Autoconf 2.69,
17003 with options \\"\$ac_cs_config\\"
17005 Copyright (C) 2012 Free Software Foundation, Inc.
17006 This config.status script is free software; the Free Software Foundation
17007 gives unlimited permission to copy, distribute and modify it."
17014 test -n "\$AWK" || AWK=awk
17017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17018 # The default lists apply if the user does not specify any file.
17024 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17025 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17029 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17041 # Handling of the options.
17042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17044 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17045 $as_echo "$ac_cs_version"; exit ;;
17046 --config | --confi | --conf | --con | --co | --c )
17047 $as_echo "$ac_cs_config"; exit ;;
17048 --debug | --debu | --deb | --de | --d | -d )
17050 --file | --fil | --fi | --f )
17053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17054 '') as_fn_error $? "missing file argument" ;;
17056 as_fn_append CONFIG_FILES " '$ac_optarg'"
17057 ac_need_defaults=false;;
17058 --header | --heade | --head | --hea )
17061 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17063 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17064 ac_need_defaults=false;;
17066 # Conflict between --help and --header
17067 as_fn_error $? "ambiguous option: \`$1'
17068 Try \`$0 --help' for more information.";;
17069 --help | --hel | -h )
17070 $as_echo "$ac_cs_usage"; exit ;;
17071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17072 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17075 # This is an error.
17076 -*) as_fn_error $? "unrecognized option: \`$1'
17077 Try \`$0 --help' for more information." ;;
17079 *) as_fn_append ac_config_targets " $1"
17080 ac_need_defaults=false ;;
17086 ac_configure_extra_args=
17088 if $ac_cs_silent; then
17090 ac_configure_extra_args="$ac_configure_extra_args --silent"
17094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17095 if \$ac_cs_recheck; then
17096 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17098 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17099 CONFIG_SHELL='$SHELL'
17100 export CONFIG_SHELL
17105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17110 ## Running $as_me. ##
17116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17120 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17123 # The HP-UX ksh and POSIX shell print the target directory to stdout
17124 # if CDPATH is set.
17125 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17127 sed_quote_subst='$sed_quote_subst'
17128 double_quote_subst='$double_quote_subst'
17129 delay_variable_subst='$delay_variable_subst'
17130 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17131 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17132 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17133 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17134 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17135 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17136 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17137 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17138 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17139 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17140 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17141 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17142 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17143 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17144 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17145 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17146 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17147 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17148 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17149 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17150 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17151 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17152 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17153 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17154 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17155 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17156 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17157 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17158 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17159 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17160 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17161 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17162 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17163 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17164 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17165 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17166 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17167 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17168 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17169 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17170 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17171 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17172 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17173 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17174 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17175 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17176 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17177 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17178 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17179 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17180 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17181 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17182 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17183 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17184 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17185 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17186 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17187 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17188 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17189 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"`'
17190 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17191 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17192 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17193 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17194 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17195 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17196 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17197 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17198 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17199 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17200 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17201 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17202 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17203 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17204 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17205 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17206 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17207 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17208 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17209 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17210 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17211 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17212 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17213 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17214 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17215 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17216 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17217 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17218 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17219 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17220 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17221 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17222 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17223 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17224 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17225 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17226 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17227 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17228 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17229 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17230 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17231 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17232 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17233 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17234 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17235 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17236 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17237 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17238 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17239 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17240 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17241 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17242 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17243 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17244 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17245 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17246 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17247 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17248 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17249 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17250 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17251 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17252 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17253 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17254 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17255 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17256 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17257 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17258 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17259 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17260 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17261 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17262 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17263 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17264 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17265 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17268 LTCFLAGS='$LTCFLAGS'
17269 compiler='$compiler_DEFAULT'
17271 # A function that is used when there is no print builtin or printf.
17272 func_fallback_echo ()
17274 eval 'cat <<_LTECHO_EOF
17279 # Quote evaled strings.
17296 deplibs_check_method \
17300 sharedlib_from_linklib_cmd \
17303 archiver_list_spec \
17309 lt_cv_sys_global_symbol_pipe \
17310 lt_cv_sys_global_symbol_to_cdecl \
17311 lt_cv_sys_global_symbol_to_import \
17312 lt_cv_sys_global_symbol_to_c_name_address \
17313 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17314 lt_cv_nm_interface \
17315 nm_file_list_spec \
17316 lt_cv_truncate_bin \
17317 lt_prog_compiler_no_builtin_flag \
17318 lt_prog_compiler_pic \
17319 lt_prog_compiler_wl \
17320 lt_prog_compiler_static \
17321 lt_cv_prog_compiler_c_o \
17330 export_dynamic_flag_spec \
17331 whole_archive_flag_spec \
17332 compiler_needs_object \
17334 allow_undefined_flag \
17335 no_undefined_flag \
17336 hardcode_libdir_flag_spec \
17337 hardcode_libdir_separator \
17341 variables_saved_for_relink \
17343 library_names_spec \
17345 install_override_mode \
17349 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17350 *[\\\\\\\`\\"\\\$]*)
17351 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17354 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17359 # Double-quote double-evaled strings.
17360 for var in reload_cmds \
17361 old_postinstall_cmds \
17362 old_postuninstall_cmds \
17364 extract_expsyms_cmds \
17365 old_archive_from_new_cmds \
17366 old_archive_from_expsyms_cmds \
17368 archive_expsym_cmds \
17370 module_expsym_cmds \
17371 export_symbols_cmds \
17375 postuninstall_cmds \
17377 sys_lib_search_path_spec \
17378 configure_time_dlsearch_path \
17379 configure_time_lt_sys_library_path; do
17380 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17381 *[\\\\\\\`\\"\\\$]*)
17382 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17385 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17390 ac_aux_dir='$ac_aux_dir'
17392 # See if we are running on zsh, and set the options that allow our
17393 # commands through without removal of \ escapes INIT.
17394 if test -n "\${ZSH_VERSION+set}"; then
17395 setopt NO_GLOB_SUBST
17409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17411 # Handling of arguments.
17412 for ac_config_target in $ac_config_targets
17414 case $ac_config_target in
17415 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17416 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17417 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17418 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17419 "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
17420 "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
17421 "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
17422 "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
17423 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17424 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17425 "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
17426 "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
17428 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17433 # If the user did not use the arguments to specify the items to instantiate,
17434 # then the envvar interface is used. Set only those that are not.
17435 # We use the long form for the default assignment because of an extremely
17436 # bizarre bug on SunOS 4.1.3.
17437 if $ac_need_defaults; then
17438 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17439 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17440 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17443 # Have a temporary directory for convenience. Make it in the build tree
17444 # simply because there is no reason against having it here, and in addition,
17445 # creating and moving files from /tmp can sometimes cause problems.
17446 # Hook for its removal unless debugging.
17447 # Note that there is a small window in which the directory will not be cleaned:
17448 # after its creation but before its name has been assigned to `$tmp'.
17452 trap 'exit_status=$?
17453 : "${ac_tmp:=$tmp}"
17454 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17456 trap 'as_fn_exit 1' 1 2 13 15
17458 # Create a (secure) tmp directory for tmp files.
17461 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17465 tmp=./conf$$-$RANDOM
17466 (umask 077 && mkdir "$tmp")
17467 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17470 # Set up the scripts for CONFIG_FILES section.
17471 # No need to generate them if there are no CONFIG_FILES.
17472 # This happens for instance with `./config.status config.h'.
17473 if test -n "$CONFIG_FILES"; then
17476 ac_cr=`echo X | tr X '\015'`
17477 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17478 # But we know of no other shell where ac_cr would be empty at this
17479 # point, so we can use a bashism as a fallback.
17480 if test "x$ac_cr" = x; then
17481 eval ac_cr=\$\'\\r\'
17483 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17484 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17487 ac_cs_awk_cr=$ac_cr
17490 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17495 echo "cat >conf$$subs.awk <<_ACEOF" &&
17496 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17498 } >conf$$subs.sh ||
17499 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17500 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17502 for ac_last_try in false false false false false :; do
17503 . ./conf$$subs.sh ||
17504 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17506 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17507 if test $ac_delim_n = $ac_delim_num; then
17509 elif $ac_last_try; then
17510 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17512 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17515 rm -f conf$$subs.sh
17517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17518 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17522 s/^/S["/; s/!.*/"]=/
17532 s/\(.\{148\}\)..*/\1/
17534 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17539 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17546 s/\(.\{148\}\)..*/\1/
17548 s/["\\]/\\&/g; s/^/"/; s/$/"/
17552 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17557 ' <conf$$subs.awk | sed '
17562 ' >>$CONFIG_STATUS || ac_write_fail=1
17563 rm -f conf$$subs.awk
17564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17566 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17567 for (key in S) S_is_set[key] = 1
17573 nfields = split(line, field, "@")
17575 len = length(field[1])
17576 for (i = 2; i < nfields; i++) {
17578 keylen = length(key)
17579 if (S_is_set[key]) {
17581 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17582 len += length(value) + length(field[++i])
17593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17594 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17595 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17598 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17599 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17602 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17603 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17604 # trailing colons and then remove the whole line if VPATH becomes empty
17605 # (actually we leave an empty line to preserve line numbers).
17606 if test "x$srcdir" = x.; then
17607 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17626 fi # test -n "$CONFIG_FILES"
17628 # Set up the scripts for CONFIG_HEADERS section.
17629 # No need to generate them if there are no CONFIG_HEADERS.
17630 # This happens for instance with `./config.status Makefile'.
17631 if test -n "$CONFIG_HEADERS"; then
17632 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17636 # Transform confdefs.h into an awk script `defines.awk', embedded as
17637 # here-document in config.status, that substitutes the proper values into
17638 # config.h.in to produce config.h.
17640 # Create a delimiter string that does not exist in confdefs.h, to ease
17641 # handling of long lines.
17643 for ac_last_try in false false :; do
17644 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17645 if test -z "$ac_tt"; then
17647 elif $ac_last_try; then
17648 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17650 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17654 # For the awk script, D is an array of macro values keyed by name,
17655 # likewise P contains macro parameters if any. Preserve backslash
17656 # newline sequences.
17658 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17660 s/.\{148\}/&'"$ac_delim"'/g
17663 s/^[ ]*#[ ]*define[ ][ ]*/ /
17670 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17672 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17676 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17677 D["\1"]=" \3\\\\\\n"\\/p
17679 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17684 s/.\{148\}/&'"$ac_delim"'/g
17689 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17692 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17694 ' <confdefs.h | sed '
17695 s/'"$ac_delim"'/"\\\
17696 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17699 for (key in D) D_is_set[key] = 1
17702 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17704 split(line, arg, " ")
17705 if (arg[1] == "#") {
17709 defundef = substr(arg[1], 2)
17712 split(mac1, mac2, "(") #)
17714 prefix = substr(line, 1, index(line, defundef) - 1)
17715 if (D_is_set[macro]) {
17716 # Preserve the white space surrounding the "#".
17717 print prefix "define", macro P[macro] D[macro]
17720 # Replace #undef with comments. This is necessary, for example,
17721 # in the case of _POSIX_SOURCE, which is predefined and required
17722 # on some systems where configure will not decide to define it.
17723 if (defundef == "undef") {
17724 print "/*", prefix defundef, macro, "*/"
17732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17733 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17734 fi # test -n "$CONFIG_HEADERS"
17737 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17742 :[FHLC]) ac_mode=$ac_tag; continue;;
17744 case $ac_mode$ac_tag in
17746 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17747 :[FH]-) ac_tag=-:-;;
17748 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17765 -) ac_f="$ac_tmp/stdin";;
17766 *) # Look for the file first in the build tree, then in the source tree
17767 # (if the path is not absolute). The absolute path cannot be DOS-style,
17768 # because $ac_f cannot contain `:'.
17772 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17774 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17776 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17777 as_fn_append ac_file_inputs " '$ac_f'"
17780 # Let's still pretend it is `configure' which instantiates (i.e., don't
17781 # use $as_me), people would be surprised to read:
17782 # /* config.h. Generated by config.status. */
17783 configure_input='Generated from '`
17784 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17786 if test x"$ac_file" != x-; then
17787 configure_input="$ac_file. $configure_input"
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17789 $as_echo "$as_me: creating $ac_file" >&6;}
17791 # Neutralize special characters interpreted by sed in replacement strings.
17792 case $configure_input in #(
17793 *\&* | *\|* | *\\* )
17794 ac_sed_conf_input=`$as_echo "$configure_input" |
17795 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17796 *) ac_sed_conf_input=$configure_input;;
17800 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17806 ac_dir=`$as_dirname -- "$ac_file" ||
17807 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17808 X"$ac_file" : 'X\(//\)[^/]' \| \
17809 X"$ac_file" : 'X\(//\)$' \| \
17810 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17811 $as_echo X"$ac_file" |
17812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17816 /^X\(\/\/\)[^/].*/{
17829 as_dir="$ac_dir"; as_fn_mkdir_p
17833 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17835 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17836 # A ".." for each directory in $ac_dir_suffix.
17837 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17838 case $ac_top_builddir_sub in
17839 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17840 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17843 ac_abs_top_builddir=$ac_pwd
17844 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17845 # for backward compatibility:
17846 ac_top_builddir=$ac_top_build_prefix
17849 .) # We are building in place.
17851 ac_top_srcdir=$ac_top_builddir_sub
17852 ac_abs_top_srcdir=$ac_pwd ;;
17853 [\\/]* | ?:[\\/]* ) # Absolute name.
17854 ac_srcdir=$srcdir$ac_dir_suffix;
17855 ac_top_srcdir=$srcdir
17856 ac_abs_top_srcdir=$srcdir ;;
17857 *) # Relative name.
17858 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17859 ac_top_srcdir=$ac_top_build_prefix$srcdir
17860 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17862 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17872 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17873 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17875 ac_MKDIR_P=$MKDIR_P
17877 [\\/$]* | ?:[\\/]* ) ;;
17878 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17883 # If the template does not know about datarootdir, expand it.
17884 # FIXME: This hack should be removed a few years after 2.60.
17885 ac_datarootdir_hack=; ac_datarootdir_seen=
17896 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17897 *datarootdir*) ac_datarootdir_seen=yes;;
17898 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17900 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17903 ac_datarootdir_hack='
17904 s&@datadir@&$datadir&g
17905 s&@docdir@&$docdir&g
17906 s&@infodir@&$infodir&g
17907 s&@localedir@&$localedir&g
17908 s&@mandir@&$mandir&g
17909 s&\\\${datarootdir}&$datarootdir&g' ;;
17913 # Neutralize VPATH when `$srcdir' = `.'.
17914 # Shell code in configure.ac might set extrasub.
17915 # FIXME: do we really want to maintain this feature?
17916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17917 ac_sed_extra="$ac_vpsub
17920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17922 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17923 s|@configure_input@|$ac_sed_conf_input|;t t
17924 s&@top_builddir@&$ac_top_builddir_sub&;t t
17925 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17926 s&@srcdir@&$ac_srcdir&;t t
17927 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17928 s&@top_srcdir@&$ac_top_srcdir&;t t
17929 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17930 s&@builddir@&$ac_builddir&;t t
17931 s&@abs_builddir@&$ac_abs_builddir&;t t
17932 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17933 s&@INSTALL@&$ac_INSTALL&;t t
17934 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17935 $ac_datarootdir_hack
17937 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17938 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17940 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17941 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17942 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17943 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17945 which seems to be undefined. Please make sure it is defined" >&5
17946 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17947 which seems to be undefined. Please make sure it is defined" >&2;}
17949 rm -f "$ac_tmp/stdin"
17951 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17952 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17960 if test x"$ac_file" != x-; then
17962 $as_echo "/* $configure_input */" \
17963 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17964 } >"$ac_tmp/config.h" \
17965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17966 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17968 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17971 mv "$ac_tmp/config.h" "$ac_file" \
17972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17975 $as_echo "/* $configure_input */" \
17976 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17977 || as_fn_error $? "could not create -" "$LINENO" 5
17979 # Compute "$ac_file"'s index in $config_headers.
17982 for _am_header in $config_headers :; do
17983 case $_am_header in
17984 $_am_arg | $_am_arg:* )
17987 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17990 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17991 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17992 X"$_am_arg" : 'X\(//\)[^/]' \| \
17993 X"$_am_arg" : 'X\(//\)$' \| \
17994 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17995 $as_echo X"$_am_arg" |
17996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18000 /^X\(\/\/\)[^/].*/{
18012 s/.*/./; q'`/stamp-h$_am_stamp_count
18015 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18016 $as_echo "$as_me: executing $ac_file commands" >&6;}
18021 case $ac_file$ac_mode in
18022 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18023 # Older Autoconf quotes --file arguments for eval, but not when files
18024 # are listed without --file. Let's play safe and only enable the eval
18025 # if we detect the quoting.
18026 case $CONFIG_FILES in
18027 *\'*) eval set x "$CONFIG_FILES" ;;
18028 *) set x $CONFIG_FILES ;;
18033 # Strip MF so we end up with the name of the file.
18034 mf=`echo "$mf" | sed -e 's/:.*$//'`
18035 # Check whether this is an Automake generated Makefile or not.
18036 # We used to match only the files named 'Makefile.in', but
18037 # some people rename them; so instead we look at the file content.
18038 # Grep'ing the first line is not enough: some people post-process
18039 # each Makefile.in and add a new line on top of each file to say so.
18040 # Grep'ing the whole file is not good either: AIX grep has a line
18041 # limit of 2048, but all sed's we know have understand at least 4000.
18042 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18043 dirpart=`$as_dirname -- "$mf" ||
18044 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18045 X"$mf" : 'X\(//\)[^/]' \| \
18046 X"$mf" : 'X\(//\)$' \| \
18047 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18053 /^X\(\/\/\)[^/].*/{
18069 # Extract the definition of DEPDIR, am__include, and am__quote
18070 # from the Makefile without running 'make'.
18071 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18072 test -z "$DEPDIR" && continue
18073 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18074 test -z "$am__include" && continue
18075 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18076 # Find all dependency output files, they are included files with
18077 # $(DEPDIR) in their names. We invoke sed twice because it is the
18078 # simplest approach to changing $(DEPDIR) to its actual value in the
18080 for file in `sed -n "
18081 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18082 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18083 # Make sure the directory exists.
18084 test -f "$dirpart/$file" && continue
18085 fdir=`$as_dirname -- "$file" ||
18086 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18087 X"$file" : 'X\(//\)[^/]' \| \
18088 X"$file" : 'X\(//\)$' \| \
18089 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18090 $as_echo X"$file" |
18091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18095 /^X\(\/\/\)[^/].*/{
18108 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18109 # echo "creating $dirpart/$file"
18110 echo '# dummy' > "$dirpart/$file"
18117 # See if we are running on zsh, and set the options that allow our
18118 # commands through without removal of \ escapes.
18119 if test -n "${ZSH_VERSION+set}"; then
18120 setopt NO_GLOB_SUBST
18124 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18127 cat <<_LT_EOF >> "$cfgfile"
18129 # Generated automatically by $as_me ($PACKAGE) $VERSION
18130 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18132 # Provide generalized library-building support services.
18133 # Written by Gordon Matzigkeit, 1996
18135 # Copyright (C) 2014 Free Software Foundation, Inc.
18136 # This is free software; see the source for copying conditions. There is NO
18137 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18139 # GNU Libtool is free software; you can redistribute it and/or modify
18140 # it under the terms of the GNU General Public License as published by
18141 # the Free Software Foundation; either version 2 of of the License, or
18142 # (at your option) any later version.
18144 # As a special exception to the GNU General Public License, if you
18145 # distribute this file as part of a program or library that is built
18146 # using GNU Libtool, you may include this file under the same
18147 # distribution terms that you use for the rest of that program.
18149 # GNU Libtool is distributed in the hope that it will be useful, but
18150 # WITHOUT ANY WARRANTY; without even the implied warranty of
18151 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18152 # GNU General Public License for more details.
18154 # You should have received a copy of the GNU General Public License
18155 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18158 # The names of the tagged configurations supported by this script.
18161 # Configured defaults for sys_lib_dlsearch_path munging.
18162 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18164 # ### BEGIN LIBTOOL CONFIG
18166 # Which release of libtool.m4 was used?
18167 macro_version=$macro_version
18168 macro_revision=$macro_revision
18170 # Assembler program.
18173 # DLL creation program.
18174 DLLTOOL=$lt_DLLTOOL
18176 # Object dumper program.
18177 OBJDUMP=$lt_OBJDUMP
18179 # Whether or not to build static libraries.
18180 build_old_libs=$enable_static
18182 # Whether or not to build shared libraries.
18183 build_libtool_libs=$enable_shared
18185 # What type of objects to build.
18188 # Whether or not to optimize for fast installation.
18189 fast_install=$enable_fast_install
18191 # Shared archive member basename,for filename based shared library versioning on AIX.
18192 shared_archive_member_spec=$shared_archive_member_spec
18194 # Shell to use when invoking shell scripts.
18197 # An echo program that protects backslashes.
18200 # The PATH separator for the build system.
18201 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18204 host_alias=$host_alias
18208 # The build system.
18209 build_alias=$build_alias
18213 # A sed program that does not truncate output.
18216 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18217 Xsed="\$SED -e 1s/^X//"
18219 # A grep program that handles long lines.
18225 # A literal string matcher.
18228 # A BSD- or MS-compatible name lister.
18231 # Whether we need soft or hard links.
18234 # What is the maximum length of a command?
18235 max_cmd_len=$max_cmd_len
18237 # Object file suffix (normally "o").
18240 # Executable file suffix (normally "").
18243 # whether the shell understands "unset".
18246 # turn spaces into newlines.
18249 # turn newlines into spaces.
18252 # convert \$build file names to \$host format.
18253 to_host_file_cmd=$lt_cv_to_host_file_cmd
18255 # convert \$build files to toolchain format.
18256 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18258 # Method to check whether dependent libraries are shared objects.
18259 deplibs_check_method=$lt_deplibs_check_method
18261 # Command to use when deplibs_check_method = "file_magic".
18262 file_magic_cmd=$lt_file_magic_cmd
18264 # How to find potential files when deplibs_check_method = "file_magic".
18265 file_magic_glob=$lt_file_magic_glob
18267 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18268 want_nocaseglob=$lt_want_nocaseglob
18270 # Command to associate shared and link libraries.
18271 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18276 # Flags to create an archive.
18277 AR_FLAGS=$lt_AR_FLAGS
18279 # How to feed a file listing to the archiver.
18280 archiver_list_spec=$lt_archiver_list_spec
18282 # A symbol stripping program.
18285 # Commands used to install an old-style archive.
18287 old_postinstall_cmds=$lt_old_postinstall_cmds
18288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18290 # Whether to use a lock for old archive extraction.
18291 lock_old_archive_extraction=$lock_old_archive_extraction
18296 # LTCC compiler flags.
18297 LTCFLAGS=$lt_CFLAGS
18299 # Take the output of nm and produce a listing of raw symbols and C names.
18300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18302 # Transform the output of nm in a proper C declaration.
18303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18305 # Transform the output of nm into a list of symbols to manually relocate.
18306 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18308 # Transform the output of nm in a C name address pair.
18309 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18311 # Transform the output of nm in a C name address pair when lib prefix is needed.
18312 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18314 # The name lister interface.
18315 nm_interface=$lt_lt_cv_nm_interface
18317 # Specify filename containing input files for \$NM.
18318 nm_file_list_spec=$lt_nm_file_list_spec
18320 # The root where to search for dependent libraries,and where our libraries should be installed.
18321 lt_sysroot=$lt_sysroot
18323 # Command to truncate a binary pipe.
18324 lt_truncate_bin=$lt_lt_cv_truncate_bin
18326 # The name of the directory that contains temporary libtool files.
18329 # Used to examine libraries when file_magic_cmd begins with "file".
18330 MAGIC_CMD=$MAGIC_CMD
18332 # Must we lock files when doing compilation?
18333 need_locks=$lt_need_locks
18336 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18338 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18339 DSYMUTIL=$lt_DSYMUTIL
18341 # Tool to change global to local symbols on Mac OS X.
18344 # Tool to manipulate fat objects and archives on Mac OS X.
18347 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18350 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18351 OTOOL64=$lt_OTOOL64
18353 # Old archive suffix (normally "a").
18356 # Shared library suffix (normally ".so").
18357 shrext_cmds=$lt_shrext_cmds
18359 # The commands to extract the exported symbol list from a shared archive.
18360 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18362 # Variables whose values should be saved in libtool wrapper scripts and
18363 # restored at link time.
18364 variables_saved_for_relink=$lt_variables_saved_for_relink
18366 # Do we need the "lib" prefix for modules?
18367 need_lib_prefix=$need_lib_prefix
18369 # Do we need a version for libraries?
18370 need_version=$need_version
18372 # Library versioning type.
18373 version_type=$version_type
18375 # Shared library runtime path variable.
18376 runpath_var=$runpath_var
18378 # Shared library path variable.
18379 shlibpath_var=$shlibpath_var
18381 # Is shlibpath searched before the hard-coded library search path?
18382 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18384 # Format of library name prefix.
18385 libname_spec=$lt_libname_spec
18387 # List of archive names. First name is the real one, the rest are links.
18388 # The last name is the one that the linker finds with -lNAME
18389 library_names_spec=$lt_library_names_spec
18391 # The coded name of the library, if different from the real name.
18392 soname_spec=$lt_soname_spec
18394 # Permission mode override for installation of shared libraries.
18395 install_override_mode=$lt_install_override_mode
18397 # Command to use after installation of a shared archive.
18398 postinstall_cmds=$lt_postinstall_cmds
18400 # Command to use after uninstallation of a shared archive.
18401 postuninstall_cmds=$lt_postuninstall_cmds
18403 # Commands used to finish a libtool library installation in a directory.
18404 finish_cmds=$lt_finish_cmds
18406 # As "finish_cmds", except a single script fragment to be evaled but
18408 finish_eval=$lt_finish_eval
18410 # Whether we should hardcode library paths into libraries.
18411 hardcode_into_libs=$hardcode_into_libs
18413 # Compile-time system search path for libraries.
18414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18416 # Detected run-time system search path for libraries.
18417 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18419 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18420 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18422 # Whether dlopen is supported.
18423 dlopen_support=$enable_dlopen
18425 # Whether dlopen of programs is supported.
18426 dlopen_self=$enable_dlopen_self
18428 # Whether dlopen of statically linked programs is supported.
18429 dlopen_self_static=$enable_dlopen_self_static
18431 # Commands to strip libraries.
18432 old_striplib=$lt_old_striplib
18433 striplib=$lt_striplib
18436 # The linker used to build libraries.
18439 # How to create reloadable object files.
18440 reload_flag=$lt_reload_flag
18441 reload_cmds=$lt_reload_cmds
18443 # Commands used to build an old-style archive.
18444 old_archive_cmds=$lt_old_archive_cmds
18446 # A language specific compiler.
18449 # Is the compiler the GNU compiler?
18452 # Compiler flag to turn off builtin functions.
18453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18455 # Additional compiler flags for building library objects.
18456 pic_flag=$lt_lt_prog_compiler_pic
18458 # How to pass a linker flag through the compiler.
18459 wl=$lt_lt_prog_compiler_wl
18461 # Compiler flag to prevent dynamic linking.
18462 link_static_flag=$lt_lt_prog_compiler_static
18464 # Does compiler simultaneously support -c and -o options?
18465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18467 # Whether or not to add -lc for building shared libraries.
18468 build_libtool_need_lc=$archive_cmds_need_lc
18470 # Whether or not to disallow shared libs when runtime libs are static.
18471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18473 # Compiler flag to allow reflexive dlopens.
18474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18476 # Compiler flag to generate shared objects directly from archives.
18477 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18479 # Whether the compiler copes with passing no objects directly.
18480 compiler_needs_object=$lt_compiler_needs_object
18482 # Create an old-style archive from a shared archive.
18483 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18485 # Create a temporary old-style archive to link instead of a shared archive.
18486 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18488 # Commands used to build a shared archive.
18489 archive_cmds=$lt_archive_cmds
18490 archive_expsym_cmds=$lt_archive_expsym_cmds
18492 # Commands used to build a loadable module if different from building
18493 # a shared archive.
18494 module_cmds=$lt_module_cmds
18495 module_expsym_cmds=$lt_module_expsym_cmds
18497 # Whether we are building with GNU ld or not.
18498 with_gnu_ld=$lt_with_gnu_ld
18500 # Flag that allows shared libraries with undefined symbols to be built.
18501 allow_undefined_flag=$lt_allow_undefined_flag
18503 # Flag that enforces no undefined symbols.
18504 no_undefined_flag=$lt_no_undefined_flag
18506 # Flag to hardcode \$libdir into a binary during linking.
18507 # This must work even if \$libdir does not exist
18508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18510 # Whether we need a single "-rpath" flag with a separated argument.
18511 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18513 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18514 # DIR into the resulting binary.
18515 hardcode_direct=$hardcode_direct
18517 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18518 # DIR into the resulting binary and the resulting library dependency is
18519 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18520 # library is relocated.
18521 hardcode_direct_absolute=$hardcode_direct_absolute
18523 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18524 # into the resulting binary.
18525 hardcode_minus_L=$hardcode_minus_L
18527 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18528 # into the resulting binary.
18529 hardcode_shlibpath_var=$hardcode_shlibpath_var
18531 # Set to "yes" if building a shared library automatically hardcodes DIR
18532 # into the library and all subsequent libraries and executables linked
18534 hardcode_automatic=$hardcode_automatic
18536 # Set to yes if linker adds runtime paths of dependent libraries
18537 # to runtime path list.
18538 inherit_rpath=$inherit_rpath
18540 # Whether libtool must link a program against all its dependency libraries.
18541 link_all_deplibs=$link_all_deplibs
18543 # Set to "yes" if exported symbols are required.
18544 always_export_symbols=$always_export_symbols
18546 # The commands to list exported symbols.
18547 export_symbols_cmds=$lt_export_symbols_cmds
18549 # Symbols that should not be listed in the preloaded symbols.
18550 exclude_expsyms=$lt_exclude_expsyms
18552 # Symbols that must always be exported.
18553 include_expsyms=$lt_include_expsyms
18555 # Commands necessary for linking programs (against libraries) with templates.
18556 prelink_cmds=$lt_prelink_cmds
18558 # Commands necessary for finishing linking programs.
18559 postlink_cmds=$lt_postlink_cmds
18561 # Specify filename containing input files.
18562 file_list_spec=$lt_file_list_spec
18564 # How to hardcode a shared library path into an executable.
18565 hardcode_action=$hardcode_action
18567 # ### END LIBTOOL CONFIG
18571 cat <<'_LT_EOF' >> "$cfgfile"
18573 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18575 # func_munge_path_list VARIABLE PATH
18576 # -----------------------------------
18577 # VARIABLE is name of variable containing _space_ separated list of
18578 # directories to be munged by the contents of PATH, which is string
18581 # string "DIR[ DIR]" will be prepended to VARIABLE
18583 # string "DIR[ DIR]" will be appended to VARIABLE
18584 # "DIRP[:DIRP]::[DIRA:]DIRA"
18585 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18586 # "DIRA[ DIRA]" will be appended to VARIABLE
18588 # VARIABLE will be replaced by "DIR[ DIR]"
18589 func_munge_path_list ()
18595 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18598 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18601 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18602 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18605 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18611 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18612 func_cc_basename ()
18614 for cc_temp in $*""; do
18616 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18617 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18622 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18626 # ### END FUNCTIONS SHARED WITH CONFIGURE
18632 cat <<\_LT_EOF >> "$cfgfile"
18633 # AIX sometimes has problems with the GCC collect2 program. For some
18634 # reason, if we set the COLLECT_NAMES environment variable, the problems
18635 # vanish in a puff of smoke.
18636 if test set != "${COLLECT_NAMES+set}"; then
18638 export COLLECT_NAMES
18645 ltmain=$ac_aux_dir/ltmain.sh
18648 # We use sed instead of cat because bash on DJGPP gets confused if
18649 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18650 # text mode, it properly converts lines to CR/LF. This bash problem
18651 # is reportedly fixed, but why not run on old versions too?
18652 sed '$q' "$ltmain" >> "$cfgfile" \
18653 || (rm -f "$cfgfile"; exit 1)
18655 mv -f "$cfgfile" "$ofile" ||
18656 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18667 ac_clean_files=$ac_clean_files_save
18669 test $ac_write_fail = 0 ||
18670 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18673 # configure is writing to config.log, and then calls config.status.
18674 # config.status does its own redirection, appending to config.log.
18675 # Unfortunately, on DOS this fails, as config.log is still kept open
18676 # by configure, so config.status won't be able to write to it; its
18677 # output is simply discarded. So we exec the FD to /dev/null,
18678 # effectively closing config.log, so it can be properly (re)opened and
18679 # appended to by config.status. When coming back to configure, we
18680 # need to make the FD available again.
18681 if test "$no_create" != yes; then
18683 ac_config_status_args=
18684 test "$silent" = yes &&
18685 ac_config_status_args="$ac_config_status_args --quiet"
18687 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18689 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18690 # would make configure fail if this is the last instruction.
18691 $ac_cs_success || as_fn_exit 1
18693 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18695 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18702 Is release: $ax_is_release
18703 Using python interpreter: $PYTHON
18704 cairo support: $enable_cairo
18705 code coverage support: $enable_code_coverage
18710 Is release: $ax_is_release
18711 Using python interpreter: $PYTHON
18712 cairo support: $enable_cairo
18713 code coverage support: $enable_code_coverage