2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.9.91.
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.9.91'
595 PACKAGE_STRING='pygobject 3.9.91'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
597 PACKAGE_URL='https://live.gnome.org/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
640 GNOME_CODE_COVERAGE_RULES
641 CODE_COVERAGE_LDFLAGS
645 CODE_COVERAGE_ENABLED
646 CODE_COVERAGE_ENABLED_FALSE
647 CODE_COVERAGE_ENABLED_TRUE
649 INTROSPECTION_COMPILER
650 INTROSPECTION_SCANNER
669 GLIB_COMPILE_RESOURCES
753 INSTALL_STRIP_PROGRAM
772 PYGOBJECT_MICRO_VERSION
773 PYGOBJECT_MINOR_VERSION
774 PYGOBJECT_MAJOR_VERSION
803 program_transform_name
816 enable_option_checking
822 enable_dependency_tracking
831 enable_compile_warnings
835 ac_precious_vars='build_alias
860 # Initialize some variables set by options.
862 ac_init_version=false
863 ac_unrecognized_opts=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
874 program_transform_name=s,x,x,
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
977 eval enable_$ac_useropt=no ;;
979 -docdir | --docdir | --docdi | --doc | --do)
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=\$ac_optarg ;;
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=no ;;
1226 # Obsolete; use --with-x.
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1364 ac_srcdir_defaulted=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures pygobject 3.9.91 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/pygobject]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of pygobject 3.9.91:";;
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-static[=PKGS] build static libraries [default=no]
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --enable-dependency-tracking
1483 do not reject slow dependency extractors
1484 --disable-dependency-tracking
1485 speeds up one-time build
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --disable-thread Disable pygobject threading support
1488 --disable-glibtest do not try to compile and run a test GLIB program
1489 --enable-cairo Enable Cairo bindings using introspection
1491 --enable-compile-warnings=[no/minimum/yes/maximum/error]
1492 Turn on compiler warnings
1493 --enable-iso-c Try to warn if code is not ISO C
1494 --enable-code-coverage Whether to enable code coverage support
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1502 --with-sysroot=DIR Search for dependent libraries within DIR
1503 (or the compiler's sysroot if not specified).
1504 --with-python=PATH Path to Python interpreter; searches $PATH if only a
1505 program name is given; if not given, searches for a
1506 few standard names such as "python3" or "python2"
1507 --without-ffi Disable libffi support
1509 Some influential environment variables:
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 LIBS libraries to pass to the linker, e.g. -l<library>
1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516 you have headers in a nonstandard directory <include dir>
1518 PYTHON the Python interpreter
1519 PKG_CONFIG path to pkg-config utility
1521 directories to add to pkg-config's search path
1523 path overriding pkg-config's built-in search path
1524 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config
1525 FFI_LIBS linker flags for FFI, overriding pkg-config
1526 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1527 GIO_LIBS linker flags for GIO, overriding pkg-config
1528 GI_CFLAGS C compiler flags for GI, overriding pkg-config
1529 GI_LIBS linker flags for GI, overriding pkg-config
1531 C compiler flags for CAIRO, overriding pkg-config
1532 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1534 C compiler flags for PYCAIRO, overriding pkg-config
1536 linker flags for PYCAIRO, overriding pkg-config
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1541 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1542 pygobject home page: <https://live.gnome.org/PyGObject/>.
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1572 .) # We are building in place.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1605 pygobject configure 3.9.91
1606 generated by GNU Autoconf 2.69
1608 Copyright (C) 2012 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1655 } # ac_fn_c_try_compile
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest$ac_exeext
1664 if { { ac_try="$ac_link"
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 test -x conftest$ac_exeext
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1701 } # ac_fn_c_try_link
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1720 if ac_fn_c_try_compile "$LINENO"; then :
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 } # ac_fn_c_check_header_compile
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i && {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=$ac_status
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1836 # include <limits.h>
1838 # include <assert.h>
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1865 if ac_fn_c_try_link "$LINENO"; then :
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } # ac_fn_c_check_func
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1883 It was created by pygobject $as_me 3.9.91, which was
1884 generated by GNU Autoconf 2.69. Invocation command line was
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1944 ac_must_keep_next=false
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 -* ) ac_must_keep_next=true ;;
1976 as_fn_append ac_configure_args " '$ac_arg'"
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1994 $as_echo "## ---------------- ##
1995 ## Cache variables. ##
1996 ## ---------------- ##"
1998 # The following way of writing the cache mishandles newlines in values,
2000 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001 eval ac_val=\$$ac_var
2005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 _ | IFS | as_nl) ;; #(
2010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011 *) { eval $ac_var=; unset $ac_var;} ;;
2016 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017 *${as_nl}ac_space=\ *)
2019 "s/'\''/'\''\\\\'\'''\''/g;
2020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2030 $as_echo "## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##"
2034 for ac_var in $ac_subst_vars
2036 eval ac_val=\$$ac_var
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040 $as_echo "$ac_var='\''$ac_val'\''"
2044 if test -n "$ac_subst_files"; then
2045 $as_echo "## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##"
2049 for ac_var in $ac_subst_files
2051 eval ac_val=\$$ac_var
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 $as_echo "$ac_var='\''$ac_val'\''"
2060 if test -s confdefs.h; then
2061 $as_echo "## ----------- ##
2068 test "$ac_signal" != 0 &&
2069 $as_echo "$as_me: caught signal $ac_signal"
2070 $as_echo "$as_me: exit $exit_status"
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2084 $as_echo "/* confdefs.h */" > confdefs.h
2086 # Predefined preprocessor variables.
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_NAME "$PACKAGE_NAME"
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_STRING "$PACKAGE_STRING"
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_URL "$PACKAGE_URL"
2113 # Let the site file select an alternate cache file if it wants to.
2114 # Prefer an explicitly selected file to automatically selected ones.
2117 if test -n "$CONFIG_SITE"; then
2118 # We do not want a PATH search for config.site.
2119 case $CONFIG_SITE in #((
2120 -*) ac_site_file1=./$CONFIG_SITE;;
2121 */*) ac_site_file1=$CONFIG_SITE;;
2122 *) ac_site_file1=./$CONFIG_SITE;;
2124 elif test "x$prefix" != xNONE; then
2125 ac_site_file1=$prefix/share/config.site
2126 ac_site_file2=$prefix/etc/config.site
2128 ac_site_file1=$ac_default_prefix/share/config.site
2129 ac_site_file2=$ac_default_prefix/etc/config.site
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133 test "x$ac_site_file" = xNONE && continue
2134 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137 sed 's/^/| /' "$ac_site_file" >&5
2139 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 as_fn_error $? "failed to load site script $ac_site_file
2142 See \`config.log' for more details" "$LINENO" 5; }
2146 if test -r "$cache_file"; then
2147 # Some versions of bash will fail to source /dev/null (special files
2148 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2149 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154 *) . "./$cache_file";;
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2163 # Check that the precious variables saved in the cache have kept the same
2165 ac_cache_corrupted=false
2166 for ac_var in $ac_precious_vars; do
2167 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168 eval ac_new_set=\$ac_env_${ac_var}_set
2169 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170 eval ac_new_val=\$ac_env_${ac_var}_value
2171 case $ac_old_set,$ac_new_set in
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175 ac_cache_corrupted=: ;;
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179 ac_cache_corrupted=: ;;
2182 if test "x$ac_old_val" != "x$ac_new_val"; then
2183 # differences in whitespace do not lead to failure.
2184 ac_old_val_w=`echo x $ac_old_val`
2185 ac_new_val_w=`echo x $ac_new_val`
2186 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189 ac_cache_corrupted=:
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193 eval $ac_var=\$ac_old_val
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2196 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2201 # Pass precious variables to config.status.
2202 if test "$ac_new_set" = set; then
2204 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205 *) ac_arg=$ac_var=$ac_new_val ;;
2207 case " $ac_configure_args " in
2208 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2209 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2213 if $ac_cache_corrupted; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231 ACLOCAL_AMFLAGS="-I m4 -I ."
2237 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2239 PYGOBJECT_MAJOR_VERSION=3
2242 $as_echo "#define PYGOBJECT_MINOR_VERSION 9" >>confdefs.h
2244 PYGOBJECT_MINOR_VERSION=9
2247 $as_echo "#define PYGOBJECT_MICRO_VERSION 91" >>confdefs.h
2249 PYGOBJECT_MICRO_VERSION=91
2252 ac_config_headers="$ac_config_headers config.h"
2254 # Check whether --enable-silent-rules was given.
2255 if test "${enable_silent_rules+set}" = set; then :
2256 enableval=$enable_silent_rules;
2259 case $enable_silent_rules in # (((
2260 yes) AM_DEFAULT_VERBOSITY=0;;
2261 no) AM_DEFAULT_VERBOSITY=1;;
2262 *) AM_DEFAULT_VERBOSITY=0;;
2264 am_make=${MAKE-make}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2266 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2267 if ${am_cv_make_support_nested_variables+:} false; then :
2268 $as_echo_n "(cached) " >&6
2270 if $as_echo 'TRUE=$(BAR$(V))
2276 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2277 am_cv_make_support_nested_variables=yes
2279 am_cv_make_support_nested_variables=no
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2283 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2284 if test $am_cv_make_support_nested_variables = yes; then
2286 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2288 AM_V=$AM_DEFAULT_VERBOSITY
2289 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2293 am__api_version='1.13'
2296 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2297 if test -f "$ac_dir/install-sh"; then
2299 ac_install_sh="$ac_aux_dir/install-sh -c"
2301 elif test -f "$ac_dir/install.sh"; then
2303 ac_install_sh="$ac_aux_dir/install.sh -c"
2305 elif test -f "$ac_dir/shtool"; then
2307 ac_install_sh="$ac_aux_dir/shtool install -c"
2311 if test -z "$ac_aux_dir"; then
2312 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2315 # These three variables are undocumented and unsupported,
2316 # and are intended to be withdrawn in a future Autoconf release.
2317 # They can cause serious problems if a builder's source tree is in a directory
2318 # whose full name contains unusual characters.
2319 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2320 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2321 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2324 # Find a good install program. We prefer a C program (faster),
2325 # so one script is as good as another. But avoid the broken or
2326 # incompatible versions:
2327 # SysV /etc/install, /usr/sbin/install
2328 # SunOS /usr/etc/install
2329 # IRIX /sbin/install
2331 # AmigaOS /C/install, which installs bootblocks on floppy discs
2332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2335 # OS/2's system install, which has a completely different semantic
2336 # ./install, which can be erroneously created by make from ./install.sh.
2337 # Reject install programs that cannot install multiple files.
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2339 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2340 if test -z "$INSTALL"; then
2341 if ${ac_cv_path_install+:} false; then :
2342 $as_echo_n "(cached) " >&6
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 test -z "$as_dir" && as_dir=.
2349 # Account for people who put trailing slashes in PATH elements.
2350 case $as_dir/ in #((
2351 ./ | .// | /[cC]/* | \
2352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2353 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2356 # OSF1 and SCO ODT 3.0 have their own names for install.
2357 # Don't use installbsd from OSF since it installs stuff as root
2359 for ac_prog in ginstall scoinst install; do
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2362 if test $ac_prog = install &&
2363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364 # AIX install. It has an incompatible calling convention.
2366 elif test $ac_prog = install &&
2367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368 # program-specific install script used by HP pwplus--don't use.
2371 rm -rf conftest.one conftest.two conftest.dir
2372 echo one > conftest.one
2373 echo two > conftest.two
2375 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2376 test -s conftest.one && test -s conftest.two &&
2377 test -s conftest.dir/conftest.one &&
2378 test -s conftest.dir/conftest.two
2380 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2393 rm -rf conftest.one conftest.two conftest.dir
2396 if test "${ac_cv_path_install+set}" = set; then
2397 INSTALL=$ac_cv_path_install
2399 # As a last resort, use the slow shell script. Don't cache a
2400 # value for INSTALL within a source directory, because that will
2401 # break other packages using the cache if that directory is
2402 # removed, or if the value is a relative name.
2403 INSTALL=$ac_install_sh
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2407 $as_echo "$INSTALL" >&6; }
2409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2410 # It thinks the first close brace ends the variable substitution.
2411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2418 $as_echo_n "checking whether build environment is sane... " >&6; }
2419 # Reject unsafe characters in $srcdir or the absolute working directory
2420 # name. Accept space and tab only in the latter.
2424 *[\\\"\#\$\&\'\`$am_lf]*)
2425 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2428 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2429 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2432 # Do 'set' in a subshell so we don't clobber the current shell's
2433 # arguments. Must try -L first in case configure is actually a
2434 # symlink; some systems play weird games with the mod time of symlinks
2435 # (eg FreeBSD returns the mod time of the symlink's containing
2439 for am_try in 1 2; do
2440 echo "timestamp, slept: $am_has_slept" > conftest.file
2441 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2442 if test "$*" = "X"; then
2444 set X `ls -t "$srcdir/configure" conftest.file`
2446 if test "$*" != "X $srcdir/configure conftest.file" \
2447 && test "$*" != "X conftest.file $srcdir/configure"; then
2449 # If neither matched, then we have a broken ls. This can happen
2450 # if, for instance, CONFIG_SHELL is bash and it inherits a
2451 # broken ls alias from the environment. This has actually
2452 # happened. Such a system could not be considered "sane".
2453 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2454 alias in your environment" "$LINENO" 5
2456 if test "$2" = conftest.file || test $am_try -eq 2; then
2463 test "$2" = conftest.file
2469 as_fn_error $? "newly created file is older than distributed files!
2470 Check your system clock" "$LINENO" 5
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473 $as_echo "yes" >&6; }
2474 # If we didn't sleep, we still need to ensure time stamps of config.status and
2475 # generated files are strictly newer.
2477 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2484 test "$program_prefix" != NONE &&
2485 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2486 # Use a double $ so make ignores it.
2487 test "$program_suffix" != NONE &&
2488 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2489 # Double any \ or $.
2490 # By default was `s,x,x', remove it if useless.
2491 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2492 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2494 # expand $ac_aux_dir to an absolute path
2495 am_aux_dir=`cd $ac_aux_dir && pwd`
2497 if test x"${MISSING+set}" != xset; then
2500 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2502 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2505 # Use eval to expand $SHELL
2506 if eval "$MISSING --is-lightweight"; then
2507 am_missing_run="$MISSING "
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2511 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2514 if test x"${install_sh}" != xset; then
2517 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2519 install_sh="\${SHELL} $am_aux_dir/install-sh"
2523 # Installed binaries are usually stripped using 'strip' when the user
2524 # run "make install-strip". However 'strip' might not be the right
2525 # tool to use in cross-compilation environments, therefore Automake
2526 # will honor the 'STRIP' environment variable to overrule this program.
2527 if test "$cross_compiling" != no; then
2528 if test -n "$ac_tool_prefix"; then
2529 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}strip; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_STRIP+:} false; then :
2534 $as_echo_n "(cached) " >&6
2536 if test -n "$STRIP"; then
2537 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 STRIP=$ac_cv_prog_STRIP
2557 if test -n "$STRIP"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2559 $as_echo "$STRIP" >&6; }
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2567 if test -z "$ac_cv_prog_STRIP"; then
2569 # Extract the first word of "strip", so it can be a program name with args.
2570 set dummy strip; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2574 $as_echo_n "(cached) " >&6
2576 if test -n "$ac_ct_STRIP"; then
2577 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586 ac_cv_prog_ac_ct_STRIP="strip"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2597 if test -n "$ac_ct_STRIP"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2599 $as_echo "$ac_ct_STRIP" >&6; }
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2605 if test "x$ac_ct_STRIP" = x; then
2608 case $cross_compiling:$ac_tool_warned in
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612 ac_tool_warned=yes ;;
2617 STRIP="$ac_cv_prog_STRIP"
2621 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2624 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2625 if test -z "$MKDIR_P"; then
2626 if ${ac_cv_path_mkdir+:} false; then :
2627 $as_echo_n "(cached) " >&6
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2633 test -z "$as_dir" && as_dir=.
2634 for ac_prog in mkdir gmkdir; do
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2637 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2638 'mkdir (GNU coreutils) '* | \
2639 'mkdir (coreutils) '* | \
2640 'mkdir (fileutils) '4.1*)
2641 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2651 test -d ./--version && rmdir ./--version
2652 if test "${ac_cv_path_mkdir+set}" = set; then
2653 MKDIR_P="$ac_cv_path_mkdir -p"
2655 # As a last resort, use the slow shell script. Don't cache a
2656 # value for MKDIR_P within a source directory, because that will
2657 # break other packages using the cache if that directory is
2658 # removed, or if the value is a relative name.
2659 MKDIR_P="$ac_install_sh -d"
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2663 $as_echo "$MKDIR_P" >&6; }
2665 for ac_prog in gawk mawk nawk awk
2667 # Extract the first word of "$ac_prog", so it can be a program name with args.
2668 set dummy $ac_prog; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if ${ac_cv_prog_AWK+:} false; then :
2672 $as_echo_n "(cached) " >&6
2674 if test -n "$AWK"; then
2675 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 ac_cv_prog_AWK="$ac_prog"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 if test -n "$AWK"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2697 $as_echo "$AWK" >&6; }
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2704 test -n "$AWK" && break
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2710 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2711 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2712 $as_echo_n "(cached) " >&6
2714 cat >conftest.make <<\_ACEOF
2717 @echo '@@@%%%=$(MAKE)=@@@%%%'
2719 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2720 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2722 eval ac_cv_prog_make_${ac_make}_set=yes;;
2724 eval ac_cv_prog_make_${ac_make}_set=no;;
2728 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2730 $as_echo "yes" >&6; }
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 SET_MAKE="MAKE=${MAKE-make}"
2738 rm -rf .tst 2>/dev/null
2739 mkdir .tst 2>/dev/null
2740 if test -d .tst; then
2745 rmdir .tst 2>/dev/null
2747 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2748 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2749 # is not polluted with repeated "-I."
2750 am__isrc=' -I$(srcdir)'
2751 # test to see if srcdir already configured
2752 if test -f $srcdir/config.status; then
2753 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2757 # test whether we have cygpath
2758 if test -z "$CYGPATH_W"; then
2759 if (cygpath --version) >/dev/null 2>/dev/null; then
2760 CYGPATH_W='cygpath -w'
2767 # Define the identity of the package.
2772 cat >>confdefs.h <<_ACEOF
2773 #define PACKAGE "$PACKAGE"
2777 cat >>confdefs.h <<_ACEOF
2778 #define VERSION "$VERSION"
2781 # Some tools Automake needs.
2783 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2786 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2789 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2792 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2795 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2797 # For better backward compatibility. To be removed once Automake 1.9.x
2798 # dies out for good. For more background, see:
2799 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2800 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2801 mkdir_p='$(MKDIR_P)'
2803 # We need awk for the "check" target. The system "awk" is bad on
2805 # Always define AMTAR for backward compatibility. Yes, it's still used
2806 # in the wild :-( We should find a proper way to deprecate it ...
2810 # We'll loop over all known methods to create a tar archive until one works.
2811 _am_tools='gnutar pax cpio none'
2813 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2821 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2823 # Make sure we can run config.sub.
2824 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2825 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2828 $as_echo_n "checking build system type... " >&6; }
2829 if ${ac_cv_build+:} false; then :
2830 $as_echo_n "(cached) " >&6
2832 ac_build_alias=$build_alias
2833 test "x$ac_build_alias" = x &&
2834 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2835 test "x$ac_build_alias" = x &&
2836 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2837 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2838 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2842 $as_echo "$ac_cv_build" >&6; }
2843 case $ac_cv_build in
2845 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2848 ac_save_IFS=$IFS; IFS='-'
2854 # Remember, the first character of IFS is used to create $*,
2855 # except with old shells:
2858 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2862 $as_echo_n "checking host system type... " >&6; }
2863 if ${ac_cv_host+:} false; then :
2864 $as_echo_n "(cached) " >&6
2866 if test "x$host_alias" = x; then
2867 ac_cv_host=$ac_cv_build
2869 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2870 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2875 $as_echo "$ac_cv_host" >&6; }
2878 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2881 ac_save_IFS=$IFS; IFS='-'
2887 # Remember, the first character of IFS is used to create $*,
2888 # except with old shells:
2891 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
2895 $as_echo_n "checking for some Win32 platform... " >&6; }
2897 *-*-mingw*|*-*-cygwin*)
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
2905 $as_echo "$platform_win32" >&6; }
2906 if test "$platform_win32" = "yes"; then
2907 PLATFORM_WIN32_TRUE=
2908 PLATFORM_WIN32_FALSE='#'
2910 PLATFORM_WIN32_TRUE='#'
2911 PLATFORM_WIN32_FALSE=
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
2916 $as_echo_n "checking for native Win32... " >&6; }
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
2926 $as_echo "$os_win32" >&6; }
2927 if test "$os_win32" = "yes"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2940 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2945 macro_version='2.4.2'
2946 macro_revision='1.3337'
2960 ltmain="$ac_aux_dir/ltmain.sh"
2962 # Backslashify metacharacters that are still active within
2963 # double-quoted strings.
2964 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2966 # Same as above, but do not quote variable references.
2967 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2969 # Sed substitution to delay expansion of an escaped shell variable in a
2970 # double_quote_subst'ed string.
2971 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2973 # Sed substitution to delay expansion of an escaped single quote.
2974 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2976 # Sed substitution to avoid accidental globbing in evaled expressions
2977 no_glob_subst='s/\*/\\\*/g'
2979 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2980 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2981 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2984 $as_echo_n "checking how to print strings... " >&6; }
2985 # Test print first, because it will be a builtin if present.
2986 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2987 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2989 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2992 # Use this function as a fallback that always works.
2993 func_fallback_echo ()
2995 eval 'cat <<_LTECHO_EOF
2999 ECHO='func_fallback_echo'
3002 # func_echo_all arg...
3003 # Invoke $ECHO with all args, space-separated.
3010 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3011 $as_echo "printf" >&6; } ;;
3012 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3013 $as_echo "print -r" >&6; } ;;
3014 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3015 $as_echo "cat" >&6; } ;;
3031 DEPDIR="${am__leading_dot}deps"
3033 ac_config_commands="$ac_config_commands depfiles"
3036 am_make=${MAKE-make}
3037 cat > confinc << 'END'
3039 @echo this is the am__doit target
3042 # If we don't find an include directive, just comment out the code.
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3044 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3048 # First try GNU make style include.
3049 echo "include confinc" > confmf
3050 # Ignore all kinds of additional output from 'make'.
3051 case `$am_make -s -f confmf 2> /dev/null` in #(
3052 *the\ am__doit\ target*)
3058 # Now try BSD make style include.
3059 if test "$am__include" = "#"; then
3060 echo '.include "confinc"' > confmf
3061 case `$am_make -s -f confmf 2> /dev/null` in #(
3062 *the\ am__doit\ target*)
3063 am__include=.include
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3072 $as_echo "$_am_result" >&6; }
3073 rm -f confinc confmf
3075 # Check whether --enable-dependency-tracking was given.
3076 if test "${enable_dependency_tracking+set}" = set; then :
3077 enableval=$enable_dependency_tracking;
3080 if test "x$enable_dependency_tracking" != xno; then
3081 am_depcomp="$ac_aux_dir/depcomp"
3085 if test "x$enable_dependency_tracking" != xno; then
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099 if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_CC+:} false; then :
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 if test -n "$CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130 $as_echo "$CC" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3138 if test -z "$ac_cv_prog_CC"; then
3140 # Extract the first word of "gcc", so it can be a program name with args.
3141 set dummy gcc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3145 $as_echo_n "(cached) " >&6
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_prog_ac_ct_CC="gcc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3170 $as_echo "$ac_ct_CC" >&6; }
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3176 if test "x$ac_ct_CC" = x; then
3179 case $cross_compiling:$ac_tool_warned in
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183 ac_tool_warned=yes ;;
3191 if test -z "$CC"; then
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}cc; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_CC+:} false; then :
3198 $as_echo_n "(cached) " >&6
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210 ac_cv_prog_CC="${ac_tool_prefix}cc"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3232 if test -z "$CC"; then
3233 # Extract the first word of "cc", so it can be a program name with args.
3234 set dummy cc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238 $as_echo_n "(cached) " >&6
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3252 ac_prog_rejected=yes
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 if test $ac_prog_rejected = yes; then
3264 # We found a bogon in the path, so make sure we never use it.
3265 set dummy $ac_cv_prog_CC
3267 if test $# != 0; then
3268 # We chose a different compiler from the bogus one.
3269 # However, it has the same basename, so the bogon will be chosen
3270 # first if we set CC to just the basename; use the full file name.
3272 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3278 if test -n "$CC"; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3280 $as_echo "$CC" >&6; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3288 if test -z "$CC"; then
3289 if test -n "$ac_tool_prefix"; then
3290 for ac_prog in cl.exe
3292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_CC+:} false; then :
3297 $as_echo_n "(cached) " >&6
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 if test -n "$CC"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3329 test -n "$CC" && break
3332 if test -z "$CC"; then
3334 for ac_prog in cl.exe
3336 # Extract the first word of "$ac_prog", so it can be a program name with args.
3337 set dummy $ac_prog; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3341 $as_echo_n "(cached) " >&6
3343 if test -n "$ac_ct_CC"; then
3344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_ac_ct_CC="$ac_prog"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3364 if test -n "$ac_ct_CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3366 $as_echo "$ac_ct_CC" >&6; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3373 test -n "$ac_ct_CC" && break
3376 if test "x$ac_ct_CC" = x; then
3379 case $cross_compiling:$ac_tool_warned in
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3383 ac_tool_warned=yes ;;
3392 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error $? "no acceptable C compiler found in \$PATH
3395 See \`config.log' for more details" "$LINENO" 5; }
3397 # Provide some information about the compiler.
3398 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3401 for ac_option in --version -v -V -qversion; do
3402 { { ac_try="$ac_compiler $ac_option >&5"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3411 if test -s conftest.err; then
3413 ... rest of stderr output deleted ...
3414 10q' conftest.err >conftest.er1
3415 cat conftest.er1 >&5
3417 rm -f conftest.er1 conftest.err
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3433 ac_clean_files_save=$ac_clean_files
3434 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3435 # Try to create an executable without -o first, disregard a.out.
3436 # It will help us diagnose broken compilers, and finding out an intuition
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3439 $as_echo_n "checking whether the C compiler works... " >&6; }
3440 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3442 # The possible output files:
3443 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3446 for ac_file in $ac_files
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3455 if { { ac_try="$ac_link_default"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_link_default") 2>&5
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; then :
3466 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3467 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3468 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3469 # so that the user can short-circuit this test for compilers unknown to
3471 for ac_file in $ac_files ''
3473 test -f "$ac_file" || continue
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3478 # We found the default executable, but exeext='' is most
3482 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3484 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486 # We set ac_cv_exeext here because the later test for it is not
3487 # safe: cross compilers may not add the suffix if given an `-o'
3488 # argument, so we may need to know it at that point already.
3489 # Even if this section looks crufty: it has the advantage of
3496 test "$ac_cv_exeext" = no && ac_cv_exeext=
3501 if test -z "$ac_file"; then :
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 $as_echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 as_fn_error 77 "C compiler cannot create executables
3510 See \`config.log' for more details" "$LINENO" 5; }
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3513 $as_echo "yes" >&6; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3516 $as_echo_n "checking for C compiler default output file name... " >&6; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3518 $as_echo "$ac_file" >&6; }
3519 ac_exeext=$ac_cv_exeext
3521 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3522 ac_clean_files=$ac_clean_files_save
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3524 $as_echo_n "checking for suffix of executables... " >&6; }
3525 if { { ac_try="$ac_link"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_link") 2>&5
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; then :
3536 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3537 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3538 # work properly (i.e., refer to `conftest.exe'), while it won't with
3540 for ac_file in conftest.exe conftest conftest.*; do
3541 test -f "$ac_file" || continue
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3544 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3553 See \`config.log' for more details" "$LINENO" 5; }
3555 rm -f conftest conftest$ac_cv_exeext
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3557 $as_echo "$ac_cv_exeext" >&6; }
3559 rm -f conftest.$ac_ext
3560 EXEEXT=$ac_cv_exeext
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3568 FILE *f = fopen ("conftest.out", "w");
3569 return ferror (f) || fclose (f) != 0;
3575 ac_clean_files="$ac_clean_files conftest.out"
3576 # Check that the compiler produces executables we can run. If not, either
3577 # the compiler is broken, or we cross compile.
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3579 $as_echo_n "checking whether we are cross compiling... " >&6; }
3580 if test "$cross_compiling" != yes; then
3581 { { ac_try="$ac_link"
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link") 2>&5
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }
3592 if { ac_try='./conftest$ac_cv_exeext'
3593 { { case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_try") 2>&5
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; }; then
3605 if test "$cross_compiling" = maybe; then
3608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error $? "cannot run C compiled programs.
3611 If you meant to cross compile, use \`--host'.
3612 See \`config.log' for more details" "$LINENO" 5; }
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3617 $as_echo "$cross_compiling" >&6; }
3619 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3620 ac_clean_files=$ac_clean_files_save
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3622 $as_echo_n "checking for suffix of object files... " >&6; }
3623 if ${ac_cv_objext+:} false; then :
3624 $as_echo_n "(cached) " >&6
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3637 rm -f conftest.o conftest.obj
3638 if { { ac_try="$ac_compile"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645 (eval "$ac_compile") 2>&5
3647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648 test $ac_status = 0; }; then :
3649 for ac_file in conftest.o conftest.obj conftest.*; do
3650 test -f "$ac_file" || continue;
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3653 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error $? "cannot compute suffix of object files: cannot compile
3664 See \`config.log' for more details" "$LINENO" 5; }
3666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3669 $as_echo "$ac_cv_objext" >&6; }
3670 OBJEXT=$ac_cv_objext
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3673 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3674 if ${ac_cv_c_compiler_gnu+:} false; then :
3675 $as_echo_n "(cached) " >&6
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3691 if ac_fn_c_try_compile "$LINENO"; then :
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3701 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3702 if test $ac_compiler_gnu = yes; then
3707 ac_test_CFLAGS=${CFLAGS+set}
3708 ac_save_CFLAGS=$CFLAGS
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3710 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3711 if ${ac_cv_prog_cc_g+:} false; then :
3712 $as_echo_n "(cached) " >&6
3714 ac_save_c_werror_flag=$ac_c_werror_flag
3715 ac_c_werror_flag=yes
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3729 if ac_fn_c_try_compile "$LINENO"; then :
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3744 if ac_fn_c_try_compile "$LINENO"; then :
3747 ac_c_werror_flag=$ac_save_c_werror_flag
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3760 if ac_fn_c_try_compile "$LINENO"; then :
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 ac_c_werror_flag=$ac_save_c_werror_flag
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3771 $as_echo "$ac_cv_prog_cc_g" >&6; }
3772 if test "$ac_test_CFLAGS" = set; then
3773 CFLAGS=$ac_save_CFLAGS
3774 elif test $ac_cv_prog_cc_g = yes; then
3775 if test "$GCC" = yes; then
3781 if test "$GCC" = yes; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3788 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3789 if ${ac_cv_prog_cc_c89+:} false; then :
3790 $as_echo_n "(cached) " >&6
3792 ac_cv_prog_cc_c89=no
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3800 struct buf { int x; };
3801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3802 static char *e (p, i)
3808 static char *f (char * (*g) (char **, int), char **p, ...)
3813 s = g (p, va_arg (v,int));
3818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3819 function prototypes and stuff, but not '\xHH' hex character constants.
3820 These don't provoke an error unfortunately, instead are silently treated
3821 as 'x'. The following induces an error, until -std is added to get
3822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3823 array size at least. It's necessary to write '\x00'==0 to get something
3824 that's true only with -std. */
3825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3828 inside strings and character constants. */
3830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3832 int test (int i, double x);
3833 struct s1 {int (*f) (int a);};
3834 struct s2 {int (*f) (double a);};
3835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3841 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3849 CC="$ac_save_CC $ac_arg"
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851 ac_cv_prog_cc_c89=$ac_arg
3853 rm -f core conftest.err conftest.$ac_objext
3854 test "x$ac_cv_prog_cc_c89" != "xno" && break
3856 rm -f conftest.$ac_ext
3861 case "x$ac_cv_prog_cc_c89" in
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3864 $as_echo "none needed" >&6; } ;;
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3867 $as_echo "unsupported" >&6; } ;;
3869 CC="$CC $ac_cv_prog_cc_c89"
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3873 if test "x$ac_cv_prog_cc_c89" != xno; then :
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883 depcc="$CC" am_compiler_list=
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3886 $as_echo_n "checking dependency style of $depcc... " >&6; }
3887 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3891 # We make a subdir and do the tests there. Otherwise we can end up
3892 # making bogus files that we don't know about and never remove. For
3893 # instance it was reported that on HP-UX the gcc test will end up
3894 # making a dummy file named 'D' -- because '-MD' means "put the output
3898 # Copy depcomp to subdir because otherwise we won't find it if we're
3899 # using a relative directory.
3900 cp "$am_depcomp" conftest.dir
3902 # We will build objects and dependencies in a subdirectory because
3903 # it helps to detect inapplicable dependency modes. For instance
3904 # both Tru64's cc and ICC support -MD to output dependencies as a
3905 # side effect of compilation, but ICC will put the dependencies in
3906 # the current directory while Tru64 will put them in the object
3910 am_cv_CC_dependencies_compiler_type=none
3911 if test "$am_compiler_list" = ""; then
3912 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3915 case " $depcc " in #(
3916 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3919 for depmode in $am_compiler_list; do
3920 # Setup a source with many dependencies, because some compilers
3921 # like to wrap large dependency lists on column 80 (with \), and
3922 # we should not choose a depcomp mode which is confused by this.
3924 # We need to recreate these files for each test, as the compiler may
3925 # overwrite some of them when testing with obscure command lines.
3926 # This happens at least with the AIX C compiler.
3928 for i in 1 2 3 4 5 6; do
3929 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3930 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3931 # Solaris 10 /bin/sh.
3932 echo '/* dummy */' > sub/conftst$i.h
3934 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3936 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3937 # mode. It turns out that the SunPro C++ compiler does not properly
3938 # handle '-M -o', and we need to detect this. Also, some Intel
3939 # versions had trouble with output in subdirs.
3940 am__obj=sub/conftest.${OBJEXT-o}
3941 am__minus_obj="-o $am__obj"
3944 # This depmode causes a compiler race in universal mode.
3945 test "$am__universal" = false || continue
3948 # After this tag, mechanisms are not by side-effect, so they'll
3949 # only be used when explicitly requested.
3950 if test "x$enable_dependency_tracking" = xyes; then
3956 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3957 # This compiler won't grok '-c -o', but also, the minuso test has
3958 # not run yet. These depmodes are late enough in the game, and
3959 # so weak that their functioning should not be impacted.
3960 am__obj=conftest.${OBJEXT-o}
3965 if depmode=$depmode \
3966 source=sub/conftest.c object=$am__obj \
3967 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3968 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3969 >/dev/null 2>conftest.err &&
3970 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3971 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3972 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3973 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3974 # icc doesn't choke on unknown options, it will just issue warnings
3975 # or remarks (even with -Werror). So we grep stderr for any message
3976 # that says an option was ignored or not supported.
3977 # When given -MP, icc 7.0 and 7.1 complain thusly:
3978 # icc: Command line warning: ignoring option '-M'; no argument required
3979 # The diagnosis changed in icc 8.0:
3980 # icc: Command line remark: option '-MP' not supported
3981 if (grep 'ignoring option' conftest.err ||
3982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3983 am_cv_CC_dependencies_compiler_type=$depmode
3992 am_cv_CC_dependencies_compiler_type=none
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3997 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3998 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4001 test "x$enable_dependency_tracking" != xno \
4002 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4004 am__fastdepCC_FALSE='#'
4006 am__fastdepCC_TRUE='#'
4007 am__fastdepCC_FALSE=
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4012 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4013 if ${ac_cv_path_SED+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4017 for ac_i in 1 2 3 4 5 6 7; do
4018 ac_script="$ac_script$as_nl$ac_script"
4020 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4021 { ac_script=; unset ac_script;}
4022 if test -z "$SED"; then
4023 ac_path_SED_found=false
4024 # Loop through the user's path and test for each of PROGNAME-LIST
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir=.
4030 for ac_prog in sed gsed; do
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4033 as_fn_executable_p "$ac_path_SED" || continue
4034 # Check for GNU ac_path_SED and select it if it is found.
4035 # Check for GNU $ac_path_SED
4036 case `"$ac_path_SED" --version 2>&1` in
4038 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4041 $as_echo_n 0123456789 >"conftest.in"
4044 cat "conftest.in" "conftest.in" >"conftest.tmp"
4045 mv "conftest.tmp" "conftest.in"
4046 cp "conftest.in" "conftest.nl"
4047 $as_echo '' >> "conftest.nl"
4048 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050 as_fn_arith $ac_count + 1 && ac_count=$as_val
4051 if test $ac_count -gt ${ac_path_SED_max-0}; then
4052 # Best one so far, save it but keep looking for a better one
4053 ac_cv_path_SED="$ac_path_SED"
4054 ac_path_SED_max=$ac_count
4056 # 10*(2^10) chars as input seems more than enough
4057 test $ac_count -gt 10 && break
4059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062 $ac_path_SED_found && break 3
4067 if test -z "$ac_cv_path_SED"; then
4068 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4076 $as_echo "$ac_cv_path_SED" >&6; }
4077 SED="$ac_cv_path_SED"
4080 test -z "$SED" && SED=sed
4081 Xsed="$SED -e 1s/^X//"
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4094 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4095 if ${ac_cv_path_GREP+:} false; then :
4096 $as_echo_n "(cached) " >&6
4098 if test -z "$GREP"; then
4099 ac_path_GREP_found=false
4100 # Loop through the user's path and test for each of PROGNAME-LIST
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4105 test -z "$as_dir" && as_dir=.
4106 for ac_prog in grep ggrep; do
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4109 as_fn_executable_p "$ac_path_GREP" || continue
4110 # Check for GNU ac_path_GREP and select it if it is found.
4111 # Check for GNU $ac_path_GREP
4112 case `"$ac_path_GREP" --version 2>&1` in
4114 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4117 $as_echo_n 0123456789 >"conftest.in"
4120 cat "conftest.in" "conftest.in" >"conftest.tmp"
4121 mv "conftest.tmp" "conftest.in"
4122 cp "conftest.in" "conftest.nl"
4123 $as_echo 'GREP' >> "conftest.nl"
4124 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126 as_fn_arith $ac_count + 1 && ac_count=$as_val
4127 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4128 # Best one so far, save it but keep looking for a better one
4129 ac_cv_path_GREP="$ac_path_GREP"
4130 ac_path_GREP_max=$ac_count
4132 # 10*(2^10) chars as input seems more than enough
4133 test $ac_count -gt 10 && break
4135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 $ac_path_GREP_found && break 3
4143 if test -z "$ac_cv_path_GREP"; then
4144 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4147 ac_cv_path_GREP=$GREP
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4152 $as_echo "$ac_cv_path_GREP" >&6; }
4153 GREP="$ac_cv_path_GREP"
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4157 $as_echo_n "checking for egrep... " >&6; }
4158 if ${ac_cv_path_EGREP+:} false; then :
4159 $as_echo_n "(cached) " >&6
4161 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4162 then ac_cv_path_EGREP="$GREP -E"
4164 if test -z "$EGREP"; then
4165 ac_path_EGREP_found=false
4166 # Loop through the user's path and test for each of PROGNAME-LIST
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4171 test -z "$as_dir" && as_dir=.
4172 for ac_prog in egrep; do
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4175 as_fn_executable_p "$ac_path_EGREP" || continue
4176 # Check for GNU ac_path_EGREP and select it if it is found.
4177 # Check for GNU $ac_path_EGREP
4178 case `"$ac_path_EGREP" --version 2>&1` in
4180 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4183 $as_echo_n 0123456789 >"conftest.in"
4186 cat "conftest.in" "conftest.in" >"conftest.tmp"
4187 mv "conftest.tmp" "conftest.in"
4188 cp "conftest.in" "conftest.nl"
4189 $as_echo 'EGREP' >> "conftest.nl"
4190 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4192 as_fn_arith $ac_count + 1 && ac_count=$as_val
4193 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4194 # Best one so far, save it but keep looking for a better one
4195 ac_cv_path_EGREP="$ac_path_EGREP"
4196 ac_path_EGREP_max=$ac_count
4198 # 10*(2^10) chars as input seems more than enough
4199 test $ac_count -gt 10 && break
4201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4204 $ac_path_EGREP_found && break 3
4209 if test -z "$ac_cv_path_EGREP"; then
4210 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4213 ac_cv_path_EGREP=$EGREP
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4219 $as_echo "$ac_cv_path_EGREP" >&6; }
4220 EGREP="$ac_cv_path_EGREP"
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4224 $as_echo_n "checking for fgrep... " >&6; }
4225 if ${ac_cv_path_FGREP+:} false; then :
4226 $as_echo_n "(cached) " >&6
4228 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4229 then ac_cv_path_FGREP="$GREP -F"
4231 if test -z "$FGREP"; then
4232 ac_path_FGREP_found=false
4233 # Loop through the user's path and test for each of PROGNAME-LIST
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4238 test -z "$as_dir" && as_dir=.
4239 for ac_prog in fgrep; do
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4242 as_fn_executable_p "$ac_path_FGREP" || continue
4243 # Check for GNU ac_path_FGREP and select it if it is found.
4244 # Check for GNU $ac_path_FGREP
4245 case `"$ac_path_FGREP" --version 2>&1` in
4247 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4250 $as_echo_n 0123456789 >"conftest.in"
4253 cat "conftest.in" "conftest.in" >"conftest.tmp"
4254 mv "conftest.tmp" "conftest.in"
4255 cp "conftest.in" "conftest.nl"
4256 $as_echo 'FGREP' >> "conftest.nl"
4257 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4259 as_fn_arith $ac_count + 1 && ac_count=$as_val
4260 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4261 # Best one so far, save it but keep looking for a better one
4262 ac_cv_path_FGREP="$ac_path_FGREP"
4263 ac_path_FGREP_max=$ac_count
4265 # 10*(2^10) chars as input seems more than enough
4266 test $ac_count -gt 10 && break
4268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4271 $ac_path_FGREP_found && break 3
4276 if test -z "$ac_cv_path_FGREP"; then
4277 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4280 ac_cv_path_FGREP=$FGREP
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4286 $as_echo "$ac_cv_path_FGREP" >&6; }
4287 FGREP="$ac_cv_path_FGREP"
4290 test -z "$GREP" && GREP=grep
4310 # Check whether --with-gnu-ld was given.
4311 if test "${with_gnu_ld+set}" = set; then :
4312 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4318 if test "$GCC" = yes; then
4319 # Check if gcc -print-prog-name=ld gives a path.
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4321 $as_echo_n "checking for ld used by $CC... " >&6; }
4324 # gcc leaves a trailing carriage return which upsets mingw
4325 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4327 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4330 # Accept absolute paths.
4332 re_direlt='/[^/][^/]*/\.\./'
4333 # Canonicalize the pathname of ld
4334 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4335 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4336 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4338 test -z "$LD" && LD="$ac_prog"
4341 # If it fails, then pretend we aren't using GCC.
4345 # If it is relative, then search for the first ld in PATH.
4349 elif test "$with_gnu_ld" = yes; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4351 $as_echo_n "checking for GNU ld... " >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4354 $as_echo_n "checking for non-GNU ld... " >&6; }
4356 if ${lt_cv_path_LD+:} false; then :
4357 $as_echo_n "(cached) " >&6
4359 if test -z "$LD"; then
4360 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4361 for ac_dir in $PATH; do
4363 test -z "$ac_dir" && ac_dir=.
4364 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4365 lt_cv_path_LD="$ac_dir/$ac_prog"
4366 # Check to see if the program is GNU ld. I'd rather use --version,
4367 # but apparently some variants of GNU ld only accept -v.
4368 # Break only if it was the GNU/non-GNU ld that we prefer.
4369 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4370 *GNU* | *'with BFD'*)
4371 test "$with_gnu_ld" != no && break
4374 test "$with_gnu_ld" != yes && break
4381 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4386 if test -n "$LD"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4388 $as_echo "$LD" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4393 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4395 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4396 if ${lt_cv_prog_gnu_ld+:} false; then :
4397 $as_echo_n "(cached) " >&6
4399 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4400 case `$LD -v 2>&1 </dev/null` in
4401 *GNU* | *'with BFD'*)
4402 lt_cv_prog_gnu_ld=yes
4405 lt_cv_prog_gnu_ld=no
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4410 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4411 with_gnu_ld=$lt_cv_prog_gnu_ld
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4422 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4423 if ${lt_cv_path_NM+:} false; then :
4424 $as_echo_n "(cached) " >&6
4426 if test -n "$NM"; then
4427 # Let the user override the test.
4430 lt_nm_to_check="${ac_tool_prefix}nm"
4431 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4432 lt_nm_to_check="$lt_nm_to_check nm"
4434 for lt_tmp_nm in $lt_nm_to_check; do
4435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4436 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4438 test -z "$ac_dir" && ac_dir=.
4439 tmp_nm="$ac_dir/$lt_tmp_nm"
4440 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4441 # Check to see if the nm accepts a BSD-compat flag.
4442 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4443 # nm: unknown option "B" ignored
4444 # Tru64's nm complains that /dev/null is an invalid object file
4445 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4446 */dev/null* | *'Invalid file or object type'*)
4447 lt_cv_path_NM="$tmp_nm -B"
4451 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4453 lt_cv_path_NM="$tmp_nm -p"
4457 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4458 continue # so that we can try to find one that supports BSD flags
4467 : ${lt_cv_path_NM=no}
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4471 $as_echo "$lt_cv_path_NM" >&6; }
4472 if test "$lt_cv_path_NM" != "no"; then
4475 # Didn't find any BSD compatible name lister, look for dumpbin.
4476 if test -n "$DUMPBIN"; then :
4477 # Let the user override the test.
4479 if test -n "$ac_tool_prefix"; then
4480 for ac_prog in dumpbin "link -dump"
4482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if ${ac_cv_prog_DUMPBIN+:} false; then :
4487 $as_echo_n "(cached) " >&6
4489 if test -n "$DUMPBIN"; then
4490 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 DUMPBIN=$ac_cv_prog_DUMPBIN
4510 if test -n "$DUMPBIN"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4512 $as_echo "$DUMPBIN" >&6; }
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4519 test -n "$DUMPBIN" && break
4522 if test -z "$DUMPBIN"; then
4523 ac_ct_DUMPBIN=$DUMPBIN
4524 for ac_prog in dumpbin "link -dump"
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4531 $as_echo_n "(cached) " >&6
4533 if test -n "$ac_ct_DUMPBIN"; then
4534 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4554 if test -n "$ac_ct_DUMPBIN"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4556 $as_echo "$ac_ct_DUMPBIN" >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 test -n "$ac_ct_DUMPBIN" && break
4566 if test "x$ac_ct_DUMPBIN" = x; then
4569 case $cross_compiling:$ac_tool_warned in
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4573 ac_tool_warned=yes ;;
4575 DUMPBIN=$ac_ct_DUMPBIN
4579 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4581 DUMPBIN="$DUMPBIN -symbols"
4589 if test "$DUMPBIN" != ":"; then
4593 test -z "$NM" && NM=nm
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4601 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4602 if ${lt_cv_nm_interface+:} false; then :
4603 $as_echo_n "(cached) " >&6
4605 lt_cv_nm_interface="BSD nm"
4606 echo "int some_variable = 0;" > conftest.$ac_ext
4607 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4608 (eval "$ac_compile" 2>conftest.err)
4609 cat conftest.err >&5
4610 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4611 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4612 cat conftest.err >&5
4613 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4614 cat conftest.out >&5
4615 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4616 lt_cv_nm_interface="MS dumpbin"
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4621 $as_echo "$lt_cv_nm_interface" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4624 $as_echo_n "checking whether ln -s works... " >&6; }
4626 if test "$LN_S" = "ln -s"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4628 $as_echo "yes" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4631 $as_echo "no, using $LN_S" >&6; }
4634 # find the maximum length of command line arguments
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4636 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4637 if ${lt_cv_sys_max_cmd_len+:} false; then :
4638 $as_echo_n "(cached) " >&6
4645 # On DJGPP, this test can blow up pretty badly due to problems in libc
4646 # (any single argument exceeding 2000 bytes causes a buffer overrun
4647 # during glob expansion). Even if it were fixed, the result of this
4648 # check would be larger than it should be.
4649 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4653 # Under GNU Hurd, this test is not required because there is
4654 # no limit to the length of command line arguments.
4655 # Libtool will interpret -1 as no limit whatsoever
4656 lt_cv_sys_max_cmd_len=-1;
4659 cygwin* | mingw* | cegcc*)
4660 # On Win9x/ME, this test blows up -- it succeeds, but takes
4661 # about 5 minutes as the teststring grows exponentially.
4662 # Worse, since 9x/ME are not pre-emptively multitasking,
4663 # you end up with a "frozen" computer, even though with patience
4664 # the test eventually succeeds (with a max line length of 256k).
4665 # Instead, let's just punt: use the minimum linelength reported by
4666 # all of the supported platforms: 8192 (on NT/2K/XP).
4667 lt_cv_sys_max_cmd_len=8192;
4671 # On MiNT this can take a long time and run out of memory.
4672 lt_cv_sys_max_cmd_len=8192;
4676 # On AmigaOS with pdksh, this test takes hours, literally.
4677 # So we just punt and use a minimum line length of 8192.
4678 lt_cv_sys_max_cmd_len=8192;
4681 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4682 # This has been around since 386BSD, at least. Likely further.
4683 if test -x /sbin/sysctl; then
4684 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4685 elif test -x /usr/sbin/sysctl; then
4686 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4688 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4690 # And add a safety zone
4691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4692 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4696 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4697 lt_cv_sys_max_cmd_len=196608
4701 # The test takes a long time on OS/2.
4702 lt_cv_sys_max_cmd_len=8192
4706 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4707 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4708 # nice to cause kernel panics so lets avoid the loop below.
4709 # First set a reasonable default.
4710 lt_cv_sys_max_cmd_len=16384
4712 if test -x /sbin/sysconfig; then
4713 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4714 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4719 lt_cv_sys_max_cmd_len=102400
4721 sysv5* | sco5v6* | sysv4.2uw2*)
4722 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4723 if test -n "$kargmax"; then
4724 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4726 lt_cv_sys_max_cmd_len=32768
4730 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4731 if test -n "$lt_cv_sys_max_cmd_len" && \
4732 test undefined != "$lt_cv_sys_max_cmd_len"; then
4733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4736 # Make teststring a little bigger before we do anything with it.
4737 # a 1K string should be a reasonable start.
4738 for i in 1 2 3 4 5 6 7 8 ; do
4739 teststring=$teststring$teststring
4741 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4742 # If test is not a shell built-in, we'll probably end up computing a
4743 # maximum length that is only half of the actual maximum length, but
4745 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4746 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4747 test $i != 17 # 1/2 MB should be enough
4750 teststring=$teststring$teststring
4752 # Only check the string length outside the loop.
4753 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4755 # Add a significant safety factor because C++ compilers can tack on
4756 # massive amounts of additional arguments before passing them to the
4757 # linker. It appears as though 1/2 is a usable value.
4758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4765 if test -n $lt_cv_sys_max_cmd_len ; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4767 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4770 $as_echo "none" >&6; }
4772 max_cmd_len=$lt_cv_sys_max_cmd_len
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4784 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4785 # Try some XSI features
4788 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4790 && eval 'test $(( 1 + 1 )) -eq 2 \
4791 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4794 $as_echo "$xsi_shell" >&6; }
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4798 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4800 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4802 && lt_shell_append=yes
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4804 $as_echo "$lt_shell_append" >&6; }
4807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4817 # test EBCDIC or ASCII
4818 case `echo X|tr X '\101'` in
4819 A) # ASCII based system
4820 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4821 lt_SP2NL='tr \040 \012'
4822 lt_NL2SP='tr \015\012 \040\040'
4824 *) # EBCDIC based system
4825 lt_SP2NL='tr \100 \n'
4826 lt_NL2SP='tr \r\n \100\100'
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4839 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4840 if ${lt_cv_to_host_file_cmd+:} false; then :
4841 $as_echo_n "(cached) " >&6
4846 *-*-mingw* ) # actually msys
4847 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4850 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4852 * ) # otherwise, assume *nix
4853 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4859 *-*-mingw* ) # actually msys
4860 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4863 lt_cv_to_host_file_cmd=func_convert_file_noop
4865 * ) # otherwise, assume *nix
4866 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4870 * ) # unhandled hosts (and "normal" native builds)
4871 lt_cv_to_host_file_cmd=func_convert_file_noop
4877 to_host_file_cmd=$lt_cv_to_host_file_cmd
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4879 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4886 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4887 if ${lt_cv_to_tool_file_cmd+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 #assume ordinary cross tools, or native build.
4891 lt_cv_to_tool_file_cmd=func_convert_file_noop
4895 *-*-mingw* ) # actually msys
4896 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4904 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4906 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4913 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4914 if ${lt_cv_ld_reload_flag+:} false; then :
4915 $as_echo_n "(cached) " >&6
4917 lt_cv_ld_reload_flag='-r'
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4920 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4921 reload_flag=$lt_cv_ld_reload_flag
4922 case $reload_flag in
4924 *) reload_flag=" $reload_flag" ;;
4926 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4928 cygwin* | mingw* | pw32* | cegcc*)
4929 if test "$GCC" != yes; then
4934 if test "$GCC" = yes; then
4935 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4937 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4950 if test -n "$ac_tool_prefix"; then
4951 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4952 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_OBJDUMP+:} false; then :
4956 $as_echo_n "(cached) " >&6
4958 if test -n "$OBJDUMP"; then
4959 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 OBJDUMP=$ac_cv_prog_OBJDUMP
4979 if test -n "$OBJDUMP"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4981 $as_echo "$OBJDUMP" >&6; }
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4989 if test -z "$ac_cv_prog_OBJDUMP"; then
4990 ac_ct_OBJDUMP=$OBJDUMP
4991 # Extract the first word of "objdump", so it can be a program name with args.
4992 set dummy objdump; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4996 $as_echo_n "(cached) " >&6
4998 if test -n "$ac_ct_OBJDUMP"; then
4999 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5019 if test -n "$ac_ct_OBJDUMP"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5021 $as_echo "$ac_ct_OBJDUMP" >&6; }
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5027 if test "x$ac_ct_OBJDUMP" = x; then
5030 case $cross_compiling:$ac_tool_warned in
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5034 ac_tool_warned=yes ;;
5036 OBJDUMP=$ac_ct_OBJDUMP
5039 OBJDUMP="$ac_cv_prog_OBJDUMP"
5042 test -z "$OBJDUMP" && OBJDUMP=objdump
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5050 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5051 if ${lt_cv_deplibs_check_method+:} false; then :
5052 $as_echo_n "(cached) " >&6
5054 lt_cv_file_magic_cmd='$MAGIC_CMD'
5055 lt_cv_file_magic_test_file=
5056 lt_cv_deplibs_check_method='unknown'
5057 # Need to set the preceding variable on all platforms that support
5058 # interlibrary dependencies.
5059 # 'none' -- dependencies not supported.
5060 # `unknown' -- same as none, but documents that we really don't know.
5061 # 'pass_all' -- all dependencies passed with no checks.
5062 # 'test_compile' -- check by making test program.
5063 # 'file_magic [[regex]]' -- check by looking for files in library path
5064 # which responds to the $file_magic_cmd with a given extended regex.
5065 # If you have `file' or equivalent on your system and you're not sure
5066 # whether `pass_all' will *always* work, you probably want this one.
5070 lt_cv_deplibs_check_method=pass_all
5074 lt_cv_deplibs_check_method=pass_all
5078 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5079 lt_cv_file_magic_cmd='/usr/bin/file -L'
5080 lt_cv_file_magic_test_file=/shlib/libc.so
5084 # func_win32_libid is a shell function defined in ltmain.sh
5085 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5086 lt_cv_file_magic_cmd='func_win32_libid'
5090 # Base MSYS/MinGW do not provide the 'file' command needed by
5091 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5092 # unless we find 'file', for example because we are cross-compiling.
5093 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5094 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5095 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5096 lt_cv_file_magic_cmd='func_win32_libid'
5098 # Keep this pattern in sync with the one in func_win32_libid.
5099 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5100 lt_cv_file_magic_cmd='$OBJDUMP -f'
5105 # use the weaker test based on 'objdump'. See mingw*.
5106 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5107 lt_cv_file_magic_cmd='$OBJDUMP -f'
5110 darwin* | rhapsody*)
5111 lt_cv_deplibs_check_method=pass_all
5114 freebsd* | dragonfly*)
5115 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5118 # Not sure whether the presence of OpenBSD here was a mistake.
5119 # Let's accept both of them until this is cleared up.
5120 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5121 lt_cv_file_magic_cmd=/usr/bin/file
5122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5126 lt_cv_deplibs_check_method=pass_all
5131 lt_cv_deplibs_check_method=pass_all
5134 hpux10.20* | hpux11*)
5135 lt_cv_file_magic_cmd=/usr/bin/file
5138 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5139 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5142 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]'
5143 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5146 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5147 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5153 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5157 irix5* | irix6* | nonstopux*)
5159 *-32|*"-32 ") libmagic=32-bit;;
5160 *-n32|*"-n32 ") libmagic=N32;;
5161 *-64|*"-64 ") libmagic=64-bit;;
5162 *) libmagic=never-match;;
5164 lt_cv_deplibs_check_method=pass_all
5167 # This must be glibc/ELF.
5168 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5169 lt_cv_deplibs_check_method=pass_all
5172 netbsd* | netbsdelf*-gnu)
5173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5181 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5182 lt_cv_file_magic_cmd=/usr/bin/file
5183 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5187 lt_cv_deplibs_check_method=pass_all
5191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5198 osf3* | osf4* | osf5*)
5199 lt_cv_deplibs_check_method=pass_all
5203 lt_cv_deplibs_check_method=pass_all
5207 lt_cv_deplibs_check_method=pass_all
5210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5211 lt_cv_deplibs_check_method=pass_all
5215 case $host_vendor in
5217 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]'
5218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5221 lt_cv_deplibs_check_method=pass_all
5224 lt_cv_file_magic_cmd='/bin/file'
5225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5228 lt_cv_file_magic_cmd='/bin/file'
5229 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5230 lt_cv_file_magic_test_file=/lib/libc.so
5233 lt_cv_deplibs_check_method=pass_all
5236 lt_cv_deplibs_check_method=pass_all
5242 lt_cv_deplibs_check_method=pass_all
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5248 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5252 if test "$build" = "$host"; then
5255 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5258 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5264 file_magic_cmd=$lt_cv_file_magic_cmd
5265 deplibs_check_method=$lt_cv_deplibs_check_method
5266 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5289 if test -n "$ac_tool_prefix"; then
5290 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5291 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_DLLTOOL+:} false; then :
5295 $as_echo_n "(cached) " >&6
5297 if test -n "$DLLTOOL"; then
5298 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 DLLTOOL=$ac_cv_prog_DLLTOOL
5318 if test -n "$DLLTOOL"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5320 $as_echo "$DLLTOOL" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5328 if test -z "$ac_cv_prog_DLLTOOL"; then
5329 ac_ct_DLLTOOL=$DLLTOOL
5330 # Extract the first word of "dlltool", so it can be a program name with args.
5331 set dummy dlltool; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5335 $as_echo_n "(cached) " >&6
5337 if test -n "$ac_ct_DLLTOOL"; then
5338 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5347 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5358 if test -n "$ac_ct_DLLTOOL"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5360 $as_echo "$ac_ct_DLLTOOL" >&6; }
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5366 if test "x$ac_ct_DLLTOOL" = x; then
5369 case $cross_compiling:$ac_tool_warned in
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5373 ac_tool_warned=yes ;;
5375 DLLTOOL=$ac_ct_DLLTOOL
5378 DLLTOOL="$ac_cv_prog_DLLTOOL"
5381 test -z "$DLLTOOL" && DLLTOOL=dlltool
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5390 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5391 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5392 $as_echo_n "(cached) " >&6
5394 lt_cv_sharedlib_from_linklib_cmd='unknown'
5397 cygwin* | mingw* | pw32* | cegcc*)
5398 # two different shell functions defined in ltmain.sh
5399 # decide which to use based on capabilities of $DLLTOOL
5400 case `$DLLTOOL --help 2>&1` in
5401 *--identify-strict*)
5402 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5405 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5410 # fallback: assume linklib IS sharedlib
5411 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5417 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5418 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5419 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5428 if test -n "$ac_tool_prefix"; then
5431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_prog_AR+:} false; then :
5436 $as_echo_n "(cached) " >&6
5438 if test -n "$AR"; then
5439 ac_cv_prog_AR="$AR" # Let the user override the test.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 if test -n "$AR"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5461 $as_echo "$AR" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5468 test -n "$AR" && break
5471 if test -z "$AR"; then
5475 # Extract the first word of "$ac_prog", so it can be a program name with args.
5476 set dummy $ac_prog; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5480 $as_echo_n "(cached) " >&6
5482 if test -n "$ac_ct_AR"; then
5483 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_ac_ct_AR="$ac_prog"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5503 if test -n "$ac_ct_AR"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5505 $as_echo "$ac_ct_AR" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5512 test -n "$ac_ct_AR" && break
5515 if test "x$ac_ct_AR" = x; then
5518 case $cross_compiling:$ac_tool_warned in
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5522 ac_tool_warned=yes ;;
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5542 $as_echo_n "checking for archiver @FILE support... " >&6; }
5543 if ${lt_cv_ar_at_file+:} false; then :
5544 $as_echo_n "(cached) " >&6
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 echo conftest.$ac_objext > conftest.lst
5560 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5562 (eval $lt_ar_try) 2>&5
5564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5565 test $ac_status = 0; }
5566 if test "$ac_status" -eq 0; then
5567 # Ensure the archiver fails upon bogus file names.
5568 rm -f conftest.$ac_objext libconftest.a
5569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5570 (eval $lt_ar_try) 2>&5
5572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5573 test $ac_status = 0; }
5574 if test "$ac_status" -ne 0; then
5578 rm -f conftest.* libconftest.a
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5585 $as_echo "$lt_cv_ar_at_file" >&6; }
5587 if test "x$lt_cv_ar_at_file" = xno; then
5590 archiver_list_spec=$lt_cv_ar_at_file
5599 if test -n "$ac_tool_prefix"; then
5600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5601 set dummy ${ac_tool_prefix}strip; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if ${ac_cv_prog_STRIP+:} false; then :
5605 $as_echo_n "(cached) " >&6
5607 if test -n "$STRIP"; then
5608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 STRIP=$ac_cv_prog_STRIP
5628 if test -n "$STRIP"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5630 $as_echo "$STRIP" >&6; }
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5638 if test -z "$ac_cv_prog_STRIP"; then
5640 # Extract the first word of "strip", so it can be a program name with args.
5641 set dummy strip; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 if test -n "$ac_ct_STRIP"; then
5648 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657 ac_cv_prog_ac_ct_STRIP="strip"
5658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5668 if test -n "$ac_ct_STRIP"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5670 $as_echo "$ac_ct_STRIP" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5676 if test "x$ac_ct_STRIP" = x; then
5679 case $cross_compiling:$ac_tool_warned in
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5683 ac_tool_warned=yes ;;
5688 STRIP="$ac_cv_prog_STRIP"
5691 test -z "$STRIP" && STRIP=:
5698 if test -n "$ac_tool_prefix"; then
5699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_RANLIB+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 if test -n "$RANLIB"; then
5707 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 test -z "$as_dir" && as_dir=.
5714 for ac_exec_ext in '' $ac_executable_extensions; do
5715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 RANLIB=$ac_cv_prog_RANLIB
5727 if test -n "$RANLIB"; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5729 $as_echo "$RANLIB" >&6; }
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5737 if test -z "$ac_cv_prog_RANLIB"; then
5738 ac_ct_RANLIB=$RANLIB
5739 # Extract the first word of "ranlib", so it can be a program name with args.
5740 set dummy ranlib; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5744 $as_echo_n "(cached) " >&6
5746 if test -n "$ac_ct_RANLIB"; then
5747 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_ac_ct_RANLIB="ranlib"
5757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5767 if test -n "$ac_ct_RANLIB"; then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5769 $as_echo "$ac_ct_RANLIB" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5775 if test "x$ac_ct_RANLIB" = x; then
5778 case $cross_compiling:$ac_tool_warned in
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned=yes ;;
5784 RANLIB=$ac_ct_RANLIB
5787 RANLIB="$ac_cv_prog_RANLIB"
5790 test -z "$RANLIB" && RANLIB=:
5797 # Determine commands to create old-style static archives.
5798 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5799 old_postinstall_cmds='chmod 644 $oldlib'
5800 old_postuninstall_cmds=
5802 if test -n "$RANLIB"; then
5805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5808 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5811 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5816 lock_old_archive_extraction=yes ;;
5818 lock_old_archive_extraction=no ;;
5859 # If no C compiler was specified, use CC.
5862 # If no C compiler flags were specified, use CFLAGS.
5863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5865 # Allow CC to be a program name with arguments.
5869 # Check for command to grab the raw symbol name followed by C symbol from nm.
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5871 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5872 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5873 $as_echo_n "(cached) " >&6
5876 # These are sane defaults that work on at least a few old systems.
5877 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5879 # Character class describing NM global symbol codes.
5880 symcode='[BCDEGRST]'
5882 # Regexp to match symbols that can be accessed directly from C.
5883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5885 # Define system-specific variables.
5890 cygwin* | mingw* | pw32* | cegcc*)
5891 symcode='[ABCDGISTW]'
5894 if test "$host_cpu" = ia64; then
5895 symcode='[ABCDEGRST]'
5899 symcode='[BCDEGRST]'
5902 symcode='[BCDEGQRST]'
5913 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5921 # If we're using GNU nm, then use its standard symbol codes.
5922 case `$NM -V 2>&1` in
5923 *GNU* | *'with BFD'*)
5924 symcode='[ABCDGIRSTW]' ;;
5927 # Transform an extracted symbol line into a proper C declaration.
5928 # Some systems (esp. on ia64) link data and code symbols differently,
5929 # so use this general approach.
5930 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5932 # Transform an extracted symbol line into symbol name and symbol address
5933 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5934 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5936 # Handle CRLF in mingw tool chain
5940 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5944 # Try without a prefix underscore, then with it.
5945 for ac_symprfx in "" "_"; do
5947 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5948 symxfrm="\\1 $ac_symprfx\\2 \\2"
5950 # Write the raw and C identifiers.
5951 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5952 # Fake it for dumpbin and say T for any non-static function
5953 # and D for any global variable.
5954 # Also find C++ and __fastcall symbols from MSVC++,
5955 # which start with @ or ?.
5956 lt_cv_sys_global_symbol_pipe="$AWK '"\
5957 " {last_section=section; section=\$ 3};"\
5958 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5959 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5960 " \$ 0!~/External *\|/{next};"\
5961 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5962 " {if(hide[section]) next};"\
5963 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5964 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5965 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5966 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5967 " ' prfx=^$ac_symprfx"
5969 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5971 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5973 # Check to see that the pipe works correctly.
5977 cat > conftest.$ac_ext <<_LT_EOF
5982 void nm_test_func(void);
5983 void nm_test_func(void){}
5987 int main(){nm_test_var='a';nm_test_func();return(0);}
5990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5991 (eval $ac_compile) 2>&5
5993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5994 test $ac_status = 0; }; then
5995 # Now try to grab the symbols.
5997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5998 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001 test $ac_status = 0; } && test -s "$nlist"; then
6002 # Try sorting and uniquifying the output.
6003 if sort "$nlist" | uniq > "$nlist"T; then
6004 mv -f "$nlist"T "$nlist"
6009 # Make sure that we snagged all the symbols we need.
6010 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6011 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6012 cat <<_LT_EOF > conftest.$ac_ext
6013 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6014 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6015 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6016 relocations are performed -- see ld's documentation on pseudo-relocs. */
6017 # define LT_DLSYM_CONST
6018 #elif defined(__osf__)
6019 /* This system does not cope well with relocations in const data. */
6020 # define LT_DLSYM_CONST
6022 # define LT_DLSYM_CONST const
6030 # Now generate the symbol file.
6031 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6033 cat <<_LT_EOF >> conftest.$ac_ext
6035 /* The mapping between symbol names and symbols. */
6036 LT_DLSYM_CONST struct {
6040 lt__PROGRAM__LTX_preloaded_symbols[] =
6042 { "@PROGRAM@", (void *) 0 },
6044 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6045 cat <<\_LT_EOF >> conftest.$ac_ext
6049 /* This works around a problem in FreeBSD linker */
6050 #ifdef FREEBSD_WORKAROUND
6051 static const void *lt_preloaded_setup() {
6052 return lt__PROGRAM__LTX_preloaded_symbols;
6060 # Now try linking the two files.
6061 mv conftest.$ac_objext conftstm.$ac_objext
6062 lt_globsym_save_LIBS=$LIBS
6063 lt_globsym_save_CFLAGS=$CFLAGS
6064 LIBS="conftstm.$ac_objext"
6065 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6067 (eval $ac_link) 2>&5
6069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6070 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6073 LIBS=$lt_globsym_save_LIBS
6074 CFLAGS=$lt_globsym_save_CFLAGS
6076 echo "cannot find nm_test_func in $nlist" >&5
6079 echo "cannot find nm_test_var in $nlist" >&5
6082 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6085 echo "$progname: failed program was:" >&5
6086 cat conftest.$ac_ext >&5
6088 rm -rf conftest* conftst*
6090 # Do not use the global_symbol_pipe unless it works.
6091 if test "$pipe_works" = yes; then
6094 lt_cv_sys_global_symbol_pipe=
6100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6101 lt_cv_sys_global_symbol_to_cdecl=
6103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6105 $as_echo "failed" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6108 $as_echo "ok" >&6; }
6111 # Response file support.
6112 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6113 nm_file_list_spec='@'
6114 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6115 nm_file_list_spec='@'
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6145 $as_echo_n "checking for sysroot... " >&6; }
6147 # Check whether --with-sysroot was given.
6148 if test "${with_sysroot+set}" = set; then :
6149 withval=$with_sysroot;
6156 case ${with_sysroot} in #(
6158 if test "$GCC" = yes; then
6159 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6163 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6169 $as_echo "${with_sysroot}" >&6; }
6170 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6175 $as_echo "${lt_sysroot:-no}" >&6; }
6181 # Check whether --enable-libtool-lock was given.
6182 if test "${enable_libtool_lock+set}" = set; then :
6183 enableval=$enable_libtool_lock;
6186 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6188 # Some flags need to be propagated to the compiler or linker for good
6192 # Find out which ABI we are using.
6193 echo 'int i;' > conftest.$ac_ext
6194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6195 (eval $ac_compile) 2>&5
6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198 test $ac_status = 0; }; then
6199 case `/usr/bin/file conftest.$ac_objext` in
6211 # Find out which ABI we are using.
6212 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6214 (eval $ac_compile) 2>&5
6216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6217 test $ac_status = 0; }; then
6218 if test "$lt_cv_prog_gnu_ld" = yes; then
6219 case `/usr/bin/file conftest.$ac_objext` in
6221 LD="${LD-ld} -melf32bsmip"
6224 LD="${LD-ld} -melf32bmipn32"
6227 LD="${LD-ld} -melf64bmip"
6231 case `/usr/bin/file conftest.$ac_objext` in
6247 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6248 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6249 # Find out which ABI we are using.
6250 echo 'int i;' > conftest.$ac_ext
6251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6252 (eval $ac_compile) 2>&5
6254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6255 test $ac_status = 0; }; then
6256 case `/usr/bin/file conftest.o` in
6259 x86_64-*kfreebsd*-gnu)
6260 LD="${LD-ld} -m elf_i386_fbsd"
6263 case `/usr/bin/file conftest.o` in
6265 LD="${LD-ld} -m elf32_x86_64"
6268 LD="${LD-ld} -m elf_i386"
6272 ppc64-*linux*|powerpc64-*linux*)
6273 LD="${LD-ld} -m elf32ppclinux"
6276 LD="${LD-ld} -m elf_s390"
6279 LD="${LD-ld} -m elf32_sparc"
6285 x86_64-*kfreebsd*-gnu)
6286 LD="${LD-ld} -m elf_x86_64_fbsd"
6289 LD="${LD-ld} -m elf_x86_64"
6291 ppc*-*linux*|powerpc*-*linux*)
6292 LD="${LD-ld} -m elf64ppc"
6294 s390*-*linux*|s390*-*tpf*)
6295 LD="${LD-ld} -m elf64_s390"
6298 LD="${LD-ld} -m elf64_sparc"
6308 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6309 SAVE_CFLAGS="$CFLAGS"
6310 CFLAGS="$CFLAGS -belf"
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6312 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6313 if ${lt_cv_cc_needs_belf+:} false; then :
6314 $as_echo_n "(cached) " >&6
6317 ac_cpp='$CPP $CPPFLAGS'
6318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6333 if ac_fn_c_try_link "$LINENO"; then :
6334 lt_cv_cc_needs_belf=yes
6336 lt_cv_cc_needs_belf=no
6338 rm -f core conftest.err conftest.$ac_objext \
6339 conftest$ac_exeext conftest.$ac_ext
6341 ac_cpp='$CPP $CPPFLAGS'
6342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6348 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6349 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6350 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6351 CFLAGS="$SAVE_CFLAGS"
6355 # Find out which ABI we are using.
6356 echo 'int i;' > conftest.$ac_ext
6357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6358 (eval $ac_compile) 2>&5
6360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361 test $ac_status = 0; }; then
6362 case `/usr/bin/file conftest.o` in
6364 case $lt_cv_prog_gnu_ld in
6368 LD="${LD-ld} -m elf_x86_64"
6371 LD="${LD-ld} -m elf64_sparc"
6374 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6375 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6380 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6392 need_locks="$enable_libtool_lock"
6394 if test -n "$ac_tool_prefix"; then
6395 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6396 set dummy ${ac_tool_prefix}mt; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6400 $as_echo_n "(cached) " >&6
6402 if test -n "$MANIFEST_TOOL"; then
6403 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6423 if test -n "$MANIFEST_TOOL"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6425 $as_echo "$MANIFEST_TOOL" >&6; }
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6433 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6434 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6435 # Extract the first word of "mt", so it can be a program name with args.
6436 set dummy mt; ac_word=$2
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6440 $as_echo_n "(cached) " >&6
6442 if test -n "$ac_ct_MANIFEST_TOOL"; then
6443 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6452 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6463 if test -n "$ac_ct_MANIFEST_TOOL"; then
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6465 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 $as_echo "no" >&6; }
6471 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6474 case $cross_compiling:$ac_tool_warned in
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6478 ac_tool_warned=yes ;;
6480 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6483 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6486 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6488 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6489 if ${lt_cv_path_mainfest_tool+:} false; then :
6490 $as_echo_n "(cached) " >&6
6492 lt_cv_path_mainfest_tool=no
6493 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6494 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6495 cat conftest.err >&5
6496 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6497 lt_cv_path_mainfest_tool=yes
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6502 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6503 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6513 rhapsody* | darwin*)
6514 if test -n "$ac_tool_prefix"; then
6515 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6520 $as_echo_n "(cached) " >&6
6522 if test -n "$DSYMUTIL"; then
6523 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6543 if test -n "$DSYMUTIL"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6545 $as_echo "$DSYMUTIL" >&6; }
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6553 if test -z "$ac_cv_prog_DSYMUTIL"; then
6554 ac_ct_DSYMUTIL=$DSYMUTIL
6555 # Extract the first word of "dsymutil", so it can be a program name with args.
6556 set dummy dsymutil; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6560 $as_echo_n "(cached) " >&6
6562 if test -n "$ac_ct_DSYMUTIL"; then
6563 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6583 if test -n "$ac_ct_DSYMUTIL"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6585 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6591 if test "x$ac_ct_DSYMUTIL" = x; then
6594 case $cross_compiling:$ac_tool_warned in
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6600 DSYMUTIL=$ac_ct_DSYMUTIL
6603 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_NMEDIT+:} false; then :
6612 $as_echo_n "(cached) " >&6
6614 if test -n "$NMEDIT"; then
6615 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 NMEDIT=$ac_cv_prog_NMEDIT
6635 if test -n "$NMEDIT"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6637 $as_echo "$NMEDIT" >&6; }
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6645 if test -z "$ac_cv_prog_NMEDIT"; then
6646 ac_ct_NMEDIT=$NMEDIT
6647 # Extract the first word of "nmedit", so it can be a program name with args.
6648 set dummy nmedit; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6652 $as_echo_n "(cached) " >&6
6654 if test -n "$ac_ct_NMEDIT"; then
6655 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6675 if test -n "$ac_ct_NMEDIT"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6677 $as_echo "$ac_ct_NMEDIT" >&6; }
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6683 if test "x$ac_ct_NMEDIT" = x; then
6686 case $cross_compiling:$ac_tool_warned in
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690 ac_tool_warned=yes ;;
6692 NMEDIT=$ac_ct_NMEDIT
6695 NMEDIT="$ac_cv_prog_NMEDIT"
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_LIPO+:} false; then :
6704 $as_echo_n "(cached) " >&6
6706 if test -n "$LIPO"; then
6707 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 LIPO=$ac_cv_prog_LIPO
6727 if test -n "$LIPO"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6729 $as_echo "$LIPO" >&6; }
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6737 if test -z "$ac_cv_prog_LIPO"; then
6739 # Extract the first word of "lipo", so it can be a program name with args.
6740 set dummy lipo; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6744 $as_echo_n "(cached) " >&6
6746 if test -n "$ac_ct_LIPO"; then
6747 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_LIPO="lipo"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6767 if test -n "$ac_ct_LIPO"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6769 $as_echo "$ac_ct_LIPO" >&6; }
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6775 if test "x$ac_ct_LIPO" = x; then
6778 case $cross_compiling:$ac_tool_warned in
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6787 LIPO="$ac_cv_prog_LIPO"
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}otool; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_OTOOL+:} false; then :
6796 $as_echo_n "(cached) " >&6
6798 if test -n "$OTOOL"; then
6799 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 OTOOL=$ac_cv_prog_OTOOL
6819 if test -n "$OTOOL"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6821 $as_echo "$OTOOL" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6829 if test -z "$ac_cv_prog_OTOOL"; then
6831 # Extract the first word of "otool", so it can be a program name with args.
6832 set dummy otool; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6836 $as_echo_n "(cached) " >&6
6838 if test -n "$ac_ct_OTOOL"; then
6839 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_OTOOL="otool"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6859 if test -n "$ac_ct_OTOOL"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6861 $as_echo "$ac_ct_OTOOL" >&6; }
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6867 if test "x$ac_ct_OTOOL" = x; then
6870 case $cross_compiling:$ac_tool_warned in
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6879 OTOOL="$ac_cv_prog_OTOOL"
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_OTOOL64+:} false; then :
6888 $as_echo_n "(cached) " >&6
6890 if test -n "$OTOOL64"; then
6891 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 OTOOL64=$ac_cv_prog_OTOOL64
6911 if test -n "$OTOOL64"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6913 $as_echo "$OTOOL64" >&6; }
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6921 if test -z "$ac_cv_prog_OTOOL64"; then
6922 ac_ct_OTOOL64=$OTOOL64
6923 # Extract the first word of "otool64", so it can be a program name with args.
6924 set dummy otool64; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6928 $as_echo_n "(cached) " >&6
6930 if test -n "$ac_ct_OTOOL64"; then
6931 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_ac_ct_OTOOL64="otool64"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6951 if test -n "$ac_ct_OTOOL64"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6953 $as_echo "$ac_ct_OTOOL64" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6959 if test "x$ac_ct_OTOOL64" = x; then
6962 case $cross_compiling:$ac_tool_warned in
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6968 OTOOL64=$ac_ct_OTOOL64
6971 OTOOL64="$ac_cv_prog_OTOOL64"
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7001 $as_echo_n "checking for -single_module linker flag... " >&6; }
7002 if ${lt_cv_apple_cc_single_mod+:} false; then :
7003 $as_echo_n "(cached) " >&6
7005 lt_cv_apple_cc_single_mod=no
7006 if test -z "${LT_MULTI_MODULE}"; then
7007 # By default we will add the -single_module flag. You can override
7008 # by either setting the environment variable LT_MULTI_MODULE
7009 # non-empty at configure time, or by adding -multi_module to the
7011 rm -rf libconftest.dylib*
7012 echo "int foo(void){return 1;}" > conftest.c
7013 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7014 -dynamiclib -Wl,-single_module conftest.c" >&5
7015 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7016 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7018 # If there is a non-empty error log, and "single_module"
7019 # appears in it, assume the flag caused a linker warning
7020 if test -s conftest.err && $GREP single_module conftest.err; then
7021 cat conftest.err >&5
7022 # Otherwise, if the output was created with a 0 exit code from
7023 # the compiler, it worked.
7024 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7025 lt_cv_apple_cc_single_mod=yes
7027 cat conftest.err >&5
7029 rm -rf libconftest.dylib*
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7034 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7037 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7038 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7039 $as_echo_n "(cached) " >&6
7041 lt_cv_ld_exported_symbols_list=no
7042 save_LDFLAGS=$LDFLAGS
7043 echo "_main" > conftest.sym
7044 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7056 if ac_fn_c_try_link "$LINENO"; then :
7057 lt_cv_ld_exported_symbols_list=yes
7059 lt_cv_ld_exported_symbols_list=no
7061 rm -f core conftest.err conftest.$ac_objext \
7062 conftest$ac_exeext conftest.$ac_ext
7063 LDFLAGS="$save_LDFLAGS"
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7067 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7070 $as_echo_n "checking for -force_load linker flag... " >&6; }
7071 if ${lt_cv_ld_force_load+:} false; then :
7072 $as_echo_n "(cached) " >&6
7074 lt_cv_ld_force_load=no
7075 cat > conftest.c << _LT_EOF
7076 int forced_loaded() { return 2;}
7078 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7079 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7080 echo "$AR cru libconftest.a conftest.o" >&5
7081 $AR cru libconftest.a conftest.o 2>&5
7082 echo "$RANLIB libconftest.a" >&5
7083 $RANLIB libconftest.a 2>&5
7084 cat > conftest.c << _LT_EOF
7085 int main() { return 0;}
7087 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7088 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7090 if test -s conftest.err && $GREP force_load conftest.err; then
7091 cat conftest.err >&5
7092 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7093 lt_cv_ld_force_load=yes
7095 cat conftest.err >&5
7097 rm -f conftest.err libconftest.a conftest conftest.c
7098 rm -rf conftest.dSYM
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7102 $as_echo "$lt_cv_ld_force_load" >&6; }
7104 rhapsody* | darwin1.[012])
7105 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7107 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7108 darwin*) # darwin 5.x on
7109 # if running on 10.5 or later, the deployment target defaults
7110 # to the OS version, if on x86, and 10.4, the deployment
7111 # target defaults to 10.4. Don't you love it?
7112 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7113 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7114 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7116 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7118 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7122 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7123 _lt_dar_single_mod='$single_module'
7125 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7126 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7128 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7130 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7131 _lt_dsymutil='~$DSYMUTIL $lib || :'
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7144 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7145 # On Suns, sometimes $CPP names a directory.
7146 if test -n "$CPP" && test -d "$CPP"; then
7149 if test -z "$CPP"; then
7150 if ${ac_cv_prog_CPP+:} false; then :
7151 $as_echo_n "(cached) " >&6
7153 # Double quotes because CPP needs to be expanded
7154 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7157 for ac_c_preproc_warn_flag in '' yes
7159 # Use a header file that comes with gcc, so configuring glibc
7160 # with a fresh cross-compiler works.
7161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7162 # <limits.h> exists even on freestanding compilers.
7163 # On the NeXT, cc -E runs the code through the compiler's parser,
7164 # not just through cpp. "Syntax error" is here to catch this case.
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7168 # include <limits.h>
7170 # include <assert.h>
7174 if ac_fn_c_try_cpp "$LINENO"; then :
7177 # Broken: fails on valid input.
7180 rm -f conftest.err conftest.i conftest.$ac_ext
7182 # OK, works on sane cases. Now check whether nonexistent headers
7183 # can be detected and how.
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7186 #include <ac_nonexistent.h>
7188 if ac_fn_c_try_cpp "$LINENO"; then :
7189 # Broken: success on invalid input.
7192 # Passes both tests.
7196 rm -f conftest.err conftest.i conftest.$ac_ext
7199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7200 rm -f conftest.i conftest.err conftest.$ac_ext
7201 if $ac_preproc_ok; then :
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7214 $as_echo "$CPP" >&6; }
7216 for ac_c_preproc_warn_flag in '' yes
7218 # Use a header file that comes with gcc, so configuring glibc
7219 # with a fresh cross-compiler works.
7220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7221 # <limits.h> exists even on freestanding compilers.
7222 # On the NeXT, cc -E runs the code through the compiler's parser,
7223 # not just through cpp. "Syntax error" is here to catch this case.
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7227 # include <limits.h>
7229 # include <assert.h>
7233 if ac_fn_c_try_cpp "$LINENO"; then :
7236 # Broken: fails on valid input.
7239 rm -f conftest.err conftest.i conftest.$ac_ext
7241 # OK, works on sane cases. Now check whether nonexistent headers
7242 # can be detected and how.
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 #include <ac_nonexistent.h>
7247 if ac_fn_c_try_cpp "$LINENO"; then :
7248 # Broken: success on invalid input.
7251 # Passes both tests.
7255 rm -f conftest.err conftest.i conftest.$ac_ext
7258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7259 rm -f conftest.i conftest.err conftest.$ac_ext
7260 if $ac_preproc_ok; then :
7263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7265 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7266 See \`config.log' for more details" "$LINENO" 5; }
7270 ac_cpp='$CPP $CPPFLAGS'
7271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7277 $as_echo_n "checking for ANSI C header files... " >&6; }
7278 if ${ac_cv_header_stdc+:} false; then :
7279 $as_echo_n "(cached) " >&6
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7296 if ac_fn_c_try_compile "$LINENO"; then :
7297 ac_cv_header_stdc=yes
7299 ac_cv_header_stdc=no
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303 if test $ac_cv_header_stdc = yes; then
7304 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311 $EGREP "memchr" >/dev/null 2>&1; then :
7314 ac_cv_header_stdc=no
7320 if test $ac_cv_header_stdc = yes; then
7321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7328 $EGREP "free" >/dev/null 2>&1; then :
7331 ac_cv_header_stdc=no
7337 if test $ac_cv_header_stdc = yes; then
7338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7339 if test "$cross_compiling" = yes; then :
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7346 #if ((' ' & 0x0FF) == 0x020)
7347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7350 # define ISLOWER(c) \
7351 (('a' <= (c) && (c) <= 'i') \
7352 || ('j' <= (c) && (c) <= 'r') \
7353 || ('s' <= (c) && (c) <= 'z'))
7354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7362 for (i = 0; i < 256; i++)
7363 if (XOR (islower (i), ISLOWER (i))
7364 || toupper (i) != TOUPPER (i))
7369 if ac_fn_c_try_run "$LINENO"; then :
7372 ac_cv_header_stdc=no
7374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7375 conftest.$ac_objext conftest.beam conftest.$ac_ext
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7381 $as_echo "$ac_cv_header_stdc" >&6; }
7382 if test $ac_cv_header_stdc = yes; then
7384 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7388 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7389 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7390 inttypes.h stdint.h unistd.h
7392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7393 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7395 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7396 cat >>confdefs.h <<_ACEOF
7397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7405 for ac_header in dlfcn.h
7407 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7409 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7410 cat >>confdefs.h <<_ACEOF
7411 #define HAVE_DLFCN_H 1
7424 enable_win32_dll=yes
7427 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}as; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_AS+:} false; then :
7434 $as_echo_n "(cached) " >&6
7436 if test -n "$AS"; then
7437 ac_cv_prog_AS="$AS" # Let the user override the test.
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_AS="${ac_tool_prefix}as"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 if test -n "$AS"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7459 $as_echo "$AS" >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7467 if test -z "$ac_cv_prog_AS"; then
7469 # Extract the first word of "as", so it can be a program name with args.
7470 set dummy as; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7474 $as_echo_n "(cached) " >&6
7476 if test -n "$ac_ct_AS"; then
7477 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_ac_ct_AS="as"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7496 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7497 if test -n "$ac_ct_AS"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7499 $as_echo "$ac_ct_AS" >&6; }
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7505 if test "x$ac_ct_AS" = x; then
7508 case $cross_compiling:$ac_tool_warned in
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned=yes ;;
7520 if test -n "$ac_tool_prefix"; then
7521 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7522 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_DLLTOOL+:} false; then :
7526 $as_echo_n "(cached) " >&6
7528 if test -n "$DLLTOOL"; then
7529 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 DLLTOOL=$ac_cv_prog_DLLTOOL
7549 if test -n "$DLLTOOL"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7551 $as_echo "$DLLTOOL" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7559 if test -z "$ac_cv_prog_DLLTOOL"; then
7560 ac_ct_DLLTOOL=$DLLTOOL
7561 # Extract the first word of "dlltool", so it can be a program name with args.
7562 set dummy dlltool; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7566 $as_echo_n "(cached) " >&6
7568 if test -n "$ac_ct_DLLTOOL"; then
7569 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7578 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7589 if test -n "$ac_ct_DLLTOOL"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7591 $as_echo "$ac_ct_DLLTOOL" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7597 if test "x$ac_ct_DLLTOOL" = x; then
7600 case $cross_compiling:$ac_tool_warned in
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604 ac_tool_warned=yes ;;
7606 DLLTOOL=$ac_ct_DLLTOOL
7609 DLLTOOL="$ac_cv_prog_DLLTOOL"
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_OBJDUMP+:} false; then :
7618 $as_echo_n "(cached) " >&6
7620 if test -n "$OBJDUMP"; then
7621 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 OBJDUMP=$ac_cv_prog_OBJDUMP
7641 if test -n "$OBJDUMP"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7643 $as_echo "$OBJDUMP" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 if test -z "$ac_cv_prog_OBJDUMP"; then
7652 ac_ct_OBJDUMP=$OBJDUMP
7653 # Extract the first word of "objdump", so it can be a program name with args.
7654 set dummy objdump; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7658 $as_echo_n "(cached) " >&6
7660 if test -n "$ac_ct_OBJDUMP"; then
7661 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7681 if test -n "$ac_ct_OBJDUMP"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7683 $as_echo "$ac_ct_OBJDUMP" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7689 if test "x$ac_ct_OBJDUMP" = x; then
7692 case $cross_compiling:$ac_tool_warned in
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7698 OBJDUMP=$ac_ct_OBJDUMP
7701 OBJDUMP="$ac_cv_prog_OBJDUMP"
7707 test -z "$AS" && AS=as
7713 test -z "$DLLTOOL" && DLLTOOL=dlltool
7719 test -z "$OBJDUMP" && OBJDUMP=objdump
7724 # Check whether --enable-static was given.
7725 if test "${enable_static+set}" = set; then :
7726 enableval=$enable_static; p=${PACKAGE-default}
7728 yes) enable_static=yes ;;
7729 no) enable_static=no ;;
7732 # Look at the argument we got. We use all the common list separators.
7733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7734 for pkg in $enableval; do
7736 if test "X$pkg" = "X$p"; then
7758 # Check whether --enable-shared was given.
7759 if test "${enable_shared+set}" = set; then :
7760 enableval=$enable_shared; p=${PACKAGE-default}
7762 yes) enable_shared=yes ;;
7763 no) enable_shared=no ;;
7766 # Look at the argument we got. We use all the common list separators.
7767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7768 for pkg in $enableval; do
7770 if test "X$pkg" = "X$p"; then
7791 # Check whether --with-pic was given.
7792 if test "${with_pic+set}" = set; then :
7793 withval=$with_pic; lt_p=${PACKAGE-default}
7795 yes|no) pic_mode=$withval ;;
7798 # Look at the argument we got. We use all the common list separators.
7799 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7800 for lt_pkg in $withval; do
7802 if test "X$lt_pkg" = "X$lt_p"; then
7814 test -z "$pic_mode" && pic_mode=default
7822 # Check whether --enable-fast-install was given.
7823 if test "${enable_fast_install+set}" = set; then :
7824 enableval=$enable_fast_install; p=${PACKAGE-default}
7826 yes) enable_fast_install=yes ;;
7827 no) enable_fast_install=no ;;
7829 enable_fast_install=no
7830 # Look at the argument we got. We use all the common list separators.
7831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7832 for pkg in $enableval; do
7834 if test "X$pkg" = "X$p"; then
7835 enable_fast_install=yes
7842 enable_fast_install=yes
7855 # This can be used to rebuild libtool when needed
7856 LIBTOOL_DEPS="$ltmain"
7858 # Always use our own libtool.
7859 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7890 test -z "$LN_S" && LN_S="ln -s"
7905 if test -n "${ZSH_VERSION+set}" ; then
7906 setopt NO_GLOB_SUBST
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7910 $as_echo_n "checking for objdir... " >&6; }
7911 if ${lt_cv_objdir+:} false; then :
7912 $as_echo_n "(cached) " >&6
7914 rm -f .libs 2>/dev/null
7915 mkdir .libs 2>/dev/null
7916 if test -d .libs; then
7919 # MS-DOS does not allow filenames that begin with a dot.
7922 rmdir .libs 2>/dev/null
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7925 $as_echo "$lt_cv_objdir" >&6; }
7926 objdir=$lt_cv_objdir
7932 cat >>confdefs.h <<_ACEOF
7933 #define LT_OBJDIR "$lt_cv_objdir/"
7941 # AIX sometimes has problems with the GCC collect2 program. For some
7942 # reason, if we set the COLLECT_NAMES environment variable, the problems
7943 # vanish in a puff of smoke.
7944 if test "X${COLLECT_NAMES+set}" != Xset; then
7946 export COLLECT_NAMES
7953 can_build_shared=yes
7955 # All known linkers require a `.a' archive for static linking (except MSVC,
7956 # which needs '.lib').
7959 with_gnu_ld="$lt_cv_prog_gnu_ld"
7962 old_CFLAGS="$CFLAGS"
7964 # Set sane defaults for various variables
7965 test -z "$CC" && CC=cc
7966 test -z "$LTCC" && LTCC=$CC
7967 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7968 test -z "$LD" && LD=ld
7969 test -z "$ac_objext" && ac_objext=o
7971 for cc_temp in $compiler""; do
7973 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7974 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7979 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7982 # Only perform the check for file, if the check method requires it
7983 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7984 case $deplibs_check_method in
7986 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7988 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7989 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7990 $as_echo_n "(cached) " >&6
7994 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7997 lt_save_MAGIC_CMD="$MAGIC_CMD"
7998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7999 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8000 for ac_dir in $ac_dummy; do
8002 test -z "$ac_dir" && ac_dir=.
8003 if test -f $ac_dir/${ac_tool_prefix}file; then
8004 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8005 if test -n "$file_magic_test_file"; then
8006 case $deplibs_check_method in
8008 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8010 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8011 $EGREP "$file_magic_regex" > /dev/null; then
8016 *** Warning: the command libtool uses to detect shared libraries,
8017 *** $file_magic_cmd, produces output that libtool cannot recognize.
8018 *** The result is that libtool may fail to recognize shared libraries
8019 *** as such. This will affect the creation of libtool libraries that
8020 *** depend on shared libraries, but programs linked with such libtool
8021 *** libraries will work regardless of this problem. Nevertheless, you
8022 *** may want to report the problem to your system manager and/or to
8023 *** bug-libtool@gnu.org
8033 MAGIC_CMD="$lt_save_MAGIC_CMD"
8038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8039 if test -n "$MAGIC_CMD"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8041 $as_echo "$MAGIC_CMD" >&6; }
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8051 if test -z "$lt_cv_path_MAGIC_CMD"; then
8052 if test -n "$ac_tool_prefix"; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8054 $as_echo_n "checking for file... " >&6; }
8055 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8056 $as_echo_n "(cached) " >&6
8060 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8063 lt_save_MAGIC_CMD="$MAGIC_CMD"
8064 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8065 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8066 for ac_dir in $ac_dummy; do
8068 test -z "$ac_dir" && ac_dir=.
8069 if test -f $ac_dir/file; then
8070 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8071 if test -n "$file_magic_test_file"; then
8072 case $deplibs_check_method in
8074 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8075 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8076 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8077 $EGREP "$file_magic_regex" > /dev/null; then
8082 *** Warning: the command libtool uses to detect shared libraries,
8083 *** $file_magic_cmd, produces output that libtool cannot recognize.
8084 *** The result is that libtool may fail to recognize shared libraries
8085 *** as such. This will affect the creation of libtool libraries that
8086 *** depend on shared libraries, but programs linked with such libtool
8087 *** libraries will work regardless of this problem. Nevertheless, you
8088 *** may want to report the problem to your system manager and/or to
8089 *** bug-libtool@gnu.org
8099 MAGIC_CMD="$lt_save_MAGIC_CMD"
8104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8105 if test -n "$MAGIC_CMD"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8107 $as_echo "$MAGIC_CMD" >&6; }
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8123 # Use C for the default configuration in the libtool script
8127 ac_cpp='$CPP $CPPFLAGS'
8128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8133 # Source file extension for C test sources.
8136 # Object file extension for compiled C test sources.
8140 # Code to be used in simple compile tests
8141 lt_simple_compile_test_code="int some_variable = 0;"
8143 # Code to be used in simple link tests
8144 lt_simple_link_test_code='int main(){return(0);}'
8152 # If no C compiler was specified, use CC.
8155 # If no C compiler flags were specified, use CFLAGS.
8156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8158 # Allow CC to be a program name with arguments.
8161 # Save the default compiler, since it gets overwritten when the other
8162 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8163 compiler_DEFAULT=$CC
8165 # save warnings/boilerplate of simple test code
8166 ac_outfile=conftest.$ac_objext
8167 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8168 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8169 _lt_compiler_boilerplate=`cat conftest.err`
8172 ac_outfile=conftest.$ac_objext
8173 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8174 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8175 _lt_linker_boilerplate=`cat conftest.err`
8180 ## There is no encapsulation within the following macros, do not change
8181 ## the running order or otherwise move them around unless you know exactly
8182 ## what you are doing...
8183 if test -n "$compiler"; then
8185 lt_prog_compiler_no_builtin_flag=
8187 if test "$GCC" = yes; then
8188 case $cc_basename in
8190 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8192 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8196 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8197 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8198 $as_echo_n "(cached) " >&6
8200 lt_cv_prog_compiler_rtti_exceptions=no
8201 ac_outfile=conftest.$ac_objext
8202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8203 lt_compiler_flag="-fno-rtti -fno-exceptions"
8204 # Insert the option either (1) after the last *FLAGS variable, or
8205 # (2) before a word containing "conftest.", or (3) at the end.
8206 # Note that $ac_compile itself does not contain backslashes and begins
8207 # with a dollar sign (not a hyphen), so the echo should work correctly.
8208 # The option is referenced via a variable to avoid confusing sed.
8209 lt_compile=`echo "$ac_compile" | $SED \
8210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8212 -e 's:$: $lt_compiler_flag:'`
8213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8214 (eval "$lt_compile" 2>conftest.err)
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 if (exit $ac_status) && test -s "$ac_outfile"; then
8219 # The compiler can only warn and ignore the option if not recognized
8220 # So say no if there are warnings other than the usual output.
8221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8224 lt_cv_prog_compiler_rtti_exceptions=yes
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8231 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8233 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8234 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8246 lt_prog_compiler_wl=
8247 lt_prog_compiler_pic=
8248 lt_prog_compiler_static=
8251 if test "$GCC" = yes; then
8252 lt_prog_compiler_wl='-Wl,'
8253 lt_prog_compiler_static='-static'
8257 # All AIX code is PIC.
8258 if test "$host_cpu" = ia64; then
8259 # AIX 5 now supports IA64 processor
8260 lt_prog_compiler_static='-Bstatic'
8267 # see comment about AmigaOS4 .so support
8268 lt_prog_compiler_pic='-fPIC'
8271 # FIXME: we need at least 68020 code to build shared libraries, but
8272 # adding the `-m68020' flag to GCC prevents building anything better,
8274 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8279 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8280 # PIC is the default for these OSes.
8283 mingw* | cygwin* | pw32* | os2* | cegcc*)
8284 # This hack is so that the source file can tell whether it is being
8285 # built for inclusion in a dll (and should export symbols for example).
8286 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8287 # (--disable-auto-import) libraries
8288 lt_prog_compiler_pic='-DDLL_EXPORT'
8291 darwin* | rhapsody*)
8292 # PIC is the default on this platform
8293 # Common symbols not allowed in MH_DYLIB files
8294 lt_prog_compiler_pic='-fno-common'
8298 # PIC is the default for Haiku.
8299 # The "-static" flag exists, but is broken.
8300 lt_prog_compiler_static=
8304 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8305 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8306 # sets the default TLS model and affects inlining.
8312 lt_prog_compiler_pic='-fPIC'
8318 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8319 # Instead, we relocate shared libraries at runtime.
8323 # Just because we use GCC doesn't mean we suddenly get shared libraries
8324 # on systems that don't support them.
8325 lt_prog_compiler_can_build_shared=no
8330 # QNX uses GNU C++, but need to define -shared option too, otherwise
8332 lt_prog_compiler_pic='-fPIC -shared'
8336 if test -d /usr/nec; then
8337 lt_prog_compiler_pic=-Kconform_pic
8342 lt_prog_compiler_pic='-fPIC'
8346 case $cc_basename in
8347 nvcc*) # Cuda Compiler Driver 2.2
8348 lt_prog_compiler_wl='-Xlinker '
8349 if test -n "$lt_prog_compiler_pic"; then
8350 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8355 # PORTME Check for flag to pass linker flags through the system compiler.
8358 lt_prog_compiler_wl='-Wl,'
8359 if test "$host_cpu" = ia64; then
8360 # AIX 5 now supports IA64 processor
8361 lt_prog_compiler_static='-Bstatic'
8363 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8367 mingw* | cygwin* | pw32* | os2* | cegcc*)
8368 # This hack is so that the source file can tell whether it is being
8369 # built for inclusion in a dll (and should export symbols for example).
8370 lt_prog_compiler_pic='-DDLL_EXPORT'
8373 hpux9* | hpux10* | hpux11*)
8374 lt_prog_compiler_wl='-Wl,'
8375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8382 lt_prog_compiler_pic='+Z'
8385 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8386 lt_prog_compiler_static='${wl}-a ${wl}archive'
8389 irix5* | irix6* | nonstopux*)
8390 lt_prog_compiler_wl='-Wl,'
8391 # PIC (with -KPIC) is the default.
8392 lt_prog_compiler_static='-non_shared'
8395 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8396 case $cc_basename in
8397 # old Intel for x86_64 which still supported -KPIC.
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-static'
8403 # icc used to be incompatible with GCC.
8404 # ICC 10 doesn't accept -KPIC any more.
8406 lt_prog_compiler_wl='-Wl,'
8407 lt_prog_compiler_pic='-fPIC'
8408 lt_prog_compiler_static='-static'
8410 # Lahey Fortran 8.1.
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_pic='--shared'
8414 lt_prog_compiler_static='--static'
8417 # NAG Fortran compiler
8418 lt_prog_compiler_wl='-Wl,-Wl,,'
8419 lt_prog_compiler_pic='-PIC'
8420 lt_prog_compiler_static='-Bstatic'
8422 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8423 # Portland Group compilers (*not* the Pentium gcc compiler,
8424 # which looks to be a dead project)
8425 lt_prog_compiler_wl='-Wl,'
8426 lt_prog_compiler_pic='-fpic'
8427 lt_prog_compiler_static='-Bstatic'
8430 lt_prog_compiler_wl='-Wl,'
8431 # All Alpha code is PIC.
8432 lt_prog_compiler_static='-non_shared'
8434 xl* | bgxl* | bgf* | mpixl*)
8435 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-qpic'
8438 lt_prog_compiler_static='-qstaticlink'
8441 case `$CC -V 2>&1 | sed 5q` in
8442 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8443 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8444 lt_prog_compiler_pic='-KPIC'
8445 lt_prog_compiler_static='-Bstatic'
8446 lt_prog_compiler_wl=''
8448 *Sun\ F* | *Sun*Fortran*)
8449 lt_prog_compiler_pic='-KPIC'
8450 lt_prog_compiler_static='-Bstatic'
8451 lt_prog_compiler_wl='-Qoption ld '
8455 lt_prog_compiler_pic='-KPIC'
8456 lt_prog_compiler_static='-Bstatic'
8457 lt_prog_compiler_wl='-Wl,'
8459 *Intel*\ [CF]*Compiler*)
8460 lt_prog_compiler_wl='-Wl,'
8461 lt_prog_compiler_pic='-fPIC'
8462 lt_prog_compiler_static='-static'
8465 lt_prog_compiler_wl='-Wl,'
8466 lt_prog_compiler_pic='-fpic'
8467 lt_prog_compiler_static='-Bstatic'
8475 lt_prog_compiler_pic='-KPIC'
8476 lt_prog_compiler_static='-Bstatic'
8480 # QNX uses GNU C++, but need to define -shared option too, otherwise
8482 lt_prog_compiler_pic='-fPIC -shared'
8485 osf3* | osf4* | osf5*)
8486 lt_prog_compiler_wl='-Wl,'
8487 # All OSF/1 code is PIC.
8488 lt_prog_compiler_static='-non_shared'
8492 lt_prog_compiler_static='-non_shared'
8496 lt_prog_compiler_pic='-KPIC'
8497 lt_prog_compiler_static='-Bstatic'
8498 case $cc_basename in
8499 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8500 lt_prog_compiler_wl='-Qoption ld ';;
8502 lt_prog_compiler_wl='-Wl,';;
8507 lt_prog_compiler_wl='-Qoption ld '
8508 lt_prog_compiler_pic='-PIC'
8509 lt_prog_compiler_static='-Bstatic'
8512 sysv4 | sysv4.2uw2* | sysv4.3*)
8513 lt_prog_compiler_wl='-Wl,'
8514 lt_prog_compiler_pic='-KPIC'
8515 lt_prog_compiler_static='-Bstatic'
8519 if test -d /usr/nec ;then
8520 lt_prog_compiler_pic='-Kconform_pic'
8521 lt_prog_compiler_static='-Bstatic'
8525 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8526 lt_prog_compiler_wl='-Wl,'
8527 lt_prog_compiler_pic='-KPIC'
8528 lt_prog_compiler_static='-Bstatic'
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_can_build_shared=no
8537 lt_prog_compiler_pic='-pic'
8538 lt_prog_compiler_static='-Bstatic'
8542 lt_prog_compiler_can_build_shared=no
8548 # For platforms which do not support PIC, -DPIC is meaningless:
8550 lt_prog_compiler_pic=
8553 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8558 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8559 if ${lt_cv_prog_compiler_pic+:} false; then :
8560 $as_echo_n "(cached) " >&6
8562 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8565 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8566 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8569 # Check to make sure the PIC flag actually works.
8571 if test -n "$lt_prog_compiler_pic"; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8573 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8574 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8575 $as_echo_n "(cached) " >&6
8577 lt_cv_prog_compiler_pic_works=no
8578 ac_outfile=conftest.$ac_objext
8579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8580 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8581 # Insert the option either (1) after the last *FLAGS variable, or
8582 # (2) before a word containing "conftest.", or (3) at the end.
8583 # Note that $ac_compile itself does not contain backslashes and begins
8584 # with a dollar sign (not a hyphen), so the echo should work correctly.
8585 # The option is referenced via a variable to avoid confusing sed.
8586 lt_compile=`echo "$ac_compile" | $SED \
8587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8589 -e 's:$: $lt_compiler_flag:'`
8590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8591 (eval "$lt_compile" 2>conftest.err)
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 if (exit $ac_status) && test -s "$ac_outfile"; then
8596 # The compiler can only warn and ignore the option if not recognized
8597 # So say no if there are warnings other than the usual output.
8598 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8599 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8600 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8601 lt_cv_prog_compiler_pic_works=yes
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8608 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8610 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8611 case $lt_prog_compiler_pic in
8613 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8616 lt_prog_compiler_pic=
8617 lt_prog_compiler_can_build_shared=no
8633 # Check to make sure the static flag actually works.
8635 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8637 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8638 if ${lt_cv_prog_compiler_static_works+:} false; then :
8639 $as_echo_n "(cached) " >&6
8641 lt_cv_prog_compiler_static_works=no
8642 save_LDFLAGS="$LDFLAGS"
8643 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8644 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8645 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8646 # The linker can only warn and ignore the option if not recognized
8647 # So say no if there are warnings
8648 if test -s conftest.err; then
8649 # Append any errors to the config.log.
8650 cat conftest.err 1>&5
8651 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8653 if diff conftest.exp conftest.er2 >/dev/null; then
8654 lt_cv_prog_compiler_static_works=yes
8657 lt_cv_prog_compiler_static_works=yes
8661 LDFLAGS="$save_LDFLAGS"
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8665 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8667 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8670 lt_prog_compiler_static=
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8680 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8681 if ${lt_cv_prog_compiler_c_o+:} false; then :
8682 $as_echo_n "(cached) " >&6
8684 lt_cv_prog_compiler_c_o=no
8685 $RM -r conftest 2>/dev/null
8689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8691 lt_compiler_flag="-o out/conftest2.$ac_objext"
8692 # Insert the option either (1) after the last *FLAGS variable, or
8693 # (2) before a word containing "conftest.", or (3) at the end.
8694 # Note that $ac_compile itself does not contain backslashes and begins
8695 # with a dollar sign (not a hyphen), so the echo should work correctly.
8696 lt_compile=`echo "$ac_compile" | $SED \
8697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8699 -e 's:$: $lt_compiler_flag:'`
8700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8701 (eval "$lt_compile" 2>out/conftest.err)
8703 cat out/conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8707 # The compiler can only warn and ignore the option if not recognized
8708 # So say no if there are warnings
8709 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8710 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8711 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8712 lt_cv_prog_compiler_c_o=yes
8717 # SGI C++ compiler will create directory out/ii_files/ for
8718 # template instantiation
8719 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8720 $RM out/* && rmdir out
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8727 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8735 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8736 if ${lt_cv_prog_compiler_c_o+:} false; then :
8737 $as_echo_n "(cached) " >&6
8739 lt_cv_prog_compiler_c_o=no
8740 $RM -r conftest 2>/dev/null
8744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8746 lt_compiler_flag="-o out/conftest2.$ac_objext"
8747 # Insert the option either (1) after the last *FLAGS variable, or
8748 # (2) before a word containing "conftest.", or (3) at the end.
8749 # Note that $ac_compile itself does not contain backslashes and begins
8750 # with a dollar sign (not a hyphen), so the echo should work correctly.
8751 lt_compile=`echo "$ac_compile" | $SED \
8752 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8754 -e 's:$: $lt_compiler_flag:'`
8755 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8756 (eval "$lt_compile" 2>out/conftest.err)
8758 cat out/conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8762 # The compiler can only warn and ignore the option if not recognized
8763 # So say no if there are warnings
8764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8765 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8766 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8767 lt_cv_prog_compiler_c_o=yes
8772 # SGI C++ compiler will create directory out/ii_files/ for
8773 # template instantiation
8774 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8775 $RM out/* && rmdir out
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8782 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8787 hard_links="nottested"
8788 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8789 # do not overwrite the value of need_locks provided by the user
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8791 $as_echo_n "checking if we can lock with hard links... " >&6; }
8794 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8796 ln conftest.a conftest.b 2>&5 || hard_links=no
8797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8799 $as_echo "$hard_links" >&6; }
8800 if test "$hard_links" = no; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8802 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8815 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8818 allow_undefined_flag=
8819 always_export_symbols=no
8821 archive_expsym_cmds=
8822 compiler_needs_object=no
8823 enable_shared_with_static_runtimes=no
8824 export_dynamic_flag_spec=
8825 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8826 hardcode_automatic=no
8828 hardcode_direct_absolute=no
8829 hardcode_libdir_flag_spec=
8830 hardcode_libdir_separator=
8832 hardcode_shlibpath_var=unsupported
8834 link_all_deplibs=unknown
8837 old_archive_from_new_cmds=
8838 old_archive_from_expsyms_cmds=
8839 thread_safe_flag_spec=
8840 whole_archive_flag_spec=
8841 # include_expsyms should be a list of space-separated symbols to be *always*
8842 # included in the symbol list
8844 # exclude_expsyms can be an extended regexp of symbols to exclude
8845 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8847 # as well as any symbol that contains `d'.
8848 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8850 # platforms (ab)use it in PIC code, but their linkers get confused if
8851 # the symbol is explicitly referenced. Since portable code cannot
8852 # rely on this symbol name, it's probably fine to never include it in
8853 # preloaded symbol tables.
8854 # Exclude shared library initialization/finalization symbols.
8855 extract_expsyms_cmds=
8858 cygwin* | mingw* | pw32* | cegcc*)
8859 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8860 # When not using gcc, we currently assume that we are using
8861 # Microsoft Visual C++.
8862 if test "$GCC" != yes; then
8867 # we just hope/assume this is gcc and not c89 (= MSVC++)
8873 linux* | k*bsd*-gnu | gnu*)
8880 # On some targets, GNU ld is compatible enough with the native linker
8881 # that we're better off using the native interface for both.
8882 lt_use_gnu_ld_interface=no
8883 if test "$with_gnu_ld" = yes; then
8886 # The AIX port of GNU ld has always aspired to compatibility
8887 # with the native linker. However, as the warning in the GNU ld
8888 # block says, versions before 2.19.5* couldn't really create working
8889 # shared libraries, regardless of the interface used.
8890 case `$LD -v 2>&1` in
8891 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8892 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8893 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8895 lt_use_gnu_ld_interface=yes
8900 lt_use_gnu_ld_interface=yes
8905 if test "$lt_use_gnu_ld_interface" = yes; then
8906 # If archive_cmds runs LD, not CC, wlarc should be empty
8909 # Set some defaults for GNU ld with shared library support. These
8910 # are reset later if shared libraries are not supported. Putting them
8911 # here allows them to be overridden if necessary.
8912 runpath_var=LD_RUN_PATH
8913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914 export_dynamic_flag_spec='${wl}--export-dynamic'
8915 # ancient GNU ld didn't support --whole-archive et. al.
8916 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8917 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8919 whole_archive_flag_spec=
8921 supports_anon_versioning=no
8922 case `$LD -v 2>&1` in
8923 *GNU\ gold*) supports_anon_versioning=yes ;;
8924 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8925 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8926 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8927 *\ 2.11.*) ;; # other 2.11 versions
8928 *) supports_anon_versioning=yes ;;
8931 # See if GNU ld supports shared libraries.
8934 # On AIX/PPC, the GNU linker is very broken
8935 if test "$host_cpu" != ia64; then
8939 *** Warning: the GNU linker, at least up to release 2.19, is reported
8940 *** to be unable to reliably create shared libraries on AIX.
8941 *** Therefore, libtool is disabling shared libraries support. If you
8942 *** really care for shared libraries, you may want to install binutils
8943 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8944 *** You will then need to restart the configuration process.
8953 # see comment about AmigaOS4 .so support
8954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955 archive_expsym_cmds=''
8958 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)'
8959 hardcode_libdir_flag_spec='-L$libdir'
8960 hardcode_minus_L=yes
8966 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8967 allow_undefined_flag=unsupported
8968 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8969 # support --undefined. This deserves some investigation. FIXME
8970 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8976 cygwin* | mingw* | pw32* | cegcc*)
8977 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8978 # as there is no search path for DLLs.
8979 hardcode_libdir_flag_spec='-L$libdir'
8980 export_dynamic_flag_spec='${wl}--export-all-symbols'
8981 allow_undefined_flag=unsupported
8982 always_export_symbols=no
8983 enable_shared_with_static_runtimes=yes
8984 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'
8985 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8987 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8989 # If the export-symbols file already is a .def file (1st line
8990 # is EXPORTS), use it as is; otherwise, prepend...
8991 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8992 cp $export_symbols $output_objdir/$soname.def;
8994 echo EXPORTS > $output_objdir/$soname.def;
8995 cat $export_symbols >> $output_objdir/$soname.def;
8997 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 link_all_deplibs=yes
9010 hardcode_shlibpath_var=no
9011 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9012 export_dynamic_flag_spec='${wl}-E'
9013 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9014 # Instead, shared libraries are loaded at an image base (0x10000000 by
9015 # default) and relocated if they conflict, which is a slow very memory
9016 # consuming and fragmenting process. To avoid this, we pick a random,
9017 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9018 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9020 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'
9023 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9025 if test "$host_os" = linux-dietlibc; then
9026 case $cc_basename in
9027 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9030 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9031 && test "$tmp_diet" = no
9033 tmp_addflag=' $pic_flag'
9034 tmp_sharedflag='-shared'
9035 case $cc_basename,$host_cpu in
9036 pgcc*) # Portland Group C compiler
9037 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'
9038 tmp_addflag=' $pic_flag'
9040 pgf77* | pgf90* | pgf95* | pgfortran*)
9041 # Portland Group f77 and f90 compilers
9042 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'
9043 tmp_addflag=' $pic_flag -Mnomain' ;;
9044 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9045 tmp_addflag=' -i_dynamic' ;;
9046 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9047 tmp_addflag=' -i_dynamic -nofor_main' ;;
9048 ifc* | ifort*) # Intel Fortran compiler
9049 tmp_addflag=' -nofor_main' ;;
9050 lf95*) # Lahey Fortran 8.1
9051 whole_archive_flag_spec=
9052 tmp_sharedflag='--shared' ;;
9053 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9054 tmp_sharedflag='-qmkshrobj'
9056 nvcc*) # Cuda Compiler Driver 2.2
9057 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'
9058 compiler_needs_object=yes
9061 case `$CC -V 2>&1 | sed 5q` in
9062 *Sun\ C*) # Sun C 5.9
9063 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'
9064 compiler_needs_object=yes
9065 tmp_sharedflag='-G' ;;
9066 *Sun\ F*) # Sun Fortran 8.3
9067 tmp_sharedflag='-G' ;;
9069 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9071 if test "x$supports_anon_versioning" = xyes; then
9072 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9073 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9074 echo "local: *; };" >> $output_objdir/$libname.ver~
9075 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9078 case $cc_basename in
9079 xlf* | bgf* | bgxlf* | mpixlf*)
9080 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9081 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9082 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9083 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9084 if test "x$supports_anon_versioning" = xyes; then
9085 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9087 echo "local: *; };" >> $output_objdir/$libname.ver~
9088 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9097 netbsd* | netbsdelf*-gnu)
9098 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9099 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9102 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9113 *** create shared libraries on Solaris systems. Therefore, libtool
9114 *** is disabling shared libraries support. We urge you to upgrade GNU
9115 *** binutils to release 2.9.1 or newer. Another option is to modify
9116 *** your PATH or compiler configuration so that the native linker is
9117 *** used, and then restart.
9120 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9129 case `$LD -v 2>&1` in
9130 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9135 *** reliably create shared libraries on SCO systems. Therefore, libtool
9136 *** is disabling shared libraries support. We urge you to upgrade GNU
9137 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9138 *** your PATH or compiler configuration so that the native linker is
9139 *** used, and then restart.
9144 # For security reasons, it is highly recommended that you always
9145 # use absolute paths for naming shared libraries, and exclude the
9146 # DT_RUNPATH tag from executables and libraries. But doing so
9147 # requires that you compile everything twice, which is a pain.
9148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9160 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9163 hardcode_shlibpath_var=no
9167 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9176 if test "$ld_shlibs" = no; then
9178 hardcode_libdir_flag_spec=
9179 export_dynamic_flag_spec=
9180 whole_archive_flag_spec=
9183 # PORTME fill in a description of your system's linker (not GNU ld)
9186 allow_undefined_flag=unsupported
9187 always_export_symbols=yes
9188 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'
9189 # Note: this linker hardcodes the directories in LIBPATH if there
9190 # are no directories specified by -L.
9191 hardcode_minus_L=yes
9192 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9193 # Neither direct hardcoding nor static linking is supported with a
9195 hardcode_direct=unsupported
9200 if test "$host_cpu" = ia64; then
9201 # On IA64, the linker does run time linking by default, so we don't
9202 # have to do anything special.
9203 aix_use_runtimelinking=no
9204 exp_sym_flag='-Bexport'
9207 # If we're using GNU nm, then we don't want the "-C" option.
9208 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9209 # Also, AIX nm treats weak defined symbols like other global
9210 # defined symbols, whereas GNU nm marks them as "W".
9211 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9212 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9214 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9216 aix_use_runtimelinking=no
9218 # Test if we are trying to use run time linking or normal
9219 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9220 # need to do runtime linking.
9221 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9222 for ld_flag in $LDFLAGS; do
9223 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9224 aix_use_runtimelinking=yes
9231 exp_sym_flag='-bexport'
9232 no_entry_flag='-bnoentry'
9235 # When large executables or shared objects are built, AIX ld can
9236 # have problems creating the table of contents. If linking a library
9237 # or program results in "error TOC overflow" add -mminimal-toc to
9238 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9239 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9243 hardcode_direct_absolute=yes
9244 hardcode_libdir_separator=':'
9245 link_all_deplibs=yes
9246 file_list_spec='${wl}-f,'
9248 if test "$GCC" = yes; then
9249 case $host_os in aix4.[012]|aix4.[012].*)
9250 # We only want to do this on AIX 4.2 and lower, the check
9251 # below for broken collect2 doesn't work under 4.3+
9252 collect2name=`${CC} -print-prog-name=collect2`
9253 if test -f "$collect2name" &&
9254 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9256 # We have reworked collect2
9259 # We have old collect2
9260 hardcode_direct=unsupported
9261 # It fails to find uninstalled libraries when the uninstalled
9262 # path is not listed in the libpath. Setting hardcode_minus_L
9263 # to unsupported forces relinking
9264 hardcode_minus_L=yes
9265 hardcode_libdir_flag_spec='-L$libdir'
9266 hardcode_libdir_separator=
9270 shared_flag='-shared'
9271 if test "$aix_use_runtimelinking" = yes; then
9272 shared_flag="$shared_flag "'${wl}-G'
9277 if test "$host_cpu" = ia64; then
9278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9279 # chokes on -Wl,-G. The following line is correct:
9282 if test "$aix_use_runtimelinking" = yes; then
9283 shared_flag='${wl}-G'
9285 shared_flag='${wl}-bM:SRE'
9290 export_dynamic_flag_spec='${wl}-bexpall'
9291 # It seems that -bexpall does not export symbols beginning with
9292 # underscore (_), so it is better to generate a list of symbols to export.
9293 always_export_symbols=yes
9294 if test "$aix_use_runtimelinking" = yes; then
9295 # Warning - without using the other runtime loading flags (-brtl),
9296 # -berok will link without error, but may produce a broken library.
9297 allow_undefined_flag='-berok'
9298 # Determine the default libpath from the value encoded in an
9300 if test "${lt_cv_aix_libpath+set}" = set; then
9301 aix_libpath=$lt_cv_aix_libpath
9303 if ${lt_cv_aix_libpath_+:} false; then :
9304 $as_echo_n "(cached) " >&6
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9317 if ac_fn_c_try_link "$LINENO"; then :
9319 lt_aix_libpath_sed='
9320 /Import File Strings/,/^$/ {
9322 s/^0 *\([^ ]*\) *$/\1/
9326 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9327 # Check for a 64-bit object if we didn't find anything.
9328 if test -z "$lt_cv_aix_libpath_"; then
9329 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9332 rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
9334 if test -z "$lt_cv_aix_libpath_"; then
9335 lt_cv_aix_libpath_="/usr/lib:/lib"
9340 aix_libpath=$lt_cv_aix_libpath_
9343 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9344 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9346 if test "$host_cpu" = ia64; then
9347 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9348 allow_undefined_flag="-z nodefs"
9349 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"
9351 # Determine the default libpath from the value encoded in an
9353 if test "${lt_cv_aix_libpath+set}" = set; then
9354 aix_libpath=$lt_cv_aix_libpath
9356 if ${lt_cv_aix_libpath_+:} false; then :
9357 $as_echo_n "(cached) " >&6
9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h. */
9370 if ac_fn_c_try_link "$LINENO"; then :
9372 lt_aix_libpath_sed='
9373 /Import File Strings/,/^$/ {
9375 s/^0 *\([^ ]*\) *$/\1/
9379 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9380 # Check for a 64-bit object if we didn't find anything.
9381 if test -z "$lt_cv_aix_libpath_"; then
9382 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 if test -z "$lt_cv_aix_libpath_"; then
9388 lt_cv_aix_libpath_="/usr/lib:/lib"
9393 aix_libpath=$lt_cv_aix_libpath_
9396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9397 # Warning - without using the other run time loading flags,
9398 # -berok will link without error, but may produce a broken library.
9399 no_undefined_flag=' ${wl}-bernotok'
9400 allow_undefined_flag=' ${wl}-berok'
9401 if test "$with_gnu_ld" = yes; then
9402 # We only use this code for GNU lds that support --whole-archive.
9403 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9405 # Exported symbols can be pulled into shared objects from archives
9406 whole_archive_flag_spec='$convenience'
9408 archive_cmds_need_lc=yes
9409 # This is similar to how AIX traditionally builds its shared libraries.
9410 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9418 # see comment about AmigaOS4 .so support
9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420 archive_expsym_cmds=''
9423 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)'
9424 hardcode_libdir_flag_spec='-L$libdir'
9425 hardcode_minus_L=yes
9431 export_dynamic_flag_spec=-rdynamic
9434 cygwin* | mingw* | pw32* | cegcc*)
9435 # When not using gcc, we currently assume that we are using
9436 # Microsoft Visual C++.
9437 # hardcode_libdir_flag_spec is actually meaningless, as there is
9438 # no search path for DLLs.
9439 case $cc_basename in
9442 hardcode_libdir_flag_spec=' '
9443 allow_undefined_flag=unsupported
9444 always_export_symbols=yes
9446 # Tell ltmain to make .lib files, not .a files.
9448 # Tell ltmain to make .dll files, not .so files.
9450 # FIXME: Setting linknames here is a bad hack.
9451 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9452 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9453 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9455 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9457 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9459 # The linker will not automatically build a static lib if we build a DLL.
9460 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9461 enable_shared_with_static_runtimes=yes
9462 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9463 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9465 old_postinstall_cmds='chmod 644 $oldlib'
9466 postlink_cmds='lt_outputfile="@OUTPUT@"~
9467 lt_tool_outputfile="@TOOL_OUTPUT@"~
9468 case $lt_outputfile in
9471 lt_outputfile="$lt_outputfile.exe"
9472 lt_tool_outputfile="$lt_tool_outputfile.exe"
9475 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9476 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9477 $RM "$lt_outputfile.manifest";
9481 # Assume MSVC wrapper
9482 hardcode_libdir_flag_spec=' '
9483 allow_undefined_flag=unsupported
9484 # Tell ltmain to make .lib files, not .a files.
9486 # Tell ltmain to make .dll files, not .so files.
9488 # FIXME: Setting linknames here is a bad hack.
9489 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9490 # The linker will automatically build a .lib file if we build a DLL.
9491 old_archive_from_new_cmds='true'
9492 # FIXME: Should let the user specify the lib program.
9493 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9494 enable_shared_with_static_runtimes=yes
9499 darwin* | rhapsody*)
9502 archive_cmds_need_lc=no
9504 hardcode_automatic=yes
9505 hardcode_shlibpath_var=unsupported
9506 if test "$lt_cv_ld_force_load" = "yes"; then
9507 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\"`'
9510 whole_archive_flag_spec=''
9512 link_all_deplibs=yes
9513 allow_undefined_flag="$_lt_dar_allow_undefined"
9514 case $cc_basename in
9515 ifort*) _lt_dar_can_shared=yes ;;
9516 *) _lt_dar_can_shared=$GCC ;;
9518 if test "$_lt_dar_can_shared" = "yes"; then
9519 output_verbose_link_cmd=func_echo_all
9520 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9521 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9522 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}"
9523 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}"
9532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533 hardcode_libdir_flag_spec='-L$libdir'
9534 hardcode_shlibpath_var=no
9537 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9538 # support. Future versions do this automatically, but an explicit c++rt0.o
9539 # does not break anything, and helps significantly (at the cost of a little
9542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9543 hardcode_libdir_flag_spec='-R$libdir'
9545 hardcode_shlibpath_var=no
9548 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9550 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9552 hardcode_minus_L=yes
9553 hardcode_shlibpath_var=no
9556 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9557 freebsd* | dragonfly*)
9558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9559 hardcode_libdir_flag_spec='-R$libdir'
9561 hardcode_shlibpath_var=no
9565 if test "$GCC" = yes; then
9566 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9568 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571 hardcode_libdir_separator=:
9574 # hardcode_minus_L: Not really in the search PATH,
9575 # but as the default location of the library.
9576 hardcode_minus_L=yes
9577 export_dynamic_flag_spec='${wl}-E'
9581 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9582 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9584 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9586 if test "$with_gnu_ld" = no; then
9587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9588 hardcode_libdir_separator=:
9590 hardcode_direct_absolute=yes
9591 export_dynamic_flag_spec='${wl}-E'
9592 # hardcode_minus_L: Not really in the search PATH,
9593 # but as the default location of the library.
9594 hardcode_minus_L=yes
9599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9602 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9605 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9608 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9614 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9617 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9621 # Older versions of the 11.00 compiler do not understand -b yet
9622 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9624 $as_echo_n "checking if $CC understands -b... " >&6; }
9625 if ${lt_cv_prog_compiler__b+:} false; then :
9626 $as_echo_n "(cached) " >&6
9628 lt_cv_prog_compiler__b=no
9629 save_LDFLAGS="$LDFLAGS"
9630 LDFLAGS="$LDFLAGS -b"
9631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9633 # The linker can only warn and ignore the option if not recognized
9634 # So say no if there are warnings
9635 if test -s conftest.err; then
9636 # Append any errors to the config.log.
9637 cat conftest.err 1>&5
9638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9640 if diff conftest.exp conftest.er2 >/dev/null; then
9641 lt_cv_prog_compiler__b=yes
9644 lt_cv_prog_compiler__b=yes
9648 LDFLAGS="$save_LDFLAGS"
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9652 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9654 if test x"$lt_cv_prog_compiler__b" = xyes; then
9655 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9663 if test "$with_gnu_ld" = no; then
9664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9665 hardcode_libdir_separator=:
9670 hardcode_shlibpath_var=no
9674 hardcode_direct_absolute=yes
9675 export_dynamic_flag_spec='${wl}-E'
9677 # hardcode_minus_L: Not really in the search PATH,
9678 # but as the default location of the library.
9679 hardcode_minus_L=yes
9685 irix5* | irix6* | nonstopux*)
9686 if test "$GCC" = yes; then
9687 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'
9688 # Try to use the -exported_symbol ld option, if it does not
9689 # work, assume that -exports_file does not work either and
9690 # implicitly export all symbols.
9691 # This should be the same for all languages, so no per-tag cache variable.
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9693 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9694 if ${lt_cv_irix_exported_symbol+:} false; then :
9695 $as_echo_n "(cached) " >&6
9697 save_LDFLAGS="$LDFLAGS"
9698 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h. */
9701 int foo (void) { return 0; }
9703 if ac_fn_c_try_link "$LINENO"; then :
9704 lt_cv_irix_exported_symbol=yes
9706 lt_cv_irix_exported_symbol=no
9708 rm -f core conftest.err conftest.$ac_objext \
9709 conftest$ac_exeext conftest.$ac_ext
9710 LDFLAGS="$save_LDFLAGS"
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9713 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9714 if test "$lt_cv_irix_exported_symbol" = yes; then
9715 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'
9718 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'
9719 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'
9721 archive_cmds_need_lc='no'
9722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9723 hardcode_libdir_separator=:
9725 link_all_deplibs=yes
9728 netbsd* | netbsdelf*-gnu)
9729 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9732 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9734 hardcode_libdir_flag_spec='-R$libdir'
9736 hardcode_shlibpath_var=no
9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9743 hardcode_libdir_separator=:
9744 hardcode_shlibpath_var=no
9751 if test -f /usr/libexec/ld.so; then
9753 hardcode_shlibpath_var=no
9754 hardcode_direct_absolute=yes
9755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9756 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9757 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9759 export_dynamic_flag_spec='${wl}-E'
9762 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9764 hardcode_libdir_flag_spec='-R$libdir'
9767 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9768 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9778 hardcode_libdir_flag_spec='-L$libdir'
9779 hardcode_minus_L=yes
9780 allow_undefined_flag=unsupported
9781 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9782 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9786 if test "$GCC" = yes; then
9787 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9788 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'
9790 allow_undefined_flag=' -expect_unresolved \*'
9791 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'
9793 archive_cmds_need_lc='no'
9794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9795 hardcode_libdir_separator=:
9798 osf4* | osf5*) # as osf3* with the addition of -msym flag
9799 if test "$GCC" = yes; then
9800 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9801 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'
9802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9804 allow_undefined_flag=' -expect_unresolved \*'
9805 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'
9806 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~
9807 $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'
9809 # Both c and cxx compiler support -rpath directly
9810 hardcode_libdir_flag_spec='-rpath $libdir'
9812 archive_cmds_need_lc='no'
9813 hardcode_libdir_separator=:
9817 no_undefined_flag=' -z defs'
9818 if test "$GCC" = yes; then
9820 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9822 $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'
9824 case `$CC -V 2>&1` in
9827 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9829 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9833 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9835 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9839 hardcode_libdir_flag_spec='-R$libdir'
9840 hardcode_shlibpath_var=no
9842 solaris2.[0-5] | solaris2.[0-5].*) ;;
9844 # The compiler driver will combine and reorder linker options,
9845 # but understands `-z linker_flag'. GCC discards it without `$wl',
9846 # but is careful enough not to reorder.
9847 # Supported since Solaris 2.6 (maybe 2.5.1?)
9848 if test "$GCC" = yes; then
9849 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9851 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9855 link_all_deplibs=yes
9859 if test "x$host_vendor" = xsequent; then
9860 # Use $CC to link under sequent, because it throws in some extra .o
9861 # files that make .init and .fini sections work.
9862 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9864 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9866 hardcode_libdir_flag_spec='-L$libdir'
9868 hardcode_minus_L=yes
9869 hardcode_shlibpath_var=no
9873 case $host_vendor in
9875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876 hardcode_direct=yes # is this really true???
9879 ## LD is ld it makes a PLAMLIB
9880 ## CC just makes a GrossModule.
9881 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9882 reload_cmds='$CC -r -o $output$reload_objs'
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9890 runpath_var='LD_RUN_PATH'
9891 hardcode_shlibpath_var=no
9895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896 hardcode_shlibpath_var=no
9897 export_dynamic_flag_spec='-Bexport'
9901 if test -d /usr/nec; then
9902 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 hardcode_shlibpath_var=no
9904 runpath_var=LD_RUN_PATH
9905 hardcode_runpath_var=yes
9910 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9911 no_undefined_flag='${wl}-z,text'
9912 archive_cmds_need_lc=no
9913 hardcode_shlibpath_var=no
9914 runpath_var='LD_RUN_PATH'
9916 if test "$GCC" = yes; then
9917 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9920 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9925 sysv5* | sco3.2v5* | sco5v6*)
9926 # Note: We can NOT use -z defs as we might desire, because we do not
9927 # link with -lc, and that would cause any symbols used from libc to
9928 # always be unresolved, which means just about no library would
9929 # ever link correctly. If we're not using GNU ld we use -z text
9930 # though, which does catch some bad symbols but isn't as heavy-handed
9932 no_undefined_flag='${wl}-z,text'
9933 allow_undefined_flag='${wl}-z,nodefs'
9934 archive_cmds_need_lc=no
9935 hardcode_shlibpath_var=no
9936 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9937 hardcode_libdir_separator=':'
9938 link_all_deplibs=yes
9939 export_dynamic_flag_spec='${wl}-Bexport'
9940 runpath_var='LD_RUN_PATH'
9942 if test "$GCC" = yes; then
9943 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953 hardcode_libdir_flag_spec='-L$libdir'
9954 hardcode_shlibpath_var=no
9962 if test x$host_vendor = xsni; then
9964 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9965 export_dynamic_flag_spec='${wl}-Blargedynsym'
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9972 $as_echo "$ld_shlibs" >&6; }
9973 test "$ld_shlibs" = no && can_build_shared=no
9975 with_gnu_ld=$with_gnu_ld
9992 # Do we need to explicitly link libc?
9994 case "x$archive_cmds_need_lc" in
9996 # Assume -lc should be added
9997 archive_cmds_need_lc=yes
9999 if test "$enable_shared" = yes && test "$GCC" = yes; then
10000 case $archive_cmds in
10002 # FIXME: we may have to deal with multi-command sequences.
10005 # Test whether the compiler implicitly links with -lc since on some
10006 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10007 # to ld, don't add -lc before -lgcc.
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10009 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10010 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10011 $as_echo_n "(cached) " >&6
10014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10017 (eval $ac_compile) 2>&5
10019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020 test $ac_status = 0; } 2>conftest.err; then
10023 libobjs=conftest.$ac_objext
10025 wl=$lt_prog_compiler_wl
10026 pic_flag=$lt_prog_compiler_pic
10032 lt_save_allow_undefined_flag=$allow_undefined_flag
10033 allow_undefined_flag=
10034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10035 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10038 test $ac_status = 0; }
10040 lt_cv_archive_cmds_need_lc=no
10042 lt_cv_archive_cmds_need_lc=yes
10044 allow_undefined_flag=$lt_save_allow_undefined_flag
10046 cat conftest.err 1>&5
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10052 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10053 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10212 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10214 if test "$GCC" = yes; then
10216 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10217 *) lt_awk_arg="/^libraries:/" ;;
10220 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10221 *) lt_sed_strip_eq="s,=/,/,g" ;;
10223 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10224 case $lt_search_path_spec in
10226 # if the path contains ";" then we assume it to be the separator
10227 # otherwise default to the standard path separator (i.e. ":") - it is
10228 # assumed that no part of a normal pathname contains ";" but that should
10229 # okay in the real world where ";" in dirpaths is itself problematic.
10230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10236 # Ok, now we have the path, separated by spaces, we can step through it
10237 # and add multilib dir if necessary.
10238 lt_tmp_lt_search_path_spec=
10239 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10240 for lt_sys_path in $lt_search_path_spec; do
10241 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10244 test -d "$lt_sys_path" && \
10245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10248 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10249 BEGIN {RS=" "; FS="/|\n";} {
10252 for (lt_i = NF; lt_i > 0; lt_i--) {
10253 if ($lt_i != "" && $lt_i != ".") {
10254 if ($lt_i == "..") {
10257 if (lt_count == 0) {
10258 lt_foo="/" $lt_i lt_foo;
10265 if (lt_foo != "") { lt_freq[lt_foo]++; }
10266 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10268 # AWK program above erroneously prepends '/' to C:/dos/paths
10271 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10272 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10274 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10276 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10278 library_names_spec=
10279 libname_spec='lib$name'
10283 postuninstall_cmds=
10287 shlibpath_overrides_runpath=unknown
10289 dynamic_linker="$host_os ld.so"
10290 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10291 need_lib_prefix=unknown
10292 hardcode_into_libs=no
10294 # when you set need_version to no, make sure it does not cause -set_version
10295 # flags to be left without arguments
10296 need_version=unknown
10300 version_type=linux # correct to gnu/linux during the next big refactor
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10302 shlibpath_var=LIBPATH
10304 # AIX 3 has no versioning support, so we append a major version to the name.
10305 soname_spec='${libname}${release}${shared_ext}$major'
10309 version_type=linux # correct to gnu/linux during the next big refactor
10312 hardcode_into_libs=yes
10313 if test "$host_cpu" = ia64; then
10314 # AIX 5 supports IA64
10315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10316 shlibpath_var=LD_LIBRARY_PATH
10318 # With GCC up to 2.95.x, collect2 would create an import file
10319 # for dependence libraries. The import file would start with
10320 # the line `#! .'. This would cause the generated library to
10321 # depend on `.', always an invalid library. This was fixed in
10322 # development snapshots of GCC prior to 3.0.
10324 aix4 | aix4.[01] | aix4.[01].*)
10325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10327 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10330 can_build_shared=no
10334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10335 # soname into executable. Probably we can add versioning support to
10336 # collect2, so additional links can be useful in future.
10337 if test "$aix_use_runtimelinking" = yes; then
10338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10339 # instead of lib<name>.a to let people know that these are not
10340 # typical AIX shared libraries.
10341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 # We preserve .a as extension for shared libraries through AIX4.2
10344 # and later when we are not doing run time linking.
10345 library_names_spec='${libname}${release}.a $libname.a'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10348 shlibpath_var=LIBPATH
10355 # Since July 2007 AmigaOS4 officially supports .so libraries.
10356 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 library_names_spec='$libname.ixlibrary $libname.a'
10361 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10362 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10368 library_names_spec='${libname}${shared_ext}'
10369 dynamic_linker="$host_os ld.so"
10370 shlibpath_var=LIBRARY_PATH
10374 version_type=linux # correct to gnu/linux during the next big refactor
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10381 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10382 # the default ld.so.conf also contains /usr/contrib/lib and
10383 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10384 # libtool to hard-code these into programs
10387 cygwin* | mingw* | pw32* | cegcc*)
10388 version_type=windows
10393 case $GCC,$cc_basename in
10396 library_names_spec='$libname.dll.a'
10397 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10398 postinstall_cmds='base_file=`basename \${file}`~
10399 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10400 dldir=$destdir/`dirname \$dlpath`~
10401 test -d \$dldir || mkdir -p \$dldir~
10402 $install_prog $dir/$dlname \$dldir/$dlname~
10403 chmod a+x \$dldir/$dlname~
10404 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10405 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10408 dlpath=$dir/\$dldll~
10410 shlibpath_overrides_runpath=yes
10414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10415 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10417 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10420 # MinGW DLLs use traditional 'lib' prefix
10421 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10424 # pw32 DLLs use 'pw' prefix rather than 'lib'
10425 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10428 dynamic_linker='Win32 ld.exe'
10433 libname_spec='$name'
10434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10435 library_names_spec='${libname}.dll.lib'
10439 sys_lib_search_path_spec=
10442 for lt_path in $LIB
10445 # Let DOS variable expansion print the short 8.3 style file name.
10446 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10447 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10450 # Convert to MSYS style.
10451 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10454 # Convert to unix form, then to dos form, then back to unix form
10455 # but this time dos style (no spaces!) so that the unix form looks
10456 # like /cygdrive/c/PROGRA~1:/cygdr...
10457 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10458 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10459 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10462 sys_lib_search_path_spec="$LIB"
10463 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10464 # It is most probably a Windows format PATH.
10465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10467 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10469 # FIXME: find the short name or the path components, as spaces are
10470 # common. (e.g. "Program Files" -> "PROGRA~1")
10474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10475 postinstall_cmds='base_file=`basename \${file}`~
10476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10477 dldir=$destdir/`dirname \$dlpath`~
10478 test -d \$dldir || mkdir -p \$dldir~
10479 $install_prog $dir/$dlname \$dldir/$dlname'
10480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10481 dlpath=$dir/\$dldll~
10483 shlibpath_overrides_runpath=yes
10484 dynamic_linker='Win32 link.exe'
10488 # Assume MSVC wrapper
10489 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10490 dynamic_linker='Win32 ld.exe'
10493 # FIXME: first we should search . and the directory the executable is in
10497 darwin* | rhapsody*)
10498 dynamic_linker="$host_os dyld"
10499 version_type=darwin
10502 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10503 soname_spec='${libname}${release}${major}$shared_ext'
10504 shlibpath_overrides_runpath=yes
10505 shlibpath_var=DYLD_LIBRARY_PATH
10506 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10508 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10513 version_type=linux # correct to gnu/linux during the next big refactor
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10517 soname_spec='${libname}${release}${shared_ext}$major'
10518 shlibpath_var=LD_LIBRARY_PATH
10521 freebsd* | dragonfly*)
10522 # DragonFly does not have aout. When/if they implement a new
10523 # versioning mechanism, adjust this.
10524 if test -x /usr/bin/objformat; then
10525 objformat=`/usr/bin/objformat`
10528 freebsd[23].*) objformat=aout ;;
10529 *) objformat=elf ;;
10532 version_type=freebsd-$objformat
10533 case $version_type in
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10544 shlibpath_var=LD_LIBRARY_PATH
10547 shlibpath_overrides_runpath=yes
10549 freebsd3.[01]* | freebsdelf3.[01]*)
10550 shlibpath_overrides_runpath=yes
10551 hardcode_into_libs=yes
10553 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10554 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10555 shlibpath_overrides_runpath=no
10556 hardcode_into_libs=yes
10558 *) # from 4.6 on, and DragonFly
10559 shlibpath_overrides_runpath=yes
10560 hardcode_into_libs=yes
10566 version_type=linux # correct to gnu/linux during the next big refactor
10569 dynamic_linker="$host_os runtime_loader"
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LIBRARY_PATH
10573 shlibpath_overrides_runpath=yes
10574 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10575 hardcode_into_libs=yes
10578 hpux9* | hpux10* | hpux11*)
10579 # Give a soname corresponding to the major version so that dld.sl refuses to
10580 # link against other versions.
10587 hardcode_into_libs=yes
10588 dynamic_linker="$host_os dld.so"
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 soname_spec='${libname}${release}${shared_ext}$major'
10593 if test "X$HPUX_IA64_MODE" = X32; then
10594 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10596 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10602 hardcode_into_libs=yes
10603 dynamic_linker="$host_os dld.sl"
10604 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607 soname_spec='${libname}${release}${shared_ext}$major'
10608 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10613 dynamic_linker="$host_os dld.sl"
10614 shlibpath_var=SHLIB_PATH
10615 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10620 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10621 postinstall_cmds='chmod 555 $lib'
10622 # or fails outright, so override atomically:
10623 install_override_mode=555
10627 version_type=linux # correct to gnu/linux during the next big refactor
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10633 shlibpath_var=LD_LIBRARY_PATH
10634 shlibpath_overrides_runpath=no
10635 hardcode_into_libs=yes
10638 irix5* | irix6* | nonstopux*)
10640 nonstopux*) version_type=nonstopux ;;
10642 if test "$lt_cv_prog_gnu_ld" = yes; then
10643 version_type=linux # correct to gnu/linux during the next big refactor
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10653 irix5* | nonstopux*)
10654 libsuff= shlibsuff=
10657 case $LD in # libtool.m4 will add one of these switches to LD
10658 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10659 libsuff= shlibsuff= libmagic=32-bit;;
10660 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10661 libsuff=32 shlibsuff=N32 libmagic=N32;;
10662 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10663 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10664 *) libsuff= shlibsuff= libmagic=never-match;;
10668 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10669 shlibpath_overrides_runpath=no
10670 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10671 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10672 hardcode_into_libs=yes
10675 # No shared lib support for Linux oldld, aout, or coff.
10676 linux*oldld* | linux*aout* | linux*coff*)
10680 # This must be glibc/ELF.
10681 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10682 version_type=linux # correct to gnu/linux during the next big refactor
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 shlibpath_overrides_runpath=no
10691 # Some binutils ld are patched to set DT_RUNPATH
10692 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10693 $as_echo_n "(cached) " >&6
10695 lt_cv_shlibpath_overrides_runpath=no
10696 save_LDFLAGS=$LDFLAGS
10697 save_libdir=$libdir
10698 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10699 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10711 if ac_fn_c_try_link "$LINENO"; then :
10712 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10713 lt_cv_shlibpath_overrides_runpath=yes
10716 rm -f core conftest.err conftest.$ac_objext \
10717 conftest$ac_exeext conftest.$ac_ext
10718 LDFLAGS=$save_LDFLAGS
10719 libdir=$save_libdir
10723 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10725 # This implies no fast_install, which is unacceptable.
10726 # Some rework will be needed to allow for fast_install
10727 # before this can be enabled.
10728 hardcode_into_libs=yes
10730 # Append ld.so.conf contents to the search path
10731 if test -f /etc/ld.so.conf; then
10732 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' ' '`
10733 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10736 # We used to test for /lib/ld.so.1 and disable shared libraries on
10737 # powerpc, because MkLinux only supported shared libraries with the
10738 # GNU dynamic linker. Since this was broken with cross compilers,
10739 # most powerpc-linux boxes support dynamic linking these days and
10740 # people can always --disable-shared, the test was removed, and we
10741 # assume the GNU/Linux dynamic linker is in use.
10742 dynamic_linker='GNU/Linux ld.so'
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 shlibpath_var=LD_LIBRARY_PATH
10752 shlibpath_overrides_runpath=no
10753 hardcode_into_libs=yes
10754 dynamic_linker='NetBSD ld.elf_so'
10761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10764 dynamic_linker='NetBSD (a.out) ld.so'
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 dynamic_linker='NetBSD ld.elf_so'
10770 shlibpath_var=LD_LIBRARY_PATH
10771 shlibpath_overrides_runpath=yes
10772 hardcode_into_libs=yes
10776 version_type=linux # correct to gnu/linux during the next big refactor
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778 shlibpath_var=LD_LIBRARY_PATH
10779 shlibpath_overrides_runpath=yes
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 soname_spec='${libname}${release}${shared_ext}$major'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 shlibpath_overrides_runpath=no
10790 hardcode_into_libs=yes
10791 dynamic_linker='ldqnx.so'
10796 sys_lib_dlsearch_path_spec="/usr/lib"
10798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10800 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10801 *) need_version=no ;;
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10805 shlibpath_var=LD_LIBRARY_PATH
10806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10808 openbsd2.[89] | openbsd2.[89].*)
10809 shlibpath_overrides_runpath=no
10812 shlibpath_overrides_runpath=yes
10816 shlibpath_overrides_runpath=yes
10821 libname_spec='$name'
10824 library_names_spec='$libname${shared_ext} $libname.a'
10825 dynamic_linker='OS/2 ld.exe'
10826 shlibpath_var=LIBPATH
10829 osf3* | osf4* | osf5*)
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835 shlibpath_var=LD_LIBRARY_PATH
10836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10845 version_type=linux # correct to gnu/linux during the next big refactor
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 shlibpath_var=LD_LIBRARY_PATH
10851 shlibpath_overrides_runpath=yes
10852 hardcode_into_libs=yes
10853 # ldd complains unless libraries are executable
10854 postinstall_cmds='chmod +x $lib'
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=yes
10863 if test "$with_gnu_ld" = yes; then
10870 version_type=linux # correct to gnu/linux during the next big refactor
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 case $host_vendor in
10876 shlibpath_overrides_runpath=no
10878 runpath_var=LD_RUN_PATH
10886 shlibpath_overrides_runpath=no
10887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10893 if test -d /usr/nec ;then
10894 version_type=linux # correct to gnu/linux during the next big refactor
10895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10896 soname_spec='$libname${shared_ext}.$major'
10897 shlibpath_var=LD_LIBRARY_PATH
10901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10902 version_type=freebsd-elf
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=yes
10909 hardcode_into_libs=yes
10910 if test "$with_gnu_ld" = yes; then
10911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10920 sys_lib_dlsearch_path_spec='/usr/lib'
10924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10925 version_type=linux # correct to gnu/linux during the next big refactor
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 shlibpath_overrides_runpath=no
10931 hardcode_into_libs=yes
10935 version_type=linux # correct to gnu/linux during the next big refactor
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 shlibpath_var=LD_LIBRARY_PATH
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10946 $as_echo "$dynamic_linker" >&6; }
10947 test "$dynamic_linker" = no && can_build_shared=no
10949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10950 if test "$GCC" = yes; then
10951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10955 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10957 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10958 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11053 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11055 if test -n "$hardcode_libdir_flag_spec" ||
11056 test -n "$runpath_var" ||
11057 test "X$hardcode_automatic" = "Xyes" ; then
11059 # We can hardcode non-existent directories.
11060 if test "$hardcode_direct" != no &&
11061 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11062 # have to relink, otherwise we might link with an installed library
11063 # when we should be linking with a yet-to-be-installed one
11064 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11065 test "$hardcode_minus_L" != no; then
11066 # Linking always hardcodes the temporary library directory.
11067 hardcode_action=relink
11069 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11070 hardcode_action=immediate
11073 # We cannot hardcode anything, or else we can only hardcode existing
11075 hardcode_action=unsupported
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11078 $as_echo "$hardcode_action" >&6; }
11080 if test "$hardcode_action" = relink ||
11081 test "$inherit_rpath" = yes; then
11082 # Fast installation is not supported
11083 enable_fast_install=no
11084 elif test "$shlibpath_overrides_runpath" = yes ||
11085 test "$enable_shared" = no; then
11086 # Fast installation is not necessary
11087 enable_fast_install=needless
11095 if test "x$enable_dlopen" != xyes; then
11096 enable_dlopen=unknown
11097 enable_dlopen_self=unknown
11098 enable_dlopen_self_static=unknown
11105 lt_cv_dlopen="load_add_on"
11107 lt_cv_dlopen_self=yes
11110 mingw* | pw32* | cegcc*)
11111 lt_cv_dlopen="LoadLibrary"
11116 lt_cv_dlopen="dlopen"
11121 # if libdl is installed we need to link against it
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11123 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11124 if ${ac_cv_lib_dl_dlopen+:} false; then :
11125 $as_echo_n "(cached) " >&6
11127 ac_check_lib_save_LIBS=$LIBS
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11132 /* Override any GCC internal prototype to avoid an error.
11133 Use char because int might match the return type of a GCC
11134 builtin and then its argument prototype would still apply. */
11147 if ac_fn_c_try_link "$LINENO"; then :
11148 ac_cv_lib_dl_dlopen=yes
11150 ac_cv_lib_dl_dlopen=no
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11157 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11158 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11159 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11162 lt_cv_dlopen="dyld"
11164 lt_cv_dlopen_self=yes
11171 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11172 if test "x$ac_cv_func_shl_load" = xyes; then :
11173 lt_cv_dlopen="shl_load"
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11176 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11177 if ${ac_cv_lib_dld_shl_load+:} false; then :
11178 $as_echo_n "(cached) " >&6
11180 ac_check_lib_save_LIBS=$LIBS
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11195 return shl_load ();
11200 if ac_fn_c_try_link "$LINENO"; then :
11201 ac_cv_lib_dld_shl_load=yes
11203 ac_cv_lib_dld_shl_load=no
11205 rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207 LIBS=$ac_check_lib_save_LIBS
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11210 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11211 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11212 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11214 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11215 if test "x$ac_cv_func_dlopen" = xyes; then :
11216 lt_cv_dlopen="dlopen"
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11219 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11220 if ${ac_cv_lib_dl_dlopen+:} false; then :
11221 $as_echo_n "(cached) " >&6
11223 ac_check_lib_save_LIBS=$LIBS
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11228 /* Override any GCC internal prototype to avoid an error.
11229 Use char because int might match the return type of a GCC
11230 builtin and then its argument prototype would still apply. */
11243 if ac_fn_c_try_link "$LINENO"; then :
11244 ac_cv_lib_dl_dlopen=yes
11246 ac_cv_lib_dl_dlopen=no
11248 rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11254 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11258 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11259 if ${ac_cv_lib_svld_dlopen+:} false; then :
11260 $as_echo_n "(cached) " >&6
11262 ac_check_lib_save_LIBS=$LIBS
11263 LIBS="-lsvld $LIBS"
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h. */
11267 /* Override any GCC internal prototype to avoid an error.
11268 Use char because int might match the return type of a GCC
11269 builtin and then its argument prototype would still apply. */
11282 if ac_fn_c_try_link "$LINENO"; then :
11283 ac_cv_lib_svld_dlopen=yes
11285 ac_cv_lib_svld_dlopen=no
11287 rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
11289 LIBS=$ac_check_lib_save_LIBS
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11292 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11293 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11297 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11298 if ${ac_cv_lib_dld_dld_link+:} false; then :
11299 $as_echo_n "(cached) " >&6
11301 ac_check_lib_save_LIBS=$LIBS
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11316 return dld_link ();
11321 if ac_fn_c_try_link "$LINENO"; then :
11322 ac_cv_lib_dld_dld_link=yes
11324 ac_cv_lib_dld_dld_link=no
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11331 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11332 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11333 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11354 if test "x$lt_cv_dlopen" != xno; then
11360 case $lt_cv_dlopen in
11362 save_CPPFLAGS="$CPPFLAGS"
11363 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11365 save_LDFLAGS="$LDFLAGS"
11366 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11369 LIBS="$lt_cv_dlopen_libs $LIBS"
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11372 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11373 if ${lt_cv_dlopen_self+:} false; then :
11374 $as_echo_n "(cached) " >&6
11376 if test "$cross_compiling" = yes; then :
11377 lt_cv_dlopen_self=cross
11379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11380 lt_status=$lt_dlunknown
11381 cat > conftest.$ac_ext <<_LT_EOF
11382 #line $LINENO "configure"
11383 #include "confdefs.h"
11392 # define LT_DLGLOBAL RTLD_GLOBAL
11395 # define LT_DLGLOBAL DL_GLOBAL
11397 # define LT_DLGLOBAL 0
11401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11402 find out it does not work in some platform. */
11403 #ifndef LT_DLLAZY_OR_NOW
11405 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11408 # define LT_DLLAZY_OR_NOW DL_LAZY
11411 # define LT_DLLAZY_OR_NOW RTLD_NOW
11414 # define LT_DLLAZY_OR_NOW DL_NOW
11416 # define LT_DLLAZY_OR_NOW 0
11423 /* When -fvisbility=hidden is used, assume the code has been annotated
11424 correspondingly for the symbols needed. */
11425 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11426 int fnord () __attribute__((visibility("default")));
11429 int fnord () { return 42; }
11432 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11433 int status = $lt_dlunknown;
11437 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11440 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11441 else puts (dlerror ());
11443 /* dlclose (self); */
11451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11452 (eval $ac_link) 2>&5
11454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11455 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11456 (./conftest; exit; ) >&5 2>/dev/null
11458 case x$lt_status in
11459 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11460 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11461 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11464 # compilation failed
11465 lt_cv_dlopen_self=no
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11473 $as_echo "$lt_cv_dlopen_self" >&6; }
11475 if test "x$lt_cv_dlopen_self" = xyes; then
11476 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11478 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11479 if ${lt_cv_dlopen_self_static+:} false; then :
11480 $as_echo_n "(cached) " >&6
11482 if test "$cross_compiling" = yes; then :
11483 lt_cv_dlopen_self_static=cross
11485 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11486 lt_status=$lt_dlunknown
11487 cat > conftest.$ac_ext <<_LT_EOF
11488 #line $LINENO "configure"
11489 #include "confdefs.h"
11498 # define LT_DLGLOBAL RTLD_GLOBAL
11501 # define LT_DLGLOBAL DL_GLOBAL
11503 # define LT_DLGLOBAL 0
11507 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11508 find out it does not work in some platform. */
11509 #ifndef LT_DLLAZY_OR_NOW
11511 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11514 # define LT_DLLAZY_OR_NOW DL_LAZY
11517 # define LT_DLLAZY_OR_NOW RTLD_NOW
11520 # define LT_DLLAZY_OR_NOW DL_NOW
11522 # define LT_DLLAZY_OR_NOW 0
11529 /* When -fvisbility=hidden is used, assume the code has been annotated
11530 correspondingly for the symbols needed. */
11531 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11532 int fnord () __attribute__((visibility("default")));
11535 int fnord () { return 42; }
11538 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11539 int status = $lt_dlunknown;
11543 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11546 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11547 else puts (dlerror ());
11549 /* dlclose (self); */
11557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11558 (eval $ac_link) 2>&5
11560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11561 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11562 (./conftest; exit; ) >&5 2>/dev/null
11564 case x$lt_status in
11565 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11566 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11567 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11570 # compilation failed
11571 lt_cv_dlopen_self_static=no
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11579 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11582 CPPFLAGS="$save_CPPFLAGS"
11583 LDFLAGS="$save_LDFLAGS"
11588 case $lt_cv_dlopen_self in
11589 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11590 *) enable_dlopen_self=unknown ;;
11593 case $lt_cv_dlopen_self_static in
11594 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11595 *) enable_dlopen_self_static=unknown ;;
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11618 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11619 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11620 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11621 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; }
11625 # FIXME - insert some real tests, host_os isn't really good enough
11628 if test -n "$STRIP" ; then
11629 striplib="$STRIP -x"
11630 old_striplib="$STRIP -S"
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11632 $as_echo "yes" >&6; }
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11656 # Report which library types will actually be built
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11658 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11660 $as_echo "$can_build_shared" >&6; }
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11663 $as_echo_n "checking whether to build shared libraries... " >&6; }
11664 test "$can_build_shared" = "no" && enable_shared=no
11666 # On AIX, shared libraries and static libraries use the same namespace, and
11667 # are all built from PIC.
11670 test "$enable_shared" = yes && enable_static=no
11671 if test -n "$RANLIB"; then
11672 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11673 postinstall_cmds='$RANLIB $lib'
11678 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11679 test "$enable_shared" = yes && enable_static=no
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11684 $as_echo "$enable_shared" >&6; }
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11687 $as_echo_n "checking whether to build static libraries... " >&6; }
11688 # Make sure either enable_shared or enable_static is yes.
11689 test "$enable_shared" = yes || enable_static=yes
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11691 $as_echo "$enable_static" >&6; }
11698 ac_cpp='$CPP $CPPFLAGS'
11699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11719 ac_config_commands="$ac_config_commands libtool"
11724 # Only expand once:
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11729 $as_echo_n "checking for library containing strerror... " >&6; }
11730 if ${ac_cv_search_strerror+:} false; then :
11731 $as_echo_n "(cached) " >&6
11733 ac_func_search_save_LIBS=$LIBS
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11737 /* Override any GCC internal prototype to avoid an error.
11738 Use char because int might match the return type of a GCC
11739 builtin and then its argument prototype would still apply. */
11747 return strerror ();
11752 for ac_lib in '' cposix; do
11753 if test -z "$ac_lib"; then
11754 ac_res="none required"
11757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11759 if ac_fn_c_try_link "$LINENO"; then :
11760 ac_cv_search_strerror=$ac_res
11762 rm -f core conftest.err conftest.$ac_objext \
11764 if ${ac_cv_search_strerror+:} false; then :
11768 if ${ac_cv_search_strerror+:} false; then :
11771 ac_cv_search_strerror=no
11773 rm conftest.$ac_ext
11774 LIBS=$ac_func_search_save_LIBS
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11777 $as_echo "$ac_cv_search_strerror" >&6; }
11778 ac_res=$ac_cv_search_strerror
11779 if test "$ac_res" != no; then :
11780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11785 ac_cpp='$CPP $CPPFLAGS'
11786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11789 if test -n "$ac_tool_prefix"; then
11790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if ${ac_cv_prog_CC+:} false; then :
11795 $as_echo_n "(cached) " >&6
11797 if test -n "$CC"; then
11798 ac_cv_prog_CC="$CC" # Let the user override the test.
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 if test -n "$CC"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11820 $as_echo "$CC" >&6; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11828 if test -z "$ac_cv_prog_CC"; then
11830 # Extract the first word of "gcc", so it can be a program name with args.
11831 set dummy gcc; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11835 $as_echo_n "(cached) " >&6
11837 if test -n "$ac_ct_CC"; then
11838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11844 test -z "$as_dir" && as_dir=.
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11847 ac_cv_prog_ac_ct_CC="gcc"
11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11858 if test -n "$ac_ct_CC"; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11860 $as_echo "$ac_ct_CC" >&6; }
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11866 if test "x$ac_ct_CC" = x; then
11869 case $cross_compiling:$ac_tool_warned in
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11873 ac_tool_warned=yes ;;
11878 CC="$ac_cv_prog_CC"
11881 if test -z "$CC"; then
11882 if test -n "$ac_tool_prefix"; then
11883 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11884 set dummy ${ac_tool_prefix}cc; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 $as_echo_n "checking for $ac_word... " >&6; }
11887 if ${ac_cv_prog_CC+:} false; then :
11888 $as_echo_n "(cached) " >&6
11890 if test -n "$CC"; then
11891 ac_cv_prog_CC="$CC" # Let the user override the test.
11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894 for as_dir in $PATH
11897 test -z "$as_dir" && as_dir=.
11898 for ac_exec_ext in '' $ac_executable_extensions; do
11899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11900 ac_cv_prog_CC="${ac_tool_prefix}cc"
11901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11911 if test -n "$CC"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11913 $as_echo "$CC" >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11922 if test -z "$CC"; then
11923 # Extract the first word of "cc", so it can be a program name with args.
11924 set dummy cc; ac_word=$2
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11926 $as_echo_n "checking for $ac_word... " >&6; }
11927 if ${ac_cv_prog_CC+:} false; then :
11928 $as_echo_n "(cached) " >&6
11930 if test -n "$CC"; then
11931 ac_cv_prog_CC="$CC" # Let the user override the test.
11933 ac_prog_rejected=no
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $PATH
11938 test -z "$as_dir" && as_dir=.
11939 for ac_exec_ext in '' $ac_executable_extensions; do
11940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11941 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11942 ac_prog_rejected=yes
11946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11953 if test $ac_prog_rejected = yes; then
11954 # We found a bogon in the path, so make sure we never use it.
11955 set dummy $ac_cv_prog_CC
11957 if test $# != 0; then
11958 # We chose a different compiler from the bogus one.
11959 # However, it has the same basename, so the bogon will be chosen
11960 # first if we set CC to just the basename; use the full file name.
11962 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11968 if test -n "$CC"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11970 $as_echo "$CC" >&6; }
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11978 if test -z "$CC"; then
11979 if test -n "$ac_tool_prefix"; then
11980 for ac_prog in cl.exe
11982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11985 $as_echo_n "checking for $ac_word... " >&6; }
11986 if ${ac_cv_prog_CC+:} false; then :
11987 $as_echo_n "(cached) " >&6
11989 if test -n "$CC"; then
11990 ac_cv_prog_CC="$CC" # Let the user override the test.
11992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993 for as_dir in $PATH
11996 test -z "$as_dir" && as_dir=.
11997 for ac_exec_ext in '' $ac_executable_extensions; do
11998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 if test -n "$CC"; then
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12012 $as_echo "$CC" >&6; }
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015 $as_echo "no" >&6; }
12019 test -n "$CC" && break
12022 if test -z "$CC"; then
12024 for ac_prog in cl.exe
12026 # Extract the first word of "$ac_prog", so it can be a program name with args.
12027 set dummy $ac_prog; ac_word=$2
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029 $as_echo_n "checking for $ac_word... " >&6; }
12030 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12031 $as_echo_n "(cached) " >&6
12033 if test -n "$ac_ct_CC"; then
12034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037 for as_dir in $PATH
12040 test -z "$as_dir" && as_dir=.
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12043 ac_cv_prog_ac_ct_CC="$ac_prog"
12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12054 if test -n "$ac_ct_CC"; then
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12056 $as_echo "$ac_ct_CC" >&6; }
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12063 test -n "$ac_ct_CC" && break
12066 if test "x$ac_ct_CC" = x; then
12069 case $cross_compiling:$ac_tool_warned in
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12073 ac_tool_warned=yes ;;
12082 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12084 as_fn_error $? "no acceptable C compiler found in \$PATH
12085 See \`config.log' for more details" "$LINENO" 5; }
12087 # Provide some information about the compiler.
12088 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12091 for ac_option in --version -v -V -qversion; do
12092 { { ac_try="$ac_compiler $ac_option >&5"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12098 $as_echo "$ac_try_echo"; } >&5
12099 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12101 if test -s conftest.err; then
12103 ... rest of stderr output deleted ...
12104 10q' conftest.err >conftest.er1
12105 cat conftest.er1 >&5
12107 rm -f conftest.er1 conftest.err
12108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12109 test $ac_status = 0; }
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12113 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12114 if ${ac_cv_c_compiler_gnu+:} false; then :
12115 $as_echo_n "(cached) " >&6
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12131 if ac_fn_c_try_compile "$LINENO"; then :
12132 ac_compiler_gnu=yes
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12142 if test $ac_compiler_gnu = yes; then
12147 ac_test_CFLAGS=${CFLAGS+set}
12148 ac_save_CFLAGS=$CFLAGS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12151 if ${ac_cv_prog_cc_g+:} false; then :
12152 $as_echo_n "(cached) " >&6
12154 ac_save_c_werror_flag=$ac_c_werror_flag
12155 ac_c_werror_flag=yes
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12169 if ac_fn_c_try_compile "$LINENO"; then :
12170 ac_cv_prog_cc_g=yes
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h. */
12184 if ac_fn_c_try_compile "$LINENO"; then :
12187 ac_c_werror_flag=$ac_save_c_werror_flag
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12200 if ac_fn_c_try_compile "$LINENO"; then :
12201 ac_cv_prog_cc_g=yes
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208 ac_c_werror_flag=$ac_save_c_werror_flag
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12211 $as_echo "$ac_cv_prog_cc_g" >&6; }
12212 if test "$ac_test_CFLAGS" = set; then
12213 CFLAGS=$ac_save_CFLAGS
12214 elif test $ac_cv_prog_cc_g = yes; then
12215 if test "$GCC" = yes; then
12221 if test "$GCC" = yes; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12228 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12229 if ${ac_cv_prog_cc_c89+:} false; then :
12230 $as_echo_n "(cached) " >&6
12232 ac_cv_prog_cc_c89=no
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12236 #include <stdarg.h>
12239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12240 struct buf { int x; };
12241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12242 static char *e (p, i)
12248 static char *f (char * (*g) (char **, int), char **p, ...)
12253 s = g (p, va_arg (v,int));
12258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12259 function prototypes and stuff, but not '\xHH' hex character constants.
12260 These don't provoke an error unfortunately, instead are silently treated
12261 as 'x'. The following induces an error, until -std is added to get
12262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12263 array size at least. It's necessary to write '\x00'==0 to get something
12264 that's true only with -std. */
12265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12268 inside strings and character constants. */
12270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12272 int test (int i, double x);
12273 struct s1 {int (*f) (int a);};
12274 struct s2 {int (*f) (double a);};
12275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12289 CC="$ac_save_CC $ac_arg"
12290 if ac_fn_c_try_compile "$LINENO"; then :
12291 ac_cv_prog_cc_c89=$ac_arg
12293 rm -f core conftest.err conftest.$ac_objext
12294 test "x$ac_cv_prog_cc_c89" != "xno" && break
12296 rm -f conftest.$ac_ext
12301 case "x$ac_cv_prog_cc_c89" in
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12304 $as_echo "none needed" >&6; } ;;
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12307 $as_echo "unsupported" >&6; } ;;
12309 CC="$CC $ac_cv_prog_cc_c89"
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12313 if test "x$ac_cv_prog_cc_c89" != xno; then :
12318 ac_cpp='$CPP $CPPFLAGS'
12319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12323 depcc="$CC" am_compiler_list=
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12326 $as_echo_n "checking dependency style of $depcc... " >&6; }
12327 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12328 $as_echo_n "(cached) " >&6
12330 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12331 # We make a subdir and do the tests there. Otherwise we can end up
12332 # making bogus files that we don't know about and never remove. For
12333 # instance it was reported that on HP-UX the gcc test will end up
12334 # making a dummy file named 'D' -- because '-MD' means "put the output
12336 rm -rf conftest.dir
12338 # Copy depcomp to subdir because otherwise we won't find it if we're
12339 # using a relative directory.
12340 cp "$am_depcomp" conftest.dir
12342 # We will build objects and dependencies in a subdirectory because
12343 # it helps to detect inapplicable dependency modes. For instance
12344 # both Tru64's cc and ICC support -MD to output dependencies as a
12345 # side effect of compilation, but ICC will put the dependencies in
12346 # the current directory while Tru64 will put them in the object
12350 am_cv_CC_dependencies_compiler_type=none
12351 if test "$am_compiler_list" = ""; then
12352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12354 am__universal=false
12355 case " $depcc " in #(
12356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12359 for depmode in $am_compiler_list; do
12360 # Setup a source with many dependencies, because some compilers
12361 # like to wrap large dependency lists on column 80 (with \), and
12362 # we should not choose a depcomp mode which is confused by this.
12364 # We need to recreate these files for each test, as the compiler may
12365 # overwrite some of them when testing with obscure command lines.
12366 # This happens at least with the AIX C compiler.
12368 for i in 1 2 3 4 5 6; do
12369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12370 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12371 # Solaris 10 /bin/sh.
12372 echo '/* dummy */' > sub/conftst$i.h
12374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12376 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12377 # mode. It turns out that the SunPro C++ compiler does not properly
12378 # handle '-M -o', and we need to detect this. Also, some Intel
12379 # versions had trouble with output in subdirs.
12380 am__obj=sub/conftest.${OBJEXT-o}
12381 am__minus_obj="-o $am__obj"
12384 # This depmode causes a compiler race in universal mode.
12385 test "$am__universal" = false || continue
12388 # After this tag, mechanisms are not by side-effect, so they'll
12389 # only be used when explicitly requested.
12390 if test "x$enable_dependency_tracking" = xyes; then
12396 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12397 # This compiler won't grok '-c -o', but also, the minuso test has
12398 # not run yet. These depmodes are late enough in the game, and
12399 # so weak that their functioning should not be impacted.
12400 am__obj=conftest.${OBJEXT-o}
12405 if depmode=$depmode \
12406 source=sub/conftest.c object=$am__obj \
12407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12409 >/dev/null 2>conftest.err &&
12410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12414 # icc doesn't choke on unknown options, it will just issue warnings
12415 # or remarks (even with -Werror). So we grep stderr for any message
12416 # that says an option was ignored or not supported.
12417 # When given -MP, icc 7.0 and 7.1 complain thusly:
12418 # icc: Command line warning: ignoring option '-M'; no argument required
12419 # The diagnosis changed in icc 8.0:
12420 # icc: Command line remark: option '-MP' not supported
12421 if (grep 'ignoring option' conftest.err ||
12422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12423 am_cv_CC_dependencies_compiler_type=$depmode
12430 rm -rf conftest.dir
12432 am_cv_CC_dependencies_compiler_type=none
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12437 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12438 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12441 test "x$enable_dependency_tracking" != xno \
12442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12443 am__fastdepCC_TRUE=
12444 am__fastdepCC_FALSE='#'
12446 am__fastdepCC_TRUE='#'
12447 am__fastdepCC_FALSE=
12451 if test "x$CC" != xcc; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12453 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12456 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12458 set dummy $CC; ac_cc=`$as_echo "$2" |
12459 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12460 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12461 $as_echo_n "(cached) " >&6
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12474 # Make sure it works both with $CC and with simple cc.
12475 # We do the test twice because some compilers refuse to overwrite an
12476 # existing .o file with -o, though they will create one.
12477 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12479 if { { case "(($ac_try" in
12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12484 $as_echo "$ac_try_echo"; } >&5
12485 (eval "$ac_try") 2>&5
12487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12488 test $ac_status = 0; } &&
12489 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12494 $as_echo "$ac_try_echo"; } >&5
12495 (eval "$ac_try") 2>&5
12497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12498 test $ac_status = 0; };
12500 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12501 if test "x$CC" != xcc; then
12502 # Test first that cc exists at all.
12503 if { ac_try='cc -c conftest.$ac_ext >&5'
12504 { { case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12509 $as_echo "$ac_try_echo"; } >&5
12510 (eval "$ac_try") 2>&5
12512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513 test $ac_status = 0; }; }; then
12514 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12516 if { { case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12521 $as_echo "$ac_try_echo"; } >&5
12522 (eval "$ac_try") 2>&5
12524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12525 test $ac_status = 0; } &&
12526 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528 *) ac_try_echo=$ac_try;;
12530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12531 $as_echo "$ac_try_echo"; } >&5
12532 (eval "$ac_try") 2>&5
12534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12535 test $ac_status = 0; };
12540 # cc exists but doesn't like -o.
12541 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12546 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12548 rm -f core conftest*
12551 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12553 $as_echo "yes" >&6; }
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 $as_echo "no" >&6; }
12558 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12562 # FIXME: we rely on the cache variable name because
12563 # there is no other way.
12565 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12566 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12567 if test "$am_t" != yes; then
12568 # Losing compiler, so override with the script.
12569 # FIXME: It is wrong to rewrite CC.
12570 # But if we don't then we get into trouble of one sort or another.
12571 # A longer-term fix would be to have automake use am__CC in this case,
12572 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12573 CC="$am_aux_dir/compile $CC"
12578 # option to specify python interpreter to use; this just sets $PYTHON, so that
12579 # we will fallback to reading $PYTHON if --with-python is not given, and
12580 # python.m4 will get the expected input
12582 # Check whether --with-python was given.
12583 if test "${with_python+set}" = set; then :
12584 withval=$with_python; PYTHON="$withval"
12587 if test x"$PYTHON" = xyes; then
12588 as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12590 if test -n "$PYTHON" && ! which "$PYTHON"; then
12591 as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12594 # check that we have the minimum version of python necessary to build
12599 if test -n "$PYTHON"; then
12600 # If the user set $PYTHON, use it and don't search something else.
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
12602 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
12604 # split strings by '.' and convert to numeric. Append some zeros
12605 # because we need at least 4 digits for the hex conversion.
12606 # map returns an iterator in Python 3.0 and a list in 2.x
12607 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12609 # xrange is not present in Python 3.0 and range returns an iterator
12610 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12611 sys.exit(sys.hexversion < minverhex)"
12612 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12613 ($PYTHON -c "$prog") >&5 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; then :
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12618 $as_echo "yes" >&6; }
12620 as_fn_error $? "too old" "$LINENO" 5
12622 am_display_PYTHON=$PYTHON
12624 # Otherwise, try each interpreter until we find one that satisfies
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
12627 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
12628 if ${am_cv_pathless_PYTHON+:} false; then :
12629 $as_echo_n "(cached) " >&6
12632 for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
12633 test "$am_cv_pathless_PYTHON" = none && break
12635 # split strings by '.' and convert to numeric. Append some zeros
12636 # because we need at least 4 digits for the hex conversion.
12637 # map returns an iterator in Python 3.0 and a list in 2.x
12638 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12640 # xrange is not present in Python 3.0 and range returns an iterator
12641 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12642 sys.exit(sys.hexversion < minverhex)"
12643 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12644 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; then :
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12653 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12654 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12655 if test "$am_cv_pathless_PYTHON" = none; then
12658 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12659 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661 $as_echo_n "checking for $ac_word... " >&6; }
12662 if ${ac_cv_path_PYTHON+:} false; then :
12663 $as_echo_n "(cached) " >&6
12667 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
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_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12688 PYTHON=$ac_cv_path_PYTHON
12689 if test -n "$PYTHON"; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12691 $as_echo "$PYTHON" >&6; }
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12699 am_display_PYTHON=$am_cv_pathless_PYTHON
12703 if test "$PYTHON" = :; then
12704 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12709 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12710 if ${am_cv_python_version+:} false; then :
12711 $as_echo_n "(cached) " >&6
12713 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12716 $as_echo "$am_cv_python_version" >&6; }
12717 PYTHON_VERSION=$am_cv_python_version
12721 PYTHON_PREFIX='${prefix}'
12723 PYTHON_EXEC_PREFIX='${exec_prefix}'
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12728 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12729 if ${am_cv_python_platform+:} false; then :
12730 $as_echo_n "(cached) " >&6
12732 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12735 $as_echo "$am_cv_python_platform" >&6; }
12736 PYTHON_PLATFORM=$am_cv_python_platform
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12742 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12743 if ${am_cv_python_pythondir+:} false; then :
12744 $as_echo_n "(cached) " >&6
12746 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12747 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12750 $as_echo "$am_cv_python_pythondir" >&6; }
12751 pythondir=$am_cv_python_pythondir
12755 pkgpythondir=\${pythondir}/$PACKAGE
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12759 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12760 if ${am_cv_python_pyexecdir+:} false; then :
12761 $as_echo_n "(cached) " >&6
12763 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12764 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12767 $as_echo "$am_cv_python_pyexecdir" >&6; }
12768 pyexecdir=$am_cv_python_pyexecdir
12772 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12780 # check if we are building for python 3
12782 # split strings by '.' and convert to numeric. Append some zeros
12783 # because we need at least 4 digits for the hex conversion.
12784 # map returns an iterator in Python 3.0 and a list in 2.x
12785 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12787 # xrange is not present in Python 3.0 and range returns an iterator
12788 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12789 sys.exit(sys.hexversion < minverhex)"
12790 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12791 ($PYTHON -c "$prog") >&5 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; then :
12800 # if building for python 3 make sure we have the minimum version supported
12801 if test $build_py3k = true ; then
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12803 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
12805 # split strings by '.' and convert to numeric. Append some zeros
12806 # because we need at least 4 digits for the hex conversion.
12807 # map returns an iterator in Python 3.0 and a list in 2.x
12808 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
12810 # xrange is not present in Python 3.0 and range returns an iterator
12811 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12812 sys.exit(sys.hexversion < minverhex)"
12813 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12814 ($PYTHON -c "$prog") >&5 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; then :
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819 $as_echo "yes" >&6; }
12821 as_fn_error $? "too old" "$LINENO" 5
12825 # - 'SO' for PyPy, CPython 2.7-3.2
12826 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
12827 # - fallback to '.so'
12828 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');"`
12837 # Find any Python interpreter.
12838 if test -z "$PYTHON"; then
12839 for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
12841 # Extract the first word of "$ac_prog", so it can be a program name with args.
12842 set dummy $ac_prog; ac_word=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844 $as_echo_n "checking for $ac_word... " >&6; }
12845 if ${ac_cv_path_PYTHON+:} false; then :
12846 $as_echo_n "(cached) " >&6
12850 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854 for as_dir in $PATH
12857 test -z "$as_dir" && as_dir=.
12858 for ac_exec_ext in '' $ac_executable_extensions; do
12859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12860 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12871 PYTHON=$ac_cv_path_PYTHON
12872 if test -n "$PYTHON"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12874 $as_echo "$PYTHON" >&6; }
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12881 test -n "$PYTHON" && break
12883 test -n "$PYTHON" || PYTHON=":"
12886 am_display_PYTHON=python
12889 if test "$PYTHON" = :; then
12890 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12895 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12896 if ${am_cv_python_version+:} false; then :
12897 $as_echo_n "(cached) " >&6
12899 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12902 $as_echo "$am_cv_python_version" >&6; }
12903 PYTHON_VERSION=$am_cv_python_version
12907 PYTHON_PREFIX='${prefix}'
12909 PYTHON_EXEC_PREFIX='${exec_prefix}'
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12914 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12915 if ${am_cv_python_platform+:} false; then :
12916 $as_echo_n "(cached) " >&6
12918 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12921 $as_echo "$am_cv_python_platform" >&6; }
12922 PYTHON_PLATFORM=$am_cv_python_platform
12925 # Just factor out some code duplication.
12926 am_python_setup_sysconfig="\
12928 # Prefer sysconfig over distutils.sysconfig, for better compatibility
12929 # with python 3.x. See automake bug#10227.
12932 except ImportError:
12933 can_use_sysconfig = 0
12935 can_use_sysconfig = 1
12936 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12937 # <https://github.com/pypa/virtualenv/issues/118>
12939 from platform import python_implementation
12940 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12941 can_use_sysconfig = 0
12942 except ImportError:
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12947 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12948 if ${am_cv_python_pythondir+:} false; then :
12949 $as_echo_n "(cached) " >&6
12951 if test "x$prefix" = xNONE
12953 am_py_prefix=$ac_default_prefix
12955 am_py_prefix=$prefix
12957 am_cv_python_pythondir=`$PYTHON -c "
12958 $am_python_setup_sysconfig
12959 if can_use_sysconfig:
12960 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
12962 from distutils import sysconfig
12963 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
12964 sys.stdout.write(sitedir)"`
12965 case $am_cv_python_pythondir in
12967 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12968 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12971 case $am_py_prefix in
12974 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12982 $as_echo "$am_cv_python_pythondir" >&6; }
12983 pythondir=$am_cv_python_pythondir
12987 pkgpythondir=\${pythondir}/$PACKAGE
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12991 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12992 if ${am_cv_python_pyexecdir+:} false; then :
12993 $as_echo_n "(cached) " >&6
12995 if test "x$exec_prefix" = xNONE
12997 am_py_exec_prefix=$am_py_prefix
12999 am_py_exec_prefix=$exec_prefix
13001 am_cv_python_pyexecdir=`$PYTHON -c "
13002 $am_python_setup_sysconfig
13003 if can_use_sysconfig:
13004 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13006 from distutils import sysconfig
13007 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13008 sys.stdout.write(sitedir)"`
13009 case $am_cv_python_pyexecdir in
13010 $am_py_exec_prefix*)
13011 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13012 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13015 case $am_py_exec_prefix in
13018 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13026 $as_echo "$am_cv_python_pyexecdir" >&6; }
13027 pyexecdir=$am_cv_python_pyexecdir
13031 pkgpyexecdir=\${pyexecdir}/$PACKAGE
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13040 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13041 if test "x$PYTHON_INCLUDES" = x; then
13042 PYTHON_CONFIG=`which $PYTHON`-config
13043 if test -x "$PYTHON_CONFIG"; then
13044 PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13046 PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
13047 PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
13051 save_CPPFLAGS="$CPPFLAGS"
13052 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13055 #include <Python.h>
13057 if ac_fn_c_try_cpp "$LINENO"; then :
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13059 $as_echo "found" >&6; }
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13063 $as_echo "not found" >&6; }
13064 as_fn_error $? "Python headers not found" "$LINENO" 5
13066 rm -f conftest.err conftest.i conftest.$ac_ext
13067 CPPFLAGS="$save_CPPFLAGS"
13069 if test "x$os_win32" = "xyes"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13072 $as_echo_n "checking for libraries required to embed python... " >&6; }
13073 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13074 if test "x$PYTHON_LIBS" = x; then
13075 PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13077 if test "x$PYTHON_LIB_LOC" = x; then
13078 PYTHON_LIB_LOC="${py_prefix}/lib"
13083 LIBS="$LIBS $PYTHON_LIBS"
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13087 /* Override any GCC internal prototype to avoid an error.
13088 Use char because int might match the return type of a GCC
13089 builtin and then its argument prototype would still apply. */
13093 char Py_Initialize ();
13097 return Py_Initialize ();
13102 if ac_fn_c_try_link "$LINENO"; then :
13103 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104 $as_echo "yes" >&6; };
13106 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
13109 rm -f core conftest.err conftest.$ac_objext \
13110 conftest$ac_exeext conftest.$ac_ext
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13116 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13117 old_CPPFLAGS=$CPPFLAGS
13118 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h. */
13121 #include <Python.h>
13125 PySignal_SetWakeupFd(0);
13130 if ac_fn_c_try_compile "$LINENO"; then :
13135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13137 $as_echo "$setwakeupfd_ok" >&6; }
13138 if test "x$setwakeupfd_ok" != xno; then
13140 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13143 CPPFLAGS=$old_CPPFLAGS
13145 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13148 # Check whether --enable-thread was given.
13149 if test "${enable_thread+set}" = set; then :
13150 enableval=$enable_thread;
13157 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13159 $as_echo_n "checking for python module thread... " >&6; }
13160 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13161 $as_echo_n "(cached) " >&6
13168 except ImportError:
13173 if $PYTHON -c "$prog" 1>&5 2>&5
13175 eval "py_cv_mod_$py_mod_var=yes"
13177 eval "py_cv_mod_$py_mod_var=no"
13182 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13183 if test "x$py_val" != xno; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185 $as_echo "yes" >&6; }
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13189 enable_thread=check_for_py3_module
13192 if test "x$enable_thread" = xcheck_for_py3_module; then
13194 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13196 $as_echo_n "checking for python module _thread... " >&6; }
13197 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13198 $as_echo_n "(cached) " >&6
13205 except ImportError:
13210 if $PYTHON -c "$prog" 1>&5 2>&5
13212 eval "py_cv_mod_$py_mod_var=yes"
13214 eval "py_cv_mod_$py_mod_var=no"
13219 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13220 if test "x$py_val" != xno; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13222 $as_echo "yes" >&6; }
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13233 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13234 if test "x$enable_thread" != xno; then
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13238 $as_echo "yes" >&6; }
13241 THREADING_CFLAGS="-DDISABLE_THREADING"
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13246 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13248 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13250 # Check whether --enable-glibtest was given.
13251 if test "${enable_glibtest+set}" = set; then :
13252 enableval=$enable_glibtest;
13254 enable_glibtest=yes
13258 pkg_config_args=glib-2.0
13259 for module in . gobject $extra_mods
13263 pkg_config_args="$pkg_config_args gmodule-2.0"
13266 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13269 pkg_config_args="$pkg_config_args gobject-2.0"
13272 pkg_config_args="$pkg_config_args gthread-2.0"
13275 pkg_config_args="$pkg_config_args $module-2.0"
13287 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13288 if test -n "$ac_tool_prefix"; then
13289 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13290 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292 $as_echo_n "checking for $ac_word... " >&6; }
13293 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13294 $as_echo_n "(cached) " >&6
13296 case $PKG_CONFIG in
13298 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13305 test -z "$as_dir" && as_dir=.
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13308 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13319 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13320 if test -n "$PKG_CONFIG"; then
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13322 $as_echo "$PKG_CONFIG" >&6; }
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 $as_echo "no" >&6; }
13330 if test -z "$ac_cv_path_PKG_CONFIG"; then
13331 ac_pt_PKG_CONFIG=$PKG_CONFIG
13332 # Extract the first word of "pkg-config", so it can be a program name with args.
13333 set dummy pkg-config; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13337 $as_echo_n "(cached) " >&6
13339 case $ac_pt_PKG_CONFIG in
13341 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13348 test -z "$as_dir" && as_dir=.
13349 for ac_exec_ext in '' $ac_executable_extensions; do
13350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13362 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13363 if test -n "$ac_pt_PKG_CONFIG"; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13365 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13371 if test "x$ac_pt_PKG_CONFIG" = x; then
13374 case $cross_compiling:$ac_tool_warned in
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13378 ac_tool_warned=yes ;;
13380 PKG_CONFIG=$ac_pt_PKG_CONFIG
13383 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13387 if test -n "$PKG_CONFIG"; then
13388 _pkg_min_version=0.16
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13390 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13391 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13393 $as_echo "yes" >&6; }
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13403 if test "x$PKG_CONFIG" = x ; then
13408 min_glib_version=2.35.9
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13410 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13412 if test x$PKG_CONFIG != xno ; then
13413 ## don't try to run the test against uninstalled libtool libs
13414 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13415 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13419 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13426 if test x"$no_glib" = x ; then
13427 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13428 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13429 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13430 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13432 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13433 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13434 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13435 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13436 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13437 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13438 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13439 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13440 if test "x$enable_glibtest" = "xyes" ; then
13441 ac_save_CFLAGS="$CFLAGS"
13442 ac_save_LIBS="$LIBS"
13443 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13444 LIBS="$GLIB_LIBS $LIBS"
13445 rm -f conf.glibtest
13446 if test "$cross_compiling" = yes; then :
13447 echo $ac_n "cross compiling; assumed OK... $ac_c"
13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h. */
13454 #include <stdlib.h>
13459 unsigned int major, minor, micro;
13462 fclose (fopen ("conf.glibtest", "w"));
13464 /* HP/UX 9 (%@#!) writes to sscanf strings */
13465 tmp_version = g_strdup("$min_glib_version");
13466 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
13467 printf("%s, bad version string\n", "$min_glib_version");
13471 if ((glib_major_version != $glib_config_major_version) ||
13472 (glib_minor_version != $glib_config_minor_version) ||
13473 (glib_micro_version != $glib_config_micro_version))
13475 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13476 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13477 glib_major_version, glib_minor_version, glib_micro_version);
13478 printf ("*** was found! If pkg-config was correct, then it is best\n");
13479 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13480 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13481 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13482 printf("*** required on your system.\n");
13483 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13484 printf("*** to point to the correct configuration files\n");
13486 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13487 (glib_minor_version != GLIB_MINOR_VERSION) ||
13488 (glib_micro_version != GLIB_MICRO_VERSION))
13490 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13491 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13492 printf("*** library (version %d.%d.%d)\n",
13493 glib_major_version, glib_minor_version, glib_micro_version);
13497 if ((glib_major_version > major) ||
13498 ((glib_major_version == major) && (glib_minor_version > minor)) ||
13499 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13505 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13506 glib_major_version, glib_minor_version, glib_micro_version);
13507 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13508 major, minor, micro);
13509 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13511 printf("*** If you have already installed a sufficiently new version, this error\n");
13512 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13513 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13514 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13515 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13516 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13517 printf("*** so that the correct libraries are found at run-time))\n");
13524 if ac_fn_c_try_run "$LINENO"; then :
13529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13530 conftest.$ac_objext conftest.beam conftest.$ac_ext
13533 CFLAGS="$ac_save_CFLAGS"
13534 LIBS="$ac_save_LIBS"
13537 if test "x$no_glib" = x ; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13539 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13544 if test "$PKG_CONFIG" = "no" ; then
13545 echo "*** A new enough version of pkg-config was not found."
13546 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13548 if test -f conf.glibtest ; then
13551 echo "*** Could not run GLIB test program, checking why..."
13552 ac_save_CFLAGS="$CFLAGS"
13553 ac_save_LIBS="$LIBS"
13554 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13555 LIBS="$LIBS $GLIB_LIBS"
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13565 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13570 if ac_fn_c_try_link "$LINENO"; then :
13571 echo "*** The test program compiled, but did not run. This usually means"
13572 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13573 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13574 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13575 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13576 echo "*** is required on your system"
13578 echo "*** If you have an old version installed, it is best to remove it, although"
13579 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13581 echo "*** The test program failed to compile or link. See the file config.log for the"
13582 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13584 rm -f core conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13586 CFLAGS="$ac_save_CFLAGS"
13587 LIBS="$ac_save_LIBS"
13595 GLIB_COMPILE_RESOURCES=""
13596 as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13604 rm -f conf.glibtest
13606 if test -n "$export_dynamic"; then
13607 GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13609 PYTHON_BASENAME=`basename $PYTHON`
13616 prefix_save=$prefix
13617 exec_prefix_save=$exec_prefix
13619 if test "x$prefix" = "xNONE"; then
13620 prefix=$ac_default_prefix
13622 if test "x$exec_prefix" = "xNONE"; then
13623 exec_prefix=$prefix
13626 full_var="$FROM_VAR"
13628 new_full_var="`eval echo $full_var`"
13629 if test "x$new_full_var"="x$full_var"; then break; fi
13630 full_var=$new_full_var
13633 full_var=$new_full_var
13634 DATADIR="$full_var"
13637 prefix=$prefix_save
13638 exec_prefix=$exec_prefix_save
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi" >&5
13642 $as_echo_n "checking for ffi... " >&6; }
13644 # Check whether --with-ffi was given.
13645 if test "${with_ffi+set}" = set; then :
13646 withval=$with_ffi; with_libffi=$withval
13651 if test x"$with_libffi" = xno ; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13657 $as_echo_n "checking for FFI... " >&6; }
13659 if test -n "$FFI_CFLAGS"; then
13660 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13661 elif test -n "$PKG_CONFIG"; then
13662 if test -n "$PKG_CONFIG" && \
13663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13664 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13667 test $ac_status = 0; }; then
13668 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
13669 test "x$?" != "x0" && pkg_failed=yes
13676 if test -n "$FFI_LIBS"; then
13677 pkg_cv_FFI_LIBS="$FFI_LIBS"
13678 elif test -n "$PKG_CONFIG"; then
13679 if test -n "$PKG_CONFIG" && \
13680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13681 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13684 test $ac_status = 0; }; then
13685 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
13686 test "x$?" != "x0" && pkg_failed=yes
13696 if test $pkg_failed = yes; then
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698 $as_echo "no" >&6; }
13700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13701 _pkg_short_errors_supported=yes
13703 _pkg_short_errors_supported=no
13705 if test $_pkg_short_errors_supported = yes; then
13706 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13708 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13710 # Put the nasty error message in config.log where it belongs
13711 echo "$FFI_PKG_ERRORS" >&5
13714 elif test $pkg_failed = untried; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 $as_echo "no" >&6; }
13719 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13720 FFI_LIBS=$pkg_cv_FFI_LIBS
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13722 $as_echo "yes" >&6; }
13726 if test x"$with_libffi" = xyes && test x"$have_libffi" = xno ; then
13727 as_fn_error $? "ffi requested, but not found" "$LINENO" 5
13729 if test x"$have_libffi" = xyes; then
13732 if test "$have_libffi" = "yes"; then
13734 HAVE_LIBFFI_FALSE='#'
13736 HAVE_LIBFFI_TRUE='#'
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13747 $as_echo_n "checking for GIO... " >&6; }
13749 if test -n "$GIO_CFLAGS"; then
13750 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13751 elif test -n "$PKG_CONFIG"; then
13752 if test -n "$PKG_CONFIG" && \
13753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.35.9\""; } >&5
13754 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.35.9") 2>&5
13756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13757 test $ac_status = 0; }; then
13758 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.35.9" 2>/dev/null`
13759 test "x$?" != "x0" && pkg_failed=yes
13766 if test -n "$GIO_LIBS"; then
13767 pkg_cv_GIO_LIBS="$GIO_LIBS"
13768 elif test -n "$PKG_CONFIG"; then
13769 if test -n "$PKG_CONFIG" && \
13770 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.35.9\""; } >&5
13771 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.35.9") 2>&5
13773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13774 test $ac_status = 0; }; then
13775 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.35.9" 2>/dev/null`
13776 test "x$?" != "x0" && pkg_failed=yes
13786 if test $pkg_failed = yes; then
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13790 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13791 _pkg_short_errors_supported=yes
13793 _pkg_short_errors_supported=no
13795 if test $_pkg_short_errors_supported = yes; then
13796 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.35.9" 2>&1`
13798 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.35.9" 2>&1`
13800 # Put the nasty error message in config.log where it belongs
13801 echo "$GIO_PKG_ERRORS" >&5
13803 as_fn_error $? "Package requirements (gio-2.0 >= 2.35.9) were not met:
13807 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13808 installed software in a non-standard prefix.
13810 Alternatively, you may set the environment variables GIO_CFLAGS
13811 and GIO_LIBS to avoid the need to call pkg-config.
13812 See the pkg-config man page for more details." "$LINENO" 5
13813 elif test $pkg_failed = untried; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815 $as_echo "no" >&6; }
13816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13818 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13819 is in your PATH or set the PKG_CONFIG environment variable to the full
13820 path to pkg-config.
13822 Alternatively, you may set the environment variables GIO_CFLAGS
13823 and GIO_LIBS to avoid the need to call pkg-config.
13824 See the pkg-config man page for more details.
13826 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13827 See \`config.log' for more details" "$LINENO" 5; }
13829 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13830 GIO_LIBS=$pkg_cv_GIO_LIBS
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13832 $as_echo "yes" >&6; }
13836 # Check whether --enable-cairo was given.
13837 if test "${enable_cairo+set}" = set; then :
13838 enableval=$enable_cairo; enable_cairo=$enableval
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13847 $as_echo_n "checking for GI... " >&6; }
13849 if test -n "$GI_CFLAGS"; then
13850 pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13851 elif test -n "$PKG_CONFIG"; then
13852 if test -n "$PKG_CONFIG" && \
13853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.35.9
13854 gobject-introspection-1.0 >= 1.35.9
13856 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.35.9
13857 gobject-introspection-1.0 >= 1.35.9
13860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13861 test $ac_status = 0; }; then
13862 pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.35.9
13863 gobject-introspection-1.0 >= 1.35.9
13865 test "x$?" != "x0" && pkg_failed=yes
13872 if test -n "$GI_LIBS"; then
13873 pkg_cv_GI_LIBS="$GI_LIBS"
13874 elif test -n "$PKG_CONFIG"; then
13875 if test -n "$PKG_CONFIG" && \
13876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.35.9
13877 gobject-introspection-1.0 >= 1.35.9
13879 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.35.9
13880 gobject-introspection-1.0 >= 1.35.9
13883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13884 test $ac_status = 0; }; then
13885 pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.35.9
13886 gobject-introspection-1.0 >= 1.35.9
13888 test "x$?" != "x0" && pkg_failed=yes
13898 if test $pkg_failed = yes; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900 $as_echo "no" >&6; }
13902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13903 _pkg_short_errors_supported=yes
13905 _pkg_short_errors_supported=no
13907 if test $_pkg_short_errors_supported = yes; then
13908 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.35.9
13909 gobject-introspection-1.0 >= 1.35.9
13912 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.35.9
13913 gobject-introspection-1.0 >= 1.35.9
13916 # Put the nasty error message in config.log where it belongs
13917 echo "$GI_PKG_ERRORS" >&5
13919 as_fn_error $? "Package requirements (glib-2.0 >= 2.35.9
13920 gobject-introspection-1.0 >= 1.35.9
13925 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13926 installed software in a non-standard prefix.
13928 Alternatively, you may set the environment variables GI_CFLAGS
13929 and GI_LIBS to avoid the need to call pkg-config.
13930 See the pkg-config man page for more details." "$LINENO" 5
13931 elif test $pkg_failed = untried; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 $as_echo "no" >&6; }
13934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13936 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13937 is in your PATH or set the PKG_CONFIG environment variable to the full
13938 path to pkg-config.
13940 Alternatively, you may set the environment variables GI_CFLAGS
13941 and GI_LIBS to avoid the need to call pkg-config.
13942 See the pkg-config man page for more details.
13944 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13945 See \`config.log' for more details" "$LINENO" 5; }
13947 GI_CFLAGS=$pkg_cv_GI_CFLAGS
13948 GI_LIBS=$pkg_cv_GI_LIBS
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13950 $as_echo "yes" >&6; }
13954 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13957 if test "$enable_cairo" != no; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13961 $as_echo_n "checking for CAIRO... " >&6; }
13963 if test -n "$CAIRO_CFLAGS"; then
13964 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13965 elif test -n "$PKG_CONFIG"; then
13966 if test -n "$PKG_CONFIG" && \
13967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13968 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13971 test $ac_status = 0; }; then
13972 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13973 test "x$?" != "x0" && pkg_failed=yes
13980 if test -n "$CAIRO_LIBS"; then
13981 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13982 elif test -n "$PKG_CONFIG"; then
13983 if test -n "$PKG_CONFIG" && \
13984 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13985 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13988 test $ac_status = 0; }; then
13989 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13990 test "x$?" != "x0" && pkg_failed=yes
14000 if test $pkg_failed = yes; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002 $as_echo "no" >&6; }
14004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14005 _pkg_short_errors_supported=yes
14007 _pkg_short_errors_supported=no
14009 if test $_pkg_short_errors_supported = yes; then
14010 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14012 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14014 # Put the nasty error message in config.log where it belongs
14015 echo "$CAIRO_PKG_ERRORS" >&5
14017 as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14021 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14022 installed software in a non-standard prefix.
14024 Alternatively, you may set the environment variables CAIRO_CFLAGS
14025 and CAIRO_LIBS to avoid the need to call pkg-config.
14026 See the pkg-config man page for more details." "$LINENO" 5
14027 elif test $pkg_failed = untried; then
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029 $as_echo "no" >&6; }
14030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14032 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14033 is in your PATH or set the PKG_CONFIG environment variable to the full
14034 path to pkg-config.
14036 Alternatively, you may set the environment variables CAIRO_CFLAGS
14037 and CAIRO_LIBS to avoid the need to call pkg-config.
14038 See the pkg-config man page for more details.
14040 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14041 See \`config.log' for more details" "$LINENO" 5; }
14043 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14044 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14046 $as_echo "yes" >&6; }
14050 if test $build_py3k = true; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14054 $as_echo_n "checking for PYCAIRO... " >&6; }
14056 if test -n "$PYCAIRO_CFLAGS"; then
14057 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14058 elif test -n "$PKG_CONFIG"; then
14059 if test -n "$PKG_CONFIG" && \
14060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14062 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; }; then
14067 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14069 test "x$?" != "x0" && pkg_failed=yes
14076 if test -n "$PYCAIRO_LIBS"; then
14077 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14078 elif test -n "$PKG_CONFIG"; then
14079 if test -n "$PKG_CONFIG" && \
14080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14082 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14086 test $ac_status = 0; }; then
14087 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14089 test "x$?" != "x0" && pkg_failed=yes
14099 if test $pkg_failed = yes; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14103 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14104 _pkg_short_errors_supported=yes
14106 _pkg_short_errors_supported=no
14108 if test $_pkg_short_errors_supported = yes; then
14109 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14112 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14115 # Put the nasty error message in config.log where it belongs
14116 echo "$PYCAIRO_PKG_ERRORS" >&5
14118 as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14121 $PYCAIRO_PKG_ERRORS
14123 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14124 installed software in a non-standard prefix.
14126 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14127 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14128 See the pkg-config man page for more details." "$LINENO" 5
14129 elif test $pkg_failed = untried; then
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14134 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14135 is in your PATH or set the PKG_CONFIG environment variable to the full
14136 path to pkg-config.
14138 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14139 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14140 See the pkg-config man page for more details.
14142 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14143 See \`config.log' for more details" "$LINENO" 5; }
14145 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14146 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14148 $as_echo "yes" >&6; }
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14155 $as_echo_n "checking for PYCAIRO... " >&6; }
14157 if test -n "$PYCAIRO_CFLAGS"; then
14158 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14159 elif test -n "$PKG_CONFIG"; then
14160 if test -n "$PKG_CONFIG" && \
14161 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14163 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14167 test $ac_status = 0; }; then
14168 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14170 test "x$?" != "x0" && pkg_failed=yes
14177 if test -n "$PYCAIRO_LIBS"; then
14178 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14179 elif test -n "$PKG_CONFIG"; then
14180 if test -n "$PKG_CONFIG" && \
14181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14183 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14187 test $ac_status = 0; }; then
14188 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14190 test "x$?" != "x0" && pkg_failed=yes
14200 if test $pkg_failed = yes; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14202 $as_echo "no" >&6; }
14204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14205 _pkg_short_errors_supported=yes
14207 _pkg_short_errors_supported=no
14209 if test $_pkg_short_errors_supported = yes; then
14210 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14213 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14216 # Put the nasty error message in config.log where it belongs
14217 echo "$PYCAIRO_PKG_ERRORS" >&5
14219 as_fn_error $? "Package requirements (pycairo >= 1.2.0
14222 $PYCAIRO_PKG_ERRORS
14224 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14225 installed software in a non-standard prefix.
14227 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14228 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14229 See the pkg-config man page for more details." "$LINENO" 5
14230 elif test $pkg_failed = untried; then
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14235 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14236 is in your PATH or set the PKG_CONFIG environment variable to the full
14237 path to pkg-config.
14239 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14240 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14241 See the pkg-config man page for more details.
14243 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14244 See \`config.log' for more details" "$LINENO" 5; }
14246 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14247 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249 $as_echo "yes" >&6; }
14254 if test "$enable_cairo" = "yes"; then
14256 ENABLE_CAIRO_FALSE='#'
14258 ENABLE_CAIRO_TRUE='#'
14259 ENABLE_CAIRO_FALSE=
14263 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14264 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14269 # compiler warnings, errors, required cflags, and code coverage support
14272 # Check whether --enable-compile-warnings was given.
14273 if test "${enable_compile_warnings+set}" = set; then :
14274 enableval=$enable_compile_warnings;
14276 enable_compile_warnings="maximum"
14280 if test "x$GCC" != xyes; then
14281 enable_compile_warnings=no
14285 realsave_CFLAGS="$CFLAGS"
14287 base_warn_flags=" \
14289 -Wstrict-prototypes \
14293 base_error_flags=" \
14294 -Werror=missing-prototypes \
14295 -Werror=implicit-function-declaration \
14296 -Werror=pointer-arith \
14297 -Werror=init-self \
14298 -Werror=format-security \
14300 -Werror=missing-include-dirs \
14303 case "$enable_compile_warnings" in
14308 warning_flags="-Wall"
14311 warning_flags="$base_warn_flags $base_error_flags"
14314 warning_flags="$base_warn_flags $base_error_flags"
14317 as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14321 if test "$enable_compile_warnings" = "error" ; then
14322 warning_flags="$warning_flags -Werror"
14325 for option in $warning_flags; do
14326 save_CFLAGS="$CFLAGS"
14327 CFLAGS="$CFLAGS $option"
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14329 $as_echo_n "checking whether gcc understands $option... " >&6; }
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14341 if ac_fn_c_try_compile "$LINENO"; then :
14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 CFLAGS="$save_CFLAGS"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14349 $as_echo "$has_option" >&6; }
14350 if test $has_option = yes; then
14351 tested_warning_flags="$tested_warning_flags $option"
14357 CFLAGS="$realsave_CFLAGS"
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14359 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14361 $as_echo "$tested_warning_flags" >&6; }
14363 # Check whether --enable-iso-c was given.
14364 if test "${enable_iso_c+set}" = set; then :
14365 enableval=$enable_iso_c;
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14372 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14374 if test "x$enable_iso_c" != "xno"; then
14375 if test "x$GCC" = "xyes"; then
14376 case " $CFLAGS " in
14377 *\ \ -ansi\ \ *) ;;
14378 *) complCFLAGS="$complCFLAGS -ansi" ;;
14380 case " $CFLAGS " in
14381 *\ \ -pedantic\ \ *) ;;
14382 *) complCFLAGS="$complCFLAGS -pedantic" ;;
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14387 $as_echo "$complCFLAGS" >&6; }
14389 WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14393 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14395 $as_echo "yes" >&6; }
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14398 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14399 # Check whether --enable-code-coverage was given.
14400 if test "${enable_code_coverage+set}" = set; then :
14401 enableval=$enable_code_coverage;
14403 enable_code_coverage=no
14406 if test x$enable_code_coverage = xyes; then
14407 CODE_COVERAGE_ENABLED_TRUE=
14408 CODE_COVERAGE_ENABLED_FALSE='#'
14410 CODE_COVERAGE_ENABLED_TRUE='#'
14411 CODE_COVERAGE_ENABLED_FALSE=
14414 CODE_COVERAGE_ENABLED=$enable_code_coverage
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14417 $as_echo "$enable_code_coverage" >&6; }
14419 if test "$enable_code_coverage" = "yes" ; then :
14421 if test "$GCC" = "no" ; then :
14423 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14427 # List of supported lcov versions.
14428 lcov_version_list="1.6 1.7 1.8 1.9 1.10"
14430 # Extract the first word of "lcov", so it can be a program name with args.
14431 set dummy lcov; ac_word=$2
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14433 $as_echo_n "checking for $ac_word... " >&6; }
14434 if ${ac_cv_prog_LCOV+:} false; then :
14435 $as_echo_n "(cached) " >&6
14437 if test -n "$LCOV"; then
14438 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14447 ac_cv_prog_LCOV="lcov"
14448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14457 LCOV=$ac_cv_prog_LCOV
14458 if test -n "$LCOV"; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14460 $as_echo "$LCOV" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463 $as_echo "no" >&6; }
14467 # Extract the first word of "genhtml", so it can be a program name with args.
14468 set dummy genhtml; ac_word=$2
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14470 $as_echo_n "checking for $ac_word... " >&6; }
14471 if ${ac_cv_prog_GENHTML+:} false; then :
14472 $as_echo_n "(cached) " >&6
14474 if test -n "$GENHTML"; then
14475 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14478 for as_dir in $PATH
14481 test -z "$as_dir" && as_dir=.
14482 for ac_exec_ext in '' $ac_executable_extensions; do
14483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14484 ac_cv_prog_GENHTML="genhtml"
14485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14494 GENHTML=$ac_cv_prog_GENHTML
14495 if test -n "$GENHTML"; then
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14497 $as_echo "$GENHTML" >&6; }
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14500 $as_echo "no" >&6; }
14505 if test "$LCOV" ; then :
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14508 $as_echo_n "checking for lcov version... " >&6; }
14509 if ${gnome_cv_lcov_version+:} false; then :
14510 $as_echo_n "(cached) " >&6
14513 gnome_cv_lcov_version=invalid
14514 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14515 for lcov_check_version in $lcov_version_list; do
14516 if test "$lcov_version" = "$lcov_check_version"; then
14517 gnome_cv_lcov_version="$lcov_check_version (ok)"
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_cv_lcov_version" >&5
14523 $as_echo "$gnome_cv_lcov_version" >&6; }
14527 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14528 as_fn_error $? "$lcov_msg" "$LINENO" 5
14532 case $gnome_cv_lcov_version in
14534 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14535 as_fn_error $? "$lcov_msg" "$LINENO" 5
14540 if test -z "$GENHTML" ; then :
14542 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14546 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14547 CODE_COVERAGE_LDFLAGS="-lgcov"
14554 GNOME_CODE_COVERAGE_RULES='
14558 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14559 # (Default: $(top_builddir))
14560 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14561 # by lcov for code coverage. (Default:
14562 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14563 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14564 # reports to be created. (Default:
14565 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14566 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14568 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14569 # instance. (Default: empty)
14570 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
14572 # The generated report will be titled using the $(PACKAGE_NAME) and
14573 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14574 # use the git-version-gen script, available online.
14576 # Optional variables
14577 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14578 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14579 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14580 CODE_COVERAGE_LCOV_OPTIONS ?=
14581 CODE_COVERAGE_GENHTML_OPTIONS ?=
14582 CODE_COVERAGE_IGNORE_PATTERN ?=
14584 code_coverage_quiet = $(code_coverage_quiet_$(V))
14585 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
14586 code_coverage_quiet_0 = --quiet
14588 # Use recursive makes in order to ignore errors during check
14589 check-code-coverage:
14590 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14591 -$(MAKE) $(AM_MAKEFLAGS) -k check
14592 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14594 @echo "Need to reconfigure with --enable-code-coverage"
14597 # Capture code coverage data
14598 code-coverage-capture: code-coverage-capture-hook
14599 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14600 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
14601 $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
14602 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14603 LANG=C $(GENHTML) $(code_coverage_quiet) --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)
14604 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14606 @echo "Need to reconfigure with --enable-code-coverage"
14609 # Hook rule executed before code-coverage-capture, overridable by the user
14610 code-coverage-capture-hook:
14612 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14613 clean: code-coverage-clean
14614 code-coverage-clean:
14615 -$(LCOV) --directory $(top_builddir) -z
14616 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14617 -find . -name "*.gcda" -o -name "*.gcov" -delete
14621 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14623 DISTCHECK_CONFIGURE_FLAGS ?=
14624 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14626 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14633 if test "x$GCC" = "xyes"; then
14635 case " $CFLAGS " in
14636 *[\ \ ]-Wall[\ \ ]*)
14639 save_CFLAGS="$CFLAGS"
14640 CFLAGS="$CFLAGS -Wall"
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14642 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14654 if ac_fn_c_try_compile "$LINENO"; then :
14659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14661 $as_echo "$jh_has_option" >&6; }
14662 if test $jh_has_option = no; then
14663 CFLAGS="$save_CFLAGS"
14668 case " $CFLAGS " in
14669 *[\ \ ]-Werror=unused-variable[\ \ ]*)
14672 save_CFLAGS="$CFLAGS"
14673 CFLAGS="$CFLAGS -Werror=unused-variable"
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14675 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14687 if ac_fn_c_try_compile "$LINENO"; then :
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14694 $as_echo "$jh_has_option" >&6; }
14695 if test $jh_has_option = no; then
14696 CFLAGS="$save_CFLAGS"
14701 case " $CFLAGS " in
14702 *[\ \ ]-fno-strict-aliasing[\ \ ]*)
14705 save_CFLAGS="$CFLAGS"
14706 CFLAGS="$CFLAGS -fno-strict-aliasing"
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14708 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h. */
14720 if ac_fn_c_try_compile "$LINENO"; then :
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14727 $as_echo "$jh_has_option" >&6; }
14728 if test $jh_has_option = no; then
14729 CFLAGS="$save_CFLAGS"
14739 case " $CFLAGS " in
14740 *[\ \ ]-std=c9x[\ \ ]*)
14743 save_CFLAGS="$CFLAGS"
14744 CFLAGS="$CFLAGS -std=c9x"
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c9x" >&5
14746 $as_echo_n "checking whether $CC understands -std=c9x... " >&6; }
14747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h. */
14758 if ac_fn_c_try_compile "$LINENO"; then :
14763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14765 $as_echo "$jh_has_option" >&6; }
14766 if test $jh_has_option = no; then
14767 CFLAGS="$save_CFLAGS"
14776 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
14777 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14779 ac_config_files="$ac_config_files Makefile pygobject-3.0.pc pygobject-3.0-uninstalled.pc gi/Makefile gi/repository/Makefile gi/overrides/Makefile gi/_glib/Makefile gi/_gobject/Makefile examples/Makefile tests/Makefile pygtkcompat/Makefile PKG-INFO"
14781 cat >confcache <<\_ACEOF
14782 # This file is a shell script that caches the results of configure
14783 # tests run on this system so they can be shared between configure
14784 # scripts and configure runs, see configure's option --config-cache.
14785 # It is not useful on other systems. If it contains results you don't
14786 # want to keep, you may remove or edit it.
14788 # config.status only pays attention to the cache file if you give it
14789 # the --recheck option to rerun configure.
14791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14793 # following values.
14797 # The following way of writing the cache mishandles newlines in values,
14798 # but we know of no workaround that is simple, portable, and efficient.
14799 # So, we kill variables containing newlines.
14800 # Ultrix sh set writes to stderr and can't be redirected directly,
14801 # and sets the high bit in the cache file unless we assign to the vars.
14803 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14804 eval ac_val=\$$ac_var
14808 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14812 _ | IFS | as_nl) ;; #(
14813 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14814 *) { eval $ac_var=; unset $ac_var;} ;;
14820 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14821 *${as_nl}ac_space=\ *)
14822 # `set' does not quote correctly, so add quotes: double-quote
14823 # substitution turns \\\\ into \\, and sed turns \\ into \.
14826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14829 # `set' quotes correctly as required by POSIX, so do not add quotes.
14830 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14839 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14841 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14843 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14844 if test -w "$cache_file"; then
14845 if test "x$cache_file" != "x/dev/null"; then
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14847 $as_echo "$as_me: updating cache $cache_file" >&6;}
14848 if test ! -f "$cache_file" || test -h "$cache_file"; then
14849 cat confcache >"$cache_file"
14851 case $cache_file in #(
14853 mv -f confcache "$cache_file"$$ &&
14854 mv -f "$cache_file"$$ "$cache_file" ;; #(
14856 mv -f confcache "$cache_file" ;;
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14862 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14867 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14868 # Let make expand exec_prefix.
14869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14871 DEFS=-DHAVE_CONFIG_H
14876 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14877 # 1. Remove the extension, and $U if already installed.
14878 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14879 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14880 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14881 # will be set to the directory where LIBOBJS objects are built.
14882 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14883 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14885 LIBOBJS=$ac_libobjs
14887 LTLIBOBJS=$ac_ltlibobjs
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14891 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14892 if test -n "$am_sleep_pid"; then
14893 # Hide warnings about reused PIDs.
14894 wait $am_sleep_pid 2>/dev/null
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14897 $as_echo "done" >&6; }
14898 if test -n "$EXEEXT"; then
14900 am__EXEEXT_FALSE='#'
14902 am__EXEEXT_TRUE='#'
14906 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14907 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14910 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14911 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14914 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14915 as_fn_error $? "conditional \"AMDEP\" was never defined.
14916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14919 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14922 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14923 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14926 if test -z "${HAVE_LIBFFI_TRUE}" && test -z "${HAVE_LIBFFI_FALSE}"; then
14927 as_fn_error $? "conditional \"HAVE_LIBFFI\" was never defined.
14928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14930 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
14931 as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
14932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14934 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
14935 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
14936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14939 : "${CONFIG_STATUS=./config.status}"
14941 ac_clean_files_save=$ac_clean_files
14942 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14944 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14946 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14948 # Generated by $as_me.
14949 # Run this file to recreate the current configuration.
14950 # Compiler output produced by configure, useful for debugging
14951 # configure, is in config.log if it exists.
14954 ac_cs_recheck=false
14957 SHELL=\${CONFIG_SHELL-$SHELL}
14960 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14961 ## -------------------- ##
14962 ## M4sh Initialization. ##
14963 ## -------------------- ##
14965 # Be more Bourne compatible
14966 DUALCASE=1; export DUALCASE # for MKS sh
14967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14971 # is contrary to our usage. Disable this feature.
14972 alias -g '${1+"$@"}'='"$@"'
14973 setopt NO_GLOB_SUBST
14975 case `(set -o) 2>/dev/null` in #(
14987 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14988 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14989 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14990 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14991 # Prefer a ksh shell builtin over an external printf program on Solaris,
14992 # but without wasting forks for bash or zsh.
14993 if test -z "$BASH_VERSION$ZSH_VERSION" \
14994 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14995 as_echo='print -r --'
14996 as_echo_n='print -rn --'
14997 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14998 as_echo='printf %s\n'
14999 as_echo_n='printf %s'
15001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15002 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15003 as_echo_n='/usr/ucb/echo -n'
15005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15006 as_echo_n_body='eval
15010 expr "X$arg" : "X\\(.*\\)$as_nl";
15011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15013 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15015 export as_echo_n_body
15016 as_echo_n='sh -c $as_echo_n_body as_echo'
15018 export as_echo_body
15019 as_echo='sh -c $as_echo_body as_echo'
15022 # The user is always right.
15023 if test "${PATH_SEPARATOR+set}" != set; then
15025 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15026 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15033 # We need space, tab and new line, in precisely that order. Quoting is
15034 # there to prevent editors from complaining about space-tab.
15035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15036 # splitting by setting IFS to empty value.)
15039 # Find who we are. Look in the path if we contain no directory separator.
15042 *[\\/]* ) as_myself=$0 ;;
15043 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15044 for as_dir in $PATH
15047 test -z "$as_dir" && as_dir=.
15048 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15054 # We did not find ourselves, most probably we were run as `sh COMMAND'
15055 # in which case we are not to be found in the path.
15056 if test "x$as_myself" = x; then
15059 if test ! -f "$as_myself"; then
15060 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15064 # Unset variables that we do not need and which cause bugs (e.g. in
15065 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15066 # suppresses any "Segmentation fault" message there. '((' could
15067 # trigger a bug in pdksh 5.2.14.
15068 for as_var in BASH_ENV ENV MAIL MAILPATH
15069 do eval test x\${$as_var+set} = xset \
15070 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15086 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15087 # ----------------------------------------
15088 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15089 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15090 # script with STATUS, using 1 if that was 0.
15093 as_status=$1; test $as_status -eq 0 && as_status=1
15095 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15096 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15098 $as_echo "$as_me: error: $2" >&2
15099 as_fn_exit $as_status
15103 # as_fn_set_status STATUS
15104 # -----------------------
15105 # Set $? to STATUS, without forking.
15106 as_fn_set_status ()
15109 } # as_fn_set_status
15111 # as_fn_exit STATUS
15112 # -----------------
15113 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15117 as_fn_set_status $1
15123 # Portably unset VAR.
15126 { eval $1=; unset $1;}
15128 as_unset=as_fn_unset
15129 # as_fn_append VAR VALUE
15130 # ----------------------
15131 # Append the text in VALUE to the end of the definition contained in VAR. Take
15132 # advantage of any shell optimizations that allow amortized linear growth over
15133 # repeated appends, instead of the typical quadratic growth present in naive
15135 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15136 eval 'as_fn_append ()
15147 # as_fn_arith ARG...
15148 # ------------------
15149 # Perform arithmetic evaluation on the ARGs, and store the result in the
15150 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15151 # must be portable across $(()) and expr.
15152 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15153 eval 'as_fn_arith ()
15160 as_val=`expr "$@" || test $? -eq 1`
15165 if expr a : '\(a\)' >/dev/null 2>&1 &&
15166 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15172 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15173 as_basename=basename
15178 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15184 as_me=`$as_basename -- "$0" ||
15185 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15186 X"$0" : 'X\(//\)$' \| \
15187 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15189 sed '/^.*\/\([^/][^/]*\)\/*$/{
15203 # Avoid depending upon Character Ranges.
15204 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15205 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15206 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15207 as_cr_digits='0123456789'
15208 as_cr_alnum=$as_cr_Letters$as_cr_digits
15210 ECHO_C= ECHO_N= ECHO_T=
15211 case `echo -n x` in #(((((
15213 case `echo 'xy\c'` in
15214 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15216 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15223 rm -f conf$$ conf$$.exe conf$$.file
15224 if test -d conf$$.dir; then
15225 rm -f conf$$.dir/conf$$.file
15228 mkdir conf$$.dir 2>/dev/null
15230 if (echo >conf$$.file) 2>/dev/null; then
15231 if ln -s conf$$.file conf$$ 2>/dev/null; then
15233 # ... but there are two gotchas:
15234 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15235 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15236 # In both cases, we have to default to `cp -pR'.
15237 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15239 elif ln conf$$.file conf$$ 2>/dev/null; then
15247 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15248 rmdir conf$$.dir 2>/dev/null
15253 # Create "$as_dir" as a directory, including parents if necessary.
15258 -*) as_dir=./$as_dir;;
15260 test -d "$as_dir" || eval $as_mkdir_p || {
15264 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15265 *) as_qdir=$as_dir;;
15267 as_dirs="'$as_qdir' $as_dirs"
15268 as_dir=`$as_dirname -- "$as_dir" ||
15269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15270 X"$as_dir" : 'X\(//\)[^/]' \| \
15271 X"$as_dir" : 'X\(//\)$' \| \
15272 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15273 $as_echo X"$as_dir" |
15274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15278 /^X\(\/\/\)[^/].*/{
15291 test -d "$as_dir" && break
15293 test -z "$as_dirs" || eval "mkdir $as_dirs"
15294 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15298 if mkdir -p . 2>/dev/null; then
15299 as_mkdir_p='mkdir -p "$as_dir"'
15301 test -d ./-p && rmdir ./-p
15306 # as_fn_executable_p FILE
15307 # -----------------------
15308 # Test if FILE is an executable regular file.
15309 as_fn_executable_p ()
15311 test -f "$1" && test -x "$1"
15312 } # as_fn_executable_p
15313 as_test_x='test -x'
15314 as_executable_p=as_fn_executable_p
15316 # Sed expression to map a string onto a valid CPP name.
15317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15319 # Sed expression to map a string onto a valid variable name.
15320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15324 ## ----------------------------------- ##
15325 ## Main body of $CONFIG_STATUS script. ##
15326 ## ----------------------------------- ##
15328 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15331 # Save the log message, to keep $0 and so on meaningful, and to
15332 # report actual input values of CONFIG_FILES etc. instead of their
15333 # values after options handling.
15335 This file was extended by pygobject $as_me 3.9.91, which was
15336 generated by GNU Autoconf 2.69. Invocation command line was
15338 CONFIG_FILES = $CONFIG_FILES
15339 CONFIG_HEADERS = $CONFIG_HEADERS
15340 CONFIG_LINKS = $CONFIG_LINKS
15341 CONFIG_COMMANDS = $CONFIG_COMMANDS
15344 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15349 case $ac_config_files in *"
15350 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15353 case $ac_config_headers in *"
15354 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15359 # Files that config.status was made for.
15360 config_files="$ac_config_files"
15361 config_headers="$ac_config_headers"
15362 config_commands="$ac_config_commands"
15366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15368 \`$as_me' instantiates files and other configuration actions
15369 from templates according to the current configuration. Unless the files
15370 and actions are specified as TAGs, all are instantiated by default.
15372 Usage: $0 [OPTION]... [TAG]...
15374 -h, --help print this help, then exit
15375 -V, --version print version number and configuration settings, then exit
15376 --config print configuration, then exit
15377 -q, --quiet, --silent
15378 do not print progress messages
15379 -d, --debug don't remove temporary files
15380 --recheck update $as_me by reconfiguring in the same conditions
15381 --file=FILE[:TEMPLATE]
15382 instantiate the configuration file FILE
15383 --header=FILE[:TEMPLATE]
15384 instantiate the configuration header FILE
15386 Configuration files:
15389 Configuration headers:
15392 Configuration commands:
15395 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15396 pygobject home page: <https://live.gnome.org/PyGObject/>."
15399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15400 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15402 pygobject config.status 3.9.91
15403 configured by $0, generated by GNU Autoconf 2.69,
15404 with options \\"\$ac_cs_config\\"
15406 Copyright (C) 2012 Free Software Foundation, Inc.
15407 This config.status script is free software; the Free Software Foundation
15408 gives unlimited permission to copy, distribute and modify it."
15415 test -n "\$AWK" || AWK=awk
15418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15419 # The default lists apply if the user does not specify any file.
15425 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15426 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15430 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15442 # Handling of the options.
15443 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15445 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15446 $as_echo "$ac_cs_version"; exit ;;
15447 --config | --confi | --conf | --con | --co | --c )
15448 $as_echo "$ac_cs_config"; exit ;;
15449 --debug | --debu | --deb | --de | --d | -d )
15451 --file | --fil | --fi | --f )
15454 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15455 '') as_fn_error $? "missing file argument" ;;
15457 as_fn_append CONFIG_FILES " '$ac_optarg'"
15458 ac_need_defaults=false;;
15459 --header | --heade | --head | --hea )
15462 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15464 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15465 ac_need_defaults=false;;
15467 # Conflict between --help and --header
15468 as_fn_error $? "ambiguous option: \`$1'
15469 Try \`$0 --help' for more information.";;
15470 --help | --hel | -h )
15471 $as_echo "$ac_cs_usage"; exit ;;
15472 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15473 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15476 # This is an error.
15477 -*) as_fn_error $? "unrecognized option: \`$1'
15478 Try \`$0 --help' for more information." ;;
15480 *) as_fn_append ac_config_targets " $1"
15481 ac_need_defaults=false ;;
15487 ac_configure_extra_args=
15489 if $ac_cs_silent; then
15491 ac_configure_extra_args="$ac_configure_extra_args --silent"
15495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15496 if \$ac_cs_recheck; then
15497 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15499 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15500 CONFIG_SHELL='$SHELL'
15501 export CONFIG_SHELL
15506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15510 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15511 ## Running $as_me. ##
15517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15521 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15524 # The HP-UX ksh and POSIX shell print the target directory to stdout
15525 # if CDPATH is set.
15526 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15528 sed_quote_subst='$sed_quote_subst'
15529 double_quote_subst='$double_quote_subst'
15530 delay_variable_subst='$delay_variable_subst'
15531 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15532 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15533 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15534 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15535 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15536 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15537 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15538 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15539 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15540 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15541 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15542 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15543 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15544 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15545 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15546 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15547 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15548 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15549 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15550 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15551 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15552 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15553 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15554 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15555 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15556 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15557 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15558 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15559 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15560 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15561 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15562 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15563 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15564 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15565 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15566 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15567 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15568 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15569 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15570 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15571 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15572 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15573 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15574 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15575 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15576 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15577 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15578 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15579 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15580 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15581 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15582 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15583 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15584 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15585 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15586 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15587 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15588 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"`'
15589 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15590 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15591 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15592 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15593 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15594 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15595 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15596 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15597 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15598 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15599 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15600 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15601 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15602 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15603 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15604 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15605 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15606 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15607 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15608 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15609 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15610 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15611 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15612 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15613 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15614 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15615 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15616 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15617 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15618 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15619 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15620 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15621 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15622 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15623 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15624 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15625 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15626 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15627 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15628 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15629 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15630 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15631 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15632 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15633 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15634 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15635 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15636 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15637 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15638 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15639 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15640 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15641 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15642 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15643 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15644 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15645 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15646 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15647 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15648 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15649 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15650 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15651 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15652 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15653 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15654 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15655 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15656 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15657 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15658 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15659 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15660 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15661 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15664 LTCFLAGS='$LTCFLAGS'
15665 compiler='$compiler_DEFAULT'
15667 # A function that is used when there is no print builtin or printf.
15668 func_fallback_echo ()
15670 eval 'cat <<_LTECHO_EOF
15675 # Quote evaled strings.
15692 deplibs_check_method \
15696 sharedlib_from_linklib_cmd \
15699 archiver_list_spec \
15705 lt_cv_sys_global_symbol_pipe \
15706 lt_cv_sys_global_symbol_to_cdecl \
15707 lt_cv_sys_global_symbol_to_c_name_address \
15708 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15709 nm_file_list_spec \
15710 lt_prog_compiler_no_builtin_flag \
15711 lt_prog_compiler_pic \
15712 lt_prog_compiler_wl \
15713 lt_prog_compiler_static \
15714 lt_cv_prog_compiler_c_o \
15723 export_dynamic_flag_spec \
15724 whole_archive_flag_spec \
15725 compiler_needs_object \
15727 allow_undefined_flag \
15728 no_undefined_flag \
15729 hardcode_libdir_flag_spec \
15730 hardcode_libdir_separator \
15734 variables_saved_for_relink \
15736 library_names_spec \
15738 install_override_mode \
15742 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15743 *[\\\\\\\`\\"\\\$]*)
15744 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15747 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15752 # Double-quote double-evaled strings.
15753 for var in reload_cmds \
15754 old_postinstall_cmds \
15755 old_postuninstall_cmds \
15757 extract_expsyms_cmds \
15758 old_archive_from_new_cmds \
15759 old_archive_from_expsyms_cmds \
15761 archive_expsym_cmds \
15763 module_expsym_cmds \
15764 export_symbols_cmds \
15768 postuninstall_cmds \
15770 sys_lib_search_path_spec \
15771 sys_lib_dlsearch_path_spec; do
15772 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15773 *[\\\\\\\`\\"\\\$]*)
15774 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15777 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15782 ac_aux_dir='$ac_aux_dir'
15783 xsi_shell='$xsi_shell'
15784 lt_shell_append='$lt_shell_append'
15786 # See if we are running on zsh, and set the options which allow our
15787 # commands through without removal of \ escapes INIT.
15788 if test -n "\${ZSH_VERSION+set}" ; then
15789 setopt NO_GLOB_SUBST
15795 TIMESTAMP='$TIMESTAMP'
15804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15806 # Handling of arguments.
15807 for ac_config_target in $ac_config_targets
15809 case $ac_config_target in
15810 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15811 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15812 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15813 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15814 "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
15815 "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
15816 "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
15817 "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
15818 "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
15819 "gi/_glib/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_glib/Makefile" ;;
15820 "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
15821 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15822 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15823 "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
15824 "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
15826 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15831 # If the user did not use the arguments to specify the items to instantiate,
15832 # then the envvar interface is used. Set only those that are not.
15833 # We use the long form for the default assignment because of an extremely
15834 # bizarre bug on SunOS 4.1.3.
15835 if $ac_need_defaults; then
15836 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15837 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15838 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15841 # Have a temporary directory for convenience. Make it in the build tree
15842 # simply because there is no reason against having it here, and in addition,
15843 # creating and moving files from /tmp can sometimes cause problems.
15844 # Hook for its removal unless debugging.
15845 # Note that there is a small window in which the directory will not be cleaned:
15846 # after its creation but before its name has been assigned to `$tmp'.
15850 trap 'exit_status=$?
15851 : "${ac_tmp:=$tmp}"
15852 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15854 trap 'as_fn_exit 1' 1 2 13 15
15856 # Create a (secure) tmp directory for tmp files.
15859 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15863 tmp=./conf$$-$RANDOM
15864 (umask 077 && mkdir "$tmp")
15865 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15868 # Set up the scripts for CONFIG_FILES section.
15869 # No need to generate them if there are no CONFIG_FILES.
15870 # This happens for instance with `./config.status config.h'.
15871 if test -n "$CONFIG_FILES"; then
15874 ac_cr=`echo X | tr X '\015'`
15875 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15876 # But we know of no other shell where ac_cr would be empty at this
15877 # point, so we can use a bashism as a fallback.
15878 if test "x$ac_cr" = x; then
15879 eval ac_cr=\$\'\\r\'
15881 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15882 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15885 ac_cs_awk_cr=$ac_cr
15888 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15893 echo "cat >conf$$subs.awk <<_ACEOF" &&
15894 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15896 } >conf$$subs.sh ||
15897 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15898 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15900 for ac_last_try in false false false false false :; do
15901 . ./conf$$subs.sh ||
15902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15904 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15905 if test $ac_delim_n = $ac_delim_num; then
15907 elif $ac_last_try; then
15908 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15910 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15913 rm -f conf$$subs.sh
15915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15916 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15920 s/^/S["/; s/!.*/"]=/
15930 s/\(.\{148\}\)..*/\1/
15932 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15944 s/\(.\{148\}\)..*/\1/
15946 s/["\\]/\\&/g; s/^/"/; s/$/"/
15950 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15955 ' <conf$$subs.awk | sed '
15960 ' >>$CONFIG_STATUS || ac_write_fail=1
15961 rm -f conf$$subs.awk
15962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15964 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15965 for (key in S) S_is_set[key] = 1
15971 nfields = split(line, field, "@")
15973 len = length(field[1])
15974 for (i = 2; i < nfields; i++) {
15976 keylen = length(key)
15977 if (S_is_set[key]) {
15979 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15980 len += length(value) + length(field[++i])
15991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15992 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15993 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15996 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15997 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16000 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16001 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16002 # trailing colons and then remove the whole line if VPATH becomes empty
16003 # (actually we leave an empty line to preserve line numbers).
16004 if test "x$srcdir" = x.; then
16005 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16024 fi # test -n "$CONFIG_FILES"
16026 # Set up the scripts for CONFIG_HEADERS section.
16027 # No need to generate them if there are no CONFIG_HEADERS.
16028 # This happens for instance with `./config.status Makefile'.
16029 if test -n "$CONFIG_HEADERS"; then
16030 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16034 # Transform confdefs.h into an awk script `defines.awk', embedded as
16035 # here-document in config.status, that substitutes the proper values into
16036 # config.h.in to produce config.h.
16038 # Create a delimiter string that does not exist in confdefs.h, to ease
16039 # handling of long lines.
16041 for ac_last_try in false false :; do
16042 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16043 if test -z "$ac_tt"; then
16045 elif $ac_last_try; then
16046 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16052 # For the awk script, D is an array of macro values keyed by name,
16053 # likewise P contains macro parameters if any. Preserve backslash
16054 # newline sequences.
16056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16058 s/.\{148\}/&'"$ac_delim"'/g
16061 s/^[ ]*#[ ]*define[ ][ ]*/ /
16068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16070 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16075 D["\1"]=" \3\\\\\\n"\\/p
16077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16082 s/.\{148\}/&'"$ac_delim"'/g
16087 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16090 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16092 ' <confdefs.h | sed '
16093 s/'"$ac_delim"'/"\\\
16094 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16097 for (key in D) D_is_set[key] = 1
16100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16102 split(line, arg, " ")
16103 if (arg[1] == "#") {
16107 defundef = substr(arg[1], 2)
16110 split(mac1, mac2, "(") #)
16112 prefix = substr(line, 1, index(line, defundef) - 1)
16113 if (D_is_set[macro]) {
16114 # Preserve the white space surrounding the "#".
16115 print prefix "define", macro P[macro] D[macro]
16118 # Replace #undef with comments. This is necessary, for example,
16119 # in the case of _POSIX_SOURCE, which is predefined and required
16120 # on some systems where configure will not decide to define it.
16121 if (defundef == "undef") {
16122 print "/*", prefix defundef, macro, "*/"
16130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16131 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16132 fi # test -n "$CONFIG_HEADERS"
16135 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16140 :[FHLC]) ac_mode=$ac_tag; continue;;
16142 case $ac_mode$ac_tag in
16144 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16145 :[FH]-) ac_tag=-:-;;
16146 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16163 -) ac_f="$ac_tmp/stdin";;
16164 *) # Look for the file first in the build tree, then in the source tree
16165 # (if the path is not absolute). The absolute path cannot be DOS-style,
16166 # because $ac_f cannot contain `:'.
16170 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16172 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16174 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16175 as_fn_append ac_file_inputs " '$ac_f'"
16178 # Let's still pretend it is `configure' which instantiates (i.e., don't
16179 # use $as_me), people would be surprised to read:
16180 # /* config.h. Generated by config.status. */
16181 configure_input='Generated from '`
16182 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16184 if test x"$ac_file" != x-; then
16185 configure_input="$ac_file. $configure_input"
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16187 $as_echo "$as_me: creating $ac_file" >&6;}
16189 # Neutralize special characters interpreted by sed in replacement strings.
16190 case $configure_input in #(
16191 *\&* | *\|* | *\\* )
16192 ac_sed_conf_input=`$as_echo "$configure_input" |
16193 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16194 *) ac_sed_conf_input=$configure_input;;
16198 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16204 ac_dir=`$as_dirname -- "$ac_file" ||
16205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16206 X"$ac_file" : 'X\(//\)[^/]' \| \
16207 X"$ac_file" : 'X\(//\)$' \| \
16208 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16209 $as_echo X"$ac_file" |
16210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16214 /^X\(\/\/\)[^/].*/{
16227 as_dir="$ac_dir"; as_fn_mkdir_p
16231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16233 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16234 # A ".." for each directory in $ac_dir_suffix.
16235 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16236 case $ac_top_builddir_sub in
16237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16241 ac_abs_top_builddir=$ac_pwd
16242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16243 # for backward compatibility:
16244 ac_top_builddir=$ac_top_build_prefix
16247 .) # We are building in place.
16249 ac_top_srcdir=$ac_top_builddir_sub
16250 ac_abs_top_srcdir=$ac_pwd ;;
16251 [\\/]* | ?:[\\/]* ) # Absolute name.
16252 ac_srcdir=$srcdir$ac_dir_suffix;
16253 ac_top_srcdir=$srcdir
16254 ac_abs_top_srcdir=$srcdir ;;
16255 *) # Relative name.
16256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16257 ac_top_srcdir=$ac_top_build_prefix$srcdir
16258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16270 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16271 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16273 ac_MKDIR_P=$MKDIR_P
16275 [\\/$]* | ?:[\\/]* ) ;;
16276 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281 # If the template does not know about datarootdir, expand it.
16282 # FIXME: This hack should be removed a few years after 2.60.
16283 ac_datarootdir_hack=; ac_datarootdir_seen=
16294 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16295 *datarootdir*) ac_datarootdir_seen=yes;;
16296 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16298 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16301 ac_datarootdir_hack='
16302 s&@datadir@&$datadir&g
16303 s&@docdir@&$docdir&g
16304 s&@infodir@&$infodir&g
16305 s&@localedir@&$localedir&g
16306 s&@mandir@&$mandir&g
16307 s&\\\${datarootdir}&$datarootdir&g' ;;
16311 # Neutralize VPATH when `$srcdir' = `.'.
16312 # Shell code in configure.ac might set extrasub.
16313 # FIXME: do we really want to maintain this feature?
16314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16315 ac_sed_extra="$ac_vpsub
16318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16321 s|@configure_input@|$ac_sed_conf_input|;t t
16322 s&@top_builddir@&$ac_top_builddir_sub&;t t
16323 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16324 s&@srcdir@&$ac_srcdir&;t t
16325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16326 s&@top_srcdir@&$ac_top_srcdir&;t t
16327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16328 s&@builddir@&$ac_builddir&;t t
16329 s&@abs_builddir@&$ac_abs_builddir&;t t
16330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16331 s&@INSTALL@&$ac_INSTALL&;t t
16332 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16333 $ac_datarootdir_hack
16335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16336 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16339 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16340 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16341 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16343 which seems to be undefined. Please make sure it is defined" >&5
16344 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16345 which seems to be undefined. Please make sure it is defined" >&2;}
16347 rm -f "$ac_tmp/stdin"
16349 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16350 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16352 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16358 if test x"$ac_file" != x-; then
16360 $as_echo "/* $configure_input */" \
16361 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16362 } >"$ac_tmp/config.h" \
16363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16364 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16366 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16369 mv "$ac_tmp/config.h" "$ac_file" \
16370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16373 $as_echo "/* $configure_input */" \
16374 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16375 || as_fn_error $? "could not create -" "$LINENO" 5
16377 # Compute "$ac_file"'s index in $config_headers.
16380 for _am_header in $config_headers :; do
16381 case $_am_header in
16382 $_am_arg | $_am_arg:* )
16385 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16388 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16389 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16390 X"$_am_arg" : 'X\(//\)[^/]' \| \
16391 X"$_am_arg" : 'X\(//\)$' \| \
16392 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16393 $as_echo X"$_am_arg" |
16394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16398 /^X\(\/\/\)[^/].*/{
16410 s/.*/./; q'`/stamp-h$_am_stamp_count
16413 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16414 $as_echo "$as_me: executing $ac_file commands" >&6;}
16419 case $ac_file$ac_mode in
16420 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16421 # Older Autoconf quotes --file arguments for eval, but not when files
16422 # are listed without --file. Let's play safe and only enable the eval
16423 # if we detect the quoting.
16424 case $CONFIG_FILES in
16425 *\'*) eval set x "$CONFIG_FILES" ;;
16426 *) set x $CONFIG_FILES ;;
16431 # Strip MF so we end up with the name of the file.
16432 mf=`echo "$mf" | sed -e 's/:.*$//'`
16433 # Check whether this is an Automake generated Makefile or not.
16434 # We used to match only the files named 'Makefile.in', but
16435 # some people rename them; so instead we look at the file content.
16436 # Grep'ing the first line is not enough: some people post-process
16437 # each Makefile.in and add a new line on top of each file to say so.
16438 # Grep'ing the whole file is not good either: AIX grep has a line
16439 # limit of 2048, but all sed's we know have understand at least 4000.
16440 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16441 dirpart=`$as_dirname -- "$mf" ||
16442 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16443 X"$mf" : 'X\(//\)[^/]' \| \
16444 X"$mf" : 'X\(//\)$' \| \
16445 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16451 /^X\(\/\/\)[^/].*/{
16467 # Extract the definition of DEPDIR, am__include, and am__quote
16468 # from the Makefile without running 'make'.
16469 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16470 test -z "$DEPDIR" && continue
16471 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16472 test -z "$am__include" && continue
16473 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16474 # Find all dependency output files, they are included files with
16475 # $(DEPDIR) in their names. We invoke sed twice because it is the
16476 # simplest approach to changing $(DEPDIR) to its actual value in the
16478 for file in `sed -n "
16479 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16480 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16481 # Make sure the directory exists.
16482 test -f "$dirpart/$file" && continue
16483 fdir=`$as_dirname -- "$file" ||
16484 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16485 X"$file" : 'X\(//\)[^/]' \| \
16486 X"$file" : 'X\(//\)$' \| \
16487 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16488 $as_echo X"$file" |
16489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16493 /^X\(\/\/\)[^/].*/{
16506 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16507 # echo "creating $dirpart/$file"
16508 echo '# dummy' > "$dirpart/$file"
16515 # See if we are running on zsh, and set the options which allow our
16516 # commands through without removal of \ escapes.
16517 if test -n "${ZSH_VERSION+set}" ; then
16518 setopt NO_GLOB_SUBST
16521 cfgfile="${ofile}T"
16522 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16525 cat <<_LT_EOF >> "$cfgfile"
16528 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16529 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16530 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16531 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16533 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16534 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16536 # Written by Gordon Matzigkeit, 1996
16538 # This file is part of GNU Libtool.
16540 # GNU Libtool is free software; you can redistribute it and/or
16541 # modify it under the terms of the GNU General Public License as
16542 # published by the Free Software Foundation; either version 2 of
16543 # the License, or (at your option) any later version.
16545 # As a special exception to the GNU General Public License,
16546 # if you distribute this file as part of a program or library that
16547 # is built using GNU Libtool, you may include this file under the
16548 # same distribution terms that you use for the rest of that program.
16550 # GNU Libtool is distributed in the hope that it will be useful,
16551 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16552 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16553 # GNU General Public License for more details.
16555 # You should have received a copy of the GNU General Public License
16556 # along with GNU Libtool; see the file COPYING. If not, a copy
16557 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16558 # obtained by writing to the Free Software Foundation, Inc.,
16559 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16562 # The names of the tagged configurations supported by this script.
16565 # ### BEGIN LIBTOOL CONFIG
16567 # Which release of libtool.m4 was used?
16568 macro_version=$macro_version
16569 macro_revision=$macro_revision
16571 # Assembler program.
16574 # DLL creation program.
16575 DLLTOOL=$lt_DLLTOOL
16577 # Object dumper program.
16578 OBJDUMP=$lt_OBJDUMP
16580 # Whether or not to build static libraries.
16581 build_old_libs=$enable_static
16583 # Whether or not to build shared libraries.
16584 build_libtool_libs=$enable_shared
16586 # What type of objects to build.
16589 # Whether or not to optimize for fast installation.
16590 fast_install=$enable_fast_install
16592 # Shell to use when invoking shell scripts.
16595 # An echo program that protects backslashes.
16598 # The PATH separator for the build system.
16599 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16602 host_alias=$host_alias
16606 # The build system.
16607 build_alias=$build_alias
16611 # A sed program that does not truncate output.
16614 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16615 Xsed="\$SED -e 1s/^X//"
16617 # A grep program that handles long lines.
16623 # A literal string matcher.
16626 # A BSD- or MS-compatible name lister.
16629 # Whether we need soft or hard links.
16632 # What is the maximum length of a command?
16633 max_cmd_len=$max_cmd_len
16635 # Object file suffix (normally "o").
16638 # Executable file suffix (normally "").
16641 # whether the shell understands "unset".
16644 # turn spaces into newlines.
16647 # turn newlines into spaces.
16650 # convert \$build file names to \$host format.
16651 to_host_file_cmd=$lt_cv_to_host_file_cmd
16653 # convert \$build files to toolchain format.
16654 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16656 # Method to check whether dependent libraries are shared objects.
16657 deplibs_check_method=$lt_deplibs_check_method
16659 # Command to use when deplibs_check_method = "file_magic".
16660 file_magic_cmd=$lt_file_magic_cmd
16662 # How to find potential files when deplibs_check_method = "file_magic".
16663 file_magic_glob=$lt_file_magic_glob
16665 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16666 want_nocaseglob=$lt_want_nocaseglob
16668 # Command to associate shared and link libraries.
16669 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16674 # Flags to create an archive.
16675 AR_FLAGS=$lt_AR_FLAGS
16677 # How to feed a file listing to the archiver.
16678 archiver_list_spec=$lt_archiver_list_spec
16680 # A symbol stripping program.
16683 # Commands used to install an old-style archive.
16685 old_postinstall_cmds=$lt_old_postinstall_cmds
16686 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16688 # Whether to use a lock for old archive extraction.
16689 lock_old_archive_extraction=$lock_old_archive_extraction
16694 # LTCC compiler flags.
16695 LTCFLAGS=$lt_CFLAGS
16697 # Take the output of nm and produce a listing of raw symbols and C names.
16698 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16700 # Transform the output of nm in a proper C declaration.
16701 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16703 # Transform the output of nm in a C name address pair.
16704 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16706 # Transform the output of nm in a C name address pair when lib prefix is needed.
16707 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16709 # Specify filename containing input files for \$NM.
16710 nm_file_list_spec=$lt_nm_file_list_spec
16712 # The root where to search for dependent libraries,and in which our libraries should be installed.
16713 lt_sysroot=$lt_sysroot
16715 # The name of the directory that contains temporary libtool files.
16718 # Used to examine libraries when file_magic_cmd begins with "file".
16719 MAGIC_CMD=$MAGIC_CMD
16721 # Must we lock files when doing compilation?
16722 need_locks=$lt_need_locks
16725 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16727 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16728 DSYMUTIL=$lt_DSYMUTIL
16730 # Tool to change global to local symbols on Mac OS X.
16733 # Tool to manipulate fat objects and archives on Mac OS X.
16736 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16739 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16740 OTOOL64=$lt_OTOOL64
16742 # Old archive suffix (normally "a").
16745 # Shared library suffix (normally ".so").
16746 shrext_cmds=$lt_shrext_cmds
16748 # The commands to extract the exported symbol list from a shared archive.
16749 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16751 # Variables whose values should be saved in libtool wrapper scripts and
16752 # restored at link time.
16753 variables_saved_for_relink=$lt_variables_saved_for_relink
16755 # Do we need the "lib" prefix for modules?
16756 need_lib_prefix=$need_lib_prefix
16758 # Do we need a version for libraries?
16759 need_version=$need_version
16761 # Library versioning type.
16762 version_type=$version_type
16764 # Shared library runtime path variable.
16765 runpath_var=$runpath_var
16767 # Shared library path variable.
16768 shlibpath_var=$shlibpath_var
16770 # Is shlibpath searched before the hard-coded library search path?
16771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16773 # Format of library name prefix.
16774 libname_spec=$lt_libname_spec
16776 # List of archive names. First name is the real one, the rest are links.
16777 # The last name is the one that the linker finds with -lNAME
16778 library_names_spec=$lt_library_names_spec
16780 # The coded name of the library, if different from the real name.
16781 soname_spec=$lt_soname_spec
16783 # Permission mode override for installation of shared libraries.
16784 install_override_mode=$lt_install_override_mode
16786 # Command to use after installation of a shared archive.
16787 postinstall_cmds=$lt_postinstall_cmds
16789 # Command to use after uninstallation of a shared archive.
16790 postuninstall_cmds=$lt_postuninstall_cmds
16792 # Commands used to finish a libtool library installation in a directory.
16793 finish_cmds=$lt_finish_cmds
16795 # As "finish_cmds", except a single script fragment to be evaled but
16797 finish_eval=$lt_finish_eval
16799 # Whether we should hardcode library paths into libraries.
16800 hardcode_into_libs=$hardcode_into_libs
16802 # Compile-time system search path for libraries.
16803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16805 # Run-time system search path for libraries.
16806 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16808 # Whether dlopen is supported.
16809 dlopen_support=$enable_dlopen
16811 # Whether dlopen of programs is supported.
16812 dlopen_self=$enable_dlopen_self
16814 # Whether dlopen of statically linked programs is supported.
16815 dlopen_self_static=$enable_dlopen_self_static
16817 # Commands to strip libraries.
16818 old_striplib=$lt_old_striplib
16819 striplib=$lt_striplib
16822 # The linker used to build libraries.
16825 # How to create reloadable object files.
16826 reload_flag=$lt_reload_flag
16827 reload_cmds=$lt_reload_cmds
16829 # Commands used to build an old-style archive.
16830 old_archive_cmds=$lt_old_archive_cmds
16832 # A language specific compiler.
16835 # Is the compiler the GNU compiler?
16838 # Compiler flag to turn off builtin functions.
16839 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16841 # Additional compiler flags for building library objects.
16842 pic_flag=$lt_lt_prog_compiler_pic
16844 # How to pass a linker flag through the compiler.
16845 wl=$lt_lt_prog_compiler_wl
16847 # Compiler flag to prevent dynamic linking.
16848 link_static_flag=$lt_lt_prog_compiler_static
16850 # Does compiler simultaneously support -c and -o options?
16851 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16853 # Whether or not to add -lc for building shared libraries.
16854 build_libtool_need_lc=$archive_cmds_need_lc
16856 # Whether or not to disallow shared libs when runtime libs are static.
16857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16859 # Compiler flag to allow reflexive dlopens.
16860 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16862 # Compiler flag to generate shared objects directly from archives.
16863 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16865 # Whether the compiler copes with passing no objects directly.
16866 compiler_needs_object=$lt_compiler_needs_object
16868 # Create an old-style archive from a shared archive.
16869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16871 # Create a temporary old-style archive to link instead of a shared archive.
16872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16874 # Commands used to build a shared archive.
16875 archive_cmds=$lt_archive_cmds
16876 archive_expsym_cmds=$lt_archive_expsym_cmds
16878 # Commands used to build a loadable module if different from building
16879 # a shared archive.
16880 module_cmds=$lt_module_cmds
16881 module_expsym_cmds=$lt_module_expsym_cmds
16883 # Whether we are building with GNU ld or not.
16884 with_gnu_ld=$lt_with_gnu_ld
16886 # Flag that allows shared libraries with undefined symbols to be built.
16887 allow_undefined_flag=$lt_allow_undefined_flag
16889 # Flag that enforces no undefined symbols.
16890 no_undefined_flag=$lt_no_undefined_flag
16892 # Flag to hardcode \$libdir into a binary during linking.
16893 # This must work even if \$libdir does not exist
16894 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16896 # Whether we need a single "-rpath" flag with a separated argument.
16897 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16899 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16900 # DIR into the resulting binary.
16901 hardcode_direct=$hardcode_direct
16903 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16904 # DIR into the resulting binary and the resulting library dependency is
16905 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16906 # library is relocated.
16907 hardcode_direct_absolute=$hardcode_direct_absolute
16909 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16910 # into the resulting binary.
16911 hardcode_minus_L=$hardcode_minus_L
16913 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16914 # into the resulting binary.
16915 hardcode_shlibpath_var=$hardcode_shlibpath_var
16917 # Set to "yes" if building a shared library automatically hardcodes DIR
16918 # into the library and all subsequent libraries and executables linked
16920 hardcode_automatic=$hardcode_automatic
16922 # Set to yes if linker adds runtime paths of dependent libraries
16923 # to runtime path list.
16924 inherit_rpath=$inherit_rpath
16926 # Whether libtool must link a program against all its dependency libraries.
16927 link_all_deplibs=$link_all_deplibs
16929 # Set to "yes" if exported symbols are required.
16930 always_export_symbols=$always_export_symbols
16932 # The commands to list exported symbols.
16933 export_symbols_cmds=$lt_export_symbols_cmds
16935 # Symbols that should not be listed in the preloaded symbols.
16936 exclude_expsyms=$lt_exclude_expsyms
16938 # Symbols that must always be exported.
16939 include_expsyms=$lt_include_expsyms
16941 # Commands necessary for linking programs (against libraries) with templates.
16942 prelink_cmds=$lt_prelink_cmds
16944 # Commands necessary for finishing linking programs.
16945 postlink_cmds=$lt_postlink_cmds
16947 # Specify filename containing input files.
16948 file_list_spec=$lt_file_list_spec
16950 # How to hardcode a shared library path into an executable.
16951 hardcode_action=$hardcode_action
16953 # ### END LIBTOOL CONFIG
16959 cat <<\_LT_EOF >> "$cfgfile"
16960 # AIX sometimes has problems with the GCC collect2 program. For some
16961 # reason, if we set the COLLECT_NAMES environment variable, the problems
16962 # vanish in a puff of smoke.
16963 if test "X${COLLECT_NAMES+set}" != Xset; then
16965 export COLLECT_NAMES
16972 ltmain="$ac_aux_dir/ltmain.sh"
16975 # We use sed instead of cat because bash on DJGPP gets confused if
16976 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16977 # text mode, it properly converts lines to CR/LF. This bash problem
16978 # is reportedly fixed, but why not run on old versions too?
16979 sed '$q' "$ltmain" >> "$cfgfile" \
16980 || (rm -f "$cfgfile"; exit 1)
16982 if test x"$xsi_shell" = xyes; then
16983 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16987 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16988 \ * ) func_dirname_result="${3}" ;;\
16990 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16991 && mv -f "$cfgfile.tmp" "$cfgfile" \
16992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16993 test 0 -eq $? || _lt_function_replace_fail=:
16996 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16999 \ func_basename_result="${1##*/}"\
17000 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17001 && mv -f "$cfgfile.tmp" "$cfgfile" \
17002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17003 test 0 -eq $? || _lt_function_replace_fail=:
17006 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17007 func_dirname_and_basename ()\
17010 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17011 \ * ) func_dirname_result="${3}" ;;\
17013 \ func_basename_result="${1##*/}"\
17014 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17015 && mv -f "$cfgfile.tmp" "$cfgfile" \
17016 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17017 test 0 -eq $? || _lt_function_replace_fail=:
17020 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17023 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17024 \ # positional parameters, so assign one to ordinary parameter first.\
17025 \ func_stripname_result=${3}\
17026 \ func_stripname_result=${func_stripname_result#"${1}"}\
17027 \ func_stripname_result=${func_stripname_result%"${2}"}\
17028 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17029 && mv -f "$cfgfile.tmp" "$cfgfile" \
17030 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17031 test 0 -eq $? || _lt_function_replace_fail=:
17034 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17035 func_split_long_opt ()\
17037 \ func_split_long_opt_name=${1%%=*}\
17038 \ func_split_long_opt_arg=${1#*=}\
17039 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17040 && mv -f "$cfgfile.tmp" "$cfgfile" \
17041 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17042 test 0 -eq $? || _lt_function_replace_fail=:
17045 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17046 func_split_short_opt ()\
17048 \ func_split_short_opt_arg=${1#??}\
17049 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17050 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17051 && mv -f "$cfgfile.tmp" "$cfgfile" \
17052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17053 test 0 -eq $? || _lt_function_replace_fail=:
17056 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17060 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17061 \ *) func_lo2o_result=${1} ;;\
17063 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17064 && mv -f "$cfgfile.tmp" "$cfgfile" \
17065 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17066 test 0 -eq $? || _lt_function_replace_fail=:
17069 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17072 func_xform_result=${1%.*}.lo\
17073 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17074 && mv -f "$cfgfile.tmp" "$cfgfile" \
17075 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17076 test 0 -eq $? || _lt_function_replace_fail=:
17079 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17082 func_arith_result=$(( $* ))\
17083 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17084 && mv -f "$cfgfile.tmp" "$cfgfile" \
17085 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17086 test 0 -eq $? || _lt_function_replace_fail=:
17089 sed -e '/^func_len ()$/,/^} # func_len /c\
17092 func_len_result=${#1}\
17093 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17094 && mv -f "$cfgfile.tmp" "$cfgfile" \
17095 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17096 test 0 -eq $? || _lt_function_replace_fail=:
17100 if test x"$lt_shell_append" = xyes; then
17101 sed -e '/^func_append ()$/,/^} # func_append /c\
17104 eval "${1}+=\\${2}"\
17105 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17106 && mv -f "$cfgfile.tmp" "$cfgfile" \
17107 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17108 test 0 -eq $? || _lt_function_replace_fail=:
17111 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17112 func_append_quoted ()\
17114 \ func_quote_for_eval "${2}"\
17115 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17116 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17117 && mv -f "$cfgfile.tmp" "$cfgfile" \
17118 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17119 test 0 -eq $? || _lt_function_replace_fail=:
17122 # Save a `func_append' function call where possible by direct use of '+='
17123 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17124 && mv -f "$cfgfile.tmp" "$cfgfile" \
17125 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17126 test 0 -eq $? || _lt_function_replace_fail=:
17128 # Save a `func_append' function call even when '+=' is not available
17129 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17130 && mv -f "$cfgfile.tmp" "$cfgfile" \
17131 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17132 test 0 -eq $? || _lt_function_replace_fail=:
17135 if test x"$_lt_function_replace_fail" = x":"; then
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17137 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17141 mv -f "$cfgfile" "$ofile" ||
17142 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17153 ac_clean_files=$ac_clean_files_save
17155 test $ac_write_fail = 0 ||
17156 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17159 # configure is writing to config.log, and then calls config.status.
17160 # config.status does its own redirection, appending to config.log.
17161 # Unfortunately, on DOS this fails, as config.log is still kept open
17162 # by configure, so config.status won't be able to write to it; its
17163 # output is simply discarded. So we exec the FD to /dev/null,
17164 # effectively closing config.log, so it can be properly (re)opened and
17165 # appended to by config.status. When coming back to configure, we
17166 # need to make the FD available again.
17167 if test "$no_create" != yes; then
17169 ac_config_status_args=
17170 test "$silent" = yes &&
17171 ac_config_status_args="$ac_config_status_args --quiet"
17173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17176 # would make configure fail if this is the last instruction.
17177 $ac_cs_success || as_fn_exit 1
17179 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17181 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17188 Using python interpreter: $PYTHON
17189 libffi support: $have_libffi
17190 cairo support: $enable_cairo
17191 thread support: $enable_thread
17192 code coverage support: $enable_code_coverage
17197 Using python interpreter: $PYTHON
17198 libffi support: $have_libffi
17199 cairo support: $enable_cairo
17200 thread support: $enable_thread
17201 code coverage support: $enable_code_coverage