2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.8.0.
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.8.0'
595 PACKAGE_STRING='pygobject 3.8.0'
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
752 INSTALL_STRIP_PROGRAM
771 PYGOBJECT_MICRO_VERSION
772 PYGOBJECT_MINOR_VERSION
773 PYGOBJECT_MAJOR_VERSION
802 program_transform_name
815 enable_option_checking
821 enable_dependency_tracking
830 enable_compile_warnings
834 ac_precious_vars='build_alias
859 # Initialize some variables set by options.
861 ac_init_version=false
862 ac_unrecognized_opts=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
873 program_transform_name=s,x,x,
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 includedir='${prefix}/include'
896 oldincludedir='/usr/include'
897 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898 infodir='${datarootdir}/info'
903 libdir='${exec_prefix}/lib'
904 localedir='${datarootdir}/locale'
905 mandir='${datarootdir}/man'
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 # Accept the important Cygnus configure options, so we can diagnose typos.
926 case $ac_dashdash$ac_option in
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
948 cache_file=config.cache ;;
950 -datadir | --datadir | --datadi | --datad)
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
976 eval enable_$ac_useropt=no ;;
978 -docdir | --docdir | --docdi | --doc | --do)
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 htmldir=$ac_optarg ;;
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1047 -libdir | --libdir | --libdi | --libd)
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1138 -psdir | --psdir | --psdi | --psd | --ps)
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 sbindir=$ac_optarg ;;
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 sharedstatedir=$ac_optarg ;;
1164 -site | --site | --sit)
1166 -site=* | --site=* | --sit=*)
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1206 eval with_$ac_useropt=\$ac_optarg ;;
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1222 eval with_$ac_useropt=no ;;
1225 # Obsolete; use --with-x.
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1293 # Be sure to have absolute directory names.
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1306 target=$target_alias
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320 test "$silent" = yes && exec 6>/dev/null
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1363 ac_srcdir_defaulted=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1397 \`configure' configures pygobject 3.8.0 to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/pygobject]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of pygobject 3.8.0:";;
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-silent-rules less verbose build output (undo: `make V=1')
1476 --disable-silent-rules verbose build output (undo: `make V=0')
1477 --enable-static[=PKGS] build static libraries [default=no]
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
1481 --disable-dependency-tracking speeds up one-time build
1482 --enable-dependency-tracking do not reject slow dependency extractors
1483 --disable-libtool-lock avoid locking (might break parallel builds)
1484 --disable-thread Disable pygobject threading support
1485 --disable-glibtest do not try to compile and run a test GLIB program
1486 --enable-cairo Enable Cairo bindings using introspection
1488 --enable-compile-warnings=[no/minimum/yes/maximum/error]
1489 Turn on compiler warnings
1490 --enable-iso-c Try to warn if code is not ISO C
1491 --enable-code-coverage Whether to enable code coverage support
1494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1499 --with-sysroot=DIR Search for dependent libraries within DIR
1500 (or the compiler's sysroot if not specified).
1501 --with-python=PATH Path to Python interpreter; searches $PATH if only a
1502 program name is given; if not given, searches for a
1503 few standard names such as "python3" or "python2"
1504 --without-ffi Disable libffi support
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1515 PYTHON the Python interpreter
1516 PKG_CONFIG path to pkg-config utility
1518 directories to add to pkg-config's search path
1520 path overriding pkg-config's built-in search path
1521 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config
1522 FFI_LIBS linker flags for FFI, overriding pkg-config
1523 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1524 GIO_LIBS linker flags for GIO, overriding pkg-config
1525 GI_CFLAGS C compiler flags for GI, overriding pkg-config
1526 GI_LIBS linker flags for GI, overriding pkg-config
1528 C compiler flags for CAIRO, overriding pkg-config
1529 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1531 C compiler flags for PYCAIRO, overriding pkg-config
1533 linker flags for PYCAIRO, overriding pkg-config
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1538 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1539 pygobject home page: <https://live.gnome.org/PyGObject/>.
1544 if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547 test -d "$ac_dir" ||
1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1569 .) # We are building in place.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1602 pygobject configure 3.8.0
1603 generated by GNU Autoconf 2.69
1605 Copyright (C) 2012 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1612 ## ------------------------ ##
1613 ## Autoconf initialization. ##
1614 ## ------------------------ ##
1616 # ac_fn_c_try_compile LINENO
1617 # --------------------------
1618 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_compile ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 rm -f conftest.$ac_objext
1623 if { { ac_try="$ac_compile"
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_compile") 2>conftest.err
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && {
1639 test -z "$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1641 } && test -s conftest.$ac_objext; then :
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1652 } # ac_fn_c_try_compile
1654 # ac_fn_c_try_link LINENO
1655 # -----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded.
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext conftest$ac_exeext
1661 if { { ac_try="$ac_link"
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>conftest.err
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest$ac_exeext && {
1680 test "$cross_compiling" = yes ||
1681 test -x conftest$ac_exeext
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1691 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1692 # interfere with the next link command; also delete a directory that is
1693 # left behind by Apple's compiler. We do this before executing the actions.
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1698 } # ac_fn_c_try_link
1700 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists and can be compiled using the include files in
1703 # INCLUDES, setting the cache variable VAR accordingly.
1704 ac_fn_c_check_header_compile ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \${$3+:} false; then :
1710 $as_echo_n "(cached) " >&6
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1717 if ac_fn_c_try_compile "$LINENO"; then :
1722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1726 $as_echo "$ac_res" >&6; }
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 } # ac_fn_c_check_header_compile
1731 # ac_fn_c_try_cpp LINENO
1732 # ----------------------
1733 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_cpp conftest.$ac_ext"
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } > conftest.i && {
1753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1768 # ac_fn_c_try_run LINENO
1769 # ----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771 # that executables *can* be run.
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { { ac_try="$ac_link"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>&5
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786 { { case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_try") 2>&5
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; }; }; then :
1798 $as_echo "$as_me: program exited with status $ac_status" >&5
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=$ac_status
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1810 # ac_fn_c_check_func LINENO FUNC VAR
1811 # ----------------------------------
1812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1813 ac_fn_c_check_func ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1825 #define $2 innocuous_$2
1827 /* System header to define __stub macros and hopefully few prototypes,
1828 which can conflict with char $2 (); below.
1829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1830 <limits.h> exists even on freestanding compilers. */
1833 # include <limits.h>
1835 # include <assert.h>
1840 /* Override any GCC internal prototype to avoid an error.
1841 Use char because int might match the return type of a GCC
1842 builtin and then its argument prototype would still apply. */
1847 /* The GNU C library defines this for functions which it implements
1848 to always fail with ENOSYS. Some functions are actually named
1849 something starting with __ and the normal name is an alias. */
1850 #if defined __stub_$2 || defined __stub___$2
1862 if ac_fn_c_try_link "$LINENO"; then :
1867 rm -f core conftest.err conftest.$ac_objext \
1868 conftest$ac_exeext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 } # ac_fn_c_check_func
1876 cat >config.log <<_ACEOF
1877 This file contains any messages produced by compilers while
1878 running configure, to aid debugging if configure makes a mistake.
1880 It was created by pygobject $as_me 3.8.0, which was
1881 generated by GNU Autoconf 2.69. Invocation command line was
1893 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1903 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1904 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1906 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1907 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1908 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir=.
1917 $as_echo "PATH: $as_dir"
1933 # Keep a trace of the command line.
1934 # Strip out --no-create and --no-recursion so they do not pile up.
1935 # Strip out --silent because we don't want to record it for future runs.
1936 # Also quote any args containing shell meta-characters.
1937 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_must_keep_next=false
1947 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1949 | -silent | --silent | --silen | --sile | --sil)
1952 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957 as_fn_append ac_configure_args1 " '$ac_arg'"
1958 if test $ac_must_keep_next = true; then
1959 ac_must_keep_next=false # Got value, back to normal.
1962 *=* | --config-cache | -C | -disable-* | --disable-* \
1963 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1964 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1965 | -with-* | --with-* | -without-* | --without-* | --x)
1966 case "$ac_configure_args0 " in
1967 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970 -* ) ac_must_keep_next=true ;;
1973 as_fn_append ac_configure_args " '$ac_arg'"
1978 { ac_configure_args0=; unset ac_configure_args0;}
1979 { ac_configure_args1=; unset ac_configure_args1;}
1981 # When interrupted or exit'd, cleanup temporary files, and complete
1982 # config.log. We remove comments because anyway the quotes in there
1983 # would cause problems or look ugly.
1984 # WARNING: Use '\'' to represent an apostrophe within the trap.
1985 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1986 trap 'exit_status=$?
1987 # Save into config.log some information that might help in debugging.
1991 $as_echo "## ---------------- ##
1992 ## Cache variables. ##
1993 ## ---------------- ##"
1995 # The following way of writing the cache mishandles newlines in values,
1997 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1998 eval ac_val=\$$ac_var
2002 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2003 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006 _ | IFS | as_nl) ;; #(
2007 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2008 *) { eval $ac_var=; unset $ac_var;} ;;
2013 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2014 *${as_nl}ac_space=\ *)
2016 "s/'\''/'\''\\\\'\'''\''/g;
2017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027 $as_echo "## ----------------- ##
2028 ## Output variables. ##
2029 ## ----------------- ##"
2031 for ac_var in $ac_subst_vars
2033 eval ac_val=\$$ac_var
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 $as_echo "$ac_var='\''$ac_val'\''"
2041 if test -n "$ac_subst_files"; then
2042 $as_echo "## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##"
2046 for ac_var in $ac_subst_files
2048 eval ac_val=\$$ac_var
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 $as_echo "$ac_var='\''$ac_val'\''"
2057 if test -s confdefs.h; then
2058 $as_echo "## ----------- ##
2065 test "$ac_signal" != 0 &&
2066 $as_echo "$as_me: caught signal $ac_signal"
2067 $as_echo "$as_me: exit $exit_status"
2069 rm -f core *.core core.conftest.* &&
2070 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073 for ac_signal in 1 2 13 15; do
2074 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2079 rm -f -r conftest* confdefs.h
2081 $as_echo "/* confdefs.h */" > confdefs.h
2083 # Predefined preprocessor variables.
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_NAME "$PACKAGE_NAME"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_STRING "$PACKAGE_STRING"
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_URL "$PACKAGE_URL"
2110 # Let the site file select an alternate cache file if it wants to.
2111 # Prefer an explicitly selected file to automatically selected ones.
2114 if test -n "$CONFIG_SITE"; then
2115 # We do not want a PATH search for config.site.
2116 case $CONFIG_SITE in #((
2117 -*) ac_site_file1=./$CONFIG_SITE;;
2118 */*) ac_site_file1=$CONFIG_SITE;;
2119 *) ac_site_file1=./$CONFIG_SITE;;
2121 elif test "x$prefix" != xNONE; then
2122 ac_site_file1=$prefix/share/config.site
2123 ac_site_file2=$prefix/etc/config.site
2125 ac_site_file1=$ac_default_prefix/share/config.site
2126 ac_site_file2=$ac_default_prefix/etc/config.site
2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130 test "x$ac_site_file" = xNONE && continue
2131 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134 sed 's/^/| /' "$ac_site_file" >&5
2136 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2138 as_fn_error $? "failed to load site script $ac_site_file
2139 See \`config.log' for more details" "$LINENO" 5; }
2143 if test -r "$cache_file"; then
2144 # Some versions of bash will fail to source /dev/null (special files
2145 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2146 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2148 $as_echo "$as_me: loading cache $cache_file" >&6;}
2150 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2151 *) . "./$cache_file";;
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2156 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160 # Check that the precious variables saved in the cache have kept the same
2162 ac_cache_corrupted=false
2163 for ac_var in $ac_precious_vars; do
2164 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2165 eval ac_new_set=\$ac_env_${ac_var}_set
2166 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2167 eval ac_new_val=\$ac_env_${ac_var}_value
2168 case $ac_old_set,$ac_new_set in
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2176 ac_cache_corrupted=: ;;
2179 if test "x$ac_old_val" != "x$ac_new_val"; then
2180 # differences in whitespace do not lead to failure.
2181 ac_old_val_w=`echo x $ac_old_val`
2182 ac_new_val_w=`echo x $ac_new_val`
2183 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2185 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2186 ac_cache_corrupted=:
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2189 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2190 eval $ac_var=\$ac_old_val
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2193 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2195 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198 # Pass precious variables to config.status.
2199 if test "$ac_new_set" = set; then
2201 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2202 *) ac_arg=$ac_var=$ac_new_val ;;
2204 case " $ac_configure_args " in
2205 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2206 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210 if $ac_cache_corrupted; then
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2214 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2215 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217 ## -------------------- ##
2218 ## Main body of script. ##
2219 ## -------------------- ##
2222 ac_cpp='$CPP $CPPFLAGS'
2223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228 ACLOCAL_AMFLAGS="-I m4 -I ."
2234 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2236 PYGOBJECT_MAJOR_VERSION=3
2239 $as_echo "#define PYGOBJECT_MINOR_VERSION 8" >>confdefs.h
2241 PYGOBJECT_MINOR_VERSION=8
2244 $as_echo "#define PYGOBJECT_MICRO_VERSION 0" >>confdefs.h
2246 PYGOBJECT_MICRO_VERSION=0
2249 ac_config_headers="$ac_config_headers config.h"
2251 # Check whether --enable-silent-rules was given.
2252 if test "${enable_silent_rules+set}" = set; then :
2253 enableval=$enable_silent_rules;
2256 case $enable_silent_rules in
2257 yes) AM_DEFAULT_VERBOSITY=0;;
2258 no) AM_DEFAULT_VERBOSITY=1;;
2259 *) AM_DEFAULT_VERBOSITY=0;;
2261 am_make=${MAKE-make}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2263 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2264 if ${am_cv_make_support_nested_variables+:} false; then :
2265 $as_echo_n "(cached) " >&6
2267 if $as_echo 'TRUE=$(BAR$(V))
2273 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2274 am_cv_make_support_nested_variables=yes
2276 am_cv_make_support_nested_variables=no
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2280 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2281 if test $am_cv_make_support_nested_variables = yes; then
2283 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2285 AM_V=$AM_DEFAULT_VERBOSITY
2286 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2290 am__api_version='1.11'
2293 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2294 if test -f "$ac_dir/install-sh"; then
2296 ac_install_sh="$ac_aux_dir/install-sh -c"
2298 elif test -f "$ac_dir/install.sh"; then
2300 ac_install_sh="$ac_aux_dir/install.sh -c"
2302 elif test -f "$ac_dir/shtool"; then
2304 ac_install_sh="$ac_aux_dir/shtool install -c"
2308 if test -z "$ac_aux_dir"; then
2309 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2312 # These three variables are undocumented and unsupported,
2313 # and are intended to be withdrawn in a future Autoconf release.
2314 # They can cause serious problems if a builder's source tree is in a directory
2315 # whose full name contains unusual characters.
2316 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2317 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2318 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2321 # Find a good install program. We prefer a C program (faster),
2322 # so one script is as good as another. But avoid the broken or
2323 # incompatible versions:
2324 # SysV /etc/install, /usr/sbin/install
2325 # SunOS /usr/etc/install
2326 # IRIX /sbin/install
2328 # AmigaOS /C/install, which installs bootblocks on floppy discs
2329 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2330 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2331 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2332 # OS/2's system install, which has a completely different semantic
2333 # ./install, which can be erroneously created by make from ./install.sh.
2334 # Reject install programs that cannot install multiple files.
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2336 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2337 if test -z "$INSTALL"; then
2338 if ${ac_cv_path_install+:} false; then :
2339 $as_echo_n "(cached) " >&6
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 # Account for people who put trailing slashes in PATH elements.
2347 case $as_dir/ in #((
2348 ./ | .// | /[cC]/* | \
2349 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2350 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2353 # OSF1 and SCO ODT 3.0 have their own names for install.
2354 # Don't use installbsd from OSF since it installs stuff as root
2356 for ac_prog in ginstall scoinst install; do
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2359 if test $ac_prog = install &&
2360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361 # AIX install. It has an incompatible calling convention.
2363 elif test $ac_prog = install &&
2364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365 # program-specific install script used by HP pwplus--don't use.
2368 rm -rf conftest.one conftest.two conftest.dir
2369 echo one > conftest.one
2370 echo two > conftest.two
2372 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2373 test -s conftest.one && test -s conftest.two &&
2374 test -s conftest.dir/conftest.one &&
2375 test -s conftest.dir/conftest.two
2377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2390 rm -rf conftest.one conftest.two conftest.dir
2393 if test "${ac_cv_path_install+set}" = set; then
2394 INSTALL=$ac_cv_path_install
2396 # As a last resort, use the slow shell script. Don't cache a
2397 # value for INSTALL within a source directory, because that will
2398 # break other packages using the cache if that directory is
2399 # removed, or if the value is a relative name.
2400 INSTALL=$ac_install_sh
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2404 $as_echo "$INSTALL" >&6; }
2406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2407 # It thinks the first close brace ends the variable substitution.
2408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2415 $as_echo_n "checking whether build environment is sane... " >&6; }
2418 echo timestamp > conftest.file
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
2438 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2439 if test "$*" = "X"; then
2441 set X `ls -t "$srcdir/configure" conftest.file`
2444 if test "$*" != "X $srcdir/configure conftest.file" \
2445 && test "$*" != "X conftest.file $srcdir/configure"; then
2447 # If neither matched, then we have a broken ls. This can happen
2448 # if, for instance, CONFIG_SHELL is bash and it inherits a
2449 # broken ls alias from the environment. This has actually
2450 # happened. Such a system could not be considered "sane".
2451 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2452 alias in your environment" "$LINENO" 5
2455 test "$2" = conftest.file
2461 as_fn_error $? "newly created file is older than distributed files!
2462 Check your system clock" "$LINENO" 5
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465 $as_echo "yes" >&6; }
2466 test "$program_prefix" != NONE &&
2467 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2468 # Use a double $ so make ignores it.
2469 test "$program_suffix" != NONE &&
2470 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2471 # Double any \ or $.
2472 # By default was `s,x,x', remove it if useless.
2473 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2474 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2476 # expand $ac_aux_dir to an absolute path
2477 am_aux_dir=`cd $ac_aux_dir && pwd`
2479 if test x"${MISSING+set}" != xset; then
2482 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2484 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2487 # Use eval to expand $SHELL
2488 if eval "$MISSING --run true"; then
2489 am_missing_run="$MISSING --run "
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2493 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2496 if test x"${install_sh}" != xset; then
2499 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2501 install_sh="\${SHELL} $am_aux_dir/install-sh"
2505 # Installed binaries are usually stripped using `strip' when the user
2506 # run `make install-strip'. However `strip' might not be the right
2507 # tool to use in cross-compilation environments, therefore Automake
2508 # will honor the `STRIP' environment variable to overrule this program.
2509 if test "$cross_compiling" != no; then
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}strip; ac_word=$2
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if ${ac_cv_prog_STRIP+:} false; then :
2516 $as_echo_n "(cached) " >&6
2518 if test -n "$STRIP"; then
2519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 STRIP=$ac_cv_prog_STRIP
2539 if test -n "$STRIP"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2541 $as_echo "$STRIP" >&6; }
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544 $as_echo "no" >&6; }
2549 if test -z "$ac_cv_prog_STRIP"; then
2551 # Extract the first word of "strip", so it can be a program name with args.
2552 set dummy strip; ac_word=$2
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2556 $as_echo_n "(cached) " >&6
2558 if test -n "$ac_ct_STRIP"; then
2559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_ac_ct_STRIP="strip"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2579 if test -n "$ac_ct_STRIP"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2581 $as_echo "$ac_ct_STRIP" >&6; }
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2587 if test "x$ac_ct_STRIP" = x; then
2590 case $cross_compiling:$ac_tool_warned in
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594 ac_tool_warned=yes ;;
2599 STRIP="$ac_cv_prog_STRIP"
2603 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2606 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2607 if test -z "$MKDIR_P"; then
2608 if ${ac_cv_path_mkdir+:} false; then :
2609 $as_echo_n "(cached) " >&6
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2615 test -z "$as_dir" && as_dir=.
2616 for ac_prog in mkdir gmkdir; do
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2619 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2620 'mkdir (GNU coreutils) '* | \
2621 'mkdir (coreutils) '* | \
2622 'mkdir (fileutils) '4.1*)
2623 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2633 test -d ./--version && rmdir ./--version
2634 if test "${ac_cv_path_mkdir+set}" = set; then
2635 MKDIR_P="$ac_cv_path_mkdir -p"
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for MKDIR_P within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 MKDIR_P="$ac_install_sh -d"
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2645 $as_echo "$MKDIR_P" >&6; }
2649 [\\/$]* | ?:[\\/]*) ;;
2650 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2653 for ac_prog in gawk mawk nawk awk
2655 # Extract the first word of "$ac_prog", so it can be a program name with args.
2656 set dummy $ac_prog; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_AWK+:} false; then :
2660 $as_echo_n "(cached) " >&6
2662 if test -n "$AWK"; then
2663 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672 ac_cv_prog_AWK="$ac_prog"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 if test -n "$AWK"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2685 $as_echo "$AWK" >&6; }
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2692 test -n "$AWK" && break
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2696 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2698 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2699 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2700 $as_echo_n "(cached) " >&6
2702 cat >conftest.make <<\_ACEOF
2705 @echo '@@@%%%=$(MAKE)=@@@%%%'
2707 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2708 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2710 eval ac_cv_prog_make_${ac_make}_set=yes;;
2712 eval ac_cv_prog_make_${ac_make}_set=no;;
2716 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2718 $as_echo "yes" >&6; }
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2723 SET_MAKE="MAKE=${MAKE-make}"
2726 rm -rf .tst 2>/dev/null
2727 mkdir .tst 2>/dev/null
2728 if test -d .tst; then
2733 rmdir .tst 2>/dev/null
2735 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2736 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2737 # is not polluted with repeated "-I."
2738 am__isrc=' -I$(srcdir)'
2739 # test to see if srcdir already configured
2740 if test -f $srcdir/config.status; then
2741 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2745 # test whether we have cygpath
2746 if test -z "$CYGPATH_W"; then
2747 if (cygpath --version) >/dev/null 2>/dev/null; then
2748 CYGPATH_W='cygpath -w'
2755 # Define the identity of the package.
2760 cat >>confdefs.h <<_ACEOF
2761 #define PACKAGE "$PACKAGE"
2765 cat >>confdefs.h <<_ACEOF
2766 #define VERSION "$VERSION"
2769 # Some tools Automake needs.
2771 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2774 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2777 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2780 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2783 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2785 # We need awk for the "check" target. The system "awk" is bad on
2787 # Always define AMTAR for backward compatibility. Yes, it's still used
2788 # in the wild :-( We should find a proper way to deprecate it ...
2791 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2798 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2800 # Make sure we can run config.sub.
2801 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2802 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2805 $as_echo_n "checking build system type... " >&6; }
2806 if ${ac_cv_build+:} false; then :
2807 $as_echo_n "(cached) " >&6
2809 ac_build_alias=$build_alias
2810 test "x$ac_build_alias" = x &&
2811 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2812 test "x$ac_build_alias" = x &&
2813 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2815 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2819 $as_echo "$ac_cv_build" >&6; }
2820 case $ac_cv_build in
2822 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2825 ac_save_IFS=$IFS; IFS='-'
2831 # Remember, the first character of IFS is used to create $*,
2832 # except with old shells:
2835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2839 $as_echo_n "checking host system type... " >&6; }
2840 if ${ac_cv_host+:} false; then :
2841 $as_echo_n "(cached) " >&6
2843 if test "x$host_alias" = x; then
2844 ac_cv_host=$ac_cv_build
2846 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2847 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2852 $as_echo "$ac_cv_host" >&6; }
2855 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2858 ac_save_IFS=$IFS; IFS='-'
2864 # Remember, the first character of IFS is used to create $*,
2865 # except with old shells:
2868 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
2872 $as_echo_n "checking for some Win32 platform... " >&6; }
2874 *-*-mingw*|*-*-cygwin*)
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
2882 $as_echo "$platform_win32" >&6; }
2883 if test "$platform_win32" = "yes"; then
2884 PLATFORM_WIN32_TRUE=
2885 PLATFORM_WIN32_FALSE='#'
2887 PLATFORM_WIN32_TRUE='#'
2888 PLATFORM_WIN32_FALSE=
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
2893 $as_echo_n "checking for native Win32... " >&6; }
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
2903 $as_echo "$os_win32" >&6; }
2904 if test "$os_win32" = "yes"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2917 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2922 macro_version='2.4.2'
2923 macro_revision='1.3337'
2937 ltmain="$ac_aux_dir/ltmain.sh"
2939 # Backslashify metacharacters that are still active within
2940 # double-quoted strings.
2941 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2943 # Same as above, but do not quote variable references.
2944 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2946 # Sed substitution to delay expansion of an escaped shell variable in a
2947 # double_quote_subst'ed string.
2948 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2950 # Sed substitution to delay expansion of an escaped single quote.
2951 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2953 # Sed substitution to avoid accidental globbing in evaled expressions
2954 no_glob_subst='s/\*/\\\*/g'
2956 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2958 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2961 $as_echo_n "checking how to print strings... " >&6; }
2962 # Test print first, because it will be a builtin if present.
2963 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2964 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2966 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2969 # Use this function as a fallback that always works.
2970 func_fallback_echo ()
2972 eval 'cat <<_LTECHO_EOF
2976 ECHO='func_fallback_echo'
2979 # func_echo_all arg...
2980 # Invoke $ECHO with all args, space-separated.
2987 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2988 $as_echo "printf" >&6; } ;;
2989 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2990 $as_echo "print -r" >&6; } ;;
2991 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2992 $as_echo "cat" >&6; } ;;
3008 DEPDIR="${am__leading_dot}deps"
3010 ac_config_commands="$ac_config_commands depfiles"
3013 am_make=${MAKE-make}
3014 cat > confinc << 'END'
3016 @echo this is the am__doit target
3019 # If we don't find an include directive, just comment out the code.
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3021 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3025 # First try GNU make style include.
3026 echo "include confinc" > confmf
3027 # Ignore all kinds of additional output from `make'.
3028 case `$am_make -s -f confmf 2> /dev/null` in #(
3029 *the\ am__doit\ target*)
3035 # Now try BSD make style include.
3036 if test "$am__include" = "#"; then
3037 echo '.include "confinc"' > confmf
3038 case `$am_make -s -f confmf 2> /dev/null` in #(
3039 *the\ am__doit\ target*)
3040 am__include=.include
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3049 $as_echo "$_am_result" >&6; }
3050 rm -f confinc confmf
3052 # Check whether --enable-dependency-tracking was given.
3053 if test "${enable_dependency_tracking+set}" = set; then :
3054 enableval=$enable_dependency_tracking;
3057 if test "x$enable_dependency_tracking" != xno; then
3058 am_depcomp="$ac_aux_dir/depcomp"
3062 if test "x$enable_dependency_tracking" != xno; then
3072 ac_cpp='$CPP $CPPFLAGS'
3073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3076 if test -n "$ac_tool_prefix"; then
3077 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3078 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_CC+:} false; then :
3082 $as_echo_n "(cached) " >&6
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3115 if test -z "$ac_cv_prog_CC"; then
3117 # Extract the first word of "gcc", so it can be a program name with args.
3118 set dummy gcc; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3122 $as_echo_n "(cached) " >&6
3124 if test -n "$ac_ct_CC"; then
3125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_CC="gcc"
3135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3145 if test -n "$ac_ct_CC"; then
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3147 $as_echo "$ac_ct_CC" >&6; }
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3153 if test "x$ac_ct_CC" = x; then
3156 case $cross_compiling:$ac_tool_warned in
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3160 ac_tool_warned=yes ;;
3168 if test -z "$CC"; then
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}cc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_CC+:} false; then :
3175 $as_echo_n "(cached) " >&6
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_CC="${ac_tool_prefix}cc"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3209 if test -z "$CC"; then
3210 # Extract the first word of "cc", so it can be a program name with args.
3211 set dummy cc; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_CC+:} false; then :
3215 $as_echo_n "(cached) " >&6
3217 if test -n "$CC"; then
3218 ac_cv_prog_CC="$CC" # Let the user override the test.
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3229 ac_prog_rejected=yes
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 if test $ac_prog_rejected = yes; then
3241 # We found a bogon in the path, so make sure we never use it.
3242 set dummy $ac_cv_prog_CC
3244 if test $# != 0; then
3245 # We chose a different compiler from the bogus one.
3246 # However, it has the same basename, so the bogon will be chosen
3247 # first if we set CC to just the basename; use the full file name.
3249 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3255 if test -n "$CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 $as_echo "$CC" >&6; }
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3265 if test -z "$CC"; then
3266 if test -n "$ac_tool_prefix"; then
3267 for ac_prog in cl.exe
3269 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299 $as_echo "$CC" >&6; }
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3306 test -n "$CC" && break
3309 if test -z "$CC"; then
3311 for ac_prog in cl.exe
3313 # Extract the first word of "$ac_prog", so it can be a program name with args.
3314 set dummy $ac_prog; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3318 $as_echo_n "(cached) " >&6
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_ac_ct_CC="$ac_prog"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3343 $as_echo "$ac_ct_CC" >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3350 test -n "$ac_ct_CC" && break
3353 if test "x$ac_ct_CC" = x; then
3356 case $cross_compiling:$ac_tool_warned in
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3360 ac_tool_warned=yes ;;
3369 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 as_fn_error $? "no acceptable C compiler found in \$PATH
3372 See \`config.log' for more details" "$LINENO" 5; }
3374 # Provide some information about the compiler.
3375 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3378 for ac_option in --version -v -V -qversion; do
3379 { { ac_try="$ac_compiler $ac_option >&5"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 $as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3388 if test -s conftest.err; then
3390 ... rest of stderr output deleted ...
3391 10q' conftest.err >conftest.er1
3392 cat conftest.er1 >&5
3394 rm -f conftest.er1 conftest.err
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3410 ac_clean_files_save=$ac_clean_files
3411 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3412 # Try to create an executable without -o first, disregard a.out.
3413 # It will help us diagnose broken compilers, and finding out an intuition
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3416 $as_echo_n "checking whether the C compiler works... " >&6; }
3417 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3419 # The possible output files:
3420 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3423 for ac_file in $ac_files
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3427 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432 if { { ac_try="$ac_link_default"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_link_default") 2>&5
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }; then :
3443 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3444 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3445 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3446 # so that the user can short-circuit this test for compilers unknown to
3448 for ac_file in $ac_files ''
3450 test -f "$ac_file" || continue
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3455 # We found the default executable, but exeext='' is most
3459 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3461 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463 # We set ac_cv_exeext here because the later test for it is not
3464 # safe: cross compilers may not add the suffix if given an `-o'
3465 # argument, so we may need to know it at that point already.
3466 # Even if this section looks crufty: it has the advantage of
3473 test "$ac_cv_exeext" = no && ac_cv_exeext=
3478 if test -z "$ac_file"; then :
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3481 $as_echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error 77 "C compiler cannot create executables
3487 See \`config.log' for more details" "$LINENO" 5; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3490 $as_echo "yes" >&6; }
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3493 $as_echo_n "checking for C compiler default output file name... " >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3495 $as_echo "$ac_file" >&6; }
3496 ac_exeext=$ac_cv_exeext
3498 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3499 ac_clean_files=$ac_clean_files_save
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3501 $as_echo_n "checking for suffix of executables... " >&6; }
3502 if { { ac_try="$ac_link"
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_link") 2>&5
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }; then :
3513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3514 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3515 # work properly (i.e., refer to `conftest.exe'), while it won't with
3517 for ac_file in conftest.exe conftest conftest.*; do
3518 test -f "$ac_file" || continue
3520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3521 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3530 See \`config.log' for more details" "$LINENO" 5; }
3532 rm -f conftest conftest$ac_cv_exeext
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3534 $as_echo "$ac_cv_exeext" >&6; }
3536 rm -f conftest.$ac_ext
3537 EXEEXT=$ac_cv_exeext
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3545 FILE *f = fopen ("conftest.out", "w");
3546 return ferror (f) || fclose (f) != 0;
3552 ac_clean_files="$ac_clean_files conftest.out"
3553 # Check that the compiler produces executables we can run. If not, either
3554 # the compiler is broken, or we cross compile.
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3556 $as_echo_n "checking whether we are cross compiling... " >&6; }
3557 if test "$cross_compiling" != yes; then
3558 { { ac_try="$ac_link"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_link") 2>&5
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }
3569 if { ac_try='./conftest$ac_cv_exeext'
3570 { { case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3575 $as_echo "$ac_try_echo"; } >&5
3576 (eval "$ac_try") 2>&5
3578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3579 test $ac_status = 0; }; }; then
3582 if test "$cross_compiling" = maybe; then
3585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3587 as_fn_error $? "cannot run C compiled programs.
3588 If you meant to cross compile, use \`--host'.
3589 See \`config.log' for more details" "$LINENO" 5; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3594 $as_echo "$cross_compiling" >&6; }
3596 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3597 ac_clean_files=$ac_clean_files_save
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3599 $as_echo_n "checking for suffix of object files... " >&6; }
3600 if ${ac_cv_objext+:} false; then :
3601 $as_echo_n "(cached) " >&6
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3614 rm -f conftest.o conftest.obj
3615 if { { ac_try="$ac_compile"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_compile") 2>&5
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; then :
3626 for ac_file in conftest.o conftest.obj conftest.*; do
3627 test -f "$ac_file" || continue;
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3630 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3635 $as_echo "$as_me: failed program was:" >&5
3636 sed 's/^/| /' conftest.$ac_ext >&5
3638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error $? "cannot compute suffix of object files: cannot compile
3641 See \`config.log' for more details" "$LINENO" 5; }
3643 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3646 $as_echo "$ac_cv_objext" >&6; }
3647 OBJEXT=$ac_cv_objext
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3650 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3651 if ${ac_cv_c_compiler_gnu+:} false; then :
3652 $as_echo_n "(cached) " >&6
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3668 if ac_fn_c_try_compile "$LINENO"; then :
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3678 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3679 if test $ac_compiler_gnu = yes; then
3684 ac_test_CFLAGS=${CFLAGS+set}
3685 ac_save_CFLAGS=$CFLAGS
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3687 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3688 if ${ac_cv_prog_cc_g+:} false; then :
3689 $as_echo_n "(cached) " >&6
3691 ac_save_c_werror_flag=$ac_c_werror_flag
3692 ac_c_werror_flag=yes
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3706 if ac_fn_c_try_compile "$LINENO"; then :
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3721 if ac_fn_c_try_compile "$LINENO"; then :
3724 ac_c_werror_flag=$ac_save_c_werror_flag
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3737 if ac_fn_c_try_compile "$LINENO"; then :
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ac_c_werror_flag=$ac_save_c_werror_flag
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3748 $as_echo "$ac_cv_prog_cc_g" >&6; }
3749 if test "$ac_test_CFLAGS" = set; then
3750 CFLAGS=$ac_save_CFLAGS
3751 elif test $ac_cv_prog_cc_g = yes; then
3752 if test "$GCC" = yes; then
3758 if test "$GCC" = yes; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3765 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3766 if ${ac_cv_prog_cc_c89+:} false; then :
3767 $as_echo_n "(cached) " >&6
3769 ac_cv_prog_cc_c89=no
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3777 struct buf { int x; };
3778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3779 static char *e (p, i)
3785 static char *f (char * (*g) (char **, int), char **p, ...)
3790 s = g (p, va_arg (v,int));
3795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3796 function prototypes and stuff, but not '\xHH' hex character constants.
3797 These don't provoke an error unfortunately, instead are silently treated
3798 as 'x'. The following induces an error, until -std is added to get
3799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3800 array size at least. It's necessary to write '\x00'==0 to get something
3801 that's true only with -std. */
3802 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3804 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3805 inside strings and character constants. */
3807 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3809 int test (int i, double x);
3810 struct s1 {int (*f) (int a);};
3811 struct s2 {int (*f) (double a);};
3812 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3818 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3824 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3826 CC="$ac_save_CC $ac_arg"
3827 if ac_fn_c_try_compile "$LINENO"; then :
3828 ac_cv_prog_cc_c89=$ac_arg
3830 rm -f core conftest.err conftest.$ac_objext
3831 test "x$ac_cv_prog_cc_c89" != "xno" && break
3833 rm -f conftest.$ac_ext
3838 case "x$ac_cv_prog_cc_c89" in
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3841 $as_echo "none needed" >&6; } ;;
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3844 $as_echo "unsupported" >&6; } ;;
3846 CC="$CC $ac_cv_prog_cc_c89"
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3850 if test "x$ac_cv_prog_cc_c89" != xno; then :
3855 ac_cpp='$CPP $CPPFLAGS'
3856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860 depcc="$CC" am_compiler_list=
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3863 $as_echo_n "checking dependency style of $depcc... " >&6; }
3864 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3865 $as_echo_n "(cached) " >&6
3867 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3868 # We make a subdir and do the tests there. Otherwise we can end up
3869 # making bogus files that we don't know about and never remove. For
3870 # instance it was reported that on HP-UX the gcc test will end up
3871 # making a dummy file named `D' -- because `-MD' means `put the output
3875 # Copy depcomp to subdir because otherwise we won't find it if we're
3876 # using a relative directory.
3877 cp "$am_depcomp" conftest.dir
3879 # We will build objects and dependencies in a subdirectory because
3880 # it helps to detect inapplicable dependency modes. For instance
3881 # both Tru64's cc and ICC support -MD to output dependencies as a
3882 # side effect of compilation, but ICC will put the dependencies in
3883 # the current directory while Tru64 will put them in the object
3887 am_cv_CC_dependencies_compiler_type=none
3888 if test "$am_compiler_list" = ""; then
3889 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3892 case " $depcc " in #(
3893 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3896 for depmode in $am_compiler_list; do
3897 # Setup a source with many dependencies, because some compilers
3898 # like to wrap large dependency lists on column 80 (with \), and
3899 # we should not choose a depcomp mode which is confused by this.
3901 # We need to recreate these files for each test, as the compiler may
3902 # overwrite some of them when testing with obscure command lines.
3903 # This happens at least with the AIX C compiler.
3905 for i in 1 2 3 4 5 6; do
3906 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3907 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3908 # Solaris 8's {/usr,}/bin/sh.
3909 touch sub/conftst$i.h
3911 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3913 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3914 # mode. It turns out that the SunPro C++ compiler does not properly
3915 # handle `-M -o', and we need to detect this. Also, some Intel
3916 # versions had trouble with output in subdirs
3917 am__obj=sub/conftest.${OBJEXT-o}
3918 am__minus_obj="-o $am__obj"
3921 # This depmode causes a compiler race in universal mode.
3922 test "$am__universal" = false || continue
3925 # after this tag, mechanisms are not by side-effect, so they'll
3926 # only be used when explicitly requested
3927 if test "x$enable_dependency_tracking" = xyes; then
3933 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3934 # This compiler won't grok `-c -o', but also, the minuso test has
3935 # not run yet. These depmodes are late enough in the game, and
3936 # so weak that their functioning should not be impacted.
3937 am__obj=conftest.${OBJEXT-o}
3942 if depmode=$depmode \
3943 source=sub/conftest.c object=$am__obj \
3944 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3946 >/dev/null 2>conftest.err &&
3947 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3948 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3949 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3950 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3951 # icc doesn't choke on unknown options, it will just issue warnings
3952 # or remarks (even with -Werror). So we grep stderr for any message
3953 # that says an option was ignored or not supported.
3954 # When given -MP, icc 7.0 and 7.1 complain thusly:
3955 # icc: Command line warning: ignoring option '-M'; no argument required
3956 # The diagnosis changed in icc 8.0:
3957 # icc: Command line remark: option '-MP' not supported
3958 if (grep 'ignoring option' conftest.err ||
3959 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3960 am_cv_CC_dependencies_compiler_type=$depmode
3969 am_cv_CC_dependencies_compiler_type=none
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3974 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3975 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3978 test "x$enable_dependency_tracking" != xno \
3979 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3981 am__fastdepCC_FALSE='#'
3983 am__fastdepCC_TRUE='#'
3984 am__fastdepCC_FALSE=
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3989 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3990 if ${ac_cv_path_SED+:} false; then :
3991 $as_echo_n "(cached) " >&6
3993 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3994 for ac_i in 1 2 3 4 5 6 7; do
3995 ac_script="$ac_script$as_nl$ac_script"
3997 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3998 { ac_script=; unset ac_script;}
3999 if test -z "$SED"; then
4000 ac_path_SED_found=false
4001 # Loop through the user's path and test for each of PROGNAME-LIST
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 test -z "$as_dir" && as_dir=.
4007 for ac_prog in sed gsed; do
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4010 as_fn_executable_p "$ac_path_SED" || continue
4011 # Check for GNU ac_path_SED and select it if it is found.
4012 # Check for GNU $ac_path_SED
4013 case `"$ac_path_SED" --version 2>&1` in
4015 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4018 $as_echo_n 0123456789 >"conftest.in"
4021 cat "conftest.in" "conftest.in" >"conftest.tmp"
4022 mv "conftest.tmp" "conftest.in"
4023 cp "conftest.in" "conftest.nl"
4024 $as_echo '' >> "conftest.nl"
4025 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4026 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4027 as_fn_arith $ac_count + 1 && ac_count=$as_val
4028 if test $ac_count -gt ${ac_path_SED_max-0}; then
4029 # Best one so far, save it but keep looking for a better one
4030 ac_cv_path_SED="$ac_path_SED"
4031 ac_path_SED_max=$ac_count
4033 # 10*(2^10) chars as input seems more than enough
4034 test $ac_count -gt 10 && break
4036 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4039 $ac_path_SED_found && break 3
4044 if test -z "$ac_cv_path_SED"; then
4045 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4053 $as_echo "$ac_cv_path_SED" >&6; }
4054 SED="$ac_cv_path_SED"
4057 test -z "$SED" && SED=sed
4058 Xsed="$SED -e 1s/^X//"
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4071 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4072 if ${ac_cv_path_GREP+:} false; then :
4073 $as_echo_n "(cached) " >&6
4075 if test -z "$GREP"; then
4076 ac_path_GREP_found=false
4077 # Loop through the user's path and test for each of PROGNAME-LIST
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4082 test -z "$as_dir" && as_dir=.
4083 for ac_prog in grep ggrep; do
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4086 as_fn_executable_p "$ac_path_GREP" || continue
4087 # Check for GNU ac_path_GREP and select it if it is found.
4088 # Check for GNU $ac_path_GREP
4089 case `"$ac_path_GREP" --version 2>&1` in
4091 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4094 $as_echo_n 0123456789 >"conftest.in"
4097 cat "conftest.in" "conftest.in" >"conftest.tmp"
4098 mv "conftest.tmp" "conftest.in"
4099 cp "conftest.in" "conftest.nl"
4100 $as_echo 'GREP' >> "conftest.nl"
4101 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4103 as_fn_arith $ac_count + 1 && ac_count=$as_val
4104 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4105 # Best one so far, save it but keep looking for a better one
4106 ac_cv_path_GREP="$ac_path_GREP"
4107 ac_path_GREP_max=$ac_count
4109 # 10*(2^10) chars as input seems more than enough
4110 test $ac_count -gt 10 && break
4112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4115 $ac_path_GREP_found && break 3
4120 if test -z "$ac_cv_path_GREP"; then
4121 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4124 ac_cv_path_GREP=$GREP
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4129 $as_echo "$ac_cv_path_GREP" >&6; }
4130 GREP="$ac_cv_path_GREP"
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4134 $as_echo_n "checking for egrep... " >&6; }
4135 if ${ac_cv_path_EGREP+:} false; then :
4136 $as_echo_n "(cached) " >&6
4138 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4139 then ac_cv_path_EGREP="$GREP -E"
4141 if test -z "$EGREP"; then
4142 ac_path_EGREP_found=false
4143 # Loop through the user's path and test for each of PROGNAME-LIST
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148 test -z "$as_dir" && as_dir=.
4149 for ac_prog in egrep; do
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4152 as_fn_executable_p "$ac_path_EGREP" || continue
4153 # Check for GNU ac_path_EGREP and select it if it is found.
4154 # Check for GNU $ac_path_EGREP
4155 case `"$ac_path_EGREP" --version 2>&1` in
4157 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4160 $as_echo_n 0123456789 >"conftest.in"
4163 cat "conftest.in" "conftest.in" >"conftest.tmp"
4164 mv "conftest.tmp" "conftest.in"
4165 cp "conftest.in" "conftest.nl"
4166 $as_echo 'EGREP' >> "conftest.nl"
4167 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4169 as_fn_arith $ac_count + 1 && ac_count=$as_val
4170 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4171 # Best one so far, save it but keep looking for a better one
4172 ac_cv_path_EGREP="$ac_path_EGREP"
4173 ac_path_EGREP_max=$ac_count
4175 # 10*(2^10) chars as input seems more than enough
4176 test $ac_count -gt 10 && break
4178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181 $ac_path_EGREP_found && break 3
4186 if test -z "$ac_cv_path_EGREP"; then
4187 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4190 ac_cv_path_EGREP=$EGREP
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4196 $as_echo "$ac_cv_path_EGREP" >&6; }
4197 EGREP="$ac_cv_path_EGREP"
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4201 $as_echo_n "checking for fgrep... " >&6; }
4202 if ${ac_cv_path_FGREP+:} false; then :
4203 $as_echo_n "(cached) " >&6
4205 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4206 then ac_cv_path_FGREP="$GREP -F"
4208 if test -z "$FGREP"; then
4209 ac_path_FGREP_found=false
4210 # Loop through the user's path and test for each of PROGNAME-LIST
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215 test -z "$as_dir" && as_dir=.
4216 for ac_prog in fgrep; do
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4219 as_fn_executable_p "$ac_path_FGREP" || continue
4220 # Check for GNU ac_path_FGREP and select it if it is found.
4221 # Check for GNU $ac_path_FGREP
4222 case `"$ac_path_FGREP" --version 2>&1` in
4224 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4227 $as_echo_n 0123456789 >"conftest.in"
4230 cat "conftest.in" "conftest.in" >"conftest.tmp"
4231 mv "conftest.tmp" "conftest.in"
4232 cp "conftest.in" "conftest.nl"
4233 $as_echo 'FGREP' >> "conftest.nl"
4234 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4236 as_fn_arith $ac_count + 1 && ac_count=$as_val
4237 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4238 # Best one so far, save it but keep looking for a better one
4239 ac_cv_path_FGREP="$ac_path_FGREP"
4240 ac_path_FGREP_max=$ac_count
4242 # 10*(2^10) chars as input seems more than enough
4243 test $ac_count -gt 10 && break
4245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248 $ac_path_FGREP_found && break 3
4253 if test -z "$ac_cv_path_FGREP"; then
4254 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4257 ac_cv_path_FGREP=$FGREP
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4263 $as_echo "$ac_cv_path_FGREP" >&6; }
4264 FGREP="$ac_cv_path_FGREP"
4267 test -z "$GREP" && GREP=grep
4287 # Check whether --with-gnu-ld was given.
4288 if test "${with_gnu_ld+set}" = set; then :
4289 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4295 if test "$GCC" = yes; then
4296 # Check if gcc -print-prog-name=ld gives a path.
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4298 $as_echo_n "checking for ld used by $CC... " >&6; }
4301 # gcc leaves a trailing carriage return which upsets mingw
4302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4307 # Accept absolute paths.
4309 re_direlt='/[^/][^/]*/\.\./'
4310 # Canonicalize the pathname of ld
4311 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4312 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4313 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4315 test -z "$LD" && LD="$ac_prog"
4318 # If it fails, then pretend we aren't using GCC.
4322 # If it is relative, then search for the first ld in PATH.
4326 elif test "$with_gnu_ld" = yes; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4328 $as_echo_n "checking for GNU ld... " >&6; }
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4331 $as_echo_n "checking for non-GNU ld... " >&6; }
4333 if ${lt_cv_path_LD+:} false; then :
4334 $as_echo_n "(cached) " >&6
4336 if test -z "$LD"; then
4337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4338 for ac_dir in $PATH; do
4340 test -z "$ac_dir" && ac_dir=.
4341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4342 lt_cv_path_LD="$ac_dir/$ac_prog"
4343 # Check to see if the program is GNU ld. I'd rather use --version,
4344 # but apparently some variants of GNU ld only accept -v.
4345 # Break only if it was the GNU/non-GNU ld that we prefer.
4346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4347 *GNU* | *'with BFD'*)
4348 test "$with_gnu_ld" != no && break
4351 test "$with_gnu_ld" != yes && break
4358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4363 if test -n "$LD"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4365 $as_echo "$LD" >&6; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4370 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4372 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4373 if ${lt_cv_prog_gnu_ld+:} false; then :
4374 $as_echo_n "(cached) " >&6
4376 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4377 case `$LD -v 2>&1 </dev/null` in
4378 *GNU* | *'with BFD'*)
4379 lt_cv_prog_gnu_ld=yes
4382 lt_cv_prog_gnu_ld=no
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4387 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4388 with_gnu_ld=$lt_cv_prog_gnu_ld
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4399 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4400 if ${lt_cv_path_NM+:} false; then :
4401 $as_echo_n "(cached) " >&6
4403 if test -n "$NM"; then
4404 # Let the user override the test.
4407 lt_nm_to_check="${ac_tool_prefix}nm"
4408 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4409 lt_nm_to_check="$lt_nm_to_check nm"
4411 for lt_tmp_nm in $lt_nm_to_check; do
4412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4413 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4415 test -z "$ac_dir" && ac_dir=.
4416 tmp_nm="$ac_dir/$lt_tmp_nm"
4417 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4418 # Check to see if the nm accepts a BSD-compat flag.
4419 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4420 # nm: unknown option "B" ignored
4421 # Tru64's nm complains that /dev/null is an invalid object file
4422 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4423 */dev/null* | *'Invalid file or object type'*)
4424 lt_cv_path_NM="$tmp_nm -B"
4428 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4430 lt_cv_path_NM="$tmp_nm -p"
4434 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4435 continue # so that we can try to find one that supports BSD flags
4444 : ${lt_cv_path_NM=no}
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4448 $as_echo "$lt_cv_path_NM" >&6; }
4449 if test "$lt_cv_path_NM" != "no"; then
4452 # Didn't find any BSD compatible name lister, look for dumpbin.
4453 if test -n "$DUMPBIN"; then :
4454 # Let the user override the test.
4456 if test -n "$ac_tool_prefix"; then
4457 for ac_prog in dumpbin "link -dump"
4459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462 $as_echo_n "checking for $ac_word... " >&6; }
4463 if ${ac_cv_prog_DUMPBIN+:} false; then :
4464 $as_echo_n "(cached) " >&6
4466 if test -n "$DUMPBIN"; then
4467 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4476 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 DUMPBIN=$ac_cv_prog_DUMPBIN
4487 if test -n "$DUMPBIN"; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4489 $as_echo "$DUMPBIN" >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4496 test -n "$DUMPBIN" && break
4499 if test -z "$DUMPBIN"; then
4500 ac_ct_DUMPBIN=$DUMPBIN
4501 for ac_prog in dumpbin "link -dump"
4503 # Extract the first word of "$ac_prog", so it can be a program name with args.
4504 set dummy $ac_prog; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4508 $as_echo_n "(cached) " >&6
4510 if test -n "$ac_ct_DUMPBIN"; then
4511 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4531 if test -n "$ac_ct_DUMPBIN"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4533 $as_echo "$ac_ct_DUMPBIN" >&6; }
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4540 test -n "$ac_ct_DUMPBIN" && break
4543 if test "x$ac_ct_DUMPBIN" = x; then
4546 case $cross_compiling:$ac_tool_warned in
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4550 ac_tool_warned=yes ;;
4552 DUMPBIN=$ac_ct_DUMPBIN
4556 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4558 DUMPBIN="$DUMPBIN -symbols"
4566 if test "$DUMPBIN" != ":"; then
4570 test -z "$NM" && NM=nm
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4578 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4579 if ${lt_cv_nm_interface+:} false; then :
4580 $as_echo_n "(cached) " >&6
4582 lt_cv_nm_interface="BSD nm"
4583 echo "int some_variable = 0;" > conftest.$ac_ext
4584 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4585 (eval "$ac_compile" 2>conftest.err)
4586 cat conftest.err >&5
4587 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4588 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4589 cat conftest.err >&5
4590 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4591 cat conftest.out >&5
4592 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4593 lt_cv_nm_interface="MS dumpbin"
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4598 $as_echo "$lt_cv_nm_interface" >&6; }
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4601 $as_echo_n "checking whether ln -s works... " >&6; }
4603 if test "$LN_S" = "ln -s"; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4605 $as_echo "yes" >&6; }
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4608 $as_echo "no, using $LN_S" >&6; }
4611 # find the maximum length of command line arguments
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4613 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4614 if ${lt_cv_sys_max_cmd_len+:} false; then :
4615 $as_echo_n "(cached) " >&6
4622 # On DJGPP, this test can blow up pretty badly due to problems in libc
4623 # (any single argument exceeding 2000 bytes causes a buffer overrun
4624 # during glob expansion). Even if it were fixed, the result of this
4625 # check would be larger than it should be.
4626 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4630 # Under GNU Hurd, this test is not required because there is
4631 # no limit to the length of command line arguments.
4632 # Libtool will interpret -1 as no limit whatsoever
4633 lt_cv_sys_max_cmd_len=-1;
4636 cygwin* | mingw* | cegcc*)
4637 # On Win9x/ME, this test blows up -- it succeeds, but takes
4638 # about 5 minutes as the teststring grows exponentially.
4639 # Worse, since 9x/ME are not pre-emptively multitasking,
4640 # you end up with a "frozen" computer, even though with patience
4641 # the test eventually succeeds (with a max line length of 256k).
4642 # Instead, let's just punt: use the minimum linelength reported by
4643 # all of the supported platforms: 8192 (on NT/2K/XP).
4644 lt_cv_sys_max_cmd_len=8192;
4648 # On MiNT this can take a long time and run out of memory.
4649 lt_cv_sys_max_cmd_len=8192;
4653 # On AmigaOS with pdksh, this test takes hours, literally.
4654 # So we just punt and use a minimum line length of 8192.
4655 lt_cv_sys_max_cmd_len=8192;
4658 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4659 # This has been around since 386BSD, at least. Likely further.
4660 if test -x /sbin/sysctl; then
4661 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4662 elif test -x /usr/sbin/sysctl; then
4663 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4665 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4667 # And add a safety zone
4668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4673 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4674 lt_cv_sys_max_cmd_len=196608
4678 # The test takes a long time on OS/2.
4679 lt_cv_sys_max_cmd_len=8192
4683 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4684 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4685 # nice to cause kernel panics so lets avoid the loop below.
4686 # First set a reasonable default.
4687 lt_cv_sys_max_cmd_len=16384
4689 if test -x /sbin/sysconfig; then
4690 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4691 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4696 lt_cv_sys_max_cmd_len=102400
4698 sysv5* | sco5v6* | sysv4.2uw2*)
4699 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4700 if test -n "$kargmax"; then
4701 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4703 lt_cv_sys_max_cmd_len=32768
4707 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4708 if test -n "$lt_cv_sys_max_cmd_len" && \
4709 test undefined != "$lt_cv_sys_max_cmd_len"; then
4710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4713 # Make teststring a little bigger before we do anything with it.
4714 # a 1K string should be a reasonable start.
4715 for i in 1 2 3 4 5 6 7 8 ; do
4716 teststring=$teststring$teststring
4718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4719 # If test is not a shell built-in, we'll probably end up computing a
4720 # maximum length that is only half of the actual maximum length, but
4722 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4723 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4724 test $i != 17 # 1/2 MB should be enough
4727 teststring=$teststring$teststring
4729 # Only check the string length outside the loop.
4730 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4732 # Add a significant safety factor because C++ compilers can tack on
4733 # massive amounts of additional arguments before passing them to the
4734 # linker. It appears as though 1/2 is a usable value.
4735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4742 if test -n $lt_cv_sys_max_cmd_len ; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4744 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4747 $as_echo "none" >&6; }
4749 max_cmd_len=$lt_cv_sys_max_cmd_len
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4761 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4762 # Try some XSI features
4765 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4767 && eval 'test $(( 1 + 1 )) -eq 2 \
4768 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4771 $as_echo "$xsi_shell" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4775 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4777 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4779 && lt_shell_append=yes
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4781 $as_echo "$lt_shell_append" >&6; }
4784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4794 # test EBCDIC or ASCII
4795 case `echo X|tr X '\101'` in
4796 A) # ASCII based system
4797 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4798 lt_SP2NL='tr \040 \012'
4799 lt_NL2SP='tr \015\012 \040\040'
4801 *) # EBCDIC based system
4802 lt_SP2NL='tr \100 \n'
4803 lt_NL2SP='tr \r\n \100\100'
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4816 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4817 if ${lt_cv_to_host_file_cmd+:} false; then :
4818 $as_echo_n "(cached) " >&6
4823 *-*-mingw* ) # actually msys
4824 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4827 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4829 * ) # otherwise, assume *nix
4830 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4836 *-*-mingw* ) # actually msys
4837 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4840 lt_cv_to_host_file_cmd=func_convert_file_noop
4842 * ) # otherwise, assume *nix
4843 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4847 * ) # unhandled hosts (and "normal" native builds)
4848 lt_cv_to_host_file_cmd=func_convert_file_noop
4854 to_host_file_cmd=$lt_cv_to_host_file_cmd
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4856 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4863 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4864 if ${lt_cv_to_tool_file_cmd+:} false; then :
4865 $as_echo_n "(cached) " >&6
4867 #assume ordinary cross tools, or native build.
4868 lt_cv_to_tool_file_cmd=func_convert_file_noop
4872 *-*-mingw* ) # actually msys
4873 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4881 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4883 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4890 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4891 if ${lt_cv_ld_reload_flag+:} false; then :
4892 $as_echo_n "(cached) " >&6
4894 lt_cv_ld_reload_flag='-r'
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4897 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4898 reload_flag=$lt_cv_ld_reload_flag
4899 case $reload_flag in
4901 *) reload_flag=" $reload_flag" ;;
4903 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4905 cygwin* | mingw* | pw32* | cegcc*)
4906 if test "$GCC" != yes; then
4911 if test "$GCC" = yes; then
4912 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4914 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4927 if test -n "$ac_tool_prefix"; then
4928 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4929 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931 $as_echo_n "checking for $ac_word... " >&6; }
4932 if ${ac_cv_prog_OBJDUMP+:} false; then :
4933 $as_echo_n "(cached) " >&6
4935 if test -n "$OBJDUMP"; then
4936 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 OBJDUMP=$ac_cv_prog_OBJDUMP
4956 if test -n "$OBJDUMP"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4958 $as_echo "$OBJDUMP" >&6; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4966 if test -z "$ac_cv_prog_OBJDUMP"; then
4967 ac_ct_OBJDUMP=$OBJDUMP
4968 # Extract the first word of "objdump", so it can be a program name with args.
4969 set dummy objdump; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4973 $as_echo_n "(cached) " >&6
4975 if test -n "$ac_ct_OBJDUMP"; then
4976 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4996 if test -n "$ac_ct_OBJDUMP"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4998 $as_echo "$ac_ct_OBJDUMP" >&6; }
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5004 if test "x$ac_ct_OBJDUMP" = x; then
5007 case $cross_compiling:$ac_tool_warned in
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011 ac_tool_warned=yes ;;
5013 OBJDUMP=$ac_ct_OBJDUMP
5016 OBJDUMP="$ac_cv_prog_OBJDUMP"
5019 test -z "$OBJDUMP" && OBJDUMP=objdump
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5027 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5028 if ${lt_cv_deplibs_check_method+:} false; then :
5029 $as_echo_n "(cached) " >&6
5031 lt_cv_file_magic_cmd='$MAGIC_CMD'
5032 lt_cv_file_magic_test_file=
5033 lt_cv_deplibs_check_method='unknown'
5034 # Need to set the preceding variable on all platforms that support
5035 # interlibrary dependencies.
5036 # 'none' -- dependencies not supported.
5037 # `unknown' -- same as none, but documents that we really don't know.
5038 # 'pass_all' -- all dependencies passed with no checks.
5039 # 'test_compile' -- check by making test program.
5040 # 'file_magic [[regex]]' -- check by looking for files in library path
5041 # which responds to the $file_magic_cmd with a given extended regex.
5042 # If you have `file' or equivalent on your system and you're not sure
5043 # whether `pass_all' will *always* work, you probably want this one.
5047 lt_cv_deplibs_check_method=pass_all
5051 lt_cv_deplibs_check_method=pass_all
5055 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5056 lt_cv_file_magic_cmd='/usr/bin/file -L'
5057 lt_cv_file_magic_test_file=/shlib/libc.so
5061 # func_win32_libid is a shell function defined in ltmain.sh
5062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5063 lt_cv_file_magic_cmd='func_win32_libid'
5067 # Base MSYS/MinGW do not provide the 'file' command needed by
5068 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5069 # unless we find 'file', for example because we are cross-compiling.
5070 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5071 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5072 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5073 lt_cv_file_magic_cmd='func_win32_libid'
5075 # Keep this pattern in sync with the one in func_win32_libid.
5076 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5077 lt_cv_file_magic_cmd='$OBJDUMP -f'
5082 # use the weaker test based on 'objdump'. See mingw*.
5083 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5084 lt_cv_file_magic_cmd='$OBJDUMP -f'
5087 darwin* | rhapsody*)
5088 lt_cv_deplibs_check_method=pass_all
5091 freebsd* | dragonfly*)
5092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5095 # Not sure whether the presence of OpenBSD here was a mistake.
5096 # Let's accept both of them until this is cleared up.
5097 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5098 lt_cv_file_magic_cmd=/usr/bin/file
5099 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5103 lt_cv_deplibs_check_method=pass_all
5108 lt_cv_deplibs_check_method=pass_all
5111 hpux10.20* | hpux11*)
5112 lt_cv_file_magic_cmd=/usr/bin/file
5115 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5116 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5119 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]'
5120 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5123 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5124 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5130 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5134 irix5* | irix6* | nonstopux*)
5136 *-32|*"-32 ") libmagic=32-bit;;
5137 *-n32|*"-n32 ") libmagic=N32;;
5138 *-64|*"-64 ") libmagic=64-bit;;
5139 *) libmagic=never-match;;
5141 lt_cv_deplibs_check_method=pass_all
5144 # This must be glibc/ELF.
5145 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5146 lt_cv_deplibs_check_method=pass_all
5149 netbsd* | netbsdelf*-gnu)
5150 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5158 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5159 lt_cv_file_magic_cmd=/usr/bin/file
5160 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5164 lt_cv_deplibs_check_method=pass_all
5168 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5175 osf3* | osf4* | osf5*)
5176 lt_cv_deplibs_check_method=pass_all
5180 lt_cv_deplibs_check_method=pass_all
5184 lt_cv_deplibs_check_method=pass_all
5187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5188 lt_cv_deplibs_check_method=pass_all
5192 case $host_vendor in
5194 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]'
5195 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5198 lt_cv_deplibs_check_method=pass_all
5201 lt_cv_file_magic_cmd='/bin/file'
5202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5205 lt_cv_file_magic_cmd='/bin/file'
5206 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5207 lt_cv_file_magic_test_file=/lib/libc.so
5210 lt_cv_deplibs_check_method=pass_all
5213 lt_cv_deplibs_check_method=pass_all
5219 lt_cv_deplibs_check_method=pass_all
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5225 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5229 if test "$build" = "$host"; then
5232 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5235 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5241 file_magic_cmd=$lt_cv_file_magic_cmd
5242 deplibs_check_method=$lt_cv_deplibs_check_method
5243 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5266 if test -n "$ac_tool_prefix"; then
5267 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5268 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_DLLTOOL+:} false; then :
5272 $as_echo_n "(cached) " >&6
5274 if test -n "$DLLTOOL"; then
5275 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 DLLTOOL=$ac_cv_prog_DLLTOOL
5295 if test -n "$DLLTOOL"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5297 $as_echo "$DLLTOOL" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5305 if test -z "$ac_cv_prog_DLLTOOL"; then
5306 ac_ct_DLLTOOL=$DLLTOOL
5307 # Extract the first word of "dlltool", so it can be a program name with args.
5308 set dummy dlltool; ac_word=$2
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310 $as_echo_n "checking for $ac_word... " >&6; }
5311 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5312 $as_echo_n "(cached) " >&6
5314 if test -n "$ac_ct_DLLTOOL"; then
5315 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 test -z "$as_dir" && as_dir=.
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5335 if test -n "$ac_ct_DLLTOOL"; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5337 $as_echo "$ac_ct_DLLTOOL" >&6; }
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5343 if test "x$ac_ct_DLLTOOL" = x; then
5346 case $cross_compiling:$ac_tool_warned in
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5350 ac_tool_warned=yes ;;
5352 DLLTOOL=$ac_ct_DLLTOOL
5355 DLLTOOL="$ac_cv_prog_DLLTOOL"
5358 test -z "$DLLTOOL" && DLLTOOL=dlltool
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5367 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5368 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5369 $as_echo_n "(cached) " >&6
5371 lt_cv_sharedlib_from_linklib_cmd='unknown'
5374 cygwin* | mingw* | pw32* | cegcc*)
5375 # two different shell functions defined in ltmain.sh
5376 # decide which to use based on capabilities of $DLLTOOL
5377 case `$DLLTOOL --help 2>&1` in
5378 *--identify-strict*)
5379 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5382 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5387 # fallback: assume linklib IS sharedlib
5388 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5394 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5395 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5396 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5405 if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_AR+:} false; then :
5413 $as_echo_n "(cached) " >&6
5415 if test -n "$AR"; then
5416 ac_cv_prog_AR="$AR" # Let the user override the test.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 if test -n "$AR"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5438 $as_echo "$AR" >&6; }
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5445 test -n "$AR" && break
5448 if test -z "$AR"; then
5452 # Extract the first word of "$ac_prog", so it can be a program name with args.
5453 set dummy $ac_prog; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5457 $as_echo_n "(cached) " >&6
5459 if test -n "$ac_ct_AR"; then
5460 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_ac_ct_AR="$ac_prog"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5480 if test -n "$ac_ct_AR"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5482 $as_echo "$ac_ct_AR" >&6; }
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5489 test -n "$ac_ct_AR" && break
5492 if test "x$ac_ct_AR" = x; then
5495 case $cross_compiling:$ac_tool_warned in
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5519 $as_echo_n "checking for archiver @FILE support... " >&6; }
5520 if ${lt_cv_ar_at_file+:} false; then :
5521 $as_echo_n "(cached) " >&6
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5535 if ac_fn_c_try_compile "$LINENO"; then :
5536 echo conftest.$ac_objext > conftest.lst
5537 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5539 (eval $lt_ar_try) 2>&5
5541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5542 test $ac_status = 0; }
5543 if test "$ac_status" -eq 0; then
5544 # Ensure the archiver fails upon bogus file names.
5545 rm -f conftest.$ac_objext libconftest.a
5546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5547 (eval $lt_ar_try) 2>&5
5549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5550 test $ac_status = 0; }
5551 if test "$ac_status" -ne 0; then
5555 rm -f conftest.* libconftest.a
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5562 $as_echo "$lt_cv_ar_at_file" >&6; }
5564 if test "x$lt_cv_ar_at_file" = xno; then
5567 archiver_list_spec=$lt_cv_ar_at_file
5576 if test -n "$ac_tool_prefix"; then
5577 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5578 set dummy ${ac_tool_prefix}strip; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_STRIP+:} false; then :
5582 $as_echo_n "(cached) " >&6
5584 if test -n "$STRIP"; then
5585 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 STRIP=$ac_cv_prog_STRIP
5605 if test -n "$STRIP"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5607 $as_echo "$STRIP" >&6; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5615 if test -z "$ac_cv_prog_STRIP"; then
5617 # Extract the first word of "strip", so it can be a program name with args.
5618 set dummy strip; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5622 $as_echo_n "(cached) " >&6
5624 if test -n "$ac_ct_STRIP"; then
5625 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_ac_ct_STRIP="strip"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5645 if test -n "$ac_ct_STRIP"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5647 $as_echo "$ac_ct_STRIP" >&6; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5653 if test "x$ac_ct_STRIP" = x; then
5656 case $cross_compiling:$ac_tool_warned in
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660 ac_tool_warned=yes ;;
5665 STRIP="$ac_cv_prog_STRIP"
5668 test -z "$STRIP" && STRIP=:
5675 if test -n "$ac_tool_prefix"; then
5676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5677 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_RANLIB+:} false; then :
5681 $as_echo_n "(cached) " >&6
5683 if test -n "$RANLIB"; then
5684 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 RANLIB=$ac_cv_prog_RANLIB
5704 if test -n "$RANLIB"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5706 $as_echo "$RANLIB" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5714 if test -z "$ac_cv_prog_RANLIB"; then
5715 ac_ct_RANLIB=$RANLIB
5716 # Extract the first word of "ranlib", so it can be a program name with args.
5717 set dummy ranlib; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5721 $as_echo_n "(cached) " >&6
5723 if test -n "$ac_ct_RANLIB"; then
5724 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733 ac_cv_prog_ac_ct_RANLIB="ranlib"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5744 if test -n "$ac_ct_RANLIB"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5746 $as_echo "$ac_ct_RANLIB" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5752 if test "x$ac_ct_RANLIB" = x; then
5755 case $cross_compiling:$ac_tool_warned in
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759 ac_tool_warned=yes ;;
5761 RANLIB=$ac_ct_RANLIB
5764 RANLIB="$ac_cv_prog_RANLIB"
5767 test -z "$RANLIB" && RANLIB=:
5774 # Determine commands to create old-style static archives.
5775 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5776 old_postinstall_cmds='chmod 644 $oldlib'
5777 old_postuninstall_cmds=
5779 if test -n "$RANLIB"; then
5782 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5785 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5788 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5793 lock_old_archive_extraction=yes ;;
5795 lock_old_archive_extraction=no ;;
5836 # If no C compiler was specified, use CC.
5839 # If no C compiler flags were specified, use CFLAGS.
5840 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5842 # Allow CC to be a program name with arguments.
5846 # Check for command to grab the raw symbol name followed by C symbol from nm.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5848 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5849 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5850 $as_echo_n "(cached) " >&6
5853 # These are sane defaults that work on at least a few old systems.
5854 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5856 # Character class describing NM global symbol codes.
5857 symcode='[BCDEGRST]'
5859 # Regexp to match symbols that can be accessed directly from C.
5860 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5862 # Define system-specific variables.
5867 cygwin* | mingw* | pw32* | cegcc*)
5868 symcode='[ABCDGISTW]'
5871 if test "$host_cpu" = ia64; then
5872 symcode='[ABCDEGRST]'
5876 symcode='[BCDEGRST]'
5879 symcode='[BCDEGQRST]'
5890 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5898 # If we're using GNU nm, then use its standard symbol codes.
5899 case `$NM -V 2>&1` in
5900 *GNU* | *'with BFD'*)
5901 symcode='[ABCDGIRSTW]' ;;
5904 # Transform an extracted symbol line into a proper C declaration.
5905 # Some systems (esp. on ia64) link data and code symbols differently,
5906 # so use this general approach.
5907 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5909 # Transform an extracted symbol line into symbol name and symbol address
5910 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5911 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'"
5913 # Handle CRLF in mingw tool chain
5917 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5921 # Try without a prefix underscore, then with it.
5922 for ac_symprfx in "" "_"; do
5924 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5925 symxfrm="\\1 $ac_symprfx\\2 \\2"
5927 # Write the raw and C identifiers.
5928 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5929 # Fake it for dumpbin and say T for any non-static function
5930 # and D for any global variable.
5931 # Also find C++ and __fastcall symbols from MSVC++,
5932 # which start with @ or ?.
5933 lt_cv_sys_global_symbol_pipe="$AWK '"\
5934 " {last_section=section; section=\$ 3};"\
5935 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5936 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5937 " \$ 0!~/External *\|/{next};"\
5938 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5939 " {if(hide[section]) next};"\
5940 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5941 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5942 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5943 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5944 " ' prfx=^$ac_symprfx"
5946 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5948 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5950 # Check to see that the pipe works correctly.
5954 cat > conftest.$ac_ext <<_LT_EOF
5959 void nm_test_func(void);
5960 void nm_test_func(void){}
5964 int main(){nm_test_var='a';nm_test_func();return(0);}
5967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5968 (eval $ac_compile) 2>&5
5970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5971 test $ac_status = 0; }; then
5972 # Now try to grab the symbols.
5974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5975 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978 test $ac_status = 0; } && test -s "$nlist"; then
5979 # Try sorting and uniquifying the output.
5980 if sort "$nlist" | uniq > "$nlist"T; then
5981 mv -f "$nlist"T "$nlist"
5986 # Make sure that we snagged all the symbols we need.
5987 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5988 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5989 cat <<_LT_EOF > conftest.$ac_ext
5990 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5991 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5992 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5993 relocations are performed -- see ld's documentation on pseudo-relocs. */
5994 # define LT_DLSYM_CONST
5995 #elif defined(__osf__)
5996 /* This system does not cope well with relocations in const data. */
5997 # define LT_DLSYM_CONST
5999 # define LT_DLSYM_CONST const
6007 # Now generate the symbol file.
6008 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6010 cat <<_LT_EOF >> conftest.$ac_ext
6012 /* The mapping between symbol names and symbols. */
6013 LT_DLSYM_CONST struct {
6017 lt__PROGRAM__LTX_preloaded_symbols[] =
6019 { "@PROGRAM@", (void *) 0 },
6021 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6022 cat <<\_LT_EOF >> conftest.$ac_ext
6026 /* This works around a problem in FreeBSD linker */
6027 #ifdef FREEBSD_WORKAROUND
6028 static const void *lt_preloaded_setup() {
6029 return lt__PROGRAM__LTX_preloaded_symbols;
6037 # Now try linking the two files.
6038 mv conftest.$ac_objext conftstm.$ac_objext
6039 lt_globsym_save_LIBS=$LIBS
6040 lt_globsym_save_CFLAGS=$CFLAGS
6041 LIBS="conftstm.$ac_objext"
6042 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6044 (eval $ac_link) 2>&5
6046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6050 LIBS=$lt_globsym_save_LIBS
6051 CFLAGS=$lt_globsym_save_CFLAGS
6053 echo "cannot find nm_test_func in $nlist" >&5
6056 echo "cannot find nm_test_var in $nlist" >&5
6059 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6062 echo "$progname: failed program was:" >&5
6063 cat conftest.$ac_ext >&5
6065 rm -rf conftest* conftst*
6067 # Do not use the global_symbol_pipe unless it works.
6068 if test "$pipe_works" = yes; then
6071 lt_cv_sys_global_symbol_pipe=
6077 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6078 lt_cv_sys_global_symbol_to_cdecl=
6080 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6082 $as_echo "failed" >&6; }
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6085 $as_echo "ok" >&6; }
6088 # Response file support.
6089 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6090 nm_file_list_spec='@'
6091 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6092 nm_file_list_spec='@'
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6122 $as_echo_n "checking for sysroot... " >&6; }
6124 # Check whether --with-sysroot was given.
6125 if test "${with_sysroot+set}" = set; then :
6126 withval=$with_sysroot;
6133 case ${with_sysroot} in #(
6135 if test "$GCC" = yes; then
6136 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6140 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6146 $as_echo "${with_sysroot}" >&6; }
6147 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6152 $as_echo "${lt_sysroot:-no}" >&6; }
6158 # Check whether --enable-libtool-lock was given.
6159 if test "${enable_libtool_lock+set}" = set; then :
6160 enableval=$enable_libtool_lock;
6163 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6165 # Some flags need to be propagated to the compiler or linker for good
6169 # Find out which ABI we are using.
6170 echo 'int i;' > conftest.$ac_ext
6171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6172 (eval $ac_compile) 2>&5
6174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6175 test $ac_status = 0; }; then
6176 case `/usr/bin/file conftest.$ac_objext` in
6188 # Find out which ABI we are using.
6189 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6191 (eval $ac_compile) 2>&5
6193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194 test $ac_status = 0; }; then
6195 if test "$lt_cv_prog_gnu_ld" = yes; then
6196 case `/usr/bin/file conftest.$ac_objext` in
6198 LD="${LD-ld} -melf32bsmip"
6201 LD="${LD-ld} -melf32bmipn32"
6204 LD="${LD-ld} -melf64bmip"
6208 case `/usr/bin/file conftest.$ac_objext` in
6224 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6225 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6226 # Find out which ABI we are using.
6227 echo 'int i;' > conftest.$ac_ext
6228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6229 (eval $ac_compile) 2>&5
6231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6232 test $ac_status = 0; }; then
6233 case `/usr/bin/file conftest.o` in
6236 x86_64-*kfreebsd*-gnu)
6237 LD="${LD-ld} -m elf_i386_fbsd"
6240 case `/usr/bin/file conftest.o` in
6242 LD="${LD-ld} -m elf32_x86_64"
6245 LD="${LD-ld} -m elf_i386"
6249 ppc64-*linux*|powerpc64-*linux*)
6250 LD="${LD-ld} -m elf32ppclinux"
6253 LD="${LD-ld} -m elf_s390"
6256 LD="${LD-ld} -m elf32_sparc"
6262 x86_64-*kfreebsd*-gnu)
6263 LD="${LD-ld} -m elf_x86_64_fbsd"
6266 LD="${LD-ld} -m elf_x86_64"
6268 ppc*-*linux*|powerpc*-*linux*)
6269 LD="${LD-ld} -m elf64ppc"
6271 s390*-*linux*|s390*-*tpf*)
6272 LD="${LD-ld} -m elf64_s390"
6275 LD="${LD-ld} -m elf64_sparc"
6285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6286 SAVE_CFLAGS="$CFLAGS"
6287 CFLAGS="$CFLAGS -belf"
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6289 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6290 if ${lt_cv_cc_needs_belf+:} false; then :
6291 $as_echo_n "(cached) " >&6
6294 ac_cpp='$CPP $CPPFLAGS'
6295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6310 if ac_fn_c_try_link "$LINENO"; then :
6311 lt_cv_cc_needs_belf=yes
6313 lt_cv_cc_needs_belf=no
6315 rm -f core conftest.err conftest.$ac_objext \
6316 conftest$ac_exeext conftest.$ac_ext
6318 ac_cpp='$CPP $CPPFLAGS'
6319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6325 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6328 CFLAGS="$SAVE_CFLAGS"
6332 # Find out which ABI we are using.
6333 echo 'int i;' > conftest.$ac_ext
6334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6335 (eval $ac_compile) 2>&5
6337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6338 test $ac_status = 0; }; then
6339 case `/usr/bin/file conftest.o` in
6341 case $lt_cv_prog_gnu_ld in
6345 LD="${LD-ld} -m elf_x86_64"
6348 LD="${LD-ld} -m elf64_sparc"
6351 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6352 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6357 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6369 need_locks="$enable_libtool_lock"
6371 if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}mt; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6377 $as_echo_n "(cached) " >&6
6379 if test -n "$MANIFEST_TOOL"; then
6380 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6400 if test -n "$MANIFEST_TOOL"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6402 $as_echo "$MANIFEST_TOOL" >&6; }
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6410 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6411 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6412 # Extract the first word of "mt", so it can be a program name with args.
6413 set dummy mt; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6417 $as_echo_n "(cached) " >&6
6419 if test -n "$ac_ct_MANIFEST_TOOL"; then
6420 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6440 if test -n "$ac_ct_MANIFEST_TOOL"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6442 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6448 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6451 case $cross_compiling:$ac_tool_warned in
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455 ac_tool_warned=yes ;;
6457 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6460 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6463 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6465 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6466 if ${lt_cv_path_mainfest_tool+:} false; then :
6467 $as_echo_n "(cached) " >&6
6469 lt_cv_path_mainfest_tool=no
6470 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6471 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6472 cat conftest.err >&5
6473 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6474 lt_cv_path_mainfest_tool=yes
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6479 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6480 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6490 rhapsody* | darwin*)
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6497 $as_echo_n "(cached) " >&6
6499 if test -n "$DSYMUTIL"; then
6500 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6509 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6520 if test -n "$DSYMUTIL"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6522 $as_echo "$DSYMUTIL" >&6; }
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6530 if test -z "$ac_cv_prog_DSYMUTIL"; then
6531 ac_ct_DSYMUTIL=$DSYMUTIL
6532 # Extract the first word of "dsymutil", so it can be a program name with args.
6533 set dummy dsymutil; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6537 $as_echo_n "(cached) " >&6
6539 if test -n "$ac_ct_DSYMUTIL"; then
6540 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6560 if test -n "$ac_ct_DSYMUTIL"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6562 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6568 if test "x$ac_ct_DSYMUTIL" = x; then
6571 case $cross_compiling:$ac_tool_warned in
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6577 DSYMUTIL=$ac_ct_DSYMUTIL
6580 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6583 if test -n "$ac_tool_prefix"; then
6584 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6585 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if ${ac_cv_prog_NMEDIT+:} false; then :
6589 $as_echo_n "(cached) " >&6
6591 if test -n "$NMEDIT"; then
6592 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_exec_ext in '' $ac_executable_extensions; do
6600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 NMEDIT=$ac_cv_prog_NMEDIT
6612 if test -n "$NMEDIT"; then
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6614 $as_echo "$NMEDIT" >&6; }
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617 $as_echo "no" >&6; }
6622 if test -z "$ac_cv_prog_NMEDIT"; then
6623 ac_ct_NMEDIT=$NMEDIT
6624 # Extract the first word of "nmedit", so it can be a program name with args.
6625 set dummy nmedit; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6629 $as_echo_n "(cached) " >&6
6631 if test -n "$ac_ct_NMEDIT"; then
6632 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6652 if test -n "$ac_ct_NMEDIT"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6654 $as_echo "$ac_ct_NMEDIT" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6660 if test "x$ac_ct_NMEDIT" = x; then
6663 case $cross_compiling:$ac_tool_warned in
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6667 ac_tool_warned=yes ;;
6669 NMEDIT=$ac_ct_NMEDIT
6672 NMEDIT="$ac_cv_prog_NMEDIT"
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_LIPO+:} false; then :
6681 $as_echo_n "(cached) " >&6
6683 if test -n "$LIPO"; then
6684 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 LIPO=$ac_cv_prog_LIPO
6704 if test -n "$LIPO"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6706 $as_echo "$LIPO" >&6; }
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6714 if test -z "$ac_cv_prog_LIPO"; then
6716 # Extract the first word of "lipo", so it can be a program name with args.
6717 set dummy lipo; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 if test -n "$ac_ct_LIPO"; then
6724 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_LIPO="lipo"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6744 if test -n "$ac_ct_LIPO"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6746 $as_echo "$ac_ct_LIPO" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6752 if test "x$ac_ct_LIPO" = x; then
6755 case $cross_compiling:$ac_tool_warned in
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6764 LIPO="$ac_cv_prog_LIPO"
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}otool; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_OTOOL+:} false; then :
6773 $as_echo_n "(cached) " >&6
6775 if test -n "$OTOOL"; then
6776 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 OTOOL=$ac_cv_prog_OTOOL
6796 if test -n "$OTOOL"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6798 $as_echo "$OTOOL" >&6; }
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6806 if test -z "$ac_cv_prog_OTOOL"; then
6808 # Extract the first word of "otool", so it can be a program name with args.
6809 set dummy otool; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6813 $as_echo_n "(cached) " >&6
6815 if test -n "$ac_ct_OTOOL"; then
6816 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_ac_ct_OTOOL="otool"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6836 if test -n "$ac_ct_OTOOL"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6838 $as_echo "$ac_ct_OTOOL" >&6; }
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6844 if test "x$ac_ct_OTOOL" = x; then
6847 case $cross_compiling:$ac_tool_warned in
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6856 OTOOL="$ac_cv_prog_OTOOL"
6859 if test -n "$ac_tool_prefix"; then
6860 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6861 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if ${ac_cv_prog_OTOOL64+:} false; then :
6865 $as_echo_n "(cached) " >&6
6867 if test -n "$OTOOL64"; then
6868 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 OTOOL64=$ac_cv_prog_OTOOL64
6888 if test -n "$OTOOL64"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6890 $as_echo "$OTOOL64" >&6; }
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6898 if test -z "$ac_cv_prog_OTOOL64"; then
6899 ac_ct_OTOOL64=$OTOOL64
6900 # Extract the first word of "otool64", so it can be a program name with args.
6901 set dummy otool64; ac_word=$2
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 $as_echo_n "checking for $ac_word... " >&6; }
6904 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6905 $as_echo_n "(cached) " >&6
6907 if test -n "$ac_ct_OTOOL64"; then
6908 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917 ac_cv_prog_ac_ct_OTOOL64="otool64"
6918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6928 if test -n "$ac_ct_OTOOL64"; then
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6930 $as_echo "$ac_ct_OTOOL64" >&6; }
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933 $as_echo "no" >&6; }
6936 if test "x$ac_ct_OTOOL64" = x; then
6939 case $cross_compiling:$ac_tool_warned in
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6943 ac_tool_warned=yes ;;
6945 OTOOL64=$ac_ct_OTOOL64
6948 OTOOL64="$ac_cv_prog_OTOOL64"
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6978 $as_echo_n "checking for -single_module linker flag... " >&6; }
6979 if ${lt_cv_apple_cc_single_mod+:} false; then :
6980 $as_echo_n "(cached) " >&6
6982 lt_cv_apple_cc_single_mod=no
6983 if test -z "${LT_MULTI_MODULE}"; then
6984 # By default we will add the -single_module flag. You can override
6985 # by either setting the environment variable LT_MULTI_MODULE
6986 # non-empty at configure time, or by adding -multi_module to the
6988 rm -rf libconftest.dylib*
6989 echo "int foo(void){return 1;}" > conftest.c
6990 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6991 -dynamiclib -Wl,-single_module conftest.c" >&5
6992 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6993 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6995 # If there is a non-empty error log, and "single_module"
6996 # appears in it, assume the flag caused a linker warning
6997 if test -s conftest.err && $GREP single_module conftest.err; then
6998 cat conftest.err >&5
6999 # Otherwise, if the output was created with a 0 exit code from
7000 # the compiler, it worked.
7001 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7002 lt_cv_apple_cc_single_mod=yes
7004 cat conftest.err >&5
7006 rm -rf libconftest.dylib*
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7011 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7014 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7015 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7016 $as_echo_n "(cached) " >&6
7018 lt_cv_ld_exported_symbols_list=no
7019 save_LDFLAGS=$LDFLAGS
7020 echo "_main" > conftest.sym
7021 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7033 if ac_fn_c_try_link "$LINENO"; then :
7034 lt_cv_ld_exported_symbols_list=yes
7036 lt_cv_ld_exported_symbols_list=no
7038 rm -f core conftest.err conftest.$ac_objext \
7039 conftest$ac_exeext conftest.$ac_ext
7040 LDFLAGS="$save_LDFLAGS"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7044 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7047 $as_echo_n "checking for -force_load linker flag... " >&6; }
7048 if ${lt_cv_ld_force_load+:} false; then :
7049 $as_echo_n "(cached) " >&6
7051 lt_cv_ld_force_load=no
7052 cat > conftest.c << _LT_EOF
7053 int forced_loaded() { return 2;}
7055 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7056 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7057 echo "$AR cru libconftest.a conftest.o" >&5
7058 $AR cru libconftest.a conftest.o 2>&5
7059 echo "$RANLIB libconftest.a" >&5
7060 $RANLIB libconftest.a 2>&5
7061 cat > conftest.c << _LT_EOF
7062 int main() { return 0;}
7064 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7065 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7067 if test -s conftest.err && $GREP force_load conftest.err; then
7068 cat conftest.err >&5
7069 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7070 lt_cv_ld_force_load=yes
7072 cat conftest.err >&5
7074 rm -f conftest.err libconftest.a conftest conftest.c
7075 rm -rf conftest.dSYM
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7079 $as_echo "$lt_cv_ld_force_load" >&6; }
7081 rhapsody* | darwin1.[012])
7082 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7084 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7085 darwin*) # darwin 5.x on
7086 # if running on 10.5 or later, the deployment target defaults
7087 # to the OS version, if on x86, and 10.4, the deployment
7088 # target defaults to 10.4. Don't you love it?
7089 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7090 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7091 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7093 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7095 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7099 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7100 _lt_dar_single_mod='$single_module'
7102 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7103 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7105 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7107 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7108 _lt_dsymutil='~$DSYMUTIL $lib || :'
7116 ac_cpp='$CPP $CPPFLAGS'
7117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7121 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7122 # On Suns, sometimes $CPP names a directory.
7123 if test -n "$CPP" && test -d "$CPP"; then
7126 if test -z "$CPP"; then
7127 if ${ac_cv_prog_CPP+:} false; then :
7128 $as_echo_n "(cached) " >&6
7130 # Double quotes because CPP needs to be expanded
7131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7134 for ac_c_preproc_warn_flag in '' yes
7136 # Use a header file that comes with gcc, so configuring glibc
7137 # with a fresh cross-compiler works.
7138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7139 # <limits.h> exists even on freestanding compilers.
7140 # On the NeXT, cc -E runs the code through the compiler's parser,
7141 # not just through cpp. "Syntax error" is here to catch this case.
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7145 # include <limits.h>
7147 # include <assert.h>
7151 if ac_fn_c_try_cpp "$LINENO"; then :
7154 # Broken: fails on valid input.
7157 rm -f conftest.err conftest.i conftest.$ac_ext
7159 # OK, works on sane cases. Now check whether nonexistent headers
7160 # can be detected and how.
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <ac_nonexistent.h>
7165 if ac_fn_c_try_cpp "$LINENO"; then :
7166 # Broken: success on invalid input.
7169 # Passes both tests.
7173 rm -f conftest.err conftest.i conftest.$ac_ext
7176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7177 rm -f conftest.i conftest.err conftest.$ac_ext
7178 if $ac_preproc_ok; then :
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7191 $as_echo "$CPP" >&6; }
7193 for ac_c_preproc_warn_flag in '' yes
7195 # Use a header file that comes with gcc, so configuring glibc
7196 # with a fresh cross-compiler works.
7197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7198 # <limits.h> exists even on freestanding compilers.
7199 # On the NeXT, cc -E runs the code through the compiler's parser,
7200 # not just through cpp. "Syntax error" is here to catch this case.
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7204 # include <limits.h>
7206 # include <assert.h>
7210 if ac_fn_c_try_cpp "$LINENO"; then :
7213 # Broken: fails on valid input.
7216 rm -f conftest.err conftest.i conftest.$ac_ext
7218 # OK, works on sane cases. Now check whether nonexistent headers
7219 # can be detected and how.
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222 #include <ac_nonexistent.h>
7224 if ac_fn_c_try_cpp "$LINENO"; then :
7225 # Broken: success on invalid input.
7228 # Passes both tests.
7232 rm -f conftest.err conftest.i conftest.$ac_ext
7235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7236 rm -f conftest.i conftest.err conftest.$ac_ext
7237 if $ac_preproc_ok; then :
7240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7242 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7243 See \`config.log' for more details" "$LINENO" 5; }
7247 ac_cpp='$CPP $CPPFLAGS'
7248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7254 $as_echo_n "checking for ANSI C header files... " >&6; }
7255 if ${ac_cv_header_stdc+:} false; then :
7256 $as_echo_n "(cached) " >&6
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7273 if ac_fn_c_try_compile "$LINENO"; then :
7274 ac_cv_header_stdc=yes
7276 ac_cv_header_stdc=no
7278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7280 if test $ac_cv_header_stdc = yes; then
7281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7288 $EGREP "memchr" >/dev/null 2>&1; then :
7291 ac_cv_header_stdc=no
7297 if test $ac_cv_header_stdc = yes; then
7298 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7305 $EGREP "free" >/dev/null 2>&1; then :
7308 ac_cv_header_stdc=no
7314 if test $ac_cv_header_stdc = yes; then
7315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7316 if test "$cross_compiling" = yes; then :
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7323 #if ((' ' & 0x0FF) == 0x020)
7324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7327 # define ISLOWER(c) \
7328 (('a' <= (c) && (c) <= 'i') \
7329 || ('j' <= (c) && (c) <= 'r') \
7330 || ('s' <= (c) && (c) <= 'z'))
7331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7339 for (i = 0; i < 256; i++)
7340 if (XOR (islower (i), ISLOWER (i))
7341 || toupper (i) != TOUPPER (i))
7346 if ac_fn_c_try_run "$LINENO"; then :
7349 ac_cv_header_stdc=no
7351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7358 $as_echo "$ac_cv_header_stdc" >&6; }
7359 if test $ac_cv_header_stdc = yes; then
7361 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7365 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7366 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7367 inttypes.h stdint.h unistd.h
7369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7373 cat >>confdefs.h <<_ACEOF
7374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7382 for ac_header in dlfcn.h
7384 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7386 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7387 cat >>confdefs.h <<_ACEOF
7388 #define HAVE_DLFCN_H 1
7401 enable_win32_dll=yes
7404 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7405 if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}as; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_AS+:} false; then :
7411 $as_echo_n "(cached) " >&6
7413 if test -n "$AS"; then
7414 ac_cv_prog_AS="$AS" # Let the user override the test.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_AS="${ac_tool_prefix}as"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 if test -n "$AS"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7436 $as_echo "$AS" >&6; }
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7444 if test -z "$ac_cv_prog_AS"; then
7446 # Extract the first word of "as", so it can be a program name with args.
7447 set dummy as; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7451 $as_echo_n "(cached) " >&6
7453 if test -n "$ac_ct_AS"; then
7454 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_ac_ct_AS="as"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7474 if test -n "$ac_ct_AS"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7476 $as_echo "$ac_ct_AS" >&6; }
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7482 if test "x$ac_ct_AS" = x; then
7485 case $cross_compiling:$ac_tool_warned in
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489 ac_tool_warned=yes ;;
7497 if test -n "$ac_tool_prefix"; then
7498 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7499 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_prog_DLLTOOL+:} false; then :
7503 $as_echo_n "(cached) " >&6
7505 if test -n "$DLLTOOL"; then
7506 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 DLLTOOL=$ac_cv_prog_DLLTOOL
7526 if test -n "$DLLTOOL"; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7528 $as_echo "$DLLTOOL" >&6; }
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531 $as_echo "no" >&6; }
7536 if test -z "$ac_cv_prog_DLLTOOL"; then
7537 ac_ct_DLLTOOL=$DLLTOOL
7538 # Extract the first word of "dlltool", so it can be a program name with args.
7539 set dummy dlltool; ac_word=$2
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541 $as_echo_n "checking for $ac_word... " >&6; }
7542 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7543 $as_echo_n "(cached) " >&6
7545 if test -n "$ac_ct_DLLTOOL"; then
7546 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7566 if test -n "$ac_ct_DLLTOOL"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7568 $as_echo "$ac_ct_DLLTOOL" >&6; }
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7574 if test "x$ac_ct_DLLTOOL" = x; then
7577 case $cross_compiling:$ac_tool_warned in
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7581 ac_tool_warned=yes ;;
7583 DLLTOOL=$ac_ct_DLLTOOL
7586 DLLTOOL="$ac_cv_prog_DLLTOOL"
7589 if test -n "$ac_tool_prefix"; then
7590 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7591 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if ${ac_cv_prog_OBJDUMP+:} false; then :
7595 $as_echo_n "(cached) " >&6
7597 if test -n "$OBJDUMP"; then
7598 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 OBJDUMP=$ac_cv_prog_OBJDUMP
7618 if test -n "$OBJDUMP"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7620 $as_echo "$OBJDUMP" >&6; }
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7628 if test -z "$ac_cv_prog_OBJDUMP"; then
7629 ac_ct_OBJDUMP=$OBJDUMP
7630 # Extract the first word of "objdump", so it can be a program name with args.
7631 set dummy objdump; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7635 $as_echo_n "(cached) " >&6
7637 if test -n "$ac_ct_OBJDUMP"; then
7638 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7658 if test -n "$ac_ct_OBJDUMP"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7660 $as_echo "$ac_ct_OBJDUMP" >&6; }
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7666 if test "x$ac_ct_OBJDUMP" = x; then
7669 case $cross_compiling:$ac_tool_warned in
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7673 ac_tool_warned=yes ;;
7675 OBJDUMP=$ac_ct_OBJDUMP
7678 OBJDUMP="$ac_cv_prog_OBJDUMP"
7684 test -z "$AS" && AS=as
7690 test -z "$DLLTOOL" && DLLTOOL=dlltool
7696 test -z "$OBJDUMP" && OBJDUMP=objdump
7701 # Check whether --enable-static was given.
7702 if test "${enable_static+set}" = set; then :
7703 enableval=$enable_static; p=${PACKAGE-default}
7705 yes) enable_static=yes ;;
7706 no) enable_static=no ;;
7709 # Look at the argument we got. We use all the common list separators.
7710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7711 for pkg in $enableval; do
7713 if test "X$pkg" = "X$p"; then
7735 # Check whether --enable-shared was given.
7736 if test "${enable_shared+set}" = set; then :
7737 enableval=$enable_shared; p=${PACKAGE-default}
7739 yes) enable_shared=yes ;;
7740 no) enable_shared=no ;;
7743 # Look at the argument we got. We use all the common list separators.
7744 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7745 for pkg in $enableval; do
7747 if test "X$pkg" = "X$p"; then
7768 # Check whether --with-pic was given.
7769 if test "${with_pic+set}" = set; then :
7770 withval=$with_pic; lt_p=${PACKAGE-default}
7772 yes|no) pic_mode=$withval ;;
7775 # Look at the argument we got. We use all the common list separators.
7776 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7777 for lt_pkg in $withval; do
7779 if test "X$lt_pkg" = "X$lt_p"; then
7791 test -z "$pic_mode" && pic_mode=default
7799 # Check whether --enable-fast-install was given.
7800 if test "${enable_fast_install+set}" = set; then :
7801 enableval=$enable_fast_install; p=${PACKAGE-default}
7803 yes) enable_fast_install=yes ;;
7804 no) enable_fast_install=no ;;
7806 enable_fast_install=no
7807 # Look at the argument we got. We use all the common list separators.
7808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7809 for pkg in $enableval; do
7811 if test "X$pkg" = "X$p"; then
7812 enable_fast_install=yes
7819 enable_fast_install=yes
7832 # This can be used to rebuild libtool when needed
7833 LIBTOOL_DEPS="$ltmain"
7835 # Always use our own libtool.
7836 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7867 test -z "$LN_S" && LN_S="ln -s"
7882 if test -n "${ZSH_VERSION+set}" ; then
7883 setopt NO_GLOB_SUBST
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7887 $as_echo_n "checking for objdir... " >&6; }
7888 if ${lt_cv_objdir+:} false; then :
7889 $as_echo_n "(cached) " >&6
7891 rm -f .libs 2>/dev/null
7892 mkdir .libs 2>/dev/null
7893 if test -d .libs; then
7896 # MS-DOS does not allow filenames that begin with a dot.
7899 rmdir .libs 2>/dev/null
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7902 $as_echo "$lt_cv_objdir" >&6; }
7903 objdir=$lt_cv_objdir
7909 cat >>confdefs.h <<_ACEOF
7910 #define LT_OBJDIR "$lt_cv_objdir/"
7918 # AIX sometimes has problems with the GCC collect2 program. For some
7919 # reason, if we set the COLLECT_NAMES environment variable, the problems
7920 # vanish in a puff of smoke.
7921 if test "X${COLLECT_NAMES+set}" != Xset; then
7923 export COLLECT_NAMES
7930 can_build_shared=yes
7932 # All known linkers require a `.a' archive for static linking (except MSVC,
7933 # which needs '.lib').
7936 with_gnu_ld="$lt_cv_prog_gnu_ld"
7939 old_CFLAGS="$CFLAGS"
7941 # Set sane defaults for various variables
7942 test -z "$CC" && CC=cc
7943 test -z "$LTCC" && LTCC=$CC
7944 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7945 test -z "$LD" && LD=ld
7946 test -z "$ac_objext" && ac_objext=o
7948 for cc_temp in $compiler""; do
7950 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7951 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7956 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7959 # Only perform the check for file, if the check method requires it
7960 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7961 case $deplibs_check_method in
7963 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7965 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7966 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7967 $as_echo_n "(cached) " >&6
7971 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7974 lt_save_MAGIC_CMD="$MAGIC_CMD"
7975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7976 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7977 for ac_dir in $ac_dummy; do
7979 test -z "$ac_dir" && ac_dir=.
7980 if test -f $ac_dir/${ac_tool_prefix}file; then
7981 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7982 if test -n "$file_magic_test_file"; then
7983 case $deplibs_check_method in
7985 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7987 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7988 $EGREP "$file_magic_regex" > /dev/null; then
7993 *** Warning: the command libtool uses to detect shared libraries,
7994 *** $file_magic_cmd, produces output that libtool cannot recognize.
7995 *** The result is that libtool may fail to recognize shared libraries
7996 *** as such. This will affect the creation of libtool libraries that
7997 *** depend on shared libraries, but programs linked with such libtool
7998 *** libraries will work regardless of this problem. Nevertheless, you
7999 *** may want to report the problem to your system manager and/or to
8000 *** bug-libtool@gnu.org
8010 MAGIC_CMD="$lt_save_MAGIC_CMD"
8015 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8016 if test -n "$MAGIC_CMD"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8018 $as_echo "$MAGIC_CMD" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8028 if test -z "$lt_cv_path_MAGIC_CMD"; then
8029 if test -n "$ac_tool_prefix"; then
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8031 $as_echo_n "checking for file... " >&6; }
8032 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8033 $as_echo_n "(cached) " >&6
8037 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8040 lt_save_MAGIC_CMD="$MAGIC_CMD"
8041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8042 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8043 for ac_dir in $ac_dummy; do
8045 test -z "$ac_dir" && ac_dir=.
8046 if test -f $ac_dir/file; then
8047 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8048 if test -n "$file_magic_test_file"; then
8049 case $deplibs_check_method in
8051 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8053 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8054 $EGREP "$file_magic_regex" > /dev/null; then
8059 *** Warning: the command libtool uses to detect shared libraries,
8060 *** $file_magic_cmd, produces output that libtool cannot recognize.
8061 *** The result is that libtool may fail to recognize shared libraries
8062 *** as such. This will affect the creation of libtool libraries that
8063 *** depend on shared libraries, but programs linked with such libtool
8064 *** libraries will work regardless of this problem. Nevertheless, you
8065 *** may want to report the problem to your system manager and/or to
8066 *** bug-libtool@gnu.org
8076 MAGIC_CMD="$lt_save_MAGIC_CMD"
8081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8082 if test -n "$MAGIC_CMD"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8084 $as_echo "$MAGIC_CMD" >&6; }
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8100 # Use C for the default configuration in the libtool script
8104 ac_cpp='$CPP $CPPFLAGS'
8105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8110 # Source file extension for C test sources.
8113 # Object file extension for compiled C test sources.
8117 # Code to be used in simple compile tests
8118 lt_simple_compile_test_code="int some_variable = 0;"
8120 # Code to be used in simple link tests
8121 lt_simple_link_test_code='int main(){return(0);}'
8129 # If no C compiler was specified, use CC.
8132 # If no C compiler flags were specified, use CFLAGS.
8133 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8135 # Allow CC to be a program name with arguments.
8138 # Save the default compiler, since it gets overwritten when the other
8139 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8140 compiler_DEFAULT=$CC
8142 # save warnings/boilerplate of simple test code
8143 ac_outfile=conftest.$ac_objext
8144 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8145 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8146 _lt_compiler_boilerplate=`cat conftest.err`
8149 ac_outfile=conftest.$ac_objext
8150 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8151 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8152 _lt_linker_boilerplate=`cat conftest.err`
8157 ## There is no encapsulation within the following macros, do not change
8158 ## the running order or otherwise move them around unless you know exactly
8159 ## what you are doing...
8160 if test -n "$compiler"; then
8162 lt_prog_compiler_no_builtin_flag=
8164 if test "$GCC" = yes; then
8165 case $cc_basename in
8167 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8169 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8173 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8174 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8175 $as_echo_n "(cached) " >&6
8177 lt_cv_prog_compiler_rtti_exceptions=no
8178 ac_outfile=conftest.$ac_objext
8179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8180 lt_compiler_flag="-fno-rtti -fno-exceptions"
8181 # Insert the option either (1) after the last *FLAGS variable, or
8182 # (2) before a word containing "conftest.", or (3) at the end.
8183 # Note that $ac_compile itself does not contain backslashes and begins
8184 # with a dollar sign (not a hyphen), so the echo should work correctly.
8185 # The option is referenced via a variable to avoid confusing sed.
8186 lt_compile=`echo "$ac_compile" | $SED \
8187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8189 -e 's:$: $lt_compiler_flag:'`
8190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8191 (eval "$lt_compile" 2>conftest.err)
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 if (exit $ac_status) && test -s "$ac_outfile"; then
8196 # The compiler can only warn and ignore the option if not recognized
8197 # So say no if there are warnings other than the usual output.
8198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8199 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8200 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8201 lt_cv_prog_compiler_rtti_exceptions=yes
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8208 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8210 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8211 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8223 lt_prog_compiler_wl=
8224 lt_prog_compiler_pic=
8225 lt_prog_compiler_static=
8228 if test "$GCC" = yes; then
8229 lt_prog_compiler_wl='-Wl,'
8230 lt_prog_compiler_static='-static'
8234 # All AIX code is PIC.
8235 if test "$host_cpu" = ia64; then
8236 # AIX 5 now supports IA64 processor
8237 lt_prog_compiler_static='-Bstatic'
8244 # see comment about AmigaOS4 .so support
8245 lt_prog_compiler_pic='-fPIC'
8248 # FIXME: we need at least 68020 code to build shared libraries, but
8249 # adding the `-m68020' flag to GCC prevents building anything better,
8251 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8256 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8257 # PIC is the default for these OSes.
8260 mingw* | cygwin* | pw32* | os2* | cegcc*)
8261 # This hack is so that the source file can tell whether it is being
8262 # built for inclusion in a dll (and should export symbols for example).
8263 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8264 # (--disable-auto-import) libraries
8265 lt_prog_compiler_pic='-DDLL_EXPORT'
8268 darwin* | rhapsody*)
8269 # PIC is the default on this platform
8270 # Common symbols not allowed in MH_DYLIB files
8271 lt_prog_compiler_pic='-fno-common'
8275 # PIC is the default for Haiku.
8276 # The "-static" flag exists, but is broken.
8277 lt_prog_compiler_static=
8281 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8282 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8283 # sets the default TLS model and affects inlining.
8289 lt_prog_compiler_pic='-fPIC'
8295 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8296 # Instead, we relocate shared libraries at runtime.
8300 # Just because we use GCC doesn't mean we suddenly get shared libraries
8301 # on systems that don't support them.
8302 lt_prog_compiler_can_build_shared=no
8307 # QNX uses GNU C++, but need to define -shared option too, otherwise
8309 lt_prog_compiler_pic='-fPIC -shared'
8313 if test -d /usr/nec; then
8314 lt_prog_compiler_pic=-Kconform_pic
8319 lt_prog_compiler_pic='-fPIC'
8323 case $cc_basename in
8324 nvcc*) # Cuda Compiler Driver 2.2
8325 lt_prog_compiler_wl='-Xlinker '
8326 if test -n "$lt_prog_compiler_pic"; then
8327 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8332 # PORTME Check for flag to pass linker flags through the system compiler.
8335 lt_prog_compiler_wl='-Wl,'
8336 if test "$host_cpu" = ia64; then
8337 # AIX 5 now supports IA64 processor
8338 lt_prog_compiler_static='-Bstatic'
8340 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8344 mingw* | cygwin* | pw32* | os2* | cegcc*)
8345 # This hack is so that the source file can tell whether it is being
8346 # built for inclusion in a dll (and should export symbols for example).
8347 lt_prog_compiler_pic='-DDLL_EXPORT'
8350 hpux9* | hpux10* | hpux11*)
8351 lt_prog_compiler_wl='-Wl,'
8352 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8359 lt_prog_compiler_pic='+Z'
8362 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8363 lt_prog_compiler_static='${wl}-a ${wl}archive'
8366 irix5* | irix6* | nonstopux*)
8367 lt_prog_compiler_wl='-Wl,'
8368 # PIC (with -KPIC) is the default.
8369 lt_prog_compiler_static='-non_shared'
8372 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8373 case $cc_basename in
8374 # old Intel for x86_64 which still supported -KPIC.
8376 lt_prog_compiler_wl='-Wl,'
8377 lt_prog_compiler_pic='-KPIC'
8378 lt_prog_compiler_static='-static'
8380 # icc used to be incompatible with GCC.
8381 # ICC 10 doesn't accept -KPIC any more.
8383 lt_prog_compiler_wl='-Wl,'
8384 lt_prog_compiler_pic='-fPIC'
8385 lt_prog_compiler_static='-static'
8387 # Lahey Fortran 8.1.
8389 lt_prog_compiler_wl='-Wl,'
8390 lt_prog_compiler_pic='--shared'
8391 lt_prog_compiler_static='--static'
8394 # NAG Fortran compiler
8395 lt_prog_compiler_wl='-Wl,-Wl,,'
8396 lt_prog_compiler_pic='-PIC'
8397 lt_prog_compiler_static='-Bstatic'
8399 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8400 # Portland Group compilers (*not* the Pentium gcc compiler,
8401 # which looks to be a dead project)
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-fpic'
8404 lt_prog_compiler_static='-Bstatic'
8407 lt_prog_compiler_wl='-Wl,'
8408 # All Alpha code is PIC.
8409 lt_prog_compiler_static='-non_shared'
8411 xl* | bgxl* | bgf* | mpixl*)
8412 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8413 lt_prog_compiler_wl='-Wl,'
8414 lt_prog_compiler_pic='-qpic'
8415 lt_prog_compiler_static='-qstaticlink'
8418 case `$CC -V 2>&1 | sed 5q` in
8419 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8420 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8421 lt_prog_compiler_pic='-KPIC'
8422 lt_prog_compiler_static='-Bstatic'
8423 lt_prog_compiler_wl=''
8425 *Sun\ F* | *Sun*Fortran*)
8426 lt_prog_compiler_pic='-KPIC'
8427 lt_prog_compiler_static='-Bstatic'
8428 lt_prog_compiler_wl='-Qoption ld '
8432 lt_prog_compiler_pic='-KPIC'
8433 lt_prog_compiler_static='-Bstatic'
8434 lt_prog_compiler_wl='-Wl,'
8436 *Intel*\ [CF]*Compiler*)
8437 lt_prog_compiler_wl='-Wl,'
8438 lt_prog_compiler_pic='-fPIC'
8439 lt_prog_compiler_static='-static'
8442 lt_prog_compiler_wl='-Wl,'
8443 lt_prog_compiler_pic='-fpic'
8444 lt_prog_compiler_static='-Bstatic'
8452 lt_prog_compiler_pic='-KPIC'
8453 lt_prog_compiler_static='-Bstatic'
8457 # QNX uses GNU C++, but need to define -shared option too, otherwise
8459 lt_prog_compiler_pic='-fPIC -shared'
8462 osf3* | osf4* | osf5*)
8463 lt_prog_compiler_wl='-Wl,'
8464 # All OSF/1 code is PIC.
8465 lt_prog_compiler_static='-non_shared'
8469 lt_prog_compiler_static='-non_shared'
8473 lt_prog_compiler_pic='-KPIC'
8474 lt_prog_compiler_static='-Bstatic'
8475 case $cc_basename in
8476 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8477 lt_prog_compiler_wl='-Qoption ld ';;
8479 lt_prog_compiler_wl='-Wl,';;
8484 lt_prog_compiler_wl='-Qoption ld '
8485 lt_prog_compiler_pic='-PIC'
8486 lt_prog_compiler_static='-Bstatic'
8489 sysv4 | sysv4.2uw2* | sysv4.3*)
8490 lt_prog_compiler_wl='-Wl,'
8491 lt_prog_compiler_pic='-KPIC'
8492 lt_prog_compiler_static='-Bstatic'
8496 if test -d /usr/nec ;then
8497 lt_prog_compiler_pic='-Kconform_pic'
8498 lt_prog_compiler_static='-Bstatic'
8502 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_pic='-KPIC'
8505 lt_prog_compiler_static='-Bstatic'
8509 lt_prog_compiler_wl='-Wl,'
8510 lt_prog_compiler_can_build_shared=no
8514 lt_prog_compiler_pic='-pic'
8515 lt_prog_compiler_static='-Bstatic'
8519 lt_prog_compiler_can_build_shared=no
8525 # For platforms which do not support PIC, -DPIC is meaningless:
8527 lt_prog_compiler_pic=
8530 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8535 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8536 if ${lt_cv_prog_compiler_pic+:} false; then :
8537 $as_echo_n "(cached) " >&6
8539 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8542 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8543 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8546 # Check to make sure the PIC flag actually works.
8548 if test -n "$lt_prog_compiler_pic"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8550 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8551 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8552 $as_echo_n "(cached) " >&6
8554 lt_cv_prog_compiler_pic_works=no
8555 ac_outfile=conftest.$ac_objext
8556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8557 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8558 # Insert the option either (1) after the last *FLAGS variable, or
8559 # (2) before a word containing "conftest.", or (3) at the end.
8560 # Note that $ac_compile itself does not contain backslashes and begins
8561 # with a dollar sign (not a hyphen), so the echo should work correctly.
8562 # The option is referenced via a variable to avoid confusing sed.
8563 lt_compile=`echo "$ac_compile" | $SED \
8564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8566 -e 's:$: $lt_compiler_flag:'`
8567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8568 (eval "$lt_compile" 2>conftest.err)
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 if (exit $ac_status) && test -s "$ac_outfile"; then
8573 # The compiler can only warn and ignore the option if not recognized
8574 # So say no if there are warnings other than the usual output.
8575 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8577 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8578 lt_cv_prog_compiler_pic_works=yes
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8585 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8587 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8588 case $lt_prog_compiler_pic in
8590 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8593 lt_prog_compiler_pic=
8594 lt_prog_compiler_can_build_shared=no
8610 # Check to make sure the static flag actually works.
8612 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8614 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8615 if ${lt_cv_prog_compiler_static_works+:} false; then :
8616 $as_echo_n "(cached) " >&6
8618 lt_cv_prog_compiler_static_works=no
8619 save_LDFLAGS="$LDFLAGS"
8620 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8621 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8622 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8623 # The linker can only warn and ignore the option if not recognized
8624 # So say no if there are warnings
8625 if test -s conftest.err; then
8626 # Append any errors to the config.log.
8627 cat conftest.err 1>&5
8628 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8630 if diff conftest.exp conftest.er2 >/dev/null; then
8631 lt_cv_prog_compiler_static_works=yes
8634 lt_cv_prog_compiler_static_works=yes
8638 LDFLAGS="$save_LDFLAGS"
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8642 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8644 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8647 lt_prog_compiler_static=
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8658 if ${lt_cv_prog_compiler_c_o+:} false; then :
8659 $as_echo_n "(cached) " >&6
8661 lt_cv_prog_compiler_c_o=no
8662 $RM -r conftest 2>/dev/null
8666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8668 lt_compiler_flag="-o out/conftest2.$ac_objext"
8669 # Insert the option either (1) after the last *FLAGS variable, or
8670 # (2) before a word containing "conftest.", or (3) at the end.
8671 # Note that $ac_compile itself does not contain backslashes and begins
8672 # with a dollar sign (not a hyphen), so the echo should work correctly.
8673 lt_compile=`echo "$ac_compile" | $SED \
8674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8676 -e 's:$: $lt_compiler_flag:'`
8677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8678 (eval "$lt_compile" 2>out/conftest.err)
8680 cat out/conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8684 # The compiler can only warn and ignore the option if not recognized
8685 # So say no if there are warnings
8686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8689 lt_cv_prog_compiler_c_o=yes
8694 # SGI C++ compiler will create directory out/ii_files/ for
8695 # template instantiation
8696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8697 $RM out/* && rmdir out
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8704 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8712 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8713 if ${lt_cv_prog_compiler_c_o+:} false; then :
8714 $as_echo_n "(cached) " >&6
8716 lt_cv_prog_compiler_c_o=no
8717 $RM -r conftest 2>/dev/null
8721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8723 lt_compiler_flag="-o out/conftest2.$ac_objext"
8724 # Insert the option either (1) after the last *FLAGS variable, or
8725 # (2) before a word containing "conftest.", or (3) at the end.
8726 # Note that $ac_compile itself does not contain backslashes and begins
8727 # with a dollar sign (not a hyphen), so the echo should work correctly.
8728 lt_compile=`echo "$ac_compile" | $SED \
8729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8731 -e 's:$: $lt_compiler_flag:'`
8732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8733 (eval "$lt_compile" 2>out/conftest.err)
8735 cat out/conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8739 # The compiler can only warn and ignore the option if not recognized
8740 # So say no if there are warnings
8741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8742 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8743 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8744 lt_cv_prog_compiler_c_o=yes
8749 # SGI C++ compiler will create directory out/ii_files/ for
8750 # template instantiation
8751 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8752 $RM out/* && rmdir out
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8759 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8764 hard_links="nottested"
8765 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8766 # do not overwrite the value of need_locks provided by the user
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8768 $as_echo_n "checking if we can lock with hard links... " >&6; }
8771 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8773 ln conftest.a conftest.b 2>&5 || hard_links=no
8774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8776 $as_echo "$hard_links" >&6; }
8777 if test "$hard_links" = no; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8779 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8795 allow_undefined_flag=
8796 always_export_symbols=no
8798 archive_expsym_cmds=
8799 compiler_needs_object=no
8800 enable_shared_with_static_runtimes=no
8801 export_dynamic_flag_spec=
8802 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8803 hardcode_automatic=no
8805 hardcode_direct_absolute=no
8806 hardcode_libdir_flag_spec=
8807 hardcode_libdir_separator=
8809 hardcode_shlibpath_var=unsupported
8811 link_all_deplibs=unknown
8814 old_archive_from_new_cmds=
8815 old_archive_from_expsyms_cmds=
8816 thread_safe_flag_spec=
8817 whole_archive_flag_spec=
8818 # include_expsyms should be a list of space-separated symbols to be *always*
8819 # included in the symbol list
8821 # exclude_expsyms can be an extended regexp of symbols to exclude
8822 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8823 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8824 # as well as any symbol that contains `d'.
8825 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8826 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8827 # platforms (ab)use it in PIC code, but their linkers get confused if
8828 # the symbol is explicitly referenced. Since portable code cannot
8829 # rely on this symbol name, it's probably fine to never include it in
8830 # preloaded symbol tables.
8831 # Exclude shared library initialization/finalization symbols.
8832 extract_expsyms_cmds=
8835 cygwin* | mingw* | pw32* | cegcc*)
8836 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8837 # When not using gcc, we currently assume that we are using
8838 # Microsoft Visual C++.
8839 if test "$GCC" != yes; then
8844 # we just hope/assume this is gcc and not c89 (= MSVC++)
8850 linux* | k*bsd*-gnu | gnu*)
8857 # On some targets, GNU ld is compatible enough with the native linker
8858 # that we're better off using the native interface for both.
8859 lt_use_gnu_ld_interface=no
8860 if test "$with_gnu_ld" = yes; then
8863 # The AIX port of GNU ld has always aspired to compatibility
8864 # with the native linker. However, as the warning in the GNU ld
8865 # block says, versions before 2.19.5* couldn't really create working
8866 # shared libraries, regardless of the interface used.
8867 case `$LD -v 2>&1` in
8868 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8869 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8870 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8872 lt_use_gnu_ld_interface=yes
8877 lt_use_gnu_ld_interface=yes
8882 if test "$lt_use_gnu_ld_interface" = yes; then
8883 # If archive_cmds runs LD, not CC, wlarc should be empty
8886 # Set some defaults for GNU ld with shared library support. These
8887 # are reset later if shared libraries are not supported. Putting them
8888 # here allows them to be overridden if necessary.
8889 runpath_var=LD_RUN_PATH
8890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8891 export_dynamic_flag_spec='${wl}--export-dynamic'
8892 # ancient GNU ld didn't support --whole-archive et. al.
8893 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8894 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8896 whole_archive_flag_spec=
8898 supports_anon_versioning=no
8899 case `$LD -v 2>&1` in
8900 *GNU\ gold*) supports_anon_versioning=yes ;;
8901 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8902 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8903 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8904 *\ 2.11.*) ;; # other 2.11 versions
8905 *) supports_anon_versioning=yes ;;
8908 # See if GNU ld supports shared libraries.
8911 # On AIX/PPC, the GNU linker is very broken
8912 if test "$host_cpu" != ia64; then
8916 *** Warning: the GNU linker, at least up to release 2.19, is reported
8917 *** to be unable to reliably create shared libraries on AIX.
8918 *** Therefore, libtool is disabling shared libraries support. If you
8919 *** really care for shared libraries, you may want to install binutils
8920 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8921 *** You will then need to restart the configuration process.
8930 # see comment about AmigaOS4 .so support
8931 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8932 archive_expsym_cmds=''
8935 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)'
8936 hardcode_libdir_flag_spec='-L$libdir'
8937 hardcode_minus_L=yes
8943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8944 allow_undefined_flag=unsupported
8945 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8946 # support --undefined. This deserves some investigation. FIXME
8947 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 cygwin* | mingw* | pw32* | cegcc*)
8954 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8955 # as there is no search path for DLLs.
8956 hardcode_libdir_flag_spec='-L$libdir'
8957 export_dynamic_flag_spec='${wl}--export-all-symbols'
8958 allow_undefined_flag=unsupported
8959 always_export_symbols=no
8960 enable_shared_with_static_runtimes=yes
8961 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'
8962 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8964 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8966 # If the export-symbols file already is a .def file (1st line
8967 # is EXPORTS), use it as is; otherwise, prepend...
8968 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8969 cp $export_symbols $output_objdir/$soname.def;
8971 echo EXPORTS > $output_objdir/$soname.def;
8972 cat $export_symbols >> $output_objdir/$soname.def;
8974 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 link_all_deplibs=yes
8987 hardcode_shlibpath_var=no
8988 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8989 export_dynamic_flag_spec='${wl}-E'
8990 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8991 # Instead, shared libraries are loaded at an image base (0x10000000 by
8992 # default) and relocated if they conflict, which is a slow very memory
8993 # consuming and fragmenting process. To avoid this, we pick a random,
8994 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8995 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8996 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8997 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'
9000 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9002 if test "$host_os" = linux-dietlibc; then
9003 case $cc_basename in
9004 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9007 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9008 && test "$tmp_diet" = no
9010 tmp_addflag=' $pic_flag'
9011 tmp_sharedflag='-shared'
9012 case $cc_basename,$host_cpu in
9013 pgcc*) # Portland Group C compiler
9014 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'
9015 tmp_addflag=' $pic_flag'
9017 pgf77* | pgf90* | pgf95* | pgfortran*)
9018 # Portland Group f77 and f90 compilers
9019 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'
9020 tmp_addflag=' $pic_flag -Mnomain' ;;
9021 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9022 tmp_addflag=' -i_dynamic' ;;
9023 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9024 tmp_addflag=' -i_dynamic -nofor_main' ;;
9025 ifc* | ifort*) # Intel Fortran compiler
9026 tmp_addflag=' -nofor_main' ;;
9027 lf95*) # Lahey Fortran 8.1
9028 whole_archive_flag_spec=
9029 tmp_sharedflag='--shared' ;;
9030 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9031 tmp_sharedflag='-qmkshrobj'
9033 nvcc*) # Cuda Compiler Driver 2.2
9034 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'
9035 compiler_needs_object=yes
9038 case `$CC -V 2>&1 | sed 5q` in
9039 *Sun\ C*) # Sun C 5.9
9040 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'
9041 compiler_needs_object=yes
9042 tmp_sharedflag='-G' ;;
9043 *Sun\ F*) # Sun Fortran 8.3
9044 tmp_sharedflag='-G' ;;
9046 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 if test "x$supports_anon_versioning" = xyes; then
9049 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9051 echo "local: *; };" >> $output_objdir/$libname.ver~
9052 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9055 case $cc_basename in
9056 xlf* | bgf* | bgxlf* | mpixlf*)
9057 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9058 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9060 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9061 if test "x$supports_anon_versioning" = xyes; then
9062 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9064 echo "local: *; };" >> $output_objdir/$libname.ver~
9065 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9074 netbsd* | netbsdelf*-gnu)
9075 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9076 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9079 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9085 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9089 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9090 *** create shared libraries on Solaris systems. Therefore, libtool
9091 *** is disabling shared libraries support. We urge you to upgrade GNU
9092 *** binutils to release 2.9.1 or newer. Another option is to modify
9093 *** your PATH or compiler configuration so that the native linker is
9094 *** used, and then restart.
9097 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9099 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9106 case `$LD -v 2>&1` in
9107 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9111 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9112 *** reliably create shared libraries on SCO systems. Therefore, libtool
9113 *** is disabling shared libraries support. We urge you to upgrade GNU
9114 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9115 *** your PATH or compiler configuration so that the native linker is
9116 *** used, and then restart.
9121 # For security reasons, it is highly recommended that you always
9122 # use absolute paths for naming shared libraries, and exclude the
9123 # DT_RUNPATH tag from executables and libraries. But doing so
9124 # requires that you compile everything twice, which is a pain.
9125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9137 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_shlibpath_var=no
9144 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9145 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9153 if test "$ld_shlibs" = no; then
9155 hardcode_libdir_flag_spec=
9156 export_dynamic_flag_spec=
9157 whole_archive_flag_spec=
9160 # PORTME fill in a description of your system's linker (not GNU ld)
9163 allow_undefined_flag=unsupported
9164 always_export_symbols=yes
9165 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'
9166 # Note: this linker hardcodes the directories in LIBPATH if there
9167 # are no directories specified by -L.
9168 hardcode_minus_L=yes
9169 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9170 # Neither direct hardcoding nor static linking is supported with a
9172 hardcode_direct=unsupported
9177 if test "$host_cpu" = ia64; then
9178 # On IA64, the linker does run time linking by default, so we don't
9179 # have to do anything special.
9180 aix_use_runtimelinking=no
9181 exp_sym_flag='-Bexport'
9184 # If we're using GNU nm, then we don't want the "-C" option.
9185 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9186 # Also, AIX nm treats weak defined symbols like other global
9187 # defined symbols, whereas GNU nm marks them as "W".
9188 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9189 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'
9191 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'
9193 aix_use_runtimelinking=no
9195 # Test if we are trying to use run time linking or normal
9196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9197 # need to do runtime linking.
9198 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9199 for ld_flag in $LDFLAGS; do
9200 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9201 aix_use_runtimelinking=yes
9208 exp_sym_flag='-bexport'
9209 no_entry_flag='-bnoentry'
9212 # When large executables or shared objects are built, AIX ld can
9213 # have problems creating the table of contents. If linking a library
9214 # or program results in "error TOC overflow" add -mminimal-toc to
9215 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9216 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9220 hardcode_direct_absolute=yes
9221 hardcode_libdir_separator=':'
9222 link_all_deplibs=yes
9223 file_list_spec='${wl}-f,'
9225 if test "$GCC" = yes; then
9226 case $host_os in aix4.[012]|aix4.[012].*)
9227 # We only want to do this on AIX 4.2 and lower, the check
9228 # below for broken collect2 doesn't work under 4.3+
9229 collect2name=`${CC} -print-prog-name=collect2`
9230 if test -f "$collect2name" &&
9231 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9233 # We have reworked collect2
9236 # We have old collect2
9237 hardcode_direct=unsupported
9238 # It fails to find uninstalled libraries when the uninstalled
9239 # path is not listed in the libpath. Setting hardcode_minus_L
9240 # to unsupported forces relinking
9241 hardcode_minus_L=yes
9242 hardcode_libdir_flag_spec='-L$libdir'
9243 hardcode_libdir_separator=
9247 shared_flag='-shared'
9248 if test "$aix_use_runtimelinking" = yes; then
9249 shared_flag="$shared_flag "'${wl}-G'
9254 if test "$host_cpu" = ia64; then
9255 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9256 # chokes on -Wl,-G. The following line is correct:
9259 if test "$aix_use_runtimelinking" = yes; then
9260 shared_flag='${wl}-G'
9262 shared_flag='${wl}-bM:SRE'
9267 export_dynamic_flag_spec='${wl}-bexpall'
9268 # It seems that -bexpall does not export symbols beginning with
9269 # underscore (_), so it is better to generate a list of symbols to export.
9270 always_export_symbols=yes
9271 if test "$aix_use_runtimelinking" = yes; then
9272 # Warning - without using the other runtime loading flags (-brtl),
9273 # -berok will link without error, but may produce a broken library.
9274 allow_undefined_flag='-berok'
9275 # Determine the default libpath from the value encoded in an
9277 if test "${lt_cv_aix_libpath+set}" = set; then
9278 aix_libpath=$lt_cv_aix_libpath
9280 if ${lt_cv_aix_libpath_+:} false; then :
9281 $as_echo_n "(cached) " >&6
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h. */
9294 if ac_fn_c_try_link "$LINENO"; then :
9296 lt_aix_libpath_sed='
9297 /Import File Strings/,/^$/ {
9299 s/^0 *\([^ ]*\) *$/\1/
9303 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9304 # Check for a 64-bit object if we didn't find anything.
9305 if test -z "$lt_cv_aix_libpath_"; then
9306 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9309 rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311 if test -z "$lt_cv_aix_libpath_"; then
9312 lt_cv_aix_libpath_="/usr/lib:/lib"
9317 aix_libpath=$lt_cv_aix_libpath_
9320 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9321 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"
9323 if test "$host_cpu" = ia64; then
9324 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9325 allow_undefined_flag="-z nodefs"
9326 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"
9328 # Determine the default libpath from the value encoded in an
9330 if test "${lt_cv_aix_libpath+set}" = set; then
9331 aix_libpath=$lt_cv_aix_libpath
9333 if ${lt_cv_aix_libpath_+:} false; then :
9334 $as_echo_n "(cached) " >&6
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9347 if ac_fn_c_try_link "$LINENO"; then :
9349 lt_aix_libpath_sed='
9350 /Import File Strings/,/^$/ {
9352 s/^0 *\([^ ]*\) *$/\1/
9356 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9357 # Check for a 64-bit object if we didn't find anything.
9358 if test -z "$lt_cv_aix_libpath_"; then
9359 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9362 rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
9364 if test -z "$lt_cv_aix_libpath_"; then
9365 lt_cv_aix_libpath_="/usr/lib:/lib"
9370 aix_libpath=$lt_cv_aix_libpath_
9373 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9374 # Warning - without using the other run time loading flags,
9375 # -berok will link without error, but may produce a broken library.
9376 no_undefined_flag=' ${wl}-bernotok'
9377 allow_undefined_flag=' ${wl}-berok'
9378 if test "$with_gnu_ld" = yes; then
9379 # We only use this code for GNU lds that support --whole-archive.
9380 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9382 # Exported symbols can be pulled into shared objects from archives
9383 whole_archive_flag_spec='$convenience'
9385 archive_cmds_need_lc=yes
9386 # This is similar to how AIX traditionally builds its shared libraries.
9387 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'
9395 # see comment about AmigaOS4 .so support
9396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397 archive_expsym_cmds=''
9400 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)'
9401 hardcode_libdir_flag_spec='-L$libdir'
9402 hardcode_minus_L=yes
9408 export_dynamic_flag_spec=-rdynamic
9411 cygwin* | mingw* | pw32* | cegcc*)
9412 # When not using gcc, we currently assume that we are using
9413 # Microsoft Visual C++.
9414 # hardcode_libdir_flag_spec is actually meaningless, as there is
9415 # no search path for DLLs.
9416 case $cc_basename in
9419 hardcode_libdir_flag_spec=' '
9420 allow_undefined_flag=unsupported
9421 always_export_symbols=yes
9423 # Tell ltmain to make .lib files, not .a files.
9425 # Tell ltmain to make .dll files, not .so files.
9427 # FIXME: Setting linknames here is a bad hack.
9428 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9429 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9430 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9432 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9434 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9436 # The linker will not automatically build a static lib if we build a DLL.
9437 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9438 enable_shared_with_static_runtimes=yes
9439 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9442 old_postinstall_cmds='chmod 644 $oldlib'
9443 postlink_cmds='lt_outputfile="@OUTPUT@"~
9444 lt_tool_outputfile="@TOOL_OUTPUT@"~
9445 case $lt_outputfile in
9448 lt_outputfile="$lt_outputfile.exe"
9449 lt_tool_outputfile="$lt_tool_outputfile.exe"
9452 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9453 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9454 $RM "$lt_outputfile.manifest";
9458 # Assume MSVC wrapper
9459 hardcode_libdir_flag_spec=' '
9460 allow_undefined_flag=unsupported
9461 # Tell ltmain to make .lib files, not .a files.
9463 # Tell ltmain to make .dll files, not .so files.
9465 # FIXME: Setting linknames here is a bad hack.
9466 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9467 # The linker will automatically build a .lib file if we build a DLL.
9468 old_archive_from_new_cmds='true'
9469 # FIXME: Should let the user specify the lib program.
9470 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9471 enable_shared_with_static_runtimes=yes
9476 darwin* | rhapsody*)
9479 archive_cmds_need_lc=no
9481 hardcode_automatic=yes
9482 hardcode_shlibpath_var=unsupported
9483 if test "$lt_cv_ld_force_load" = "yes"; then
9484 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\"`'
9487 whole_archive_flag_spec=''
9489 link_all_deplibs=yes
9490 allow_undefined_flag="$_lt_dar_allow_undefined"
9491 case $cc_basename in
9492 ifort*) _lt_dar_can_shared=yes ;;
9493 *) _lt_dar_can_shared=$GCC ;;
9495 if test "$_lt_dar_can_shared" = "yes"; then
9496 output_verbose_link_cmd=func_echo_all
9497 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9498 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9499 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}"
9500 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}"
9509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9510 hardcode_libdir_flag_spec='-L$libdir'
9511 hardcode_shlibpath_var=no
9514 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9515 # support. Future versions do this automatically, but an explicit c++rt0.o
9516 # does not break anything, and helps significantly (at the cost of a little
9519 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9520 hardcode_libdir_flag_spec='-R$libdir'
9522 hardcode_shlibpath_var=no
9525 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9529 hardcode_minus_L=yes
9530 hardcode_shlibpath_var=no
9533 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9534 freebsd* | dragonfly*)
9535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9536 hardcode_libdir_flag_spec='-R$libdir'
9538 hardcode_shlibpath_var=no
9542 if test "$GCC" = yes; then
9543 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'
9545 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'
9547 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9548 hardcode_libdir_separator=:
9551 # hardcode_minus_L: Not really in the search PATH,
9552 # but as the default location of the library.
9553 hardcode_minus_L=yes
9554 export_dynamic_flag_spec='${wl}-E'
9558 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9559 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9561 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9563 if test "$with_gnu_ld" = no; then
9564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565 hardcode_libdir_separator=:
9567 hardcode_direct_absolute=yes
9568 export_dynamic_flag_spec='${wl}-E'
9569 # hardcode_minus_L: Not really in the search PATH,
9570 # but as the default location of the library.
9571 hardcode_minus_L=yes
9576 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9579 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9582 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9591 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9594 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9598 # Older versions of the 11.00 compiler do not understand -b yet
9599 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9601 $as_echo_n "checking if $CC understands -b... " >&6; }
9602 if ${lt_cv_prog_compiler__b+:} false; then :
9603 $as_echo_n "(cached) " >&6
9605 lt_cv_prog_compiler__b=no
9606 save_LDFLAGS="$LDFLAGS"
9607 LDFLAGS="$LDFLAGS -b"
9608 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9609 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9610 # The linker can only warn and ignore the option if not recognized
9611 # So say no if there are warnings
9612 if test -s conftest.err; then
9613 # Append any errors to the config.log.
9614 cat conftest.err 1>&5
9615 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9617 if diff conftest.exp conftest.er2 >/dev/null; then
9618 lt_cv_prog_compiler__b=yes
9621 lt_cv_prog_compiler__b=yes
9625 LDFLAGS="$save_LDFLAGS"
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9629 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9631 if test x"$lt_cv_prog_compiler__b" = xyes; then
9632 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9640 if test "$with_gnu_ld" = no; then
9641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9642 hardcode_libdir_separator=:
9647 hardcode_shlibpath_var=no
9651 hardcode_direct_absolute=yes
9652 export_dynamic_flag_spec='${wl}-E'
9654 # hardcode_minus_L: Not really in the search PATH,
9655 # but as the default location of the library.
9656 hardcode_minus_L=yes
9662 irix5* | irix6* | nonstopux*)
9663 if test "$GCC" = yes; then
9664 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'
9665 # Try to use the -exported_symbol ld option, if it does not
9666 # work, assume that -exports_file does not work either and
9667 # implicitly export all symbols.
9668 # This should be the same for all languages, so no per-tag cache variable.
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9670 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9671 if ${lt_cv_irix_exported_symbol+:} false; then :
9672 $as_echo_n "(cached) " >&6
9674 save_LDFLAGS="$LDFLAGS"
9675 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678 int foo (void) { return 0; }
9680 if ac_fn_c_try_link "$LINENO"; then :
9681 lt_cv_irix_exported_symbol=yes
9683 lt_cv_irix_exported_symbol=no
9685 rm -f core conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 LDFLAGS="$save_LDFLAGS"
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9690 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9691 if test "$lt_cv_irix_exported_symbol" = yes; then
9692 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'
9695 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'
9696 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'
9698 archive_cmds_need_lc='no'
9699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9700 hardcode_libdir_separator=:
9702 link_all_deplibs=yes
9705 netbsd* | netbsdelf*-gnu)
9706 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9709 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9711 hardcode_libdir_flag_spec='-R$libdir'
9713 hardcode_shlibpath_var=no
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9720 hardcode_libdir_separator=:
9721 hardcode_shlibpath_var=no
9728 if test -f /usr/libexec/ld.so; then
9730 hardcode_shlibpath_var=no
9731 hardcode_direct_absolute=yes
9732 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9733 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9736 export_dynamic_flag_spec='${wl}-E'
9739 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_libdir_flag_spec='-R$libdir'
9744 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9745 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9755 hardcode_libdir_flag_spec='-L$libdir'
9756 hardcode_minus_L=yes
9757 allow_undefined_flag=unsupported
9758 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'
9759 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9763 if test "$GCC" = yes; then
9764 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9765 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'
9767 allow_undefined_flag=' -expect_unresolved \*'
9768 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'
9770 archive_cmds_need_lc='no'
9771 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9772 hardcode_libdir_separator=:
9775 osf4* | osf5*) # as osf3* with the addition of -msym flag
9776 if test "$GCC" = yes; then
9777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9778 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'
9779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9781 allow_undefined_flag=' -expect_unresolved \*'
9782 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'
9783 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~
9784 $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'
9786 # Both c and cxx compiler support -rpath directly
9787 hardcode_libdir_flag_spec='-rpath $libdir'
9789 archive_cmds_need_lc='no'
9790 hardcode_libdir_separator=:
9794 no_undefined_flag=' -z defs'
9795 if test "$GCC" = yes; then
9797 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9799 $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'
9801 case `$CC -V 2>&1` in
9804 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9805 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9806 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9810 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9812 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9816 hardcode_libdir_flag_spec='-R$libdir'
9817 hardcode_shlibpath_var=no
9819 solaris2.[0-5] | solaris2.[0-5].*) ;;
9821 # The compiler driver will combine and reorder linker options,
9822 # but understands `-z linker_flag'. GCC discards it without `$wl',
9823 # but is careful enough not to reorder.
9824 # Supported since Solaris 2.6 (maybe 2.5.1?)
9825 if test "$GCC" = yes; then
9826 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9828 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9832 link_all_deplibs=yes
9836 if test "x$host_vendor" = xsequent; then
9837 # Use $CC to link under sequent, because it throws in some extra .o
9838 # files that make .init and .fini sections work.
9839 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9841 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9843 hardcode_libdir_flag_spec='-L$libdir'
9845 hardcode_minus_L=yes
9846 hardcode_shlibpath_var=no
9850 case $host_vendor in
9852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9853 hardcode_direct=yes # is this really true???
9856 ## LD is ld it makes a PLAMLIB
9857 ## CC just makes a GrossModule.
9858 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9859 reload_cmds='$CC -r -o $output$reload_objs'
9863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9867 runpath_var='LD_RUN_PATH'
9868 hardcode_shlibpath_var=no
9872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9873 hardcode_shlibpath_var=no
9874 export_dynamic_flag_spec='-Bexport'
9878 if test -d /usr/nec; then
9879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9880 hardcode_shlibpath_var=no
9881 runpath_var=LD_RUN_PATH
9882 hardcode_runpath_var=yes
9887 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9888 no_undefined_flag='${wl}-z,text'
9889 archive_cmds_need_lc=no
9890 hardcode_shlibpath_var=no
9891 runpath_var='LD_RUN_PATH'
9893 if test "$GCC" = yes; then
9894 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9895 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9898 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9902 sysv5* | sco3.2v5* | sco5v6*)
9903 # Note: We can NOT use -z defs as we might desire, because we do not
9904 # link with -lc, and that would cause any symbols used from libc to
9905 # always be unresolved, which means just about no library would
9906 # ever link correctly. If we're not using GNU ld we use -z text
9907 # though, which does catch some bad symbols but isn't as heavy-handed
9909 no_undefined_flag='${wl}-z,text'
9910 allow_undefined_flag='${wl}-z,nodefs'
9911 archive_cmds_need_lc=no
9912 hardcode_shlibpath_var=no
9913 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9914 hardcode_libdir_separator=':'
9915 link_all_deplibs=yes
9916 export_dynamic_flag_spec='${wl}-Bexport'
9917 runpath_var='LD_RUN_PATH'
9919 if test "$GCC" = yes; then
9920 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9921 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9923 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9924 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9930 hardcode_libdir_flag_spec='-L$libdir'
9931 hardcode_shlibpath_var=no
9939 if test x$host_vendor = xsni; then
9941 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9942 export_dynamic_flag_spec='${wl}-Blargedynsym'
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9949 $as_echo "$ld_shlibs" >&6; }
9950 test "$ld_shlibs" = no && can_build_shared=no
9952 with_gnu_ld=$with_gnu_ld
9969 # Do we need to explicitly link libc?
9971 case "x$archive_cmds_need_lc" in
9973 # Assume -lc should be added
9974 archive_cmds_need_lc=yes
9976 if test "$enable_shared" = yes && test "$GCC" = yes; then
9977 case $archive_cmds in
9979 # FIXME: we may have to deal with multi-command sequences.
9982 # Test whether the compiler implicitly links with -lc since on some
9983 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9984 # to ld, don't add -lc before -lgcc.
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9986 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9987 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9988 $as_echo_n "(cached) " >&6
9991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9994 (eval $ac_compile) 2>&5
9996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9997 test $ac_status = 0; } 2>conftest.err; then
10000 libobjs=conftest.$ac_objext
10002 wl=$lt_prog_compiler_wl
10003 pic_flag=$lt_prog_compiler_pic
10009 lt_save_allow_undefined_flag=$allow_undefined_flag
10010 allow_undefined_flag=
10011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10012 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10015 test $ac_status = 0; }
10017 lt_cv_archive_cmds_need_lc=no
10019 lt_cv_archive_cmds_need_lc=yes
10021 allow_undefined_flag=$lt_save_allow_undefined_flag
10023 cat conftest.err 1>&5
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10029 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10030 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10189 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10191 if test "$GCC" = yes; then
10193 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10194 *) lt_awk_arg="/^libraries:/" ;;
10197 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10198 *) lt_sed_strip_eq="s,=/,/,g" ;;
10200 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10201 case $lt_search_path_spec in
10203 # if the path contains ";" then we assume it to be the separator
10204 # otherwise default to the standard path separator (i.e. ":") - it is
10205 # assumed that no part of a normal pathname contains ";" but that should
10206 # okay in the real world where ";" in dirpaths is itself problematic.
10207 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10210 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10213 # Ok, now we have the path, separated by spaces, we can step through it
10214 # and add multilib dir if necessary.
10215 lt_tmp_lt_search_path_spec=
10216 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10217 for lt_sys_path in $lt_search_path_spec; do
10218 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10219 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10221 test -d "$lt_sys_path" && \
10222 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10225 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10226 BEGIN {RS=" "; FS="/|\n";} {
10229 for (lt_i = NF; lt_i > 0; lt_i--) {
10230 if ($lt_i != "" && $lt_i != ".") {
10231 if ($lt_i == "..") {
10234 if (lt_count == 0) {
10235 lt_foo="/" $lt_i lt_foo;
10242 if (lt_foo != "") { lt_freq[lt_foo]++; }
10243 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10245 # AWK program above erroneously prepends '/' to C:/dos/paths
10248 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10249 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10251 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10253 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10255 library_names_spec=
10256 libname_spec='lib$name'
10260 postuninstall_cmds=
10264 shlibpath_overrides_runpath=unknown
10266 dynamic_linker="$host_os ld.so"
10267 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10268 need_lib_prefix=unknown
10269 hardcode_into_libs=no
10271 # when you set need_version to no, make sure it does not cause -set_version
10272 # flags to be left without arguments
10273 need_version=unknown
10277 version_type=linux # correct to gnu/linux during the next big refactor
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10279 shlibpath_var=LIBPATH
10281 # AIX 3 has no versioning support, so we append a major version to the name.
10282 soname_spec='${libname}${release}${shared_ext}$major'
10286 version_type=linux # correct to gnu/linux during the next big refactor
10289 hardcode_into_libs=yes
10290 if test "$host_cpu" = ia64; then
10291 # AIX 5 supports IA64
10292 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10293 shlibpath_var=LD_LIBRARY_PATH
10295 # With GCC up to 2.95.x, collect2 would create an import file
10296 # for dependence libraries. The import file would start with
10297 # the line `#! .'. This would cause the generated library to
10298 # depend on `.', always an invalid library. This was fixed in
10299 # development snapshots of GCC prior to 3.0.
10301 aix4 | aix4.[01] | aix4.[01].*)
10302 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10304 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10307 can_build_shared=no
10311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10312 # soname into executable. Probably we can add versioning support to
10313 # collect2, so additional links can be useful in future.
10314 if test "$aix_use_runtimelinking" = yes; then
10315 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10316 # instead of lib<name>.a to let people know that these are not
10317 # typical AIX shared libraries.
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320 # We preserve .a as extension for shared libraries through AIX4.2
10321 # and later when we are not doing run time linking.
10322 library_names_spec='${libname}${release}.a $libname.a'
10323 soname_spec='${libname}${release}${shared_ext}$major'
10325 shlibpath_var=LIBPATH
10332 # Since July 2007 AmigaOS4 officially supports .so libraries.
10333 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 library_names_spec='$libname.ixlibrary $libname.a'
10338 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10339 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'
10345 library_names_spec='${libname}${shared_ext}'
10346 dynamic_linker="$host_os ld.so"
10347 shlibpath_var=LIBRARY_PATH
10351 version_type=linux # correct to gnu/linux during the next big refactor
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10359 # the default ld.so.conf also contains /usr/contrib/lib and
10360 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10361 # libtool to hard-code these into programs
10364 cygwin* | mingw* | pw32* | cegcc*)
10365 version_type=windows
10370 case $GCC,$cc_basename in
10373 library_names_spec='$libname.dll.a'
10374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10375 postinstall_cmds='base_file=`basename \${file}`~
10376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10377 dldir=$destdir/`dirname \$dlpath`~
10378 test -d \$dldir || mkdir -p \$dldir~
10379 $install_prog $dir/$dlname \$dldir/$dlname~
10380 chmod a+x \$dldir/$dlname~
10381 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10382 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10385 dlpath=$dir/\$dldll~
10387 shlibpath_overrides_runpath=yes
10391 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10392 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10394 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10397 # MinGW DLLs use traditional 'lib' prefix
10398 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10401 # pw32 DLLs use 'pw' prefix rather than 'lib'
10402 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10405 dynamic_linker='Win32 ld.exe'
10410 libname_spec='$name'
10411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10412 library_names_spec='${libname}.dll.lib'
10416 sys_lib_search_path_spec=
10419 for lt_path in $LIB
10422 # Let DOS variable expansion print the short 8.3 style file name.
10423 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10424 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10427 # Convert to MSYS style.
10428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10431 # Convert to unix form, then to dos form, then back to unix form
10432 # but this time dos style (no spaces!) so that the unix form looks
10433 # like /cygdrive/c/PROGRA~1:/cygdr...
10434 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10435 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10436 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10439 sys_lib_search_path_spec="$LIB"
10440 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10441 # It is most probably a Windows format PATH.
10442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10446 # FIXME: find the short name or the path components, as spaces are
10447 # common. (e.g. "Program Files" -> "PROGRA~1")
10451 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10452 postinstall_cmds='base_file=`basename \${file}`~
10453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10454 dldir=$destdir/`dirname \$dlpath`~
10455 test -d \$dldir || mkdir -p \$dldir~
10456 $install_prog $dir/$dlname \$dldir/$dlname'
10457 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10458 dlpath=$dir/\$dldll~
10460 shlibpath_overrides_runpath=yes
10461 dynamic_linker='Win32 link.exe'
10465 # Assume MSVC wrapper
10466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10467 dynamic_linker='Win32 ld.exe'
10470 # FIXME: first we should search . and the directory the executable is in
10474 darwin* | rhapsody*)
10475 dynamic_linker="$host_os dyld"
10476 version_type=darwin
10479 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10480 soname_spec='${libname}${release}${major}$shared_ext'
10481 shlibpath_overrides_runpath=yes
10482 shlibpath_var=DYLD_LIBRARY_PATH
10483 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10485 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10486 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10490 version_type=linux # correct to gnu/linux during the next big refactor
10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10494 soname_spec='${libname}${release}${shared_ext}$major'
10495 shlibpath_var=LD_LIBRARY_PATH
10498 freebsd* | dragonfly*)
10499 # DragonFly does not have aout. When/if they implement a new
10500 # versioning mechanism, adjust this.
10501 if test -x /usr/bin/objformat; then
10502 objformat=`/usr/bin/objformat`
10505 freebsd[23].*) objformat=aout ;;
10506 *) objformat=elf ;;
10509 version_type=freebsd-$objformat
10510 case $version_type in
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10521 shlibpath_var=LD_LIBRARY_PATH
10524 shlibpath_overrides_runpath=yes
10526 freebsd3.[01]* | freebsdelf3.[01]*)
10527 shlibpath_overrides_runpath=yes
10528 hardcode_into_libs=yes
10530 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10531 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10532 shlibpath_overrides_runpath=no
10533 hardcode_into_libs=yes
10535 *) # from 4.6 on, and DragonFly
10536 shlibpath_overrides_runpath=yes
10537 hardcode_into_libs=yes
10543 version_type=linux # correct to gnu/linux during the next big refactor
10546 dynamic_linker="$host_os runtime_loader"
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 shlibpath_var=LIBRARY_PATH
10550 shlibpath_overrides_runpath=yes
10551 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10552 hardcode_into_libs=yes
10555 hpux9* | hpux10* | hpux11*)
10556 # Give a soname corresponding to the major version so that dld.sl refuses to
10557 # link against other versions.
10564 hardcode_into_libs=yes
10565 dynamic_linker="$host_os dld.so"
10566 shlibpath_var=LD_LIBRARY_PATH
10567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 if test "X$HPUX_IA64_MODE" = X32; then
10571 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10579 hardcode_into_libs=yes
10580 dynamic_linker="$host_os dld.sl"
10581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10584 soname_spec='${libname}${release}${shared_ext}$major'
10585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10590 dynamic_linker="$host_os dld.sl"
10591 shlibpath_var=SHLIB_PATH
10592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10597 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10598 postinstall_cmds='chmod 555 $lib'
10599 # or fails outright, so override atomically:
10600 install_override_mode=555
10604 version_type=linux # correct to gnu/linux during the next big refactor
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10610 shlibpath_var=LD_LIBRARY_PATH
10611 shlibpath_overrides_runpath=no
10612 hardcode_into_libs=yes
10615 irix5* | irix6* | nonstopux*)
10617 nonstopux*) version_type=nonstopux ;;
10619 if test "$lt_cv_prog_gnu_ld" = yes; then
10620 version_type=linux # correct to gnu/linux during the next big refactor
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10630 irix5* | nonstopux*)
10631 libsuff= shlibsuff=
10634 case $LD in # libtool.m4 will add one of these switches to LD
10635 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10636 libsuff= shlibsuff= libmagic=32-bit;;
10637 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10638 libsuff=32 shlibsuff=N32 libmagic=N32;;
10639 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10640 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10641 *) libsuff= shlibsuff= libmagic=never-match;;
10645 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10646 shlibpath_overrides_runpath=no
10647 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10648 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10649 hardcode_into_libs=yes
10652 # No shared lib support for Linux oldld, aout, or coff.
10653 linux*oldld* | linux*aout* | linux*coff*)
10657 # This must be glibc/ELF.
10658 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10659 version_type=linux # correct to gnu/linux during the next big refactor
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10665 shlibpath_var=LD_LIBRARY_PATH
10666 shlibpath_overrides_runpath=no
10668 # Some binutils ld are patched to set DT_RUNPATH
10669 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10670 $as_echo_n "(cached) " >&6
10672 lt_cv_shlibpath_overrides_runpath=no
10673 save_LDFLAGS=$LDFLAGS
10674 save_libdir=$libdir
10675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h. */
10688 if ac_fn_c_try_link "$LINENO"; then :
10689 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10690 lt_cv_shlibpath_overrides_runpath=yes
10693 rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LDFLAGS=$save_LDFLAGS
10696 libdir=$save_libdir
10700 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10702 # This implies no fast_install, which is unacceptable.
10703 # Some rework will be needed to allow for fast_install
10704 # before this can be enabled.
10705 hardcode_into_libs=yes
10707 # Append ld.so.conf contents to the search path
10708 if test -f /etc/ld.so.conf; then
10709 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' ' '`
10710 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10713 # We used to test for /lib/ld.so.1 and disable shared libraries on
10714 # powerpc, because MkLinux only supported shared libraries with the
10715 # GNU dynamic linker. Since this was broken with cross compilers,
10716 # most powerpc-linux boxes support dynamic linking these days and
10717 # people can always --disable-shared, the test was removed, and we
10718 # assume the GNU/Linux dynamic linker is in use.
10719 dynamic_linker='GNU/Linux ld.so'
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 shlibpath_var=LD_LIBRARY_PATH
10729 shlibpath_overrides_runpath=no
10730 hardcode_into_libs=yes
10731 dynamic_linker='NetBSD ld.elf_so'
10738 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10741 dynamic_linker='NetBSD (a.out) ld.so'
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 dynamic_linker='NetBSD ld.elf_so'
10747 shlibpath_var=LD_LIBRARY_PATH
10748 shlibpath_overrides_runpath=yes
10749 hardcode_into_libs=yes
10753 version_type=linux # correct to gnu/linux during the next big refactor
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 shlibpath_overrides_runpath=yes
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 shlibpath_overrides_runpath=no
10767 hardcode_into_libs=yes
10768 dynamic_linker='ldqnx.so'
10773 sys_lib_dlsearch_path_spec="/usr/lib"
10775 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10777 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10778 *) need_version=no ;;
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10782 shlibpath_var=LD_LIBRARY_PATH
10783 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10785 openbsd2.[89] | openbsd2.[89].*)
10786 shlibpath_overrides_runpath=no
10789 shlibpath_overrides_runpath=yes
10793 shlibpath_overrides_runpath=yes
10798 libname_spec='$name'
10801 library_names_spec='$libname${shared_ext} $libname.a'
10802 dynamic_linker='OS/2 ld.exe'
10803 shlibpath_var=LIBPATH
10806 osf3* | osf4* | osf5*)
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10814 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10822 version_type=linux # correct to gnu/linux during the next big refactor
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826 soname_spec='${libname}${release}${shared_ext}$major'
10827 shlibpath_var=LD_LIBRARY_PATH
10828 shlibpath_overrides_runpath=yes
10829 hardcode_into_libs=yes
10830 # ldd complains unless libraries are executable
10831 postinstall_cmds='chmod +x $lib'
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10837 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 shlibpath_overrides_runpath=yes
10840 if test "$with_gnu_ld" = yes; then
10847 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 case $host_vendor in
10853 shlibpath_overrides_runpath=no
10855 runpath_var=LD_RUN_PATH
10863 shlibpath_overrides_runpath=no
10864 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10870 if test -d /usr/nec ;then
10871 version_type=linux # correct to gnu/linux during the next big refactor
10872 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10873 soname_spec='$libname${shared_ext}.$major'
10874 shlibpath_var=LD_LIBRARY_PATH
10878 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10879 version_type=freebsd-elf
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10883 soname_spec='${libname}${release}${shared_ext}$major'
10884 shlibpath_var=LD_LIBRARY_PATH
10885 shlibpath_overrides_runpath=yes
10886 hardcode_into_libs=yes
10887 if test "$with_gnu_ld" = yes; then
10888 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10890 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10893 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10897 sys_lib_dlsearch_path_spec='/usr/lib'
10901 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10902 version_type=linux # correct to gnu/linux during the next big refactor
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath=no
10908 hardcode_into_libs=yes
10912 version_type=linux # correct to gnu/linux during the next big refactor
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 shlibpath_var=LD_LIBRARY_PATH
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10923 $as_echo "$dynamic_linker" >&6; }
10924 test "$dynamic_linker" = no && can_build_shared=no
10926 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10927 if test "$GCC" = yes; then
10928 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10931 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10932 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10934 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10935 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11030 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11032 if test -n "$hardcode_libdir_flag_spec" ||
11033 test -n "$runpath_var" ||
11034 test "X$hardcode_automatic" = "Xyes" ; then
11036 # We can hardcode non-existent directories.
11037 if test "$hardcode_direct" != no &&
11038 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11039 # have to relink, otherwise we might link with an installed library
11040 # when we should be linking with a yet-to-be-installed one
11041 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11042 test "$hardcode_minus_L" != no; then
11043 # Linking always hardcodes the temporary library directory.
11044 hardcode_action=relink
11046 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11047 hardcode_action=immediate
11050 # We cannot hardcode anything, or else we can only hardcode existing
11052 hardcode_action=unsupported
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11055 $as_echo "$hardcode_action" >&6; }
11057 if test "$hardcode_action" = relink ||
11058 test "$inherit_rpath" = yes; then
11059 # Fast installation is not supported
11060 enable_fast_install=no
11061 elif test "$shlibpath_overrides_runpath" = yes ||
11062 test "$enable_shared" = no; then
11063 # Fast installation is not necessary
11064 enable_fast_install=needless
11072 if test "x$enable_dlopen" != xyes; then
11073 enable_dlopen=unknown
11074 enable_dlopen_self=unknown
11075 enable_dlopen_self_static=unknown
11082 lt_cv_dlopen="load_add_on"
11084 lt_cv_dlopen_self=yes
11087 mingw* | pw32* | cegcc*)
11088 lt_cv_dlopen="LoadLibrary"
11093 lt_cv_dlopen="dlopen"
11098 # if libdl is installed we need to link against it
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11100 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11101 if ${ac_cv_lib_dl_dlopen+:} false; then :
11102 $as_echo_n "(cached) " >&6
11104 ac_check_lib_save_LIBS=$LIBS
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11109 /* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11124 if ac_fn_c_try_link "$LINENO"; then :
11125 ac_cv_lib_dl_dlopen=yes
11127 ac_cv_lib_dl_dlopen=no
11129 rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11131 LIBS=$ac_check_lib_save_LIBS
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11134 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11135 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11139 lt_cv_dlopen="dyld"
11141 lt_cv_dlopen_self=yes
11148 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11149 if test "x$ac_cv_func_shl_load" = xyes; then :
11150 lt_cv_dlopen="shl_load"
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11153 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11154 if ${ac_cv_lib_dld_shl_load+:} false; then :
11155 $as_echo_n "(cached) " >&6
11157 ac_check_lib_save_LIBS=$LIBS
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11162 /* Override any GCC internal prototype to avoid an error.
11163 Use char because int might match the return type of a GCC
11164 builtin and then its argument prototype would still apply. */
11172 return shl_load ();
11177 if ac_fn_c_try_link "$LINENO"; then :
11178 ac_cv_lib_dld_shl_load=yes
11180 ac_cv_lib_dld_shl_load=no
11182 rm -f core conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
11184 LIBS=$ac_check_lib_save_LIBS
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11187 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11188 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11189 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11191 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11192 if test "x$ac_cv_func_dlopen" = xyes; then :
11193 lt_cv_dlopen="dlopen"
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11196 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11197 if ${ac_cv_lib_dl_dlopen+:} false; then :
11198 $as_echo_n "(cached) " >&6
11200 ac_check_lib_save_LIBS=$LIBS
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11205 /* Override any GCC internal prototype to avoid an error.
11206 Use char because int might match the return type of a GCC
11207 builtin and then its argument prototype would still apply. */
11220 if ac_fn_c_try_link "$LINENO"; then :
11221 ac_cv_lib_dl_dlopen=yes
11223 ac_cv_lib_dl_dlopen=no
11225 rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext conftest.$ac_ext
11227 LIBS=$ac_check_lib_save_LIBS
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11230 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11231 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11232 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11235 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11236 if ${ac_cv_lib_svld_dlopen+:} false; then :
11237 $as_echo_n "(cached) " >&6
11239 ac_check_lib_save_LIBS=$LIBS
11240 LIBS="-lsvld $LIBS"
11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11244 /* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11259 if ac_fn_c_try_link "$LINENO"; then :
11260 ac_cv_lib_svld_dlopen=yes
11262 ac_cv_lib_svld_dlopen=no
11264 rm -f core conftest.err conftest.$ac_objext \
11265 conftest$ac_exeext conftest.$ac_ext
11266 LIBS=$ac_check_lib_save_LIBS
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11269 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11270 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11271 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11274 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11275 if ${ac_cv_lib_dld_dld_link+:} false; then :
11276 $as_echo_n "(cached) " >&6
11278 ac_check_lib_save_LIBS=$LIBS
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11283 /* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11293 return dld_link ();
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 ac_cv_lib_dld_dld_link=yes
11301 ac_cv_lib_dld_dld_link=no
11303 rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
11305 LIBS=$ac_check_lib_save_LIBS
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11308 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11309 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11310 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11331 if test "x$lt_cv_dlopen" != xno; then
11337 case $lt_cv_dlopen in
11339 save_CPPFLAGS="$CPPFLAGS"
11340 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11342 save_LDFLAGS="$LDFLAGS"
11343 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11346 LIBS="$lt_cv_dlopen_libs $LIBS"
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11349 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11350 if ${lt_cv_dlopen_self+:} false; then :
11351 $as_echo_n "(cached) " >&6
11353 if test "$cross_compiling" = yes; then :
11354 lt_cv_dlopen_self=cross
11356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11357 lt_status=$lt_dlunknown
11358 cat > conftest.$ac_ext <<_LT_EOF
11359 #line $LINENO "configure"
11360 #include "confdefs.h"
11369 # define LT_DLGLOBAL RTLD_GLOBAL
11372 # define LT_DLGLOBAL DL_GLOBAL
11374 # define LT_DLGLOBAL 0
11378 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11379 find out it does not work in some platform. */
11380 #ifndef LT_DLLAZY_OR_NOW
11382 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11385 # define LT_DLLAZY_OR_NOW DL_LAZY
11388 # define LT_DLLAZY_OR_NOW RTLD_NOW
11391 # define LT_DLLAZY_OR_NOW DL_NOW
11393 # define LT_DLLAZY_OR_NOW 0
11400 /* When -fvisbility=hidden is used, assume the code has been annotated
11401 correspondingly for the symbols needed. */
11402 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11403 int fnord () __attribute__((visibility("default")));
11406 int fnord () { return 42; }
11409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11410 int status = $lt_dlunknown;
11414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11417 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11418 else puts (dlerror ());
11420 /* dlclose (self); */
11428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11429 (eval $ac_link) 2>&5
11431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11432 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11433 (./conftest; exit; ) >&5 2>/dev/null
11435 case x$lt_status in
11436 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11437 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11438 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11441 # compilation failed
11442 lt_cv_dlopen_self=no
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11450 $as_echo "$lt_cv_dlopen_self" >&6; }
11452 if test "x$lt_cv_dlopen_self" = xyes; then
11453 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11455 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11456 if ${lt_cv_dlopen_self_static+:} false; then :
11457 $as_echo_n "(cached) " >&6
11459 if test "$cross_compiling" = yes; then :
11460 lt_cv_dlopen_self_static=cross
11462 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11463 lt_status=$lt_dlunknown
11464 cat > conftest.$ac_ext <<_LT_EOF
11465 #line $LINENO "configure"
11466 #include "confdefs.h"
11475 # define LT_DLGLOBAL RTLD_GLOBAL
11478 # define LT_DLGLOBAL DL_GLOBAL
11480 # define LT_DLGLOBAL 0
11484 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11485 find out it does not work in some platform. */
11486 #ifndef LT_DLLAZY_OR_NOW
11488 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11491 # define LT_DLLAZY_OR_NOW DL_LAZY
11494 # define LT_DLLAZY_OR_NOW RTLD_NOW
11497 # define LT_DLLAZY_OR_NOW DL_NOW
11499 # define LT_DLLAZY_OR_NOW 0
11506 /* When -fvisbility=hidden is used, assume the code has been annotated
11507 correspondingly for the symbols needed. */
11508 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11509 int fnord () __attribute__((visibility("default")));
11512 int fnord () { return 42; }
11515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11516 int status = $lt_dlunknown;
11520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11523 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11524 else puts (dlerror ());
11526 /* dlclose (self); */
11534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11535 (eval $ac_link) 2>&5
11537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11538 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11539 (./conftest; exit; ) >&5 2>/dev/null
11541 case x$lt_status in
11542 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11543 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11544 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11547 # compilation failed
11548 lt_cv_dlopen_self_static=no
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11556 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11559 CPPFLAGS="$save_CPPFLAGS"
11560 LDFLAGS="$save_LDFLAGS"
11565 case $lt_cv_dlopen_self in
11566 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11567 *) enable_dlopen_self=unknown ;;
11570 case $lt_cv_dlopen_self_static in
11571 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11572 *) enable_dlopen_self_static=unknown ;;
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11595 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11596 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11597 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11598 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11600 $as_echo "yes" >&6; }
11602 # FIXME - insert some real tests, host_os isn't really good enough
11605 if test -n "$STRIP" ; then
11606 striplib="$STRIP -x"
11607 old_striplib="$STRIP -S"
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11609 $as_echo "yes" >&6; }
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 $as_echo "no" >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11633 # Report which library types will actually be built
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11635 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11637 $as_echo "$can_build_shared" >&6; }
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11640 $as_echo_n "checking whether to build shared libraries... " >&6; }
11641 test "$can_build_shared" = "no" && enable_shared=no
11643 # On AIX, shared libraries and static libraries use the same namespace, and
11644 # are all built from PIC.
11647 test "$enable_shared" = yes && enable_static=no
11648 if test -n "$RANLIB"; then
11649 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11650 postinstall_cmds='$RANLIB $lib'
11655 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11656 test "$enable_shared" = yes && enable_static=no
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11661 $as_echo "$enable_shared" >&6; }
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11664 $as_echo_n "checking whether to build static libraries... " >&6; }
11665 # Make sure either enable_shared or enable_static is yes.
11666 test "$enable_shared" = yes || enable_static=yes
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11668 $as_echo "$enable_static" >&6; }
11675 ac_cpp='$CPP $CPPFLAGS'
11676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11696 ac_config_commands="$ac_config_commands libtool"
11701 # Only expand once:
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11706 $as_echo_n "checking for library containing strerror... " >&6; }
11707 if ${ac_cv_search_strerror+:} false; then :
11708 $as_echo_n "(cached) " >&6
11710 ac_func_search_save_LIBS=$LIBS
11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11712 /* end confdefs.h. */
11714 /* Override any GCC internal prototype to avoid an error.
11715 Use char because int might match the return type of a GCC
11716 builtin and then its argument prototype would still apply. */
11724 return strerror ();
11729 for ac_lib in '' cposix; do
11730 if test -z "$ac_lib"; then
11731 ac_res="none required"
11734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11736 if ac_fn_c_try_link "$LINENO"; then :
11737 ac_cv_search_strerror=$ac_res
11739 rm -f core conftest.err conftest.$ac_objext \
11741 if ${ac_cv_search_strerror+:} false; then :
11745 if ${ac_cv_search_strerror+:} false; then :
11748 ac_cv_search_strerror=no
11750 rm conftest.$ac_ext
11751 LIBS=$ac_func_search_save_LIBS
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11754 $as_echo "$ac_cv_search_strerror" >&6; }
11755 ac_res=$ac_cv_search_strerror
11756 if test "$ac_res" != no; then :
11757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11762 ac_cpp='$CPP $CPPFLAGS'
11763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11766 if test -n "$ac_tool_prefix"; then
11767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11768 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770 $as_echo_n "checking for $ac_word... " >&6; }
11771 if ${ac_cv_prog_CC+:} false; then :
11772 $as_echo_n "(cached) " >&6
11774 if test -n "$CC"; then
11775 ac_cv_prog_CC="$CC" # Let the user override the test.
11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778 for as_dir in $PATH
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11784 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 if test -n "$CC"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11797 $as_echo "$CC" >&6; }
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11805 if test -z "$ac_cv_prog_CC"; then
11807 # Extract the first word of "gcc", so it can be a program name with args.
11808 set dummy gcc; ac_word=$2
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11810 $as_echo_n "checking for $ac_word... " >&6; }
11811 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11812 $as_echo_n "(cached) " >&6
11814 if test -n "$ac_ct_CC"; then
11815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11824 ac_cv_prog_ac_ct_CC="gcc"
11825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11835 if test -n "$ac_ct_CC"; then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11837 $as_echo "$ac_ct_CC" >&6; }
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 $as_echo "no" >&6; }
11843 if test "x$ac_ct_CC" = x; then
11846 case $cross_compiling:$ac_tool_warned in
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11850 ac_tool_warned=yes ;;
11855 CC="$ac_cv_prog_CC"
11858 if test -z "$CC"; then
11859 if test -n "$ac_tool_prefix"; then
11860 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11861 set dummy ${ac_tool_prefix}cc; ac_word=$2
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if ${ac_cv_prog_CC+:} false; then :
11865 $as_echo_n "(cached) " >&6
11867 if test -n "$CC"; then
11868 ac_cv_prog_CC="$CC" # Let the user override the test.
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871 for as_dir in $PATH
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11877 ac_cv_prog_CC="${ac_tool_prefix}cc"
11878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 if test -n "$CC"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11890 $as_echo "$CC" >&6; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11899 if test -z "$CC"; then
11900 # Extract the first word of "cc", so it can be a program name with args.
11901 set dummy cc; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if ${ac_cv_prog_CC+:} false; then :
11905 $as_echo_n "(cached) " >&6
11907 if test -n "$CC"; then
11908 ac_cv_prog_CC="$CC" # Let the user override the test.
11910 ac_prog_rejected=no
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11919 ac_prog_rejected=yes
11923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 if test $ac_prog_rejected = yes; then
11931 # We found a bogon in the path, so make sure we never use it.
11932 set dummy $ac_cv_prog_CC
11934 if test $# != 0; then
11935 # We chose a different compiler from the bogus one.
11936 # However, it has the same basename, so the bogon will be chosen
11937 # first if we set CC to just the basename; use the full file name.
11939 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11945 if test -n "$CC"; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11947 $as_echo "$CC" >&6; }
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11955 if test -z "$CC"; then
11956 if test -n "$ac_tool_prefix"; then
11957 for ac_prog in cl.exe
11959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11962 $as_echo_n "checking for $ac_word... " >&6; }
11963 if ${ac_cv_prog_CC+:} false; then :
11964 $as_echo_n "(cached) " >&6
11966 if test -n "$CC"; then
11967 ac_cv_prog_CC="$CC" # Let the user override the test.
11969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970 for as_dir in $PATH
11973 test -z "$as_dir" && as_dir=.
11974 for ac_exec_ext in '' $ac_executable_extensions; do
11975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11976 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11987 if test -n "$CC"; then
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11989 $as_echo "$CC" >&6; }
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11996 test -n "$CC" && break
11999 if test -z "$CC"; then
12001 for ac_prog in cl.exe
12003 # Extract the first word of "$ac_prog", so it can be a program name with args.
12004 set dummy $ac_prog; ac_word=$2
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006 $as_echo_n "checking for $ac_word... " >&6; }
12007 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12008 $as_echo_n "(cached) " >&6
12010 if test -n "$ac_ct_CC"; then
12011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014 for as_dir in $PATH
12017 test -z "$as_dir" && as_dir=.
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12020 ac_cv_prog_ac_ct_CC="$ac_prog"
12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12030 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12031 if test -n "$ac_ct_CC"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12033 $as_echo "$ac_ct_CC" >&6; }
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12040 test -n "$ac_ct_CC" && break
12043 if test "x$ac_ct_CC" = x; then
12046 case $cross_compiling:$ac_tool_warned in
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12050 ac_tool_warned=yes ;;
12059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12061 as_fn_error $? "no acceptable C compiler found in \$PATH
12062 See \`config.log' for more details" "$LINENO" 5; }
12064 # Provide some information about the compiler.
12065 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12068 for ac_option in --version -v -V -qversion; do
12069 { { ac_try="$ac_compiler $ac_option >&5"
12070 case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12075 $as_echo "$ac_try_echo"; } >&5
12076 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12078 if test -s conftest.err; then
12080 ... rest of stderr output deleted ...
12081 10q' conftest.err >conftest.er1
12082 cat conftest.er1 >&5
12084 rm -f conftest.er1 conftest.err
12085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12086 test $ac_status = 0; }
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12090 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12091 if ${ac_cv_c_compiler_gnu+:} false; then :
12092 $as_echo_n "(cached) " >&6
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12108 if ac_fn_c_try_compile "$LINENO"; then :
12109 ac_compiler_gnu=yes
12113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12114 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12118 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12119 if test $ac_compiler_gnu = yes; then
12124 ac_test_CFLAGS=${CFLAGS+set}
12125 ac_save_CFLAGS=$CFLAGS
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12127 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12128 if ${ac_cv_prog_cc_g+:} false; then :
12129 $as_echo_n "(cached) " >&6
12131 ac_save_c_werror_flag=$ac_c_werror_flag
12132 ac_c_werror_flag=yes
12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h. */
12146 if ac_fn_c_try_compile "$LINENO"; then :
12147 ac_cv_prog_cc_g=yes
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12161 if ac_fn_c_try_compile "$LINENO"; then :
12164 ac_c_werror_flag=$ac_save_c_werror_flag
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12177 if ac_fn_c_try_compile "$LINENO"; then :
12178 ac_cv_prog_cc_g=yes
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 ac_c_werror_flag=$ac_save_c_werror_flag
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12188 $as_echo "$ac_cv_prog_cc_g" >&6; }
12189 if test "$ac_test_CFLAGS" = set; then
12190 CFLAGS=$ac_save_CFLAGS
12191 elif test $ac_cv_prog_cc_g = yes; then
12192 if test "$GCC" = yes; then
12198 if test "$GCC" = yes; then
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12205 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12206 if ${ac_cv_prog_cc_c89+:} false; then :
12207 $as_echo_n "(cached) " >&6
12209 ac_cv_prog_cc_c89=no
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12213 #include <stdarg.h>
12216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12217 struct buf { int x; };
12218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12219 static char *e (p, i)
12225 static char *f (char * (*g) (char **, int), char **p, ...)
12230 s = g (p, va_arg (v,int));
12235 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12236 function prototypes and stuff, but not '\xHH' hex character constants.
12237 These don't provoke an error unfortunately, instead are silently treated
12238 as 'x'. The following induces an error, until -std is added to get
12239 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12240 array size at least. It's necessary to write '\x00'==0 to get something
12241 that's true only with -std. */
12242 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12244 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12245 inside strings and character constants. */
12247 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12249 int test (int i, double x);
12250 struct s1 {int (*f) (int a);};
12251 struct s2 {int (*f) (double a);};
12252 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12258 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12263 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12264 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12266 CC="$ac_save_CC $ac_arg"
12267 if ac_fn_c_try_compile "$LINENO"; then :
12268 ac_cv_prog_cc_c89=$ac_arg
12270 rm -f core conftest.err conftest.$ac_objext
12271 test "x$ac_cv_prog_cc_c89" != "xno" && break
12273 rm -f conftest.$ac_ext
12278 case "x$ac_cv_prog_cc_c89" in
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12281 $as_echo "none needed" >&6; } ;;
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12284 $as_echo "unsupported" >&6; } ;;
12286 CC="$CC $ac_cv_prog_cc_c89"
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12288 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12290 if test "x$ac_cv_prog_cc_c89" != xno; then :
12295 ac_cpp='$CPP $CPPFLAGS'
12296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12300 depcc="$CC" am_compiler_list=
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12303 $as_echo_n "checking dependency style of $depcc... " >&6; }
12304 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12305 $as_echo_n "(cached) " >&6
12307 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12308 # We make a subdir and do the tests there. Otherwise we can end up
12309 # making bogus files that we don't know about and never remove. For
12310 # instance it was reported that on HP-UX the gcc test will end up
12311 # making a dummy file named `D' -- because `-MD' means `put the output
12313 rm -rf conftest.dir
12315 # Copy depcomp to subdir because otherwise we won't find it if we're
12316 # using a relative directory.
12317 cp "$am_depcomp" conftest.dir
12319 # We will build objects and dependencies in a subdirectory because
12320 # it helps to detect inapplicable dependency modes. For instance
12321 # both Tru64's cc and ICC support -MD to output dependencies as a
12322 # side effect of compilation, but ICC will put the dependencies in
12323 # the current directory while Tru64 will put them in the object
12327 am_cv_CC_dependencies_compiler_type=none
12328 if test "$am_compiler_list" = ""; then
12329 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12331 am__universal=false
12332 case " $depcc " in #(
12333 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12336 for depmode in $am_compiler_list; do
12337 # Setup a source with many dependencies, because some compilers
12338 # like to wrap large dependency lists on column 80 (with \), and
12339 # we should not choose a depcomp mode which is confused by this.
12341 # We need to recreate these files for each test, as the compiler may
12342 # overwrite some of them when testing with obscure command lines.
12343 # This happens at least with the AIX C compiler.
12345 for i in 1 2 3 4 5 6; do
12346 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12347 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12348 # Solaris 8's {/usr,}/bin/sh.
12349 touch sub/conftst$i.h
12351 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12353 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12354 # mode. It turns out that the SunPro C++ compiler does not properly
12355 # handle `-M -o', and we need to detect this. Also, some Intel
12356 # versions had trouble with output in subdirs
12357 am__obj=sub/conftest.${OBJEXT-o}
12358 am__minus_obj="-o $am__obj"
12361 # This depmode causes a compiler race in universal mode.
12362 test "$am__universal" = false || continue
12365 # after this tag, mechanisms are not by side-effect, so they'll
12366 # only be used when explicitly requested
12367 if test "x$enable_dependency_tracking" = xyes; then
12373 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12374 # This compiler won't grok `-c -o', but also, the minuso test has
12375 # not run yet. These depmodes are late enough in the game, and
12376 # so weak that their functioning should not be impacted.
12377 am__obj=conftest.${OBJEXT-o}
12382 if depmode=$depmode \
12383 source=sub/conftest.c object=$am__obj \
12384 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12385 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12386 >/dev/null 2>conftest.err &&
12387 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12388 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12389 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12390 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12391 # icc doesn't choke on unknown options, it will just issue warnings
12392 # or remarks (even with -Werror). So we grep stderr for any message
12393 # that says an option was ignored or not supported.
12394 # When given -MP, icc 7.0 and 7.1 complain thusly:
12395 # icc: Command line warning: ignoring option '-M'; no argument required
12396 # The diagnosis changed in icc 8.0:
12397 # icc: Command line remark: option '-MP' not supported
12398 if (grep 'ignoring option' conftest.err ||
12399 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12400 am_cv_CC_dependencies_compiler_type=$depmode
12407 rm -rf conftest.dir
12409 am_cv_CC_dependencies_compiler_type=none
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12414 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12415 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12418 test "x$enable_dependency_tracking" != xno \
12419 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12420 am__fastdepCC_TRUE=
12421 am__fastdepCC_FALSE='#'
12423 am__fastdepCC_TRUE='#'
12424 am__fastdepCC_FALSE=
12428 if test "x$CC" != xcc; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12430 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12433 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12435 set dummy $CC; ac_cc=`$as_echo "$2" |
12436 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12437 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12438 $as_echo_n "(cached) " >&6
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12451 # Make sure it works both with $CC and with simple cc.
12452 # We do the test twice because some compilers refuse to overwrite an
12453 # existing .o file with -o, though they will create one.
12454 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12456 if { { case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12461 $as_echo "$ac_try_echo"; } >&5
12462 (eval "$ac_try") 2>&5
12464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12465 test $ac_status = 0; } &&
12466 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12471 $as_echo "$ac_try_echo"; } >&5
12472 (eval "$ac_try") 2>&5
12474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12475 test $ac_status = 0; };
12477 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12478 if test "x$CC" != xcc; then
12479 # Test first that cc exists at all.
12480 if { ac_try='cc -c conftest.$ac_ext >&5'
12481 { { case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12486 $as_echo "$ac_try_echo"; } >&5
12487 (eval "$ac_try") 2>&5
12489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12490 test $ac_status = 0; }; }; then
12491 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12493 if { { case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12498 $as_echo "$ac_try_echo"; } >&5
12499 (eval "$ac_try") 2>&5
12501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12502 test $ac_status = 0; } &&
12503 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12508 $as_echo "$ac_try_echo"; } >&5
12509 (eval "$ac_try") 2>&5
12511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12512 test $ac_status = 0; };
12517 # cc exists but doesn't like -o.
12518 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12523 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12525 rm -f core conftest*
12528 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12530 $as_echo "yes" >&6; }
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533 $as_echo "no" >&6; }
12535 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12539 # FIXME: we rely on the cache variable name because
12540 # there is no other way.
12542 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12543 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12544 if test "$am_t" != yes; then
12545 # Losing compiler, so override with the script.
12546 # FIXME: It is wrong to rewrite CC.
12547 # But if we don't then we get into trouble of one sort or another.
12548 # A longer-term fix would be to have automake use am__CC in this case,
12549 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12550 CC="$am_aux_dir/compile $CC"
12555 # option to specify python interpreter to use; this just sets $PYTHON, so that
12556 # we will fallback to reading $PYTHON if --with-python is not given, and
12557 # python.m4 will get the expected input
12559 # Check whether --with-python was given.
12560 if test "${with_python+set}" = set; then :
12561 withval=$with_python; PYTHON="$withval"
12564 if test x"$PYTHON" = xyes; then
12565 as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12567 if test -n "$PYTHON" && ! which "$PYTHON"; then
12568 as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12571 # check that we have the minimum version of python necessary to build
12576 if test -n "$PYTHON"; then
12577 # If the user set $PYTHON, use it and don't search something else.
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.6" >&5
12579 $as_echo_n "checking whether $PYTHON version >= 2.6... " >&6; }
12581 # split strings by '.' and convert to numeric. Append some zeros
12582 # because we need at least 4 digits for the hex conversion.
12583 # map returns an iterator in Python 3.0 and a list in 2.x
12584 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
12586 # xrange is not present in Python 3.0 and range returns an iterator
12587 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12588 sys.exit(sys.hexversion < minverhex)"
12589 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12590 ($PYTHON -c "$prog") >&5 2>&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); }; then :
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12595 $as_echo "yes" >&6; }
12597 as_fn_error $? "too old" "$LINENO" 5
12599 am_display_PYTHON=$PYTHON
12601 # Otherwise, try each interpreter until we find one that satisfies
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
12604 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
12605 if ${am_cv_pathless_PYTHON+:} false; then :
12606 $as_echo_n "(cached) " >&6
12609 for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python2.6 python none; do
12610 test "$am_cv_pathless_PYTHON" = none && break
12612 # split strings by '.' and convert to numeric. Append some zeros
12613 # because we need at least 4 digits for the hex conversion.
12614 # map returns an iterator in Python 3.0 and a list in 2.x
12615 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
12617 # xrange is not present in Python 3.0 and range returns an iterator
12618 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12619 sys.exit(sys.hexversion < minverhex)"
12620 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12621 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; then :
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12630 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12631 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12632 if test "$am_cv_pathless_PYTHON" = none; then
12635 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12636 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638 $as_echo_n "checking for $ac_word... " >&6; }
12639 if ${ac_cv_path_PYTHON+:} false; then :
12640 $as_echo_n "(cached) " >&6
12644 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648 for as_dir in $PATH
12651 test -z "$as_dir" && as_dir=.
12652 for ac_exec_ext in '' $ac_executable_extensions; do
12653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12654 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665 PYTHON=$ac_cv_path_PYTHON
12666 if test -n "$PYTHON"; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12668 $as_echo "$PYTHON" >&6; }
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12676 am_display_PYTHON=$am_cv_pathless_PYTHON
12680 if test "$PYTHON" = :; then
12681 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12686 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12687 if ${am_cv_python_version+:} false; then :
12688 $as_echo_n "(cached) " >&6
12690 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12693 $as_echo "$am_cv_python_version" >&6; }
12694 PYTHON_VERSION=$am_cv_python_version
12698 PYTHON_PREFIX='${prefix}'
12700 PYTHON_EXEC_PREFIX='${exec_prefix}'
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12705 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12706 if ${am_cv_python_platform+:} false; then :
12707 $as_echo_n "(cached) " >&6
12709 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12712 $as_echo "$am_cv_python_platform" >&6; }
12713 PYTHON_PLATFORM=$am_cv_python_platform
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12719 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12720 if ${am_cv_python_pythondir+:} false; then :
12721 $as_echo_n "(cached) " >&6
12723 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12724 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12727 $as_echo "$am_cv_python_pythondir" >&6; }
12728 pythondir=$am_cv_python_pythondir
12732 pkgpythondir=\${pythondir}/$PACKAGE
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12736 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12737 if ${am_cv_python_pyexecdir+:} false; then :
12738 $as_echo_n "(cached) " >&6
12740 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12741 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12744 $as_echo "$am_cv_python_pyexecdir" >&6; }
12745 pyexecdir=$am_cv_python_pyexecdir
12749 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12757 # check if we are building for python 3
12759 # split strings by '.' and convert to numeric. Append some zeros
12760 # because we need at least 4 digits for the hex conversion.
12761 # map returns an iterator in Python 3.0 and a list in 2.x
12762 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12764 # xrange is not present in Python 3.0 and range returns an iterator
12765 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12766 sys.exit(sys.hexversion < minverhex)"
12767 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12768 ($PYTHON -c "$prog") >&5 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; then :
12777 # if building for python 3 make sure we have the minimum version supported
12778 if test $build_py3k = true ; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12780 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
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.1'.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 :
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12796 $as_echo "yes" >&6; }
12798 as_fn_error $? "too old" "$LINENO" 5
12808 # Find any Python interpreter.
12809 if test -z "$PYTHON"; then
12810 for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python2.6 python
12812 # Extract the first word of "$ac_prog", so it can be a program name with args.
12813 set dummy $ac_prog; ac_word=$2
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12815 $as_echo_n "checking for $ac_word... " >&6; }
12816 if ${ac_cv_path_PYTHON+:} false; then :
12817 $as_echo_n "(cached) " >&6
12821 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12831 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12842 PYTHON=$ac_cv_path_PYTHON
12843 if test -n "$PYTHON"; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12845 $as_echo "$PYTHON" >&6; }
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12848 $as_echo "no" >&6; }
12852 test -n "$PYTHON" && break
12854 test -n "$PYTHON" || PYTHON=":"
12857 am_display_PYTHON=python
12860 if test "$PYTHON" = :; then
12861 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12866 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12867 if ${am_cv_python_version+:} false; then :
12868 $as_echo_n "(cached) " >&6
12870 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12873 $as_echo "$am_cv_python_version" >&6; }
12874 PYTHON_VERSION=$am_cv_python_version
12878 PYTHON_PREFIX='${prefix}'
12880 PYTHON_EXEC_PREFIX='${exec_prefix}'
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12885 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12886 if ${am_cv_python_platform+:} false; then :
12887 $as_echo_n "(cached) " >&6
12889 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12892 $as_echo "$am_cv_python_platform" >&6; }
12893 PYTHON_PLATFORM=$am_cv_python_platform
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12899 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12900 if ${am_cv_python_pythondir+:} false; then :
12901 $as_echo_n "(cached) " >&6
12903 if test "x$prefix" = xNONE
12905 am_py_prefix=$ac_default_prefix
12907 am_py_prefix=$prefix
12909 am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
12910 case $am_cv_python_pythondir in
12912 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12913 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12916 case $am_py_prefix in
12919 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12927 $as_echo "$am_cv_python_pythondir" >&6; }
12928 pythondir=$am_cv_python_pythondir
12932 pkgpythondir=\${pythondir}/$PACKAGE
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12936 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12937 if ${am_cv_python_pyexecdir+:} false; then :
12938 $as_echo_n "(cached) " >&6
12940 if test "x$exec_prefix" = xNONE
12942 am_py_exec_prefix=$am_py_prefix
12944 am_py_exec_prefix=$exec_prefix
12946 am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
12947 case $am_cv_python_pyexecdir in
12948 $am_py_exec_prefix*)
12949 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12950 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
12953 case $am_py_exec_prefix in
12956 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12964 $as_echo "$am_cv_python_pyexecdir" >&6; }
12965 pyexecdir=$am_cv_python_pyexecdir
12969 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
12978 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
12979 if test "x$PYTHON_INCLUDES" = x; then
12980 PYTHON_CONFIG=`which $PYTHON`-config
12981 if test -x "$PYTHON_CONFIG"; then
12982 PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
12984 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
12985 py_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
12986 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
12987 if test "$py_prefix" != "$py_exec_prefix"; then
12988 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
12993 save_CPPFLAGS="$CPPFLAGS"
12994 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12997 #include <Python.h>
12999 if ac_fn_c_try_cpp "$LINENO"; then :
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13001 $as_echo "found" >&6; }
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13005 $as_echo "not found" >&6; }
13006 as_fn_error $? "Python headers not found" "$LINENO" 5
13008 rm -f conftest.err conftest.i conftest.$ac_ext
13009 CPPFLAGS="$save_CPPFLAGS"
13011 if test "x$os_win32" = "xyes"; then
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13014 $as_echo_n "checking for libraries required to embed python... " >&6; }
13015 py_exec_prefix=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
13016 if test "x$PYTHON_LIBS" = x; then
13017 PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13019 if test "x$PYTHON_LIB_LOC" = x; then
13020 PYTHON_LIB_LOC="${py_prefix}/lib"
13025 LIBS="$LIBS $PYTHON_LIBS"
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13029 /* Override any GCC internal prototype to avoid an error.
13030 Use char because int might match the return type of a GCC
13031 builtin and then its argument prototype would still apply. */
13035 char Py_Initialize ();
13039 return Py_Initialize ();
13044 if ac_fn_c_try_link "$LINENO"; then :
13045 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13046 $as_echo "yes" >&6; };
13048 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13049 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
13051 rm -f core conftest.err conftest.$ac_objext \
13052 conftest$ac_exeext conftest.$ac_ext
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13058 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13059 old_CPPFLAGS=$CPPFLAGS
13060 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13063 #include <Python.h>
13067 PySignal_SetWakeupFd(0);
13072 if ac_fn_c_try_compile "$LINENO"; then :
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13079 $as_echo "$setwakeupfd_ok" >&6; }
13080 if test "x$setwakeupfd_ok" != xno; then
13082 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13085 CPPFLAGS=$old_CPPFLAGS
13087 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13090 # Check whether --enable-thread was given.
13091 if test "${enable_thread+set}" = set; then :
13092 enableval=$enable_thread;
13099 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13101 $as_echo_n "checking for python module thread... " >&6; }
13102 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13103 $as_echo_n "(cached) " >&6
13110 except ImportError:
13115 if $PYTHON -c "$prog" 1>&5 2>&5
13117 eval "py_cv_mod_$py_mod_var=yes"
13119 eval "py_cv_mod_$py_mod_var=no"
13124 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13125 if test "x$py_val" != xno; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13127 $as_echo "yes" >&6; }
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130 $as_echo "no" >&6; }
13131 enable_thread=check_for_py3_module
13134 if test "x$enable_thread" = xcheck_for_py3_module; then
13136 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13138 $as_echo_n "checking for python module _thread... " >&6; }
13139 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13140 $as_echo_n "(cached) " >&6
13147 except ImportError:
13152 if $PYTHON -c "$prog" 1>&5 2>&5
13154 eval "py_cv_mod_$py_mod_var=yes"
13156 eval "py_cv_mod_$py_mod_var=no"
13161 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13162 if test "x$py_val" != xno; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13164 $as_echo "yes" >&6; }
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13175 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13176 if test "x$enable_thread" != xno; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13180 $as_echo "yes" >&6; }
13183 THREADING_CFLAGS="-DDISABLE_THREADING"
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185 $as_echo "no" >&6; }
13188 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13190 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13192 # Check whether --enable-glibtest was given.
13193 if test "${enable_glibtest+set}" = set; then :
13194 enableval=$enable_glibtest;
13196 enable_glibtest=yes
13200 pkg_config_args=glib-2.0
13201 for module in . gobject $extra_mods
13205 pkg_config_args="$pkg_config_args gmodule-2.0"
13208 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13211 pkg_config_args="$pkg_config_args gobject-2.0"
13214 pkg_config_args="$pkg_config_args gthread-2.0"
13217 pkg_config_args="$pkg_config_args $module-2.0"
13229 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13230 if test -n "$ac_tool_prefix"; then
13231 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13232 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13236 $as_echo_n "(cached) " >&6
13238 case $PKG_CONFIG in
13240 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13250 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13262 if test -n "$PKG_CONFIG"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13264 $as_echo "$PKG_CONFIG" >&6; }
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13272 if test -z "$ac_cv_path_PKG_CONFIG"; then
13273 ac_pt_PKG_CONFIG=$PKG_CONFIG
13274 # Extract the first word of "pkg-config", so it can be a program name with args.
13275 set dummy pkg-config; ac_word=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277 $as_echo_n "checking for $ac_word... " >&6; }
13278 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13279 $as_echo_n "(cached) " >&6
13281 case $ac_pt_PKG_CONFIG in
13283 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13290 test -z "$as_dir" && as_dir=.
13291 for ac_exec_ext in '' $ac_executable_extensions; do
13292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13293 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13305 if test -n "$ac_pt_PKG_CONFIG"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13307 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310 $as_echo "no" >&6; }
13313 if test "x$ac_pt_PKG_CONFIG" = x; then
13316 case $cross_compiling:$ac_tool_warned in
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13320 ac_tool_warned=yes ;;
13322 PKG_CONFIG=$ac_pt_PKG_CONFIG
13325 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13329 if test -n "$PKG_CONFIG"; then
13330 _pkg_min_version=0.16
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13332 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13333 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13335 $as_echo "yes" >&6; }
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13345 if test "x$PKG_CONFIG" = x ; then
13350 min_glib_version=2.34.2
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13352 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13354 if test x$PKG_CONFIG != xno ; then
13355 ## don't try to run the test against uninstalled libtool libs
13356 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13357 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13361 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13368 if test x"$no_glib" = x ; then
13369 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13370 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13371 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13372 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13374 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13375 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13376 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13377 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13378 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13379 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13380 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13381 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13382 if test "x$enable_glibtest" = "xyes" ; then
13383 ac_save_CFLAGS="$CFLAGS"
13384 ac_save_LIBS="$LIBS"
13385 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13386 LIBS="$GLIB_LIBS $LIBS"
13387 rm -f conf.glibtest
13388 if test "$cross_compiling" = yes; then :
13389 echo $ac_n "cross compiling; assumed OK... $ac_c"
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13396 #include <stdlib.h>
13401 unsigned int major, minor, micro;
13404 fclose (fopen ("conf.glibtest", "w"));
13406 /* HP/UX 9 (%@#!) writes to sscanf strings */
13407 tmp_version = g_strdup("$min_glib_version");
13408 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, µ) != 3) {
13409 printf("%s, bad version string\n", "$min_glib_version");
13413 if ((glib_major_version != $glib_config_major_version) ||
13414 (glib_minor_version != $glib_config_minor_version) ||
13415 (glib_micro_version != $glib_config_micro_version))
13417 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13418 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13419 glib_major_version, glib_minor_version, glib_micro_version);
13420 printf ("*** was found! If pkg-config was correct, then it is best\n");
13421 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13422 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13423 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13424 printf("*** required on your system.\n");
13425 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13426 printf("*** to point to the correct configuration files\n");
13428 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13429 (glib_minor_version != GLIB_MINOR_VERSION) ||
13430 (glib_micro_version != GLIB_MICRO_VERSION))
13432 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13433 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13434 printf("*** library (version %d.%d.%d)\n",
13435 glib_major_version, glib_minor_version, glib_micro_version);
13439 if ((glib_major_version > major) ||
13440 ((glib_major_version == major) && (glib_minor_version > minor)) ||
13441 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13447 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13448 glib_major_version, glib_minor_version, glib_micro_version);
13449 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13450 major, minor, micro);
13451 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13453 printf("*** If you have already installed a sufficiently new version, this error\n");
13454 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13455 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13456 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13457 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13458 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13459 printf("*** so that the correct libraries are found at run-time))\n");
13466 if ac_fn_c_try_run "$LINENO"; then :
13471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13472 conftest.$ac_objext conftest.beam conftest.$ac_ext
13475 CFLAGS="$ac_save_CFLAGS"
13476 LIBS="$ac_save_LIBS"
13479 if test "x$no_glib" = x ; then
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13481 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485 $as_echo "no" >&6; }
13486 if test "$PKG_CONFIG" = "no" ; then
13487 echo "*** A new enough version of pkg-config was not found."
13488 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13490 if test -f conf.glibtest ; then
13493 echo "*** Could not run GLIB test program, checking why..."
13494 ac_save_CFLAGS="$CFLAGS"
13495 ac_save_LIBS="$LIBS"
13496 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13497 LIBS="$LIBS $GLIB_LIBS"
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13507 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13512 if ac_fn_c_try_link "$LINENO"; then :
13513 echo "*** The test program compiled, but did not run. This usually means"
13514 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13515 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13516 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13517 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13518 echo "*** is required on your system"
13520 echo "*** If you have an old version installed, it is best to remove it, although"
13521 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13523 echo "*** The test program failed to compile or link. See the file config.log for the"
13524 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13526 rm -f core conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13528 CFLAGS="$ac_save_CFLAGS"
13529 LIBS="$ac_save_LIBS"
13537 GLIB_COMPILE_RESOURCES=""
13538 as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13546 rm -f conf.glibtest
13548 if test -n "$export_dynamic"; then
13549 GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13551 PYTHON_BASENAME=`basename $PYTHON`
13558 prefix_save=$prefix
13559 exec_prefix_save=$exec_prefix
13561 if test "x$prefix" = "xNONE"; then
13562 prefix=$ac_default_prefix
13564 if test "x$exec_prefix" = "xNONE"; then
13565 exec_prefix=$prefix
13568 full_var="$FROM_VAR"
13570 new_full_var="`eval echo $full_var`"
13571 if test "x$new_full_var"="x$full_var"; then break; fi
13572 full_var=$new_full_var
13575 full_var=$new_full_var
13576 DATADIR="$full_var"
13579 prefix=$prefix_save
13580 exec_prefix=$exec_prefix_save
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi" >&5
13584 $as_echo_n "checking for ffi... " >&6; }
13586 # Check whether --with-ffi was given.
13587 if test "${with_ffi+set}" = set; then :
13588 withval=$with_ffi; with_libffi=$withval
13593 if test x"$with_libffi" = xno ; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13599 $as_echo_n "checking for FFI... " >&6; }
13601 if test -n "$FFI_CFLAGS"; then
13602 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13603 elif test -n "$PKG_CONFIG"; then
13604 if test -n "$PKG_CONFIG" && \
13605 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13606 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13609 test $ac_status = 0; }; then
13610 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
13611 test "x$?" != "x0" && pkg_failed=yes
13618 if test -n "$FFI_LIBS"; then
13619 pkg_cv_FFI_LIBS="$FFI_LIBS"
13620 elif test -n "$PKG_CONFIG"; then
13621 if test -n "$PKG_CONFIG" && \
13622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13623 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; then
13627 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
13628 test "x$?" != "x0" && pkg_failed=yes
13638 if test $pkg_failed = yes; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 $as_echo "no" >&6; }
13642 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13643 _pkg_short_errors_supported=yes
13645 _pkg_short_errors_supported=no
13647 if test $_pkg_short_errors_supported = yes; then
13648 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13650 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13652 # Put the nasty error message in config.log where it belongs
13653 echo "$FFI_PKG_ERRORS" >&5
13656 elif test $pkg_failed = untried; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658 $as_echo "no" >&6; }
13661 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13662 FFI_LIBS=$pkg_cv_FFI_LIBS
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13664 $as_echo "yes" >&6; }
13668 if test x"$with_libffi" = xyes && test x"$have_libffi" = xno ; then
13669 as_fn_error $? "ffi requested, but not found" "$LINENO" 5
13671 if test x"$have_libffi" = xyes; then
13674 if test "$have_libffi" = "yes"; then
13676 HAVE_LIBFFI_FALSE='#'
13678 HAVE_LIBFFI_TRUE='#'
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13689 $as_echo_n "checking for GIO... " >&6; }
13691 if test -n "$GIO_CFLAGS"; then
13692 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13693 elif test -n "$PKG_CONFIG"; then
13694 if test -n "$PKG_CONFIG" && \
13695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.34.2\""; } >&5
13696 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.34.2") 2>&5
13698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13699 test $ac_status = 0; }; then
13700 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.34.2" 2>/dev/null`
13701 test "x$?" != "x0" && pkg_failed=yes
13708 if test -n "$GIO_LIBS"; then
13709 pkg_cv_GIO_LIBS="$GIO_LIBS"
13710 elif test -n "$PKG_CONFIG"; then
13711 if test -n "$PKG_CONFIG" && \
13712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.34.2\""; } >&5
13713 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.34.2") 2>&5
13715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13716 test $ac_status = 0; }; then
13717 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.34.2" 2>/dev/null`
13718 test "x$?" != "x0" && pkg_failed=yes
13728 if test $pkg_failed = yes; then
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13732 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13733 _pkg_short_errors_supported=yes
13735 _pkg_short_errors_supported=no
13737 if test $_pkg_short_errors_supported = yes; then
13738 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.34.2" 2>&1`
13740 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.34.2" 2>&1`
13742 # Put the nasty error message in config.log where it belongs
13743 echo "$GIO_PKG_ERRORS" >&5
13745 as_fn_error $? "Package requirements (gio-2.0 >= 2.34.2) were not met:
13749 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13750 installed software in a non-standard prefix.
13752 Alternatively, you may set the environment variables GIO_CFLAGS
13753 and GIO_LIBS to avoid the need to call pkg-config.
13754 See the pkg-config man page for more details." "$LINENO" 5
13755 elif test $pkg_failed = untried; then
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13757 $as_echo "no" >&6; }
13758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13760 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13761 is in your PATH or set the PKG_CONFIG environment variable to the full
13762 path to pkg-config.
13764 Alternatively, you may set the environment variables GIO_CFLAGS
13765 and GIO_LIBS to avoid the need to call pkg-config.
13766 See the pkg-config man page for more details.
13768 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13769 See \`config.log' for more details" "$LINENO" 5; }
13771 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13772 GIO_LIBS=$pkg_cv_GIO_LIBS
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13774 $as_echo "yes" >&6; }
13778 # Check whether --enable-cairo was given.
13779 if test "${enable_cairo+set}" = set; then :
13780 enableval=$enable_cairo; enable_cairo=$enableval
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13789 $as_echo_n "checking for GI... " >&6; }
13791 if test -n "$GI_CFLAGS"; then
13792 pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13793 elif test -n "$PKG_CONFIG"; then
13794 if test -n "$PKG_CONFIG" && \
13795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.34.2
13796 gobject-introspection-1.0 >= 1.34.2
13798 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.34.2
13799 gobject-introspection-1.0 >= 1.34.2
13802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13803 test $ac_status = 0; }; then
13804 pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.34.2
13805 gobject-introspection-1.0 >= 1.34.2
13807 test "x$?" != "x0" && pkg_failed=yes
13814 if test -n "$GI_LIBS"; then
13815 pkg_cv_GI_LIBS="$GI_LIBS"
13816 elif test -n "$PKG_CONFIG"; then
13817 if test -n "$PKG_CONFIG" && \
13818 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.34.2
13819 gobject-introspection-1.0 >= 1.34.2
13821 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.34.2
13822 gobject-introspection-1.0 >= 1.34.2
13825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13826 test $ac_status = 0; }; then
13827 pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.34.2
13828 gobject-introspection-1.0 >= 1.34.2
13830 test "x$?" != "x0" && pkg_failed=yes
13840 if test $pkg_failed = yes; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13845 _pkg_short_errors_supported=yes
13847 _pkg_short_errors_supported=no
13849 if test $_pkg_short_errors_supported = yes; then
13850 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.34.2
13851 gobject-introspection-1.0 >= 1.34.2
13854 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.34.2
13855 gobject-introspection-1.0 >= 1.34.2
13858 # Put the nasty error message in config.log where it belongs
13859 echo "$GI_PKG_ERRORS" >&5
13861 as_fn_error $? "Package requirements (glib-2.0 >= 2.34.2
13862 gobject-introspection-1.0 >= 1.34.2
13867 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13868 installed software in a non-standard prefix.
13870 Alternatively, you may set the environment variables GI_CFLAGS
13871 and GI_LIBS to avoid the need to call pkg-config.
13872 See the pkg-config man page for more details." "$LINENO" 5
13873 elif test $pkg_failed = untried; then
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875 $as_echo "no" >&6; }
13876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13878 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13879 is in your PATH or set the PKG_CONFIG environment variable to the full
13880 path to pkg-config.
13882 Alternatively, you may set the environment variables GI_CFLAGS
13883 and GI_LIBS to avoid the need to call pkg-config.
13884 See the pkg-config man page for more details.
13886 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13887 See \`config.log' for more details" "$LINENO" 5; }
13889 GI_CFLAGS=$pkg_cv_GI_CFLAGS
13890 GI_LIBS=$pkg_cv_GI_LIBS
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13892 $as_echo "yes" >&6; }
13896 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13899 if test "$enable_cairo" != no; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13903 $as_echo_n "checking for CAIRO... " >&6; }
13905 if test -n "$CAIRO_CFLAGS"; then
13906 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13907 elif test -n "$PKG_CONFIG"; then
13908 if test -n "$PKG_CONFIG" && \
13909 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13910 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13913 test $ac_status = 0; }; then
13914 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13915 test "x$?" != "x0" && pkg_failed=yes
13922 if test -n "$CAIRO_LIBS"; then
13923 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13924 elif test -n "$PKG_CONFIG"; then
13925 if test -n "$PKG_CONFIG" && \
13926 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13927 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13930 test $ac_status = 0; }; then
13931 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13932 test "x$?" != "x0" && pkg_failed=yes
13942 if test $pkg_failed = yes; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 $as_echo "no" >&6; }
13946 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13947 _pkg_short_errors_supported=yes
13949 _pkg_short_errors_supported=no
13951 if test $_pkg_short_errors_supported = yes; then
13952 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13954 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13956 # Put the nasty error message in config.log where it belongs
13957 echo "$CAIRO_PKG_ERRORS" >&5
13959 as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
13963 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13964 installed software in a non-standard prefix.
13966 Alternatively, you may set the environment variables CAIRO_CFLAGS
13967 and CAIRO_LIBS to avoid the need to call pkg-config.
13968 See the pkg-config man page for more details." "$LINENO" 5
13969 elif test $pkg_failed = untried; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13971 $as_echo "no" >&6; }
13972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13974 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13975 is in your PATH or set the PKG_CONFIG environment variable to the full
13976 path to pkg-config.
13978 Alternatively, you may set the environment variables CAIRO_CFLAGS
13979 and CAIRO_LIBS to avoid the need to call pkg-config.
13980 See the pkg-config man page for more details.
13982 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13983 See \`config.log' for more details" "$LINENO" 5; }
13985 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13986 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13988 $as_echo "yes" >&6; }
13992 if test $build_py3k = true; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
13996 $as_echo_n "checking for PYCAIRO... " >&6; }
13998 if test -n "$PYCAIRO_CFLAGS"; then
13999 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14000 elif test -n "$PKG_CONFIG"; then
14001 if test -n "$PKG_CONFIG" && \
14002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14004 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14008 test $ac_status = 0; }; then
14009 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14011 test "x$?" != "x0" && pkg_failed=yes
14018 if test -n "$PYCAIRO_LIBS"; then
14019 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14020 elif test -n "$PKG_CONFIG"; then
14021 if test -n "$PKG_CONFIG" && \
14022 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14024 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14028 test $ac_status = 0; }; then
14029 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14031 test "x$?" != "x0" && pkg_failed=yes
14041 if test $pkg_failed = yes; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14045 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14046 _pkg_short_errors_supported=yes
14048 _pkg_short_errors_supported=no
14050 if test $_pkg_short_errors_supported = yes; then
14051 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14054 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14057 # Put the nasty error message in config.log where it belongs
14058 echo "$PYCAIRO_PKG_ERRORS" >&5
14060 as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14063 $PYCAIRO_PKG_ERRORS
14065 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14066 installed software in a non-standard prefix.
14068 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14069 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14070 See the pkg-config man page for more details." "$LINENO" 5
14071 elif test $pkg_failed = untried; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14073 $as_echo "no" >&6; }
14074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14076 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14077 is in your PATH or set the PKG_CONFIG environment variable to the full
14078 path to pkg-config.
14080 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14081 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14082 See the pkg-config man page for more details.
14084 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14085 See \`config.log' for more details" "$LINENO" 5; }
14087 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14088 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14090 $as_echo "yes" >&6; }
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14097 $as_echo_n "checking for PYCAIRO... " >&6; }
14099 if test -n "$PYCAIRO_CFLAGS"; then
14100 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14101 elif test -n "$PKG_CONFIG"; then
14102 if test -n "$PKG_CONFIG" && \
14103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14105 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14109 test $ac_status = 0; }; then
14110 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14112 test "x$?" != "x0" && pkg_failed=yes
14119 if test -n "$PYCAIRO_LIBS"; then
14120 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14121 elif test -n "$PKG_CONFIG"; then
14122 if test -n "$PKG_CONFIG" && \
14123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14125 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14129 test $ac_status = 0; }; then
14130 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14132 test "x$?" != "x0" && pkg_failed=yes
14142 if test $pkg_failed = yes; then
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14144 $as_echo "no" >&6; }
14146 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14147 _pkg_short_errors_supported=yes
14149 _pkg_short_errors_supported=no
14151 if test $_pkg_short_errors_supported = yes; then
14152 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14155 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14158 # Put the nasty error message in config.log where it belongs
14159 echo "$PYCAIRO_PKG_ERRORS" >&5
14161 as_fn_error $? "Package requirements (pycairo >= 1.2.0
14164 $PYCAIRO_PKG_ERRORS
14166 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14167 installed software in a non-standard prefix.
14169 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14170 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14171 See the pkg-config man page for more details." "$LINENO" 5
14172 elif test $pkg_failed = untried; then
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174 $as_echo "no" >&6; }
14175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14177 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14178 is in your PATH or set the PKG_CONFIG environment variable to the full
14179 path to pkg-config.
14181 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14182 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14183 See the pkg-config man page for more details.
14185 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14186 See \`config.log' for more details" "$LINENO" 5; }
14188 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14189 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14191 $as_echo "yes" >&6; }
14196 if test "$enable_cairo" = "yes"; then
14198 ENABLE_CAIRO_FALSE='#'
14200 ENABLE_CAIRO_TRUE='#'
14201 ENABLE_CAIRO_FALSE=
14205 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14206 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14211 # compiler warnings, errors, required cflags, and code coverage support
14214 # Check whether --enable-compile-warnings was given.
14215 if test "${enable_compile_warnings+set}" = set; then :
14216 enableval=$enable_compile_warnings;
14218 enable_compile_warnings="maximum"
14222 if test "x$GCC" != xyes; then
14223 enable_compile_warnings=no
14227 realsave_CFLAGS="$CFLAGS"
14229 base_warn_flags=" \
14231 -Wstrict-prototypes \
14235 base_error_flags=" \
14236 -Werror=missing-prototypes \
14237 -Werror=implicit-function-declaration \
14238 -Werror=pointer-arith \
14239 -Werror=init-self \
14240 -Werror=format-security \
14242 -Werror=missing-include-dirs \
14245 case "$enable_compile_warnings" in
14250 warning_flags="-Wall"
14253 warning_flags="$base_warn_flags $base_error_flags"
14256 warning_flags="$base_warn_flags $base_error_flags"
14259 as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14263 if test "$enable_compile_warnings" = "error" ; then
14264 warning_flags="$warning_flags -Werror"
14267 for option in $warning_flags; do
14268 save_CFLAGS="$CFLAGS"
14269 CFLAGS="$CFLAGS $option"
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14271 $as_echo_n "checking whether gcc understands $option... " >&6; }
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14283 if ac_fn_c_try_compile "$LINENO"; then :
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 CFLAGS="$save_CFLAGS"
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14291 $as_echo "$has_option" >&6; }
14292 if test $has_option = yes; then
14293 tested_warning_flags="$tested_warning_flags $option"
14299 CFLAGS="$realsave_CFLAGS"
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14301 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14303 $as_echo "$tested_warning_flags" >&6; }
14305 # Check whether --enable-iso-c was given.
14306 if test "${enable_iso_c+set}" = set; then :
14307 enableval=$enable_iso_c;
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14314 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14316 if test "x$enable_iso_c" != "xno"; then
14317 if test "x$GCC" = "xyes"; then
14318 case " $CFLAGS " in
14319 *\ \ -ansi\ \ *) ;;
14320 *) complCFLAGS="$complCFLAGS -ansi" ;;
14322 case " $CFLAGS " in
14323 *\ \ -pedantic\ \ *) ;;
14324 *) complCFLAGS="$complCFLAGS -pedantic" ;;
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14329 $as_echo "$complCFLAGS" >&6; }
14331 WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14335 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14337 $as_echo "yes" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14340 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14341 # Check whether --enable-code-coverage was given.
14342 if test "${enable_code_coverage+set}" = set; then :
14343 enableval=$enable_code_coverage;
14345 enable_code_coverage=no
14348 if test x$enable_code_coverage = xyes; then
14349 CODE_COVERAGE_ENABLED_TRUE=
14350 CODE_COVERAGE_ENABLED_FALSE='#'
14352 CODE_COVERAGE_ENABLED_TRUE='#'
14353 CODE_COVERAGE_ENABLED_FALSE=
14356 CODE_COVERAGE_ENABLED=$enable_code_coverage
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14359 $as_echo "$enable_code_coverage" >&6; }
14361 if test "$enable_code_coverage" = "yes" ; then :
14363 if test "$GCC" = "no" ; then :
14365 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14369 # List of supported lcov versions.
14370 lcov_version_list="1.6 1.7 1.8 1.9"
14372 # Extract the first word of "lcov", so it can be a program name with args.
14373 set dummy lcov; ac_word=$2
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14375 $as_echo_n "checking for $ac_word... " >&6; }
14376 if ${ac_cv_prog_LCOV+:} false; then :
14377 $as_echo_n "(cached) " >&6
14379 if test -n "$LCOV"; then
14380 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14383 for as_dir in $PATH
14386 test -z "$as_dir" && as_dir=.
14387 for ac_exec_ext in '' $ac_executable_extensions; do
14388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14389 ac_cv_prog_LCOV="lcov"
14390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14399 LCOV=$ac_cv_prog_LCOV
14400 if test -n "$LCOV"; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14402 $as_echo "$LCOV" >&6; }
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14405 $as_echo "no" >&6; }
14409 # Extract the first word of "genhtml", so it can be a program name with args.
14410 set dummy genhtml; ac_word=$2
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14412 $as_echo_n "checking for $ac_word... " >&6; }
14413 if ${ac_cv_prog_GENHTML+:} false; then :
14414 $as_echo_n "(cached) " >&6
14416 if test -n "$GENHTML"; then
14417 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14420 for as_dir in $PATH
14423 test -z "$as_dir" && as_dir=.
14424 for ac_exec_ext in '' $ac_executable_extensions; do
14425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14426 ac_cv_prog_GENHTML="genhtml"
14427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14436 GENHTML=$ac_cv_prog_GENHTML
14437 if test -n "$GENHTML"; then
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14439 $as_echo "$GENHTML" >&6; }
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442 $as_echo "no" >&6; }
14447 if test "$LCOV" ; then :
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14450 $as_echo_n "checking for lcov version... " >&6; }
14451 if ${gnome_cv_lcov_version+:} false; then :
14452 $as_echo_n "(cached) " >&6
14455 gnome_cv_lcov_version=invalid
14456 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14457 for lcov_check_version in $lcov_version_list; do
14458 if test "$lcov_version" = "$lcov_check_version"; then
14459 gnome_cv_lcov_version="$lcov_check_version (ok)"
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_cv_lcov_version" >&5
14465 $as_echo "$gnome_cv_lcov_version" >&6; }
14469 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14470 as_fn_error $? "$lcov_msg" "$LINENO" 5
14474 case $gnome_cv_lcov_version in
14476 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14477 as_fn_error $? "$lcov_msg" "$LINENO" 5
14482 if test -z "$GENHTML" ; then :
14484 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14488 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14489 CODE_COVERAGE_LDFLAGS="-lgcov"
14496 GNOME_CODE_COVERAGE_RULES='
14500 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14501 # (Default: $(top_builddir))
14502 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14503 # by lcov for code coverage. (Default:
14504 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14505 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14506 # reports to be created. (Default:
14507 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14508 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14510 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14511 # instance. (Default: empty)
14512 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
14514 # The generated report will be titled using the $(PACKAGE_NAME) and
14515 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14516 # use the git-version-gen script, available online.
14518 # Optional variables
14519 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14520 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14521 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14522 CODE_COVERAGE_LCOV_OPTIONS ?=
14523 CODE_COVERAGE_GENHTML_OPTIONS ?=
14524 CODE_COVERAGE_IGNORE_PATTERN ?=
14526 code_coverage_quiet = $(code_coverage_quiet_$(V))
14527 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
14528 code_coverage_quiet_0 = --quiet
14530 # Use recursive makes in order to ignore errors during check
14531 check-code-coverage:
14532 ifdef CODE_COVERAGE_ENABLED
14533 -$(MAKE) $(AM_MAKEFLAGS) -k check
14534 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14536 @echo "Need to reconfigure with --enable-code-coverage"
14539 # Capture code coverage data
14540 code-coverage-capture: code-coverage-capture-hook
14541 ifdef CODE_COVERAGE_ENABLED
14542 $(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)
14543 $(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)"
14544 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14545 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)
14546 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14548 @echo "Need to reconfigure with --enable-code-coverage"
14551 # Hook rule executed before code-coverage-capture, overridable by the user
14552 code-coverage-capture-hook:
14554 clean: code-coverage-clean
14555 code-coverage-clean:
14556 -$(LCOV) --directory $(top_builddir) -z
14557 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14558 -find . -name "*.gcda" -o -name "*.gcov" -delete
14561 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14563 DISTCHECK_CONFIGURE_FLAGS ?=
14564 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14566 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14573 if test "x$GCC" = "xyes"; then
14575 case " $CFLAGS " in
14576 *[\ \ ]-Wall[\ \ ]*)
14579 save_CFLAGS="$CFLAGS"
14580 CFLAGS="$CFLAGS -Wall"
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14582 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14594 if ac_fn_c_try_compile "$LINENO"; then :
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14601 $as_echo "$jh_has_option" >&6; }
14602 if test $jh_has_option = no; then
14603 CFLAGS="$save_CFLAGS"
14608 case " $CFLAGS " in
14609 *[\ \ ]-Werror=unused-variable[\ \ ]*)
14612 save_CFLAGS="$CFLAGS"
14613 CFLAGS="$CFLAGS -Werror=unused-variable"
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14615 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14627 if ac_fn_c_try_compile "$LINENO"; then :
14632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14634 $as_echo "$jh_has_option" >&6; }
14635 if test $jh_has_option = no; then
14636 CFLAGS="$save_CFLAGS"
14641 case " $CFLAGS " in
14642 *[\ \ ]-fno-strict-aliasing[\ \ ]*)
14645 save_CFLAGS="$CFLAGS"
14646 CFLAGS="$CFLAGS -fno-strict-aliasing"
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14648 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14660 if ac_fn_c_try_compile "$LINENO"; then :
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14667 $as_echo "$jh_has_option" >&6; }
14668 if test $jh_has_option = no; then
14669 CFLAGS="$save_CFLAGS"
14679 case " $CFLAGS " in
14680 *[\ \ ]-std=c9x[\ \ ]*)
14683 save_CFLAGS="$CFLAGS"
14684 CFLAGS="$CFLAGS -std=c9x"
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c9x" >&5
14686 $as_echo_n "checking whether $CC understands -std=c9x... " >&6; }
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h. */
14698 if ac_fn_c_try_compile "$LINENO"; then :
14703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14705 $as_echo "$jh_has_option" >&6; }
14706 if test $jh_has_option = no; then
14707 CFLAGS="$save_CFLAGS"
14716 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
14717 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14719 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"
14721 cat >confcache <<\_ACEOF
14722 # This file is a shell script that caches the results of configure
14723 # tests run on this system so they can be shared between configure
14724 # scripts and configure runs, see configure's option --config-cache.
14725 # It is not useful on other systems. If it contains results you don't
14726 # want to keep, you may remove or edit it.
14728 # config.status only pays attention to the cache file if you give it
14729 # the --recheck option to rerun configure.
14731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14733 # following values.
14737 # The following way of writing the cache mishandles newlines in values,
14738 # but we know of no workaround that is simple, portable, and efficient.
14739 # So, we kill variables containing newlines.
14740 # Ultrix sh set writes to stderr and can't be redirected directly,
14741 # and sets the high bit in the cache file unless we assign to the vars.
14743 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14744 eval ac_val=\$$ac_var
14748 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14749 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14752 _ | IFS | as_nl) ;; #(
14753 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14754 *) { eval $ac_var=; unset $ac_var;} ;;
14760 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14761 *${as_nl}ac_space=\ *)
14762 # `set' does not quote correctly, so add quotes: double-quote
14763 # substitution turns \\\\ into \\, and sed turns \\ into \.
14766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14769 # `set' quotes correctly as required by POSIX, so do not add quotes.
14770 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14781 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14783 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14784 if test -w "$cache_file"; then
14785 if test "x$cache_file" != "x/dev/null"; then
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14787 $as_echo "$as_me: updating cache $cache_file" >&6;}
14788 if test ! -f "$cache_file" || test -h "$cache_file"; then
14789 cat confcache >"$cache_file"
14791 case $cache_file in #(
14793 mv -f confcache "$cache_file"$$ &&
14794 mv -f "$cache_file"$$ "$cache_file" ;; #(
14796 mv -f confcache "$cache_file" ;;
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14802 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14808 # Let make expand exec_prefix.
14809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14811 DEFS=-DHAVE_CONFIG_H
14816 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14817 # 1. Remove the extension, and $U if already installed.
14818 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14819 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14820 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14821 # will be set to the directory where LIBOBJS objects are built.
14822 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14823 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14825 LIBOBJS=$ac_libobjs
14827 LTLIBOBJS=$ac_ltlibobjs
14830 if test -n "$EXEEXT"; then
14832 am__EXEEXT_FALSE='#'
14834 am__EXEEXT_TRUE='#'
14838 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14839 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14842 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14843 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14846 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14847 as_fn_error $? "conditional \"AMDEP\" was never defined.
14848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14850 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14851 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14854 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14855 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14858 if test -z "${HAVE_LIBFFI_TRUE}" && test -z "${HAVE_LIBFFI_FALSE}"; then
14859 as_fn_error $? "conditional \"HAVE_LIBFFI\" was never defined.
14860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14862 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
14863 as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
14864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14866 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
14867 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
14868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14871 : "${CONFIG_STATUS=./config.status}"
14873 ac_clean_files_save=$ac_clean_files
14874 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14876 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14878 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14880 # Generated by $as_me.
14881 # Run this file to recreate the current configuration.
14882 # Compiler output produced by configure, useful for debugging
14883 # configure, is in config.log if it exists.
14886 ac_cs_recheck=false
14889 SHELL=\${CONFIG_SHELL-$SHELL}
14892 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14893 ## -------------------- ##
14894 ## M4sh Initialization. ##
14895 ## -------------------- ##
14897 # Be more Bourne compatible
14898 DUALCASE=1; export DUALCASE # for MKS sh
14899 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14902 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14903 # is contrary to our usage. Disable this feature.
14904 alias -g '${1+"$@"}'='"$@"'
14905 setopt NO_GLOB_SUBST
14907 case `(set -o) 2>/dev/null` in #(
14919 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14920 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14923 # Prefer a ksh shell builtin over an external printf program on Solaris,
14924 # but without wasting forks for bash or zsh.
14925 if test -z "$BASH_VERSION$ZSH_VERSION" \
14926 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14927 as_echo='print -r --'
14928 as_echo_n='print -rn --'
14929 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14930 as_echo='printf %s\n'
14931 as_echo_n='printf %s'
14933 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14934 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14935 as_echo_n='/usr/ucb/echo -n'
14937 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14938 as_echo_n_body='eval
14942 expr "X$arg" : "X\\(.*\\)$as_nl";
14943 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14945 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14947 export as_echo_n_body
14948 as_echo_n='sh -c $as_echo_n_body as_echo'
14950 export as_echo_body
14951 as_echo='sh -c $as_echo_body as_echo'
14954 # The user is always right.
14955 if test "${PATH_SEPARATOR+set}" != set; then
14957 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14958 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14965 # We need space, tab and new line, in precisely that order. Quoting is
14966 # there to prevent editors from complaining about space-tab.
14967 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14968 # splitting by setting IFS to empty value.)
14971 # Find who we are. Look in the path if we contain no directory separator.
14974 *[\\/]* ) as_myself=$0 ;;
14975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14979 test -z "$as_dir" && as_dir=.
14980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14986 # We did not find ourselves, most probably we were run as `sh COMMAND'
14987 # in which case we are not to be found in the path.
14988 if test "x$as_myself" = x; then
14991 if test ! -f "$as_myself"; then
14992 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14996 # Unset variables that we do not need and which cause bugs (e.g. in
14997 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14998 # suppresses any "Segmentation fault" message there. '((' could
14999 # trigger a bug in pdksh 5.2.14.
15000 for as_var in BASH_ENV ENV MAIL MAILPATH
15001 do eval test x\${$as_var+set} = xset \
15002 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15015 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15018 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15019 # ----------------------------------------
15020 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15021 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15022 # script with STATUS, using 1 if that was 0.
15025 as_status=$1; test $as_status -eq 0 && as_status=1
15027 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15028 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15030 $as_echo "$as_me: error: $2" >&2
15031 as_fn_exit $as_status
15035 # as_fn_set_status STATUS
15036 # -----------------------
15037 # Set $? to STATUS, without forking.
15038 as_fn_set_status ()
15041 } # as_fn_set_status
15043 # as_fn_exit STATUS
15044 # -----------------
15045 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15049 as_fn_set_status $1
15055 # Portably unset VAR.
15058 { eval $1=; unset $1;}
15060 as_unset=as_fn_unset
15061 # as_fn_append VAR VALUE
15062 # ----------------------
15063 # Append the text in VALUE to the end of the definition contained in VAR. Take
15064 # advantage of any shell optimizations that allow amortized linear growth over
15065 # repeated appends, instead of the typical quadratic growth present in naive
15067 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15068 eval 'as_fn_append ()
15079 # as_fn_arith ARG...
15080 # ------------------
15081 # Perform arithmetic evaluation on the ARGs, and store the result in the
15082 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15083 # must be portable across $(()) and expr.
15084 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15085 eval 'as_fn_arith ()
15092 as_val=`expr "$@" || test $? -eq 1`
15097 if expr a : '\(a\)' >/dev/null 2>&1 &&
15098 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15104 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15105 as_basename=basename
15110 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15116 as_me=`$as_basename -- "$0" ||
15117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15118 X"$0" : 'X\(//\)$' \| \
15119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15121 sed '/^.*\/\([^/][^/]*\)\/*$/{
15135 # Avoid depending upon Character Ranges.
15136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15139 as_cr_digits='0123456789'
15140 as_cr_alnum=$as_cr_Letters$as_cr_digits
15142 ECHO_C= ECHO_N= ECHO_T=
15143 case `echo -n x` in #(((((
15145 case `echo 'xy\c'` in
15146 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15148 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15155 rm -f conf$$ conf$$.exe conf$$.file
15156 if test -d conf$$.dir; then
15157 rm -f conf$$.dir/conf$$.file
15160 mkdir conf$$.dir 2>/dev/null
15162 if (echo >conf$$.file) 2>/dev/null; then
15163 if ln -s conf$$.file conf$$ 2>/dev/null; then
15165 # ... but there are two gotchas:
15166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15168 # In both cases, we have to default to `cp -pR'.
15169 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15171 elif ln conf$$.file conf$$ 2>/dev/null; then
15179 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15180 rmdir conf$$.dir 2>/dev/null
15185 # Create "$as_dir" as a directory, including parents if necessary.
15190 -*) as_dir=./$as_dir;;
15192 test -d "$as_dir" || eval $as_mkdir_p || {
15196 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15197 *) as_qdir=$as_dir;;
15199 as_dirs="'$as_qdir' $as_dirs"
15200 as_dir=`$as_dirname -- "$as_dir" ||
15201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15202 X"$as_dir" : 'X\(//\)[^/]' \| \
15203 X"$as_dir" : 'X\(//\)$' \| \
15204 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15205 $as_echo X"$as_dir" |
15206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15210 /^X\(\/\/\)[^/].*/{
15223 test -d "$as_dir" && break
15225 test -z "$as_dirs" || eval "mkdir $as_dirs"
15226 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15230 if mkdir -p . 2>/dev/null; then
15231 as_mkdir_p='mkdir -p "$as_dir"'
15233 test -d ./-p && rmdir ./-p
15238 # as_fn_executable_p FILE
15239 # -----------------------
15240 # Test if FILE is an executable regular file.
15241 as_fn_executable_p ()
15243 test -f "$1" && test -x "$1"
15244 } # as_fn_executable_p
15245 as_test_x='test -x'
15246 as_executable_p=as_fn_executable_p
15248 # Sed expression to map a string onto a valid CPP name.
15249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15251 # Sed expression to map a string onto a valid variable name.
15252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15256 ## ----------------------------------- ##
15257 ## Main body of $CONFIG_STATUS script. ##
15258 ## ----------------------------------- ##
15260 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15263 # Save the log message, to keep $0 and so on meaningful, and to
15264 # report actual input values of CONFIG_FILES etc. instead of their
15265 # values after options handling.
15267 This file was extended by pygobject $as_me 3.8.0, which was
15268 generated by GNU Autoconf 2.69. Invocation command line was
15270 CONFIG_FILES = $CONFIG_FILES
15271 CONFIG_HEADERS = $CONFIG_HEADERS
15272 CONFIG_LINKS = $CONFIG_LINKS
15273 CONFIG_COMMANDS = $CONFIG_COMMANDS
15276 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15281 case $ac_config_files in *"
15282 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15285 case $ac_config_headers in *"
15286 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15291 # Files that config.status was made for.
15292 config_files="$ac_config_files"
15293 config_headers="$ac_config_headers"
15294 config_commands="$ac_config_commands"
15298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15300 \`$as_me' instantiates files and other configuration actions
15301 from templates according to the current configuration. Unless the files
15302 and actions are specified as TAGs, all are instantiated by default.
15304 Usage: $0 [OPTION]... [TAG]...
15306 -h, --help print this help, then exit
15307 -V, --version print version number and configuration settings, then exit
15308 --config print configuration, then exit
15309 -q, --quiet, --silent
15310 do not print progress messages
15311 -d, --debug don't remove temporary files
15312 --recheck update $as_me by reconfiguring in the same conditions
15313 --file=FILE[:TEMPLATE]
15314 instantiate the configuration file FILE
15315 --header=FILE[:TEMPLATE]
15316 instantiate the configuration header FILE
15318 Configuration files:
15321 Configuration headers:
15324 Configuration commands:
15327 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15328 pygobject home page: <https://live.gnome.org/PyGObject/>."
15331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15332 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15334 pygobject config.status 3.8.0
15335 configured by $0, generated by GNU Autoconf 2.69,
15336 with options \\"\$ac_cs_config\\"
15338 Copyright (C) 2012 Free Software Foundation, Inc.
15339 This config.status script is free software; the Free Software Foundation
15340 gives unlimited permission to copy, distribute and modify it."
15347 test -n "\$AWK" || AWK=awk
15350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15351 # The default lists apply if the user does not specify any file.
15357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15358 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15374 # Handling of the options.
15375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15378 $as_echo "$ac_cs_version"; exit ;;
15379 --config | --confi | --conf | --con | --co | --c )
15380 $as_echo "$ac_cs_config"; exit ;;
15381 --debug | --debu | --deb | --de | --d | -d )
15383 --file | --fil | --fi | --f )
15386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15387 '') as_fn_error $? "missing file argument" ;;
15389 as_fn_append CONFIG_FILES " '$ac_optarg'"
15390 ac_need_defaults=false;;
15391 --header | --heade | --head | --hea )
15394 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15396 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15397 ac_need_defaults=false;;
15399 # Conflict between --help and --header
15400 as_fn_error $? "ambiguous option: \`$1'
15401 Try \`$0 --help' for more information.";;
15402 --help | --hel | -h )
15403 $as_echo "$ac_cs_usage"; exit ;;
15404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15405 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15408 # This is an error.
15409 -*) as_fn_error $? "unrecognized option: \`$1'
15410 Try \`$0 --help' for more information." ;;
15412 *) as_fn_append ac_config_targets " $1"
15413 ac_need_defaults=false ;;
15419 ac_configure_extra_args=
15421 if $ac_cs_silent; then
15423 ac_configure_extra_args="$ac_configure_extra_args --silent"
15427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15428 if \$ac_cs_recheck; then
15429 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15432 CONFIG_SHELL='$SHELL'
15433 export CONFIG_SHELL
15438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15443 ## Running $as_me. ##
15449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15453 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15456 # The HP-UX ksh and POSIX shell print the target directory to stdout
15457 # if CDPATH is set.
15458 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15460 sed_quote_subst='$sed_quote_subst'
15461 double_quote_subst='$double_quote_subst'
15462 delay_variable_subst='$delay_variable_subst'
15463 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15464 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15465 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15466 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15467 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15468 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15469 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15470 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15471 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15472 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15473 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15474 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15475 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15476 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15477 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15478 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15479 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15480 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15481 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15482 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15483 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15484 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15485 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15486 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15487 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15488 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15489 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15490 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15491 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15492 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15493 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15494 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15495 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15496 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15497 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15498 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15499 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15500 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15501 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15502 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15503 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15504 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15505 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15506 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15507 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15508 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15509 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15510 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15511 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15512 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15513 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15514 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15515 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15516 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15517 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15518 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15519 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15520 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"`'
15521 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15522 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15523 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15524 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15525 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15526 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15527 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15528 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15529 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15530 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15531 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15532 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15533 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15534 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15535 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15536 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15537 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15538 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15539 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15540 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15541 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15542 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15543 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15544 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15545 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15546 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15547 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15548 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15549 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15550 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15551 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15552 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15553 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15554 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15555 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15556 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15557 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15558 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15559 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15560 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15561 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15562 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15563 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15564 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15565 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15566 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15567 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15568 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15569 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15570 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15571 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15572 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15573 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15574 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15575 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15576 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15577 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15578 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15579 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15580 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15581 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15582 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15583 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15584 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15585 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15586 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15587 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15588 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15589 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15590 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15591 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15592 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15593 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15596 LTCFLAGS='$LTCFLAGS'
15597 compiler='$compiler_DEFAULT'
15599 # A function that is used when there is no print builtin or printf.
15600 func_fallback_echo ()
15602 eval 'cat <<_LTECHO_EOF
15607 # Quote evaled strings.
15624 deplibs_check_method \
15628 sharedlib_from_linklib_cmd \
15631 archiver_list_spec \
15637 lt_cv_sys_global_symbol_pipe \
15638 lt_cv_sys_global_symbol_to_cdecl \
15639 lt_cv_sys_global_symbol_to_c_name_address \
15640 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15641 nm_file_list_spec \
15642 lt_prog_compiler_no_builtin_flag \
15643 lt_prog_compiler_pic \
15644 lt_prog_compiler_wl \
15645 lt_prog_compiler_static \
15646 lt_cv_prog_compiler_c_o \
15655 export_dynamic_flag_spec \
15656 whole_archive_flag_spec \
15657 compiler_needs_object \
15659 allow_undefined_flag \
15660 no_undefined_flag \
15661 hardcode_libdir_flag_spec \
15662 hardcode_libdir_separator \
15666 variables_saved_for_relink \
15668 library_names_spec \
15670 install_override_mode \
15674 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15675 *[\\\\\\\`\\"\\\$]*)
15676 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15679 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15684 # Double-quote double-evaled strings.
15685 for var in reload_cmds \
15686 old_postinstall_cmds \
15687 old_postuninstall_cmds \
15689 extract_expsyms_cmds \
15690 old_archive_from_new_cmds \
15691 old_archive_from_expsyms_cmds \
15693 archive_expsym_cmds \
15695 module_expsym_cmds \
15696 export_symbols_cmds \
15700 postuninstall_cmds \
15702 sys_lib_search_path_spec \
15703 sys_lib_dlsearch_path_spec; do
15704 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15705 *[\\\\\\\`\\"\\\$]*)
15706 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15709 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15714 ac_aux_dir='$ac_aux_dir'
15715 xsi_shell='$xsi_shell'
15716 lt_shell_append='$lt_shell_append'
15718 # See if we are running on zsh, and set the options which allow our
15719 # commands through without removal of \ escapes INIT.
15720 if test -n "\${ZSH_VERSION+set}" ; then
15721 setopt NO_GLOB_SUBST
15727 TIMESTAMP='$TIMESTAMP'
15736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15738 # Handling of arguments.
15739 for ac_config_target in $ac_config_targets
15741 case $ac_config_target in
15742 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15743 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15744 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15745 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15746 "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
15747 "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
15748 "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
15749 "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
15750 "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
15751 "gi/_glib/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_glib/Makefile" ;;
15752 "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
15753 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15754 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15755 "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
15756 "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
15758 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15763 # If the user did not use the arguments to specify the items to instantiate,
15764 # then the envvar interface is used. Set only those that are not.
15765 # We use the long form for the default assignment because of an extremely
15766 # bizarre bug on SunOS 4.1.3.
15767 if $ac_need_defaults; then
15768 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15769 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15770 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15773 # Have a temporary directory for convenience. Make it in the build tree
15774 # simply because there is no reason against having it here, and in addition,
15775 # creating and moving files from /tmp can sometimes cause problems.
15776 # Hook for its removal unless debugging.
15777 # Note that there is a small window in which the directory will not be cleaned:
15778 # after its creation but before its name has been assigned to `$tmp'.
15782 trap 'exit_status=$?
15783 : "${ac_tmp:=$tmp}"
15784 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15786 trap 'as_fn_exit 1' 1 2 13 15
15788 # Create a (secure) tmp directory for tmp files.
15791 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15795 tmp=./conf$$-$RANDOM
15796 (umask 077 && mkdir "$tmp")
15797 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15800 # Set up the scripts for CONFIG_FILES section.
15801 # No need to generate them if there are no CONFIG_FILES.
15802 # This happens for instance with `./config.status config.h'.
15803 if test -n "$CONFIG_FILES"; then
15806 ac_cr=`echo X | tr X '\015'`
15807 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15808 # But we know of no other shell where ac_cr would be empty at this
15809 # point, so we can use a bashism as a fallback.
15810 if test "x$ac_cr" = x; then
15811 eval ac_cr=\$\'\\r\'
15813 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15814 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15817 ac_cs_awk_cr=$ac_cr
15820 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15825 echo "cat >conf$$subs.awk <<_ACEOF" &&
15826 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15828 } >conf$$subs.sh ||
15829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15830 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15832 for ac_last_try in false false false false false :; do
15833 . ./conf$$subs.sh ||
15834 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15836 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15837 if test $ac_delim_n = $ac_delim_num; then
15839 elif $ac_last_try; then
15840 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15845 rm -f conf$$subs.sh
15847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15848 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15852 s/^/S["/; s/!.*/"]=/
15862 s/\(.\{148\}\)..*/\1/
15864 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15869 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15876 s/\(.\{148\}\)..*/\1/
15878 s/["\\]/\\&/g; s/^/"/; s/$/"/
15882 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15887 ' <conf$$subs.awk | sed '
15892 ' >>$CONFIG_STATUS || ac_write_fail=1
15893 rm -f conf$$subs.awk
15894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15896 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15897 for (key in S) S_is_set[key] = 1
15903 nfields = split(line, field, "@")
15905 len = length(field[1])
15906 for (i = 2; i < nfields; i++) {
15908 keylen = length(key)
15909 if (S_is_set[key]) {
15911 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15912 len += length(value) + length(field[++i])
15923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15924 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15925 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15928 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15929 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15932 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15933 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15934 # trailing colons and then remove the whole line if VPATH becomes empty
15935 # (actually we leave an empty line to preserve line numbers).
15936 if test "x$srcdir" = x.; then
15937 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15956 fi # test -n "$CONFIG_FILES"
15958 # Set up the scripts for CONFIG_HEADERS section.
15959 # No need to generate them if there are no CONFIG_HEADERS.
15960 # This happens for instance with `./config.status Makefile'.
15961 if test -n "$CONFIG_HEADERS"; then
15962 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15966 # Transform confdefs.h into an awk script `defines.awk', embedded as
15967 # here-document in config.status, that substitutes the proper values into
15968 # config.h.in to produce config.h.
15970 # Create a delimiter string that does not exist in confdefs.h, to ease
15971 # handling of long lines.
15973 for ac_last_try in false false :; do
15974 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15975 if test -z "$ac_tt"; then
15977 elif $ac_last_try; then
15978 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15980 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15984 # For the awk script, D is an array of macro values keyed by name,
15985 # likewise P contains macro parameters if any. Preserve backslash
15986 # newline sequences.
15988 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15990 s/.\{148\}/&'"$ac_delim"'/g
15993 s/^[ ]*#[ ]*define[ ][ ]*/ /
16000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16002 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16006 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16007 D["\1"]=" \3\\\\\\n"\\/p
16009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16014 s/.\{148\}/&'"$ac_delim"'/g
16019 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16022 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16024 ' <confdefs.h | sed '
16025 s/'"$ac_delim"'/"\\\
16026 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16029 for (key in D) D_is_set[key] = 1
16032 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16034 split(line, arg, " ")
16035 if (arg[1] == "#") {
16039 defundef = substr(arg[1], 2)
16042 split(mac1, mac2, "(") #)
16044 prefix = substr(line, 1, index(line, defundef) - 1)
16045 if (D_is_set[macro]) {
16046 # Preserve the white space surrounding the "#".
16047 print prefix "define", macro P[macro] D[macro]
16050 # Replace #undef with comments. This is necessary, for example,
16051 # in the case of _POSIX_SOURCE, which is predefined and required
16052 # on some systems where configure will not decide to define it.
16053 if (defundef == "undef") {
16054 print "/*", prefix defundef, macro, "*/"
16062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16063 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16064 fi # test -n "$CONFIG_HEADERS"
16067 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16072 :[FHLC]) ac_mode=$ac_tag; continue;;
16074 case $ac_mode$ac_tag in
16076 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16077 :[FH]-) ac_tag=-:-;;
16078 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16095 -) ac_f="$ac_tmp/stdin";;
16096 *) # Look for the file first in the build tree, then in the source tree
16097 # (if the path is not absolute). The absolute path cannot be DOS-style,
16098 # because $ac_f cannot contain `:'.
16102 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16104 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16106 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16107 as_fn_append ac_file_inputs " '$ac_f'"
16110 # Let's still pretend it is `configure' which instantiates (i.e., don't
16111 # use $as_me), people would be surprised to read:
16112 # /* config.h. Generated by config.status. */
16113 configure_input='Generated from '`
16114 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16116 if test x"$ac_file" != x-; then
16117 configure_input="$ac_file. $configure_input"
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16119 $as_echo "$as_me: creating $ac_file" >&6;}
16121 # Neutralize special characters interpreted by sed in replacement strings.
16122 case $configure_input in #(
16123 *\&* | *\|* | *\\* )
16124 ac_sed_conf_input=`$as_echo "$configure_input" |
16125 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16126 *) ac_sed_conf_input=$configure_input;;
16130 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16136 ac_dir=`$as_dirname -- "$ac_file" ||
16137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16138 X"$ac_file" : 'X\(//\)[^/]' \| \
16139 X"$ac_file" : 'X\(//\)$' \| \
16140 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16141 $as_echo X"$ac_file" |
16142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16146 /^X\(\/\/\)[^/].*/{
16159 as_dir="$ac_dir"; as_fn_mkdir_p
16163 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16165 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16166 # A ".." for each directory in $ac_dir_suffix.
16167 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16168 case $ac_top_builddir_sub in
16169 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16170 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16173 ac_abs_top_builddir=$ac_pwd
16174 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16175 # for backward compatibility:
16176 ac_top_builddir=$ac_top_build_prefix
16179 .) # We are building in place.
16181 ac_top_srcdir=$ac_top_builddir_sub
16182 ac_abs_top_srcdir=$ac_pwd ;;
16183 [\\/]* | ?:[\\/]* ) # Absolute name.
16184 ac_srcdir=$srcdir$ac_dir_suffix;
16185 ac_top_srcdir=$srcdir
16186 ac_abs_top_srcdir=$srcdir ;;
16187 *) # Relative name.
16188 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16189 ac_top_srcdir=$ac_top_build_prefix$srcdir
16190 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16192 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16202 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16203 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16205 ac_MKDIR_P=$MKDIR_P
16207 [\\/$]* | ?:[\\/]* ) ;;
16208 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16213 # If the template does not know about datarootdir, expand it.
16214 # FIXME: This hack should be removed a few years after 2.60.
16215 ac_datarootdir_hack=; ac_datarootdir_seen=
16226 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16227 *datarootdir*) ac_datarootdir_seen=yes;;
16228 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16230 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16233 ac_datarootdir_hack='
16234 s&@datadir@&$datadir&g
16235 s&@docdir@&$docdir&g
16236 s&@infodir@&$infodir&g
16237 s&@localedir@&$localedir&g
16238 s&@mandir@&$mandir&g
16239 s&\\\${datarootdir}&$datarootdir&g' ;;
16243 # Neutralize VPATH when `$srcdir' = `.'.
16244 # Shell code in configure.ac might set extrasub.
16245 # FIXME: do we really want to maintain this feature?
16246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16247 ac_sed_extra="$ac_vpsub
16250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16253 s|@configure_input@|$ac_sed_conf_input|;t t
16254 s&@top_builddir@&$ac_top_builddir_sub&;t t
16255 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16256 s&@srcdir@&$ac_srcdir&;t t
16257 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16258 s&@top_srcdir@&$ac_top_srcdir&;t t
16259 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16260 s&@builddir@&$ac_builddir&;t t
16261 s&@abs_builddir@&$ac_abs_builddir&;t t
16262 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16263 s&@INSTALL@&$ac_INSTALL&;t t
16264 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16265 $ac_datarootdir_hack
16267 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16268 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16270 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16271 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16272 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16273 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16275 which seems to be undefined. Please make sure it is defined" >&5
16276 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16277 which seems to be undefined. Please make sure it is defined" >&2;}
16279 rm -f "$ac_tmp/stdin"
16281 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16282 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16290 if test x"$ac_file" != x-; then
16292 $as_echo "/* $configure_input */" \
16293 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16294 } >"$ac_tmp/config.h" \
16295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16296 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16298 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16301 mv "$ac_tmp/config.h" "$ac_file" \
16302 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16305 $as_echo "/* $configure_input */" \
16306 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16307 || as_fn_error $? "could not create -" "$LINENO" 5
16309 # Compute "$ac_file"'s index in $config_headers.
16312 for _am_header in $config_headers :; do
16313 case $_am_header in
16314 $_am_arg | $_am_arg:* )
16317 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16320 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16321 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16322 X"$_am_arg" : 'X\(//\)[^/]' \| \
16323 X"$_am_arg" : 'X\(//\)$' \| \
16324 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16325 $as_echo X"$_am_arg" |
16326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16330 /^X\(\/\/\)[^/].*/{
16342 s/.*/./; q'`/stamp-h$_am_stamp_count
16345 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16346 $as_echo "$as_me: executing $ac_file commands" >&6;}
16351 case $ac_file$ac_mode in
16352 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16353 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16354 # are listed without --file. Let's play safe and only enable the eval
16355 # if we detect the quoting.
16356 case $CONFIG_FILES in
16357 *\'*) eval set x "$CONFIG_FILES" ;;
16358 *) set x $CONFIG_FILES ;;
16363 # Strip MF so we end up with the name of the file.
16364 mf=`echo "$mf" | sed -e 's/:.*$//'`
16365 # Check whether this is an Automake generated Makefile or not.
16366 # We used to match only the files named `Makefile.in', but
16367 # some people rename them; so instead we look at the file content.
16368 # Grep'ing the first line is not enough: some people post-process
16369 # each Makefile.in and add a new line on top of each file to say so.
16370 # Grep'ing the whole file is not good either: AIX grep has a line
16371 # limit of 2048, but all sed's we know have understand at least 4000.
16372 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16373 dirpart=`$as_dirname -- "$mf" ||
16374 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16375 X"$mf" : 'X\(//\)[^/]' \| \
16376 X"$mf" : 'X\(//\)$' \| \
16377 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16383 /^X\(\/\/\)[^/].*/{
16399 # Extract the definition of DEPDIR, am__include, and am__quote
16400 # from the Makefile without running `make'.
16401 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16402 test -z "$DEPDIR" && continue
16403 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16404 test -z "am__include" && continue
16405 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16406 # When using ansi2knr, U may be empty or an underscore; expand it
16407 U=`sed -n 's/^U = //p' < "$mf"`
16408 # Find all dependency output files, they are included files with
16409 # $(DEPDIR) in their names. We invoke sed twice because it is the
16410 # simplest approach to changing $(DEPDIR) to its actual value in the
16412 for file in `sed -n "
16413 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16414 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16415 # Make sure the directory exists.
16416 test -f "$dirpart/$file" && continue
16417 fdir=`$as_dirname -- "$file" ||
16418 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16419 X"$file" : 'X\(//\)[^/]' \| \
16420 X"$file" : 'X\(//\)$' \| \
16421 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16422 $as_echo X"$file" |
16423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16427 /^X\(\/\/\)[^/].*/{
16440 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16441 # echo "creating $dirpart/$file"
16442 echo '# dummy' > "$dirpart/$file"
16449 # See if we are running on zsh, and set the options which allow our
16450 # commands through without removal of \ escapes.
16451 if test -n "${ZSH_VERSION+set}" ; then
16452 setopt NO_GLOB_SUBST
16455 cfgfile="${ofile}T"
16456 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16459 cat <<_LT_EOF >> "$cfgfile"
16462 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16463 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16464 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16465 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16467 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16468 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16470 # Written by Gordon Matzigkeit, 1996
16472 # This file is part of GNU Libtool.
16474 # GNU Libtool is free software; you can redistribute it and/or
16475 # modify it under the terms of the GNU General Public License as
16476 # published by the Free Software Foundation; either version 2 of
16477 # the License, or (at your option) any later version.
16479 # As a special exception to the GNU General Public License,
16480 # if you distribute this file as part of a program or library that
16481 # is built using GNU Libtool, you may include this file under the
16482 # same distribution terms that you use for the rest of that program.
16484 # GNU Libtool is distributed in the hope that it will be useful,
16485 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16486 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16487 # GNU General Public License for more details.
16489 # You should have received a copy of the GNU General Public License
16490 # along with GNU Libtool; see the file COPYING. If not, a copy
16491 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16492 # obtained by writing to the Free Software Foundation, Inc.,
16493 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16496 # The names of the tagged configurations supported by this script.
16499 # ### BEGIN LIBTOOL CONFIG
16501 # Which release of libtool.m4 was used?
16502 macro_version=$macro_version
16503 macro_revision=$macro_revision
16505 # Assembler program.
16508 # DLL creation program.
16509 DLLTOOL=$lt_DLLTOOL
16511 # Object dumper program.
16512 OBJDUMP=$lt_OBJDUMP
16514 # Whether or not to build static libraries.
16515 build_old_libs=$enable_static
16517 # Whether or not to build shared libraries.
16518 build_libtool_libs=$enable_shared
16520 # What type of objects to build.
16523 # Whether or not to optimize for fast installation.
16524 fast_install=$enable_fast_install
16526 # Shell to use when invoking shell scripts.
16529 # An echo program that protects backslashes.
16532 # The PATH separator for the build system.
16533 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16536 host_alias=$host_alias
16540 # The build system.
16541 build_alias=$build_alias
16545 # A sed program that does not truncate output.
16548 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16549 Xsed="\$SED -e 1s/^X//"
16551 # A grep program that handles long lines.
16557 # A literal string matcher.
16560 # A BSD- or MS-compatible name lister.
16563 # Whether we need soft or hard links.
16566 # What is the maximum length of a command?
16567 max_cmd_len=$max_cmd_len
16569 # Object file suffix (normally "o").
16572 # Executable file suffix (normally "").
16575 # whether the shell understands "unset".
16578 # turn spaces into newlines.
16581 # turn newlines into spaces.
16584 # convert \$build file names to \$host format.
16585 to_host_file_cmd=$lt_cv_to_host_file_cmd
16587 # convert \$build files to toolchain format.
16588 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16590 # Method to check whether dependent libraries are shared objects.
16591 deplibs_check_method=$lt_deplibs_check_method
16593 # Command to use when deplibs_check_method = "file_magic".
16594 file_magic_cmd=$lt_file_magic_cmd
16596 # How to find potential files when deplibs_check_method = "file_magic".
16597 file_magic_glob=$lt_file_magic_glob
16599 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16600 want_nocaseglob=$lt_want_nocaseglob
16602 # Command to associate shared and link libraries.
16603 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16608 # Flags to create an archive.
16609 AR_FLAGS=$lt_AR_FLAGS
16611 # How to feed a file listing to the archiver.
16612 archiver_list_spec=$lt_archiver_list_spec
16614 # A symbol stripping program.
16617 # Commands used to install an old-style archive.
16619 old_postinstall_cmds=$lt_old_postinstall_cmds
16620 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16622 # Whether to use a lock for old archive extraction.
16623 lock_old_archive_extraction=$lock_old_archive_extraction
16628 # LTCC compiler flags.
16629 LTCFLAGS=$lt_CFLAGS
16631 # Take the output of nm and produce a listing of raw symbols and C names.
16632 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16634 # Transform the output of nm in a proper C declaration.
16635 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16637 # Transform the output of nm in a C name address pair.
16638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16640 # Transform the output of nm in a C name address pair when lib prefix is needed.
16641 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16643 # Specify filename containing input files for \$NM.
16644 nm_file_list_spec=$lt_nm_file_list_spec
16646 # The root where to search for dependent libraries,and in which our libraries should be installed.
16647 lt_sysroot=$lt_sysroot
16649 # The name of the directory that contains temporary libtool files.
16652 # Used to examine libraries when file_magic_cmd begins with "file".
16653 MAGIC_CMD=$MAGIC_CMD
16655 # Must we lock files when doing compilation?
16656 need_locks=$lt_need_locks
16659 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16661 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16662 DSYMUTIL=$lt_DSYMUTIL
16664 # Tool to change global to local symbols on Mac OS X.
16667 # Tool to manipulate fat objects and archives on Mac OS X.
16670 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16673 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16674 OTOOL64=$lt_OTOOL64
16676 # Old archive suffix (normally "a").
16679 # Shared library suffix (normally ".so").
16680 shrext_cmds=$lt_shrext_cmds
16682 # The commands to extract the exported symbol list from a shared archive.
16683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16685 # Variables whose values should be saved in libtool wrapper scripts and
16686 # restored at link time.
16687 variables_saved_for_relink=$lt_variables_saved_for_relink
16689 # Do we need the "lib" prefix for modules?
16690 need_lib_prefix=$need_lib_prefix
16692 # Do we need a version for libraries?
16693 need_version=$need_version
16695 # Library versioning type.
16696 version_type=$version_type
16698 # Shared library runtime path variable.
16699 runpath_var=$runpath_var
16701 # Shared library path variable.
16702 shlibpath_var=$shlibpath_var
16704 # Is shlibpath searched before the hard-coded library search path?
16705 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16707 # Format of library name prefix.
16708 libname_spec=$lt_libname_spec
16710 # List of archive names. First name is the real one, the rest are links.
16711 # The last name is the one that the linker finds with -lNAME
16712 library_names_spec=$lt_library_names_spec
16714 # The coded name of the library, if different from the real name.
16715 soname_spec=$lt_soname_spec
16717 # Permission mode override for installation of shared libraries.
16718 install_override_mode=$lt_install_override_mode
16720 # Command to use after installation of a shared archive.
16721 postinstall_cmds=$lt_postinstall_cmds
16723 # Command to use after uninstallation of a shared archive.
16724 postuninstall_cmds=$lt_postuninstall_cmds
16726 # Commands used to finish a libtool library installation in a directory.
16727 finish_cmds=$lt_finish_cmds
16729 # As "finish_cmds", except a single script fragment to be evaled but
16731 finish_eval=$lt_finish_eval
16733 # Whether we should hardcode library paths into libraries.
16734 hardcode_into_libs=$hardcode_into_libs
16736 # Compile-time system search path for libraries.
16737 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16739 # Run-time system search path for libraries.
16740 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16742 # Whether dlopen is supported.
16743 dlopen_support=$enable_dlopen
16745 # Whether dlopen of programs is supported.
16746 dlopen_self=$enable_dlopen_self
16748 # Whether dlopen of statically linked programs is supported.
16749 dlopen_self_static=$enable_dlopen_self_static
16751 # Commands to strip libraries.
16752 old_striplib=$lt_old_striplib
16753 striplib=$lt_striplib
16756 # The linker used to build libraries.
16759 # How to create reloadable object files.
16760 reload_flag=$lt_reload_flag
16761 reload_cmds=$lt_reload_cmds
16763 # Commands used to build an old-style archive.
16764 old_archive_cmds=$lt_old_archive_cmds
16766 # A language specific compiler.
16769 # Is the compiler the GNU compiler?
16772 # Compiler flag to turn off builtin functions.
16773 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16775 # Additional compiler flags for building library objects.
16776 pic_flag=$lt_lt_prog_compiler_pic
16778 # How to pass a linker flag through the compiler.
16779 wl=$lt_lt_prog_compiler_wl
16781 # Compiler flag to prevent dynamic linking.
16782 link_static_flag=$lt_lt_prog_compiler_static
16784 # Does compiler simultaneously support -c and -o options?
16785 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16787 # Whether or not to add -lc for building shared libraries.
16788 build_libtool_need_lc=$archive_cmds_need_lc
16790 # Whether or not to disallow shared libs when runtime libs are static.
16791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16793 # Compiler flag to allow reflexive dlopens.
16794 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16796 # Compiler flag to generate shared objects directly from archives.
16797 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16799 # Whether the compiler copes with passing no objects directly.
16800 compiler_needs_object=$lt_compiler_needs_object
16802 # Create an old-style archive from a shared archive.
16803 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16805 # Create a temporary old-style archive to link instead of a shared archive.
16806 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16808 # Commands used to build a shared archive.
16809 archive_cmds=$lt_archive_cmds
16810 archive_expsym_cmds=$lt_archive_expsym_cmds
16812 # Commands used to build a loadable module if different from building
16813 # a shared archive.
16814 module_cmds=$lt_module_cmds
16815 module_expsym_cmds=$lt_module_expsym_cmds
16817 # Whether we are building with GNU ld or not.
16818 with_gnu_ld=$lt_with_gnu_ld
16820 # Flag that allows shared libraries with undefined symbols to be built.
16821 allow_undefined_flag=$lt_allow_undefined_flag
16823 # Flag that enforces no undefined symbols.
16824 no_undefined_flag=$lt_no_undefined_flag
16826 # Flag to hardcode \$libdir into a binary during linking.
16827 # This must work even if \$libdir does not exist
16828 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16830 # Whether we need a single "-rpath" flag with a separated argument.
16831 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16833 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16834 # DIR into the resulting binary.
16835 hardcode_direct=$hardcode_direct
16837 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16838 # DIR into the resulting binary and the resulting library dependency is
16839 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16840 # library is relocated.
16841 hardcode_direct_absolute=$hardcode_direct_absolute
16843 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16844 # into the resulting binary.
16845 hardcode_minus_L=$hardcode_minus_L
16847 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16848 # into the resulting binary.
16849 hardcode_shlibpath_var=$hardcode_shlibpath_var
16851 # Set to "yes" if building a shared library automatically hardcodes DIR
16852 # into the library and all subsequent libraries and executables linked
16854 hardcode_automatic=$hardcode_automatic
16856 # Set to yes if linker adds runtime paths of dependent libraries
16857 # to runtime path list.
16858 inherit_rpath=$inherit_rpath
16860 # Whether libtool must link a program against all its dependency libraries.
16861 link_all_deplibs=$link_all_deplibs
16863 # Set to "yes" if exported symbols are required.
16864 always_export_symbols=$always_export_symbols
16866 # The commands to list exported symbols.
16867 export_symbols_cmds=$lt_export_symbols_cmds
16869 # Symbols that should not be listed in the preloaded symbols.
16870 exclude_expsyms=$lt_exclude_expsyms
16872 # Symbols that must always be exported.
16873 include_expsyms=$lt_include_expsyms
16875 # Commands necessary for linking programs (against libraries) with templates.
16876 prelink_cmds=$lt_prelink_cmds
16878 # Commands necessary for finishing linking programs.
16879 postlink_cmds=$lt_postlink_cmds
16881 # Specify filename containing input files.
16882 file_list_spec=$lt_file_list_spec
16884 # How to hardcode a shared library path into an executable.
16885 hardcode_action=$hardcode_action
16887 # ### END LIBTOOL CONFIG
16893 cat <<\_LT_EOF >> "$cfgfile"
16894 # AIX sometimes has problems with the GCC collect2 program. For some
16895 # reason, if we set the COLLECT_NAMES environment variable, the problems
16896 # vanish in a puff of smoke.
16897 if test "X${COLLECT_NAMES+set}" != Xset; then
16899 export COLLECT_NAMES
16906 ltmain="$ac_aux_dir/ltmain.sh"
16909 # We use sed instead of cat because bash on DJGPP gets confused if
16910 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16911 # text mode, it properly converts lines to CR/LF. This bash problem
16912 # is reportedly fixed, but why not run on old versions too?
16913 sed '$q' "$ltmain" >> "$cfgfile" \
16914 || (rm -f "$cfgfile"; exit 1)
16916 if test x"$xsi_shell" = xyes; then
16917 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16921 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16922 \ * ) func_dirname_result="${3}" ;;\
16924 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16925 && mv -f "$cfgfile.tmp" "$cfgfile" \
16926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16927 test 0 -eq $? || _lt_function_replace_fail=:
16930 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16933 \ func_basename_result="${1##*/}"\
16934 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16935 && mv -f "$cfgfile.tmp" "$cfgfile" \
16936 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16937 test 0 -eq $? || _lt_function_replace_fail=:
16940 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16941 func_dirname_and_basename ()\
16944 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16945 \ * ) func_dirname_result="${3}" ;;\
16947 \ func_basename_result="${1##*/}"\
16948 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16949 && mv -f "$cfgfile.tmp" "$cfgfile" \
16950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16951 test 0 -eq $? || _lt_function_replace_fail=:
16954 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16957 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16958 \ # positional parameters, so assign one to ordinary parameter first.\
16959 \ func_stripname_result=${3}\
16960 \ func_stripname_result=${func_stripname_result#"${1}"}\
16961 \ func_stripname_result=${func_stripname_result%"${2}"}\
16962 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16963 && mv -f "$cfgfile.tmp" "$cfgfile" \
16964 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16965 test 0 -eq $? || _lt_function_replace_fail=:
16968 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16969 func_split_long_opt ()\
16971 \ func_split_long_opt_name=${1%%=*}\
16972 \ func_split_long_opt_arg=${1#*=}\
16973 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16974 && mv -f "$cfgfile.tmp" "$cfgfile" \
16975 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16976 test 0 -eq $? || _lt_function_replace_fail=:
16979 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16980 func_split_short_opt ()\
16982 \ func_split_short_opt_arg=${1#??}\
16983 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16984 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16985 && mv -f "$cfgfile.tmp" "$cfgfile" \
16986 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16987 test 0 -eq $? || _lt_function_replace_fail=:
16990 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16994 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16995 \ *) func_lo2o_result=${1} ;;\
16997 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16998 && mv -f "$cfgfile.tmp" "$cfgfile" \
16999 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17000 test 0 -eq $? || _lt_function_replace_fail=:
17003 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17006 func_xform_result=${1%.*}.lo\
17007 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17008 && mv -f "$cfgfile.tmp" "$cfgfile" \
17009 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17010 test 0 -eq $? || _lt_function_replace_fail=:
17013 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17016 func_arith_result=$(( $* ))\
17017 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17018 && mv -f "$cfgfile.tmp" "$cfgfile" \
17019 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17020 test 0 -eq $? || _lt_function_replace_fail=:
17023 sed -e '/^func_len ()$/,/^} # func_len /c\
17026 func_len_result=${#1}\
17027 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17028 && mv -f "$cfgfile.tmp" "$cfgfile" \
17029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17030 test 0 -eq $? || _lt_function_replace_fail=:
17034 if test x"$lt_shell_append" = xyes; then
17035 sed -e '/^func_append ()$/,/^} # func_append /c\
17038 eval "${1}+=\\${2}"\
17039 } # Extended-shell func_append 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_append_quoted ()$/,/^} # func_append_quoted /c\
17046 func_append_quoted ()\
17048 \ func_quote_for_eval "${2}"\
17049 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17050 } # Extended-shell func_append_quoted 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 # Save a `func_append' function call where possible by direct use of '+='
17057 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17058 && mv -f "$cfgfile.tmp" "$cfgfile" \
17059 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17060 test 0 -eq $? || _lt_function_replace_fail=:
17062 # Save a `func_append' function call even when '+=' is not available
17063 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $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 if test x"$_lt_function_replace_fail" = x":"; then
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17071 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17075 mv -f "$cfgfile" "$ofile" ||
17076 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17087 ac_clean_files=$ac_clean_files_save
17089 test $ac_write_fail = 0 ||
17090 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17093 # configure is writing to config.log, and then calls config.status.
17094 # config.status does its own redirection, appending to config.log.
17095 # Unfortunately, on DOS this fails, as config.log is still kept open
17096 # by configure, so config.status won't be able to write to it; its
17097 # output is simply discarded. So we exec the FD to /dev/null,
17098 # effectively closing config.log, so it can be properly (re)opened and
17099 # appended to by config.status. When coming back to configure, we
17100 # need to make the FD available again.
17101 if test "$no_create" != yes; then
17103 ac_config_status_args=
17104 test "$silent" = yes &&
17105 ac_config_status_args="$ac_config_status_args --quiet"
17107 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17109 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17110 # would make configure fail if this is the last instruction.
17111 $ac_cs_success || as_fn_exit 1
17113 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17115 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17122 Using python interpreter: $PYTHON
17123 libffi support: $have_libffi
17124 cairo support: $enable_cairo
17125 thread support: $enable_thread
17126 code coverage support: $enable_code_coverage
17131 Using python interpreter: $PYTHON
17132 libffi support: $have_libffi
17133 cairo support: $enable_cairo
17134 thread support: $enable_thread
17135 code coverage support: $enable_code_coverage