2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.18.1.
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.18.1'
595 PACKAGE_STRING='pygobject 3.18.1'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
597 PACKAGE_URL='https://wiki.gnome.org/Projects/PyGObject/'
599 ac_unique_file="gi/gimodule.c"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
613 # ifdef HAVE_STDLIB_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
640 GNOME_CODE_COVERAGE_RULES
642 CODE_COVERAGE_LDFLAGS
646 CODE_COVERAGE_ENABLED
647 CODE_COVERAGE_ENABLED_FALSE
648 CODE_COVERAGE_ENABLED_TRUE
650 INTROSPECTION_COMPILER
651 INTROSPECTION_SCANNER
670 GLIB_COMPILE_RESOURCES
753 INSTALL_STRIP_PROGRAM
772 PYGOBJECT_MICRO_VERSION
773 PYGOBJECT_MINOR_VERSION
774 PYGOBJECT_MAJOR_VERSION
803 program_transform_name
816 enable_option_checking
822 enable_dependency_tracking
831 enable_compile_warnings
835 ac_precious_vars='build_alias
860 # Initialize some variables set by options.
862 ac_init_version=false
863 ac_unrecognized_opts=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
874 program_transform_name=s,x,x,
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error $? "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
977 eval enable_$ac_useropt=no ;;
979 -docdir | --docdir | --docdi | --doc | --do)
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 htmldir=$ac_optarg ;;
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1048 -libdir | --libdir | --libdi | --libd)
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1139 -psdir | --psdir | --psdi | --psd | --ps)
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 sbindir=$ac_optarg ;;
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 sharedstatedir=$ac_optarg ;;
1165 -site | --site | --sit)
1167 -site=* | --site=* | --sit=*)
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=\$ac_optarg ;;
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=no ;;
1226 # Obsolete; use --with-x.
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1294 # Be sure to have absolute directory names.
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1307 target=$target_alias
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321 test "$silent" = yes && exec 6>/dev/null
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1364 ac_srcdir_defaulted=no
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1398 \`configure' configures pygobject 3.18.1 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/pygobject]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of pygobject 3.18.1:";;
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-silent-rules less verbose build output (undo: `make V=1')
1477 --disable-silent-rules verbose build output (undo: `make V=0')
1478 --enable-static[=PKGS] build static libraries [default=no]
1479 --enable-shared[=PKGS] build shared libraries [default=yes]
1480 --enable-fast-install[=PKGS]
1481 optimize for fast installation [default=yes]
1482 --disable-dependency-tracking speeds up one-time build
1483 --enable-dependency-tracking do not reject slow dependency extractors
1484 --disable-libtool-lock avoid locking (might break parallel builds)
1485 --disable-thread Disable pygobject threading support
1486 --disable-glibtest do not try to compile and run a test GLIB program
1487 --enable-cairo Enable Cairo bindings using introspection
1489 --enable-compile-warnings=[no/minimum/yes/maximum/error]
1490 Turn on compiler warnings
1491 --enable-iso-c Try to warn if code is not ISO C
1492 --enable-code-coverage Whether to enable code coverage support
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-sysroot=DIR Search for dependent libraries within DIR
1501 (or the compiler's sysroot if not specified).
1502 --with-python=PATH Path to Python interpreter; searches $PATH if only a
1503 program name is given; if not given, searches for a
1504 few standard names such as "python3" or "python2"
1505 --without-common For package maintainers: do not install Python
1506 version independent files
1508 Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
1517 PYTHON the Python interpreter
1518 PKG_CONFIG path to pkg-config utility
1520 directories to add to pkg-config's search path
1522 path overriding pkg-config's built-in search path
1523 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config
1524 FFI_LIBS linker flags for FFI, overriding pkg-config
1525 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
1526 GIO_LIBS linker flags for GIO, overriding pkg-config
1527 GI_CFLAGS C compiler flags for GI, overriding pkg-config
1528 GI_LIBS linker flags for GI, overriding pkg-config
1530 C compiler flags for CAIRO, overriding pkg-config
1531 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1533 C compiler flags for PYCAIRO, overriding pkg-config
1535 linker flags for PYCAIRO, overriding pkg-config
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1540 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1541 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>.
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1571 .) # We are building in place.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1604 pygobject configure 3.18.1
1605 generated by GNU Autoconf 2.69
1607 Copyright (C) 2012 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652 as_fn_set_status $ac_retval
1654 } # ac_fn_c_try_compile
1656 # ac_fn_c_try_link LINENO
1657 # -----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest$ac_exeext
1663 if { { ac_try="$ac_link"
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>conftest.err
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest$ac_exeext && {
1682 test "$cross_compiling" = yes ||
1683 test -x conftest$ac_exeext
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1692 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694 # interfere with the next link command; also delete a directory that is
1695 # left behind by Apple's compiler. We do this before executing the actions.
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1700 } # ac_fn_c_try_link
1702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists and can be compiled using the include files in
1705 # INCLUDES, setting the cache variable VAR accordingly.
1706 ac_fn_c_check_header_compile ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if eval \${$3+:} false; then :
1712 $as_echo_n "(cached) " >&6
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1719 if ac_fn_c_try_compile "$LINENO"; then :
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 } # ac_fn_c_check_header_compile
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } > conftest.i && {
1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1770 # ac_fn_c_try_run LINENO
1771 # ----------------------
1772 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1773 # that executables *can* be run.
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if { { ac_try="$ac_link"
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>&5
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1788 { { case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_try") 2>&5
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; }; }; then :
1800 $as_echo "$as_me: program exited with status $ac_status" >&5
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1804 ac_retval=$ac_status
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1812 # ac_fn_c_check_func LINENO FUNC VAR
1813 # ----------------------------------
1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1815 ac_fn_c_check_func ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821 $as_echo_n "(cached) " >&6
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827 #define $2 innocuous_$2
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1835 # include <limits.h>
1837 # include <assert.h>
1842 /* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined __stub_$2 || defined __stub___$2
1864 if ac_fn_c_try_link "$LINENO"; then :
1869 rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 } # ac_fn_c_check_func
1878 cat >config.log <<_ACEOF
1879 This file contains any messages produced by compilers while
1880 running configure, to aid debugging if configure makes a mistake.
1882 It was created by pygobject $as_me 3.18.1, which was
1883 generated by GNU Autoconf 2.69. Invocation command line was
1895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918 test -z "$as_dir" && as_dir=.
1919 $as_echo "PATH: $as_dir"
1935 # Keep a trace of the command line.
1936 # Strip out --no-create and --no-recursion so they do not pile up.
1937 # Strip out --silent because we don't want to record it for future runs.
1938 # Also quote any args containing shell meta-characters.
1939 # Make two passes to allow for proper duplicate-argument suppression.
1943 ac_must_keep_next=false
1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951 | -silent | --silent | --silen | --sile | --sil)
1954 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959 as_fn_append ac_configure_args1 " '$ac_arg'"
1960 if test $ac_must_keep_next = true; then
1961 ac_must_keep_next=false # Got value, back to normal.
1964 *=* | --config-cache | -C | -disable-* | --disable-* \
1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967 | -with-* | --with-* | -without-* | --without-* | --x)
1968 case "$ac_configure_args0 " in
1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1972 -* ) ac_must_keep_next=true ;;
1975 as_fn_append ac_configure_args " '$ac_arg'"
1980 { ac_configure_args0=; unset ac_configure_args0;}
1981 { ac_configure_args1=; unset ac_configure_args1;}
1983 # When interrupted or exit'd, cleanup temporary files, and complete
1984 # config.log. We remove comments because anyway the quotes in there
1985 # would cause problems or look ugly.
1986 # WARNING: Use '\'' to represent an apostrophe within the trap.
1987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988 trap 'exit_status=$?
1989 # Save into config.log some information that might help in debugging.
1993 $as_echo "## ---------------- ##
1994 ## Cache variables. ##
1995 ## ---------------- ##"
1997 # The following way of writing the cache mishandles newlines in values,
1999 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000 eval ac_val=\$$ac_var
2004 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008 _ | IFS | as_nl) ;; #(
2009 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010 *) { eval $ac_var=; unset $ac_var;} ;;
2015 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016 *${as_nl}ac_space=\ *)
2018 "s/'\''/'\''\\\\'\'''\''/g;
2019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2029 $as_echo "## ----------------- ##
2030 ## Output variables. ##
2031 ## ----------------- ##"
2033 for ac_var in $ac_subst_vars
2035 eval ac_val=\$$ac_var
2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 $as_echo "$ac_var='\''$ac_val'\''"
2043 if test -n "$ac_subst_files"; then
2044 $as_echo "## ------------------- ##
2045 ## File substitutions. ##
2046 ## ------------------- ##"
2048 for ac_var in $ac_subst_files
2050 eval ac_val=\$$ac_var
2052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 $as_echo "$ac_var='\''$ac_val'\''"
2059 if test -s confdefs.h; then
2060 $as_echo "## ----------- ##
2067 test "$ac_signal" != 0 &&
2068 $as_echo "$as_me: caught signal $ac_signal"
2069 $as_echo "$as_me: exit $exit_status"
2071 rm -f core *.core core.conftest.* &&
2072 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075 for ac_signal in 1 2 13 15; do
2076 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2081 rm -f -r conftest* confdefs.h
2083 $as_echo "/* confdefs.h */" > confdefs.h
2085 # Predefined preprocessor variables.
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_NAME "$PACKAGE_NAME"
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_STRING "$PACKAGE_STRING"
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_URL "$PACKAGE_URL"
2112 # Let the site file select an alternate cache file if it wants to.
2113 # Prefer an explicitly selected file to automatically selected ones.
2116 if test -n "$CONFIG_SITE"; then
2117 # We do not want a PATH search for config.site.
2118 case $CONFIG_SITE in #((
2119 -*) ac_site_file1=./$CONFIG_SITE;;
2120 */*) ac_site_file1=$CONFIG_SITE;;
2121 *) ac_site_file1=./$CONFIG_SITE;;
2123 elif test "x$prefix" != xNONE; then
2124 ac_site_file1=$prefix/share/config.site
2125 ac_site_file2=$prefix/etc/config.site
2127 ac_site_file1=$ac_default_prefix/share/config.site
2128 ac_site_file2=$ac_default_prefix/etc/config.site
2130 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 test "x$ac_site_file" = xNONE && continue
2133 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2135 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2136 sed 's/^/| /' "$ac_site_file" >&5
2138 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140 as_fn_error $? "failed to load site script $ac_site_file
2141 See \`config.log' for more details" "$LINENO" 5; }
2145 if test -r "$cache_file"; then
2146 # Some versions of bash will fail to source /dev/null (special files
2147 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2148 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2162 # Check that the precious variables saved in the cache have kept the same
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
2170 case $ac_old_set,$ac_new_set in
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174 ac_cache_corrupted=: ;;
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212 if $ac_cache_corrupted; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230 ACLOCAL_AMFLAGS="-I m4 -I ."
2236 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2238 PYGOBJECT_MAJOR_VERSION=3
2241 $as_echo "#define PYGOBJECT_MINOR_VERSION 18" >>confdefs.h
2243 PYGOBJECT_MINOR_VERSION=18
2246 $as_echo "#define PYGOBJECT_MICRO_VERSION 1" >>confdefs.h
2248 PYGOBJECT_MICRO_VERSION=1
2251 ac_config_headers="$ac_config_headers config.h"
2253 # Check whether --enable-silent-rules was given.
2254 if test "${enable_silent_rules+set}" = set; then :
2255 enableval=$enable_silent_rules;
2258 case $enable_silent_rules in
2259 yes) AM_DEFAULT_VERBOSITY=0;;
2260 no) AM_DEFAULT_VERBOSITY=1;;
2261 *) AM_DEFAULT_VERBOSITY=0;;
2263 am_make=${MAKE-make}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2265 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2266 if ${am_cv_make_support_nested_variables+:} false; then :
2267 $as_echo_n "(cached) " >&6
2269 if $as_echo 'TRUE=$(BAR$(V))
2275 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2276 am_cv_make_support_nested_variables=yes
2278 am_cv_make_support_nested_variables=no
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2282 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2283 if test $am_cv_make_support_nested_variables = yes; then
2285 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2287 AM_V=$AM_DEFAULT_VERBOSITY
2288 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2292 am__api_version='1.11'
2295 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2296 if test -f "$ac_dir/install-sh"; then
2298 ac_install_sh="$ac_aux_dir/install-sh -c"
2300 elif test -f "$ac_dir/install.sh"; then
2302 ac_install_sh="$ac_aux_dir/install.sh -c"
2304 elif test -f "$ac_dir/shtool"; then
2306 ac_install_sh="$ac_aux_dir/shtool install -c"
2310 if test -z "$ac_aux_dir"; then
2311 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2314 # These three variables are undocumented and unsupported,
2315 # and are intended to be withdrawn in a future Autoconf release.
2316 # They can cause serious problems if a builder's source tree is in a directory
2317 # whose full name contains unusual characters.
2318 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2319 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2320 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2323 # Find a good install program. We prefer a C program (faster),
2324 # so one script is as good as another. But avoid the broken or
2325 # incompatible versions:
2326 # SysV /etc/install, /usr/sbin/install
2327 # SunOS /usr/etc/install
2328 # IRIX /sbin/install
2330 # AmigaOS /C/install, which installs bootblocks on floppy discs
2331 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2332 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2333 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2334 # OS/2's system install, which has a completely different semantic
2335 # ./install, which can be erroneously created by make from ./install.sh.
2336 # Reject install programs that cannot install multiple files.
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2338 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2339 if test -z "$INSTALL"; then
2340 if ${ac_cv_path_install+:} false; then :
2341 $as_echo_n "(cached) " >&6
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 # Account for people who put trailing slashes in PATH elements.
2349 case $as_dir/ in #((
2350 ./ | .// | /[cC]/* | \
2351 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2352 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2355 # OSF1 and SCO ODT 3.0 have their own names for install.
2356 # Don't use installbsd from OSF since it installs stuff as root
2358 for ac_prog in ginstall scoinst install; do
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2361 if test $ac_prog = install &&
2362 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2363 # AIX install. It has an incompatible calling convention.
2365 elif test $ac_prog = install &&
2366 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2367 # program-specific install script used by HP pwplus--don't use.
2370 rm -rf conftest.one conftest.two conftest.dir
2371 echo one > conftest.one
2372 echo two > conftest.two
2374 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2375 test -s conftest.one && test -s conftest.two &&
2376 test -s conftest.dir/conftest.one &&
2377 test -s conftest.dir/conftest.two
2379 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2392 rm -rf conftest.one conftest.two conftest.dir
2395 if test "${ac_cv_path_install+set}" = set; then
2396 INSTALL=$ac_cv_path_install
2398 # As a last resort, use the slow shell script. Don't cache a
2399 # value for INSTALL within a source directory, because that will
2400 # break other packages using the cache if that directory is
2401 # removed, or if the value is a relative name.
2402 INSTALL=$ac_install_sh
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2406 $as_echo "$INSTALL" >&6; }
2408 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2409 # It thinks the first close brace ends the variable substitution.
2410 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2412 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2414 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2417 $as_echo_n "checking whether build environment is sane... " >&6; }
2420 echo timestamp > conftest.file
2421 # Reject unsafe characters in $srcdir or the absolute working directory
2422 # name. Accept space and tab only in the latter.
2426 *[\\\"\#\$\&\'\`$am_lf]*)
2427 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2430 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2431 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2434 # Do `set' in a subshell so we don't clobber the current shell's
2435 # arguments. Must try -L first in case configure is actually a
2436 # symlink; some systems play weird games with the mod time of symlinks
2437 # (eg FreeBSD returns the mod time of the symlink's containing
2440 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2441 if test "$*" = "X"; then
2443 set X `ls -t "$srcdir/configure" conftest.file`
2446 if test "$*" != "X $srcdir/configure conftest.file" \
2447 && test "$*" != "X conftest.file $srcdir/configure"; then
2449 # If neither matched, then we have a broken ls. This can happen
2450 # if, for instance, CONFIG_SHELL is bash and it inherits a
2451 # broken ls alias from the environment. This has actually
2452 # happened. Such a system could not be considered "sane".
2453 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2454 alias in your environment" "$LINENO" 5
2457 test "$2" = conftest.file
2463 as_fn_error $? "newly created file is older than distributed files!
2464 Check your system clock" "$LINENO" 5
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2467 $as_echo "yes" >&6; }
2468 test "$program_prefix" != NONE &&
2469 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2470 # Use a double $ so make ignores it.
2471 test "$program_suffix" != NONE &&
2472 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2473 # Double any \ or $.
2474 # By default was `s,x,x', remove it if useless.
2475 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2476 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2478 # expand $ac_aux_dir to an absolute path
2479 am_aux_dir=`cd $ac_aux_dir && pwd`
2481 if test x"${MISSING+set}" != xset; then
2484 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2486 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2489 # Use eval to expand $SHELL
2490 if eval "$MISSING --run true"; then
2491 am_missing_run="$MISSING --run "
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2495 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2498 if test x"${install_sh}" != xset; then
2501 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2503 install_sh="\${SHELL} $am_aux_dir/install-sh"
2507 # Installed binaries are usually stripped using `strip' when the user
2508 # run `make install-strip'. However `strip' might not be the right
2509 # tool to use in cross-compilation environments, therefore Automake
2510 # will honor the `STRIP' environment variable to overrule this program.
2511 if test "$cross_compiling" != no; then
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}strip; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_STRIP+:} false; then :
2518 $as_echo_n "(cached) " >&6
2520 if test -n "$STRIP"; then
2521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 STRIP=$ac_cv_prog_STRIP
2541 if test -n "$STRIP"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2543 $as_echo "$STRIP" >&6; }
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2551 if test -z "$ac_cv_prog_STRIP"; then
2553 # Extract the first word of "strip", so it can be a program name with args.
2554 set dummy strip; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2558 $as_echo_n "(cached) " >&6
2560 if test -n "$ac_ct_STRIP"; then
2561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570 ac_cv_prog_ac_ct_STRIP="strip"
2571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2581 if test -n "$ac_ct_STRIP"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2583 $as_echo "$ac_ct_STRIP" >&6; }
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2589 if test "x$ac_ct_STRIP" = x; then
2592 case $cross_compiling:$ac_tool_warned in
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2596 ac_tool_warned=yes ;;
2601 STRIP="$ac_cv_prog_STRIP"
2605 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2608 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2609 if test -z "$MKDIR_P"; then
2610 if ${ac_cv_path_mkdir+:} false; then :
2611 $as_echo_n "(cached) " >&6
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2617 test -z "$as_dir" && as_dir=.
2618 for ac_prog in mkdir gmkdir; do
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2621 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2622 'mkdir (GNU coreutils) '* | \
2623 'mkdir (coreutils) '* | \
2624 'mkdir (fileutils) '4.1*)
2625 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2635 test -d ./--version && rmdir ./--version
2636 if test "${ac_cv_path_mkdir+set}" = set; then
2637 MKDIR_P="$ac_cv_path_mkdir -p"
2639 # As a last resort, use the slow shell script. Don't cache a
2640 # value for MKDIR_P within a source directory, because that will
2641 # break other packages using the cache if that directory is
2642 # removed, or if the value is a relative name.
2643 MKDIR_P="$ac_install_sh -d"
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2647 $as_echo "$MKDIR_P" >&6; }
2651 [\\/$]* | ?:[\\/]*) ;;
2652 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2655 for ac_prog in gawk mawk nawk awk
2657 # Extract the first word of "$ac_prog", so it can be a program name with args.
2658 set dummy $ac_prog; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_AWK+:} false; then :
2662 $as_echo_n "(cached) " >&6
2664 if test -n "$AWK"; then
2665 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674 ac_cv_prog_AWK="$ac_prog"
2675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 if test -n "$AWK"; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2687 $as_echo "$AWK" >&6; }
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2694 test -n "$AWK" && break
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2698 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2700 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2701 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2702 $as_echo_n "(cached) " >&6
2704 cat >conftest.make <<\_ACEOF
2707 @echo '@@@%%%=$(MAKE)=@@@%%%'
2709 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2710 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2712 eval ac_cv_prog_make_${ac_make}_set=yes;;
2714 eval ac_cv_prog_make_${ac_make}_set=no;;
2718 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720 $as_echo "yes" >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725 SET_MAKE="MAKE=${MAKE-make}"
2728 rm -rf .tst 2>/dev/null
2729 mkdir .tst 2>/dev/null
2730 if test -d .tst; then
2735 rmdir .tst 2>/dev/null
2737 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2738 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2739 # is not polluted with repeated "-I."
2740 am__isrc=' -I$(srcdir)'
2741 # test to see if srcdir already configured
2742 if test -f $srcdir/config.status; then
2743 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2747 # test whether we have cygpath
2748 if test -z "$CYGPATH_W"; then
2749 if (cygpath --version) >/dev/null 2>/dev/null; then
2750 CYGPATH_W='cygpath -w'
2757 # Define the identity of the package.
2762 cat >>confdefs.h <<_ACEOF
2763 #define PACKAGE "$PACKAGE"
2767 cat >>confdefs.h <<_ACEOF
2768 #define VERSION "$VERSION"
2771 # Some tools Automake needs.
2773 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2776 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2779 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2782 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2785 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2787 # We need awk for the "check" target. The system "awk" is bad on
2789 # Always define AMTAR for backward compatibility. Yes, it's still used
2790 # in the wild :-( We should find a proper way to deprecate it ...
2793 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2800 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2802 # Make sure we can run config.sub.
2803 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2804 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2807 $as_echo_n "checking build system type... " >&6; }
2808 if ${ac_cv_build+:} false; then :
2809 $as_echo_n "(cached) " >&6
2811 ac_build_alias=$build_alias
2812 test "x$ac_build_alias" = x &&
2813 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2814 test "x$ac_build_alias" = x &&
2815 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2816 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2817 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2821 $as_echo "$ac_cv_build" >&6; }
2822 case $ac_cv_build in
2824 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2827 ac_save_IFS=$IFS; IFS='-'
2833 # Remember, the first character of IFS is used to create $*,
2834 # except with old shells:
2837 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2841 $as_echo_n "checking host system type... " >&6; }
2842 if ${ac_cv_host+:} false; then :
2843 $as_echo_n "(cached) " >&6
2845 if test "x$host_alias" = x; then
2846 ac_cv_host=$ac_cv_build
2848 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2849 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2854 $as_echo "$ac_cv_host" >&6; }
2857 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2860 ac_save_IFS=$IFS; IFS='-'
2866 # Remember, the first character of IFS is used to create $*,
2867 # except with old shells:
2870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build time linking with Python (Darwin and Win32)" >&5
2874 $as_echo_n "checking for build time linking with Python (Darwin and Win32)... " >&6; }
2876 *-*-mingw*|*-*-cygwin*)
2878 link_python_libs=yes
2883 link_python_libs=yes
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $link_python_libs" >&5
2893 $as_echo "$link_python_libs" >&6; }
2894 if test "$os_win32" = "yes"; then
2905 cat >>confdefs.h <<_ACEOF
2906 #define OS_EXT "$OS_EXT"
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2914 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2919 macro_version='2.4.2'
2920 macro_revision='1.3337'
2934 ltmain="$ac_aux_dir/ltmain.sh"
2936 # Backslashify metacharacters that are still active within
2937 # double-quoted strings.
2938 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2940 # Same as above, but do not quote variable references.
2941 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2943 # Sed substitution to delay expansion of an escaped shell variable in a
2944 # double_quote_subst'ed string.
2945 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2947 # Sed substitution to delay expansion of an escaped single quote.
2948 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2950 # Sed substitution to avoid accidental globbing in evaled expressions
2951 no_glob_subst='s/\*/\\\*/g'
2953 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2954 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2955 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2958 $as_echo_n "checking how to print strings... " >&6; }
2959 # Test print first, because it will be a builtin if present.
2960 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2961 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2963 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2966 # Use this function as a fallback that always works.
2967 func_fallback_echo ()
2969 eval 'cat <<_LTECHO_EOF
2973 ECHO='func_fallback_echo'
2976 # func_echo_all arg...
2977 # Invoke $ECHO with all args, space-separated.
2984 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2985 $as_echo "printf" >&6; } ;;
2986 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2987 $as_echo "print -r" >&6; } ;;
2988 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2989 $as_echo "cat" >&6; } ;;
3005 DEPDIR="${am__leading_dot}deps"
3007 ac_config_commands="$ac_config_commands depfiles"
3010 am_make=${MAKE-make}
3011 cat > confinc << 'END'
3013 @echo this is the am__doit target
3016 # If we don't find an include directive, just comment out the code.
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3018 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3022 # First try GNU make style include.
3023 echo "include confinc" > confmf
3024 # Ignore all kinds of additional output from `make'.
3025 case `$am_make -s -f confmf 2> /dev/null` in #(
3026 *the\ am__doit\ target*)
3032 # Now try BSD make style include.
3033 if test "$am__include" = "#"; then
3034 echo '.include "confinc"' > confmf
3035 case `$am_make -s -f confmf 2> /dev/null` in #(
3036 *the\ am__doit\ target*)
3037 am__include=.include
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3046 $as_echo "$_am_result" >&6; }
3047 rm -f confinc confmf
3049 # Check whether --enable-dependency-tracking was given.
3050 if test "${enable_dependency_tracking+set}" = set; then :
3051 enableval=$enable_dependency_tracking;
3054 if test "x$enable_dependency_tracking" != xno; then
3055 am_depcomp="$ac_aux_dir/depcomp"
3059 if test "x$enable_dependency_tracking" != xno; then
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_CC+:} false; then :
3079 $as_echo_n "(cached) " >&6
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3112 if test -z "$ac_cv_prog_CC"; then
3114 # Extract the first word of "gcc", so it can be a program name with args.
3115 set dummy gcc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3121 if test -n "$ac_ct_CC"; then
3122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_ac_ct_CC="gcc"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142 if test -n "$ac_ct_CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144 $as_echo "$ac_ct_CC" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3150 if test "x$ac_ct_CC" = x; then
3153 case $cross_compiling:$ac_tool_warned in
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3165 if test -z "$CC"; then
3166 if test -n "$ac_tool_prefix"; then
3167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}cc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_CC+:} false; then :
3172 $as_echo_n "(cached) " >&6
3174 if test -n "$CC"; then
3175 ac_cv_prog_CC="$CC" # Let the user override the test.
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_CC="${ac_tool_prefix}cc"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 if test -n "$CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3206 if test -z "$CC"; then
3207 # Extract the first word of "cc", so it can be a program name with args.
3208 set dummy cc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_CC+:} false; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 test -z "$as_dir" && as_dir=.
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3226 ac_prog_rejected=yes
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 if test $ac_prog_rejected = yes; then
3238 # We found a bogon in the path, so make sure we never use it.
3239 set dummy $ac_cv_prog_CC
3241 if test $# != 0; then
3242 # We chose a different compiler from the bogus one.
3243 # However, it has the same basename, so the bogon will be chosen
3244 # first if we set CC to just the basename; use the full file name.
3246 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3262 if test -z "$CC"; then
3263 if test -n "$ac_tool_prefix"; then
3264 for ac_prog in cl.exe
3266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3303 test -n "$CC" && break
3306 if test -z "$CC"; then
3308 for ac_prog in cl.exe
3310 # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3315 $as_echo_n "(cached) " >&6
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="$ac_prog"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340 $as_echo "$ac_ct_CC" >&6; }
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3347 test -n "$ac_ct_CC" && break
3350 if test "x$ac_ct_CC" = x; then
3353 case $cross_compiling:$ac_tool_warned in
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error $? "no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details" "$LINENO" 5; }
3371 # Provide some information about the compiler.
3372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3375 for ac_option in --version -v -V -qversion; do
3376 { { ac_try="$ac_compiler $ac_option >&5"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3385 if test -s conftest.err; then
3387 ... rest of stderr output deleted ...
3388 10q' conftest.err >conftest.er1
3389 cat conftest.er1 >&5
3391 rm -f conftest.er1 conftest.err
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3407 ac_clean_files_save=$ac_clean_files
3408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3409 # Try to create an executable without -o first, disregard a.out.
3410 # It will help us diagnose broken compilers, and finding out an intuition
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3413 $as_echo_n "checking whether the C compiler works... " >&6; }
3414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3416 # The possible output files:
3417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3420 for ac_file in $ac_files
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3429 if { { ac_try="$ac_link_default"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link_default") 2>&5
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3443 # so that the user can short-circuit this test for compilers unknown to
3445 for ac_file in $ac_files ''
3447 test -f "$ac_file" || continue
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3452 # We found the default executable, but exeext='' is most
3456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460 # We set ac_cv_exeext here because the later test for it is not
3461 # safe: cross compilers may not add the suffix if given an `-o'
3462 # argument, so we may need to know it at that point already.
3463 # Even if this section looks crufty: it has the advantage of
3470 test "$ac_cv_exeext" = no && ac_cv_exeext=
3475 if test -z "$ac_file"; then :
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error 77 "C compiler cannot create executables
3484 See \`config.log' for more details" "$LINENO" 5; }
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487 $as_echo "yes" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490 $as_echo_n "checking for C compiler default output file name... " >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3492 $as_echo "$ac_file" >&6; }
3493 ac_exeext=$ac_cv_exeext
3495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3496 ac_clean_files=$ac_clean_files_save
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3498 $as_echo_n "checking for suffix of executables... " >&6; }
3499 if { { ac_try="$ac_link"
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_link") 2>&5
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }; then :
3510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3512 # work properly (i.e., refer to `conftest.exe'), while it won't with
3514 for ac_file in conftest.exe conftest conftest.*; do
3515 test -f "$ac_file" || continue
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3527 See \`config.log' for more details" "$LINENO" 5; }
3529 rm -f conftest conftest$ac_cv_exeext
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3531 $as_echo "$ac_cv_exeext" >&6; }
3533 rm -f conftest.$ac_ext
3534 EXEEXT=$ac_cv_exeext
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3542 FILE *f = fopen ("conftest.out", "w");
3543 return ferror (f) || fclose (f) != 0;
3549 ac_clean_files="$ac_clean_files conftest.out"
3550 # Check that the compiler produces executables we can run. If not, either
3551 # the compiler is broken, or we cross compile.
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3553 $as_echo_n "checking whether we are cross compiling... " >&6; }
3554 if test "$cross_compiling" != yes; then
3555 { { ac_try="$ac_link"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_link") 2>&5
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }
3566 if { ac_try='./conftest$ac_cv_exeext'
3567 { { case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_try") 2>&5
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }; }; then
3579 if test "$cross_compiling" = maybe; then
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot run C compiled programs.
3585 If you meant to cross compile, use \`--host'.
3586 See \`config.log' for more details" "$LINENO" 5; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3591 $as_echo "$cross_compiling" >&6; }
3593 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3594 ac_clean_files=$ac_clean_files_save
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3596 $as_echo_n "checking for suffix of object files... " >&6; }
3597 if ${ac_cv_objext+:} false; then :
3598 $as_echo_n "(cached) " >&6
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 rm -f conftest.o conftest.obj
3612 if { { ac_try="$ac_compile"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_compile") 2>&5
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 for ac_file in conftest.o conftest.obj conftest.*; do
3624 test -f "$ac_file" || continue;
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "cannot compute suffix of object files: cannot compile
3638 See \`config.log' for more details" "$LINENO" 5; }
3640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3643 $as_echo "$ac_cv_objext" >&6; }
3644 OBJEXT=$ac_cv_objext
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3648 if ${ac_cv_c_compiler_gnu+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3665 if ac_fn_c_try_compile "$LINENO"; then :
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676 if test $ac_compiler_gnu = yes; then
3681 ac_test_CFLAGS=${CFLAGS+set}
3682 ac_save_CFLAGS=$CFLAGS
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3685 if ${ac_cv_prog_cc_g+:} false; then :
3686 $as_echo_n "(cached) " >&6
3688 ac_save_c_werror_flag=$ac_c_werror_flag
3689 ac_c_werror_flag=yes
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3703 if ac_fn_c_try_compile "$LINENO"; then :
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3718 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_c_werror_flag=$ac_save_c_werror_flag
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3734 if ac_fn_c_try_compile "$LINENO"; then :
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_c_werror_flag=$ac_save_c_werror_flag
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3745 $as_echo "$ac_cv_prog_cc_g" >&6; }
3746 if test "$ac_test_CFLAGS" = set; then
3747 CFLAGS=$ac_save_CFLAGS
3748 elif test $ac_cv_prog_cc_g = yes; then
3749 if test "$GCC" = yes; then
3755 if test "$GCC" = yes; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3763 if ${ac_cv_prog_cc_c89+:} false; then :
3764 $as_echo_n "(cached) " >&6
3766 ac_cv_prog_cc_c89=no
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3774 struct buf { int x; };
3775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3776 static char *e (p, i)
3782 static char *f (char * (*g) (char **, int), char **p, ...)
3787 s = g (p, va_arg (v,int));
3792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3793 function prototypes and stuff, but not '\xHH' hex character constants.
3794 These don't provoke an error unfortunately, instead are silently treated
3795 as 'x'. The following induces an error, until -std is added to get
3796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3797 array size at least. It's necessary to write '\x00'==0 to get something
3798 that's true only with -std. */
3799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3801 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3802 inside strings and character constants. */
3804 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3806 int test (int i, double x);
3807 struct s1 {int (*f) (int a);};
3808 struct s2 {int (*f) (double a);};
3809 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3815 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3820 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3823 CC="$ac_save_CC $ac_arg"
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_cv_prog_cc_c89=$ac_arg
3827 rm -f core conftest.err conftest.$ac_objext
3828 test "x$ac_cv_prog_cc_c89" != "xno" && break
3830 rm -f conftest.$ac_ext
3835 case "x$ac_cv_prog_cc_c89" in
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3838 $as_echo "none needed" >&6; } ;;
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3841 $as_echo "unsupported" >&6; } ;;
3843 CC="$CC $ac_cv_prog_cc_c89"
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3847 if test "x$ac_cv_prog_cc_c89" != xno; then :
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857 depcc="$CC" am_compiler_list=
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3860 $as_echo_n "checking dependency style of $depcc... " >&6; }
3861 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3862 $as_echo_n "(cached) " >&6
3864 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3865 # We make a subdir and do the tests there. Otherwise we can end up
3866 # making bogus files that we don't know about and never remove. For
3867 # instance it was reported that on HP-UX the gcc test will end up
3868 # making a dummy file named `D' -- because `-MD' means `put the output
3872 # Copy depcomp to subdir because otherwise we won't find it if we're
3873 # using a relative directory.
3874 cp "$am_depcomp" conftest.dir
3876 # We will build objects and dependencies in a subdirectory because
3877 # it helps to detect inapplicable dependency modes. For instance
3878 # both Tru64's cc and ICC support -MD to output dependencies as a
3879 # side effect of compilation, but ICC will put the dependencies in
3880 # the current directory while Tru64 will put them in the object
3884 am_cv_CC_dependencies_compiler_type=none
3885 if test "$am_compiler_list" = ""; then
3886 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3889 case " $depcc " in #(
3890 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3893 for depmode in $am_compiler_list; do
3894 # Setup a source with many dependencies, because some compilers
3895 # like to wrap large dependency lists on column 80 (with \), and
3896 # we should not choose a depcomp mode which is confused by this.
3898 # We need to recreate these files for each test, as the compiler may
3899 # overwrite some of them when testing with obscure command lines.
3900 # This happens at least with the AIX C compiler.
3902 for i in 1 2 3 4 5 6; do
3903 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3904 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3905 # Solaris 8's {/usr,}/bin/sh.
3906 touch sub/conftst$i.h
3908 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3910 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3911 # mode. It turns out that the SunPro C++ compiler does not properly
3912 # handle `-M -o', and we need to detect this. Also, some Intel
3913 # versions had trouble with output in subdirs
3914 am__obj=sub/conftest.${OBJEXT-o}
3915 am__minus_obj="-o $am__obj"
3918 # This depmode causes a compiler race in universal mode.
3919 test "$am__universal" = false || continue
3922 # after this tag, mechanisms are not by side-effect, so they'll
3923 # only be used when explicitly requested
3924 if test "x$enable_dependency_tracking" = xyes; then
3930 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3931 # This compiler won't grok `-c -o', but also, the minuso test has
3932 # not run yet. These depmodes are late enough in the game, and
3933 # so weak that their functioning should not be impacted.
3934 am__obj=conftest.${OBJEXT-o}
3939 if depmode=$depmode \
3940 source=sub/conftest.c object=$am__obj \
3941 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3942 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3943 >/dev/null 2>conftest.err &&
3944 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3945 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3946 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3947 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3948 # icc doesn't choke on unknown options, it will just issue warnings
3949 # or remarks (even with -Werror). So we grep stderr for any message
3950 # that says an option was ignored or not supported.
3951 # When given -MP, icc 7.0 and 7.1 complain thusly:
3952 # icc: Command line warning: ignoring option '-M'; no argument required
3953 # The diagnosis changed in icc 8.0:
3954 # icc: Command line remark: option '-MP' not supported
3955 if (grep 'ignoring option' conftest.err ||
3956 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3957 am_cv_CC_dependencies_compiler_type=$depmode
3966 am_cv_CC_dependencies_compiler_type=none
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3971 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3972 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3975 test "x$enable_dependency_tracking" != xno \
3976 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3978 am__fastdepCC_FALSE='#'
3980 am__fastdepCC_TRUE='#'
3981 am__fastdepCC_FALSE=
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3986 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3987 if ${ac_cv_path_SED+:} false; then :
3988 $as_echo_n "(cached) " >&6
3990 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3991 for ac_i in 1 2 3 4 5 6 7; do
3992 ac_script="$ac_script$as_nl$ac_script"
3994 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3995 { ac_script=; unset ac_script;}
3996 if test -z "$SED"; then
3997 ac_path_SED_found=false
3998 # Loop through the user's path and test for each of PROGNAME-LIST
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir=.
4004 for ac_prog in sed gsed; do
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4007 as_fn_executable_p "$ac_path_SED" || continue
4008 # Check for GNU ac_path_SED and select it if it is found.
4009 # Check for GNU $ac_path_SED
4010 case `"$ac_path_SED" --version 2>&1` in
4012 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4015 $as_echo_n 0123456789 >"conftest.in"
4018 cat "conftest.in" "conftest.in" >"conftest.tmp"
4019 mv "conftest.tmp" "conftest.in"
4020 cp "conftest.in" "conftest.nl"
4021 $as_echo '' >> "conftest.nl"
4022 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4024 as_fn_arith $ac_count + 1 && ac_count=$as_val
4025 if test $ac_count -gt ${ac_path_SED_max-0}; then
4026 # Best one so far, save it but keep looking for a better one
4027 ac_cv_path_SED="$ac_path_SED"
4028 ac_path_SED_max=$ac_count
4030 # 10*(2^10) chars as input seems more than enough
4031 test $ac_count -gt 10 && break
4033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036 $ac_path_SED_found && break 3
4041 if test -z "$ac_cv_path_SED"; then
4042 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4050 $as_echo "$ac_cv_path_SED" >&6; }
4051 SED="$ac_cv_path_SED"
4054 test -z "$SED" && SED=sed
4055 Xsed="$SED -e 1s/^X//"
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4068 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4069 if ${ac_cv_path_GREP+:} false; then :
4070 $as_echo_n "(cached) " >&6
4072 if test -z "$GREP"; then
4073 ac_path_GREP_found=false
4074 # Loop through the user's path and test for each of PROGNAME-LIST
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079 test -z "$as_dir" && as_dir=.
4080 for ac_prog in grep ggrep; do
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4083 as_fn_executable_p "$ac_path_GREP" || continue
4084 # Check for GNU ac_path_GREP and select it if it is found.
4085 # Check for GNU $ac_path_GREP
4086 case `"$ac_path_GREP" --version 2>&1` in
4088 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4091 $as_echo_n 0123456789 >"conftest.in"
4094 cat "conftest.in" "conftest.in" >"conftest.tmp"
4095 mv "conftest.tmp" "conftest.in"
4096 cp "conftest.in" "conftest.nl"
4097 $as_echo 'GREP' >> "conftest.nl"
4098 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4100 as_fn_arith $ac_count + 1 && ac_count=$as_val
4101 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4102 # Best one so far, save it but keep looking for a better one
4103 ac_cv_path_GREP="$ac_path_GREP"
4104 ac_path_GREP_max=$ac_count
4106 # 10*(2^10) chars as input seems more than enough
4107 test $ac_count -gt 10 && break
4109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112 $ac_path_GREP_found && break 3
4117 if test -z "$ac_cv_path_GREP"; then
4118 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4121 ac_cv_path_GREP=$GREP
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4126 $as_echo "$ac_cv_path_GREP" >&6; }
4127 GREP="$ac_cv_path_GREP"
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4131 $as_echo_n "checking for egrep... " >&6; }
4132 if ${ac_cv_path_EGREP+:} false; then :
4133 $as_echo_n "(cached) " >&6
4135 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4136 then ac_cv_path_EGREP="$GREP -E"
4138 if test -z "$EGREP"; then
4139 ac_path_EGREP_found=false
4140 # Loop through the user's path and test for each of PROGNAME-LIST
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4145 test -z "$as_dir" && as_dir=.
4146 for ac_prog in egrep; do
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4149 as_fn_executable_p "$ac_path_EGREP" || continue
4150 # Check for GNU ac_path_EGREP and select it if it is found.
4151 # Check for GNU $ac_path_EGREP
4152 case `"$ac_path_EGREP" --version 2>&1` in
4154 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4157 $as_echo_n 0123456789 >"conftest.in"
4160 cat "conftest.in" "conftest.in" >"conftest.tmp"
4161 mv "conftest.tmp" "conftest.in"
4162 cp "conftest.in" "conftest.nl"
4163 $as_echo 'EGREP' >> "conftest.nl"
4164 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4165 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4166 as_fn_arith $ac_count + 1 && ac_count=$as_val
4167 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4168 # Best one so far, save it but keep looking for a better one
4169 ac_cv_path_EGREP="$ac_path_EGREP"
4170 ac_path_EGREP_max=$ac_count
4172 # 10*(2^10) chars as input seems more than enough
4173 test $ac_count -gt 10 && break
4175 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4178 $ac_path_EGREP_found && break 3
4183 if test -z "$ac_cv_path_EGREP"; then
4184 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4187 ac_cv_path_EGREP=$EGREP
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4193 $as_echo "$ac_cv_path_EGREP" >&6; }
4194 EGREP="$ac_cv_path_EGREP"
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4198 $as_echo_n "checking for fgrep... " >&6; }
4199 if ${ac_cv_path_FGREP+:} false; then :
4200 $as_echo_n "(cached) " >&6
4202 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4203 then ac_cv_path_FGREP="$GREP -F"
4205 if test -z "$FGREP"; then
4206 ac_path_FGREP_found=false
4207 # Loop through the user's path and test for each of PROGNAME-LIST
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4212 test -z "$as_dir" && as_dir=.
4213 for ac_prog in fgrep; do
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4216 as_fn_executable_p "$ac_path_FGREP" || continue
4217 # Check for GNU ac_path_FGREP and select it if it is found.
4218 # Check for GNU $ac_path_FGREP
4219 case `"$ac_path_FGREP" --version 2>&1` in
4221 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4224 $as_echo_n 0123456789 >"conftest.in"
4227 cat "conftest.in" "conftest.in" >"conftest.tmp"
4228 mv "conftest.tmp" "conftest.in"
4229 cp "conftest.in" "conftest.nl"
4230 $as_echo 'FGREP' >> "conftest.nl"
4231 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4233 as_fn_arith $ac_count + 1 && ac_count=$as_val
4234 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4235 # Best one so far, save it but keep looking for a better one
4236 ac_cv_path_FGREP="$ac_path_FGREP"
4237 ac_path_FGREP_max=$ac_count
4239 # 10*(2^10) chars as input seems more than enough
4240 test $ac_count -gt 10 && break
4242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4245 $ac_path_FGREP_found && break 3
4250 if test -z "$ac_cv_path_FGREP"; then
4251 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4254 ac_cv_path_FGREP=$FGREP
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4260 $as_echo "$ac_cv_path_FGREP" >&6; }
4261 FGREP="$ac_cv_path_FGREP"
4264 test -z "$GREP" && GREP=grep
4284 # Check whether --with-gnu-ld was given.
4285 if test "${with_gnu_ld+set}" = set; then :
4286 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4292 if test "$GCC" = yes; then
4293 # Check if gcc -print-prog-name=ld gives a path.
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4295 $as_echo_n "checking for ld used by $CC... " >&6; }
4298 # gcc leaves a trailing carriage return which upsets mingw
4299 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4301 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4304 # Accept absolute paths.
4306 re_direlt='/[^/][^/]*/\.\./'
4307 # Canonicalize the pathname of ld
4308 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4309 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4310 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4312 test -z "$LD" && LD="$ac_prog"
4315 # If it fails, then pretend we aren't using GCC.
4319 # If it is relative, then search for the first ld in PATH.
4323 elif test "$with_gnu_ld" = yes; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4325 $as_echo_n "checking for GNU ld... " >&6; }
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4328 $as_echo_n "checking for non-GNU ld... " >&6; }
4330 if ${lt_cv_path_LD+:} false; then :
4331 $as_echo_n "(cached) " >&6
4333 if test -z "$LD"; then
4334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4335 for ac_dir in $PATH; do
4337 test -z "$ac_dir" && ac_dir=.
4338 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4339 lt_cv_path_LD="$ac_dir/$ac_prog"
4340 # Check to see if the program is GNU ld. I'd rather use --version,
4341 # but apparently some variants of GNU ld only accept -v.
4342 # Break only if it was the GNU/non-GNU ld that we prefer.
4343 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4344 *GNU* | *'with BFD'*)
4345 test "$with_gnu_ld" != no && break
4348 test "$with_gnu_ld" != yes && break
4355 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4360 if test -n "$LD"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4362 $as_echo "$LD" >&6; }
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4367 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4369 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4370 if ${lt_cv_prog_gnu_ld+:} false; then :
4371 $as_echo_n "(cached) " >&6
4373 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4374 case `$LD -v 2>&1 </dev/null` in
4375 *GNU* | *'with BFD'*)
4376 lt_cv_prog_gnu_ld=yes
4379 lt_cv_prog_gnu_ld=no
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4384 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4385 with_gnu_ld=$lt_cv_prog_gnu_ld
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4396 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4397 if ${lt_cv_path_NM+:} false; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -n "$NM"; then
4401 # Let the user override the test.
4404 lt_nm_to_check="${ac_tool_prefix}nm"
4405 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4406 lt_nm_to_check="$lt_nm_to_check nm"
4408 for lt_tmp_nm in $lt_nm_to_check; do
4409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4410 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4412 test -z "$ac_dir" && ac_dir=.
4413 tmp_nm="$ac_dir/$lt_tmp_nm"
4414 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4415 # Check to see if the nm accepts a BSD-compat flag.
4416 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4417 # nm: unknown option "B" ignored
4418 # Tru64's nm complains that /dev/null is an invalid object file
4419 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4420 */dev/null* | *'Invalid file or object type'*)
4421 lt_cv_path_NM="$tmp_nm -B"
4425 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4427 lt_cv_path_NM="$tmp_nm -p"
4431 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4432 continue # so that we can try to find one that supports BSD flags
4441 : ${lt_cv_path_NM=no}
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4445 $as_echo "$lt_cv_path_NM" >&6; }
4446 if test "$lt_cv_path_NM" != "no"; then
4449 # Didn't find any BSD compatible name lister, look for dumpbin.
4450 if test -n "$DUMPBIN"; then :
4451 # Let the user override the test.
4453 if test -n "$ac_tool_prefix"; then
4454 for ac_prog in dumpbin "link -dump"
4456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_DUMPBIN+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 if test -n "$DUMPBIN"; then
4464 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 test -z "$as_dir" && as_dir=.
4471 for ac_exec_ext in '' $ac_executable_extensions; do
4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 DUMPBIN=$ac_cv_prog_DUMPBIN
4484 if test -n "$DUMPBIN"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4486 $as_echo "$DUMPBIN" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4493 test -n "$DUMPBIN" && break
4496 if test -z "$DUMPBIN"; then
4497 ac_ct_DUMPBIN=$DUMPBIN
4498 for ac_prog in dumpbin "link -dump"
4500 # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 if test -n "$ac_ct_DUMPBIN"; then
4508 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4528 if test -n "$ac_ct_DUMPBIN"; then
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4530 $as_echo "$ac_ct_DUMPBIN" >&6; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4537 test -n "$ac_ct_DUMPBIN" && break
4540 if test "x$ac_ct_DUMPBIN" = x; then
4543 case $cross_compiling:$ac_tool_warned in
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547 ac_tool_warned=yes ;;
4549 DUMPBIN=$ac_ct_DUMPBIN
4553 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4555 DUMPBIN="$DUMPBIN -symbols"
4563 if test "$DUMPBIN" != ":"; then
4567 test -z "$NM" && NM=nm
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4575 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4576 if ${lt_cv_nm_interface+:} false; then :
4577 $as_echo_n "(cached) " >&6
4579 lt_cv_nm_interface="BSD nm"
4580 echo "int some_variable = 0;" > conftest.$ac_ext
4581 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4582 (eval "$ac_compile" 2>conftest.err)
4583 cat conftest.err >&5
4584 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4585 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4586 cat conftest.err >&5
4587 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4588 cat conftest.out >&5
4589 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4590 lt_cv_nm_interface="MS dumpbin"
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4595 $as_echo "$lt_cv_nm_interface" >&6; }
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4598 $as_echo_n "checking whether ln -s works... " >&6; }
4600 if test "$LN_S" = "ln -s"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602 $as_echo "yes" >&6; }
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4605 $as_echo "no, using $LN_S" >&6; }
4608 # find the maximum length of command line arguments
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4610 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4611 if ${lt_cv_sys_max_cmd_len+:} false; then :
4612 $as_echo_n "(cached) " >&6
4619 # On DJGPP, this test can blow up pretty badly due to problems in libc
4620 # (any single argument exceeding 2000 bytes causes a buffer overrun
4621 # during glob expansion). Even if it were fixed, the result of this
4622 # check would be larger than it should be.
4623 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4627 # Under GNU Hurd, this test is not required because there is
4628 # no limit to the length of command line arguments.
4629 # Libtool will interpret -1 as no limit whatsoever
4630 lt_cv_sys_max_cmd_len=-1;
4633 cygwin* | mingw* | cegcc*)
4634 # On Win9x/ME, this test blows up -- it succeeds, but takes
4635 # about 5 minutes as the teststring grows exponentially.
4636 # Worse, since 9x/ME are not pre-emptively multitasking,
4637 # you end up with a "frozen" computer, even though with patience
4638 # the test eventually succeeds (with a max line length of 256k).
4639 # Instead, let's just punt: use the minimum linelength reported by
4640 # all of the supported platforms: 8192 (on NT/2K/XP).
4641 lt_cv_sys_max_cmd_len=8192;
4645 # On MiNT this can take a long time and run out of memory.
4646 lt_cv_sys_max_cmd_len=8192;
4650 # On AmigaOS with pdksh, this test takes hours, literally.
4651 # So we just punt and use a minimum line length of 8192.
4652 lt_cv_sys_max_cmd_len=8192;
4655 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4656 # This has been around since 386BSD, at least. Likely further.
4657 if test -x /sbin/sysctl; then
4658 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4659 elif test -x /usr/sbin/sysctl; then
4660 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4662 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4664 # And add a safety zone
4665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4670 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4671 lt_cv_sys_max_cmd_len=196608
4675 # The test takes a long time on OS/2.
4676 lt_cv_sys_max_cmd_len=8192
4680 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4681 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4682 # nice to cause kernel panics so lets avoid the loop below.
4683 # First set a reasonable default.
4684 lt_cv_sys_max_cmd_len=16384
4686 if test -x /sbin/sysconfig; then
4687 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4688 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4693 lt_cv_sys_max_cmd_len=102400
4695 sysv5* | sco5v6* | sysv4.2uw2*)
4696 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4697 if test -n "$kargmax"; then
4698 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4700 lt_cv_sys_max_cmd_len=32768
4704 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4705 if test -n "$lt_cv_sys_max_cmd_len"; then
4706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4709 # Make teststring a little bigger before we do anything with it.
4710 # a 1K string should be a reasonable start.
4711 for i in 1 2 3 4 5 6 7 8 ; do
4712 teststring=$teststring$teststring
4714 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4715 # If test is not a shell built-in, we'll probably end up computing a
4716 # maximum length that is only half of the actual maximum length, but
4718 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4719 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4720 test $i != 17 # 1/2 MB should be enough
4723 teststring=$teststring$teststring
4725 # Only check the string length outside the loop.
4726 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4728 # Add a significant safety factor because C++ compilers can tack on
4729 # massive amounts of additional arguments before passing them to the
4730 # linker. It appears as though 1/2 is a usable value.
4731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4738 if test -n $lt_cv_sys_max_cmd_len ; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4740 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4743 $as_echo "none" >&6; }
4745 max_cmd_len=$lt_cv_sys_max_cmd_len
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4757 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4758 # Try some XSI features
4761 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4763 && eval 'test $(( 1 + 1 )) -eq 2 \
4764 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4767 $as_echo "$xsi_shell" >&6; }
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4771 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4773 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4775 && lt_shell_append=yes
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4777 $as_echo "$lt_shell_append" >&6; }
4780 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4790 # test EBCDIC or ASCII
4791 case `echo X|tr X '\101'` in
4792 A) # ASCII based system
4793 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4794 lt_SP2NL='tr \040 \012'
4795 lt_NL2SP='tr \015\012 \040\040'
4797 *) # EBCDIC based system
4798 lt_SP2NL='tr \100 \n'
4799 lt_NL2SP='tr \r\n \100\100'
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4812 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4813 if ${lt_cv_to_host_file_cmd+:} false; then :
4814 $as_echo_n "(cached) " >&6
4819 *-*-mingw* ) # actually msys
4820 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4823 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4825 * ) # otherwise, assume *nix
4826 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4832 *-*-mingw* ) # actually msys
4833 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4836 lt_cv_to_host_file_cmd=func_convert_file_noop
4838 * ) # otherwise, assume *nix
4839 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4843 * ) # unhandled hosts (and "normal" native builds)
4844 lt_cv_to_host_file_cmd=func_convert_file_noop
4850 to_host_file_cmd=$lt_cv_to_host_file_cmd
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4852 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4859 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4860 if ${lt_cv_to_tool_file_cmd+:} false; then :
4861 $as_echo_n "(cached) " >&6
4863 #assume ordinary cross tools, or native build.
4864 lt_cv_to_tool_file_cmd=func_convert_file_noop
4868 *-*-mingw* ) # actually msys
4869 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4877 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4879 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4886 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4887 if ${lt_cv_ld_reload_flag+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 lt_cv_ld_reload_flag='-r'
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4893 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4894 reload_flag=$lt_cv_ld_reload_flag
4895 case $reload_flag in
4897 *) reload_flag=" $reload_flag" ;;
4899 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4901 cygwin* | mingw* | pw32* | cegcc*)
4902 if test "$GCC" != yes; then
4907 if test "$GCC" = yes; then
4908 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4910 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4923 if test -n "$ac_tool_prefix"; then
4924 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4925 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_OBJDUMP+:} false; then :
4929 $as_echo_n "(cached) " >&6
4931 if test -n "$OBJDUMP"; then
4932 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 OBJDUMP=$ac_cv_prog_OBJDUMP
4952 if test -n "$OBJDUMP"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4954 $as_echo "$OBJDUMP" >&6; }
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4962 if test -z "$ac_cv_prog_OBJDUMP"; then
4963 ac_ct_OBJDUMP=$OBJDUMP
4964 # Extract the first word of "objdump", so it can be a program name with args.
4965 set dummy objdump; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4969 $as_echo_n "(cached) " >&6
4971 if test -n "$ac_ct_OBJDUMP"; then
4972 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4992 if test -n "$ac_ct_OBJDUMP"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4994 $as_echo "$ac_ct_OBJDUMP" >&6; }
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5000 if test "x$ac_ct_OBJDUMP" = x; then
5003 case $cross_compiling:$ac_tool_warned in
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5007 ac_tool_warned=yes ;;
5009 OBJDUMP=$ac_ct_OBJDUMP
5012 OBJDUMP="$ac_cv_prog_OBJDUMP"
5015 test -z "$OBJDUMP" && OBJDUMP=objdump
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5023 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5024 if ${lt_cv_deplibs_check_method+:} false; then :
5025 $as_echo_n "(cached) " >&6
5027 lt_cv_file_magic_cmd='$MAGIC_CMD'
5028 lt_cv_file_magic_test_file=
5029 lt_cv_deplibs_check_method='unknown'
5030 # Need to set the preceding variable on all platforms that support
5031 # interlibrary dependencies.
5032 # 'none' -- dependencies not supported.
5033 # `unknown' -- same as none, but documents that we really don't know.
5034 # 'pass_all' -- all dependencies passed with no checks.
5035 # 'test_compile' -- check by making test program.
5036 # 'file_magic [[regex]]' -- check by looking for files in library path
5037 # which responds to the $file_magic_cmd with a given extended regex.
5038 # If you have `file' or equivalent on your system and you're not sure
5039 # whether `pass_all' will *always* work, you probably want this one.
5043 lt_cv_deplibs_check_method=pass_all
5047 lt_cv_deplibs_check_method=pass_all
5051 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5052 lt_cv_file_magic_cmd='/usr/bin/file -L'
5053 lt_cv_file_magic_test_file=/shlib/libc.so
5057 # func_win32_libid is a shell function defined in ltmain.sh
5058 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5059 lt_cv_file_magic_cmd='func_win32_libid'
5063 # Base MSYS/MinGW do not provide the 'file' command needed by
5064 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5065 # unless we find 'file', for example because we are cross-compiling.
5066 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5067 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5068 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5069 lt_cv_file_magic_cmd='func_win32_libid'
5071 # Keep this pattern in sync with the one in func_win32_libid.
5072 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5073 lt_cv_file_magic_cmd='$OBJDUMP -f'
5078 # use the weaker test based on 'objdump'. See mingw*.
5079 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5080 lt_cv_file_magic_cmd='$OBJDUMP -f'
5083 darwin* | rhapsody*)
5084 lt_cv_deplibs_check_method=pass_all
5087 freebsd* | dragonfly*)
5088 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5091 # Not sure whether the presence of OpenBSD here was a mistake.
5092 # Let's accept both of them until this is cleared up.
5093 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5094 lt_cv_file_magic_cmd=/usr/bin/file
5095 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5099 lt_cv_deplibs_check_method=pass_all
5104 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)
5146 lt_cv_deplibs_check_method=pass_all
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*|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 LD="${LD-ld} -m elf_i386"
6242 powerpc64le-*linux*)
6243 LD="${LD-ld} -m elf32lppclinux"
6246 LD="${LD-ld} -m elf32ppclinux"
6249 LD="${LD-ld} -m elf_s390"
6252 LD="${LD-ld} -m elf32_sparc"
6258 x86_64-*kfreebsd*-gnu)
6259 LD="${LD-ld} -m elf_x86_64_fbsd"
6262 LD="${LD-ld} -m elf_x86_64"
6265 LD="${LD-ld} -m elf64lppc"
6268 LD="${LD-ld} -m elf64ppc"
6270 s390*-*linux*|s390*-*tpf*)
6271 LD="${LD-ld} -m elf64_s390"
6274 LD="${LD-ld} -m elf64_sparc"
6284 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6285 SAVE_CFLAGS="$CFLAGS"
6286 CFLAGS="$CFLAGS -belf"
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6288 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6289 if ${lt_cv_cc_needs_belf+:} false; then :
6290 $as_echo_n "(cached) " >&6
6293 ac_cpp='$CPP $CPPFLAGS'
6294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6309 if ac_fn_c_try_link "$LINENO"; then :
6310 lt_cv_cc_needs_belf=yes
6312 lt_cv_cc_needs_belf=no
6314 rm -f core conftest.err conftest.$ac_objext \
6315 conftest$ac_exeext conftest.$ac_ext
6317 ac_cpp='$CPP $CPPFLAGS'
6318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6324 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6325 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6326 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6327 CFLAGS="$SAVE_CFLAGS"
6331 # Find out which ABI we are using.
6332 echo 'int i;' > conftest.$ac_ext
6333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6334 (eval $ac_compile) 2>&5
6336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6337 test $ac_status = 0; }; then
6338 case `/usr/bin/file conftest.o` in
6340 case $lt_cv_prog_gnu_ld in
6344 LD="${LD-ld} -m elf_x86_64"
6347 LD="${LD-ld} -m elf64_sparc"
6350 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6351 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6356 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6368 need_locks="$enable_libtool_lock"
6370 if test -n "$ac_tool_prefix"; then
6371 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6372 set dummy ${ac_tool_prefix}mt; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 if test -n "$MANIFEST_TOOL"; then
6379 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6399 if test -n "$MANIFEST_TOOL"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6401 $as_echo "$MANIFEST_TOOL" >&6; }
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6409 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6410 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6411 # Extract the first word of "mt", so it can be a program name with args.
6412 set dummy mt; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6416 $as_echo_n "(cached) " >&6
6418 if test -n "$ac_ct_MANIFEST_TOOL"; then
6419 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6439 if test -n "$ac_ct_MANIFEST_TOOL"; then
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6441 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6447 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6450 case $cross_compiling:$ac_tool_warned in
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6456 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6459 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6462 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6464 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6465 if ${lt_cv_path_mainfest_tool+:} false; then :
6466 $as_echo_n "(cached) " >&6
6468 lt_cv_path_mainfest_tool=no
6469 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6470 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6471 cat conftest.err >&5
6472 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6473 lt_cv_path_mainfest_tool=yes
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6478 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6479 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6489 rhapsody* | darwin*)
6490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6496 $as_echo_n "(cached) " >&6
6498 if test -n "$DSYMUTIL"; then
6499 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6519 if test -n "$DSYMUTIL"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6521 $as_echo "$DSYMUTIL" >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6529 if test -z "$ac_cv_prog_DSYMUTIL"; then
6530 ac_ct_DSYMUTIL=$DSYMUTIL
6531 # Extract the first word of "dsymutil", so it can be a program name with args.
6532 set dummy dsymutil; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6536 $as_echo_n "(cached) " >&6
6538 if test -n "$ac_ct_DSYMUTIL"; then
6539 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6559 if test -n "$ac_ct_DSYMUTIL"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6561 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6567 if test "x$ac_ct_DSYMUTIL" = x; then
6570 case $cross_compiling:$ac_tool_warned in
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574 ac_tool_warned=yes ;;
6576 DSYMUTIL=$ac_ct_DSYMUTIL
6579 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6582 if test -n "$ac_tool_prefix"; then
6583 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6584 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if ${ac_cv_prog_NMEDIT+:} false; then :
6588 $as_echo_n "(cached) " >&6
6590 if test -n "$NMEDIT"; then
6591 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6600 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 NMEDIT=$ac_cv_prog_NMEDIT
6611 if test -n "$NMEDIT"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6613 $as_echo "$NMEDIT" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6621 if test -z "$ac_cv_prog_NMEDIT"; then
6622 ac_ct_NMEDIT=$NMEDIT
6623 # Extract the first word of "nmedit", so it can be a program name with args.
6624 set dummy nmedit; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 if test -n "$ac_ct_NMEDIT"; then
6631 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6651 if test -n "$ac_ct_NMEDIT"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6653 $as_echo "$ac_ct_NMEDIT" >&6; }
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6659 if test "x$ac_ct_NMEDIT" = x; then
6662 case $cross_compiling:$ac_tool_warned in
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6666 ac_tool_warned=yes ;;
6668 NMEDIT=$ac_ct_NMEDIT
6671 NMEDIT="$ac_cv_prog_NMEDIT"
6674 if test -n "$ac_tool_prefix"; then
6675 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6676 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if ${ac_cv_prog_LIPO+:} false; then :
6680 $as_echo_n "(cached) " >&6
6682 if test -n "$LIPO"; then
6683 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6692 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 LIPO=$ac_cv_prog_LIPO
6703 if test -n "$LIPO"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6705 $as_echo "$LIPO" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6713 if test -z "$ac_cv_prog_LIPO"; then
6715 # Extract the first word of "lipo", so it can be a program name with args.
6716 set dummy lipo; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6720 $as_echo_n "(cached) " >&6
6722 if test -n "$ac_ct_LIPO"; then
6723 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732 ac_cv_prog_ac_ct_LIPO="lipo"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6743 if test -n "$ac_ct_LIPO"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6745 $as_echo "$ac_ct_LIPO" >&6; }
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6751 if test "x$ac_ct_LIPO" = x; then
6754 case $cross_compiling:$ac_tool_warned in
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6758 ac_tool_warned=yes ;;
6763 LIPO="$ac_cv_prog_LIPO"
6766 if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}otool; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if ${ac_cv_prog_OTOOL+:} false; then :
6772 $as_echo_n "(cached) " >&6
6774 if test -n "$OTOOL"; then
6775 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 OTOOL=$ac_cv_prog_OTOOL
6795 if test -n "$OTOOL"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6797 $as_echo "$OTOOL" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6805 if test -z "$ac_cv_prog_OTOOL"; then
6807 # Extract the first word of "otool", so it can be a program name with args.
6808 set dummy otool; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6812 $as_echo_n "(cached) " >&6
6814 if test -n "$ac_ct_OTOOL"; then
6815 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_ac_ct_OTOOL="otool"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6835 if test -n "$ac_ct_OTOOL"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6837 $as_echo "$ac_ct_OTOOL" >&6; }
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6843 if test "x$ac_ct_OTOOL" = x; then
6846 case $cross_compiling:$ac_tool_warned in
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6855 OTOOL="$ac_cv_prog_OTOOL"
6858 if test -n "$ac_tool_prefix"; then
6859 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_prog_OTOOL64+:} false; then :
6864 $as_echo_n "(cached) " >&6
6866 if test -n "$OTOOL64"; then
6867 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 OTOOL64=$ac_cv_prog_OTOOL64
6887 if test -n "$OTOOL64"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6889 $as_echo "$OTOOL64" >&6; }
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6897 if test -z "$ac_cv_prog_OTOOL64"; then
6898 ac_ct_OTOOL64=$OTOOL64
6899 # Extract the first word of "otool64", so it can be a program name with args.
6900 set dummy otool64; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6904 $as_echo_n "(cached) " >&6
6906 if test -n "$ac_ct_OTOOL64"; then
6907 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916 ac_cv_prog_ac_ct_OTOOL64="otool64"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6927 if test -n "$ac_ct_OTOOL64"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6929 $as_echo "$ac_ct_OTOOL64" >&6; }
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6935 if test "x$ac_ct_OTOOL64" = x; then
6938 case $cross_compiling:$ac_tool_warned in
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942 ac_tool_warned=yes ;;
6944 OTOOL64=$ac_ct_OTOOL64
6947 OTOOL64="$ac_cv_prog_OTOOL64"
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6977 $as_echo_n "checking for -single_module linker flag... " >&6; }
6978 if ${lt_cv_apple_cc_single_mod+:} false; then :
6979 $as_echo_n "(cached) " >&6
6981 lt_cv_apple_cc_single_mod=no
6982 if test -z "${LT_MULTI_MODULE}"; then
6983 # By default we will add the -single_module flag. You can override
6984 # by either setting the environment variable LT_MULTI_MODULE
6985 # non-empty at configure time, or by adding -multi_module to the
6987 rm -rf libconftest.dylib*
6988 echo "int foo(void){return 1;}" > conftest.c
6989 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6990 -dynamiclib -Wl,-single_module conftest.c" >&5
6991 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6992 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6994 # If there is a non-empty error log, and "single_module"
6995 # appears in it, assume the flag caused a linker warning
6996 if test -s conftest.err && $GREP single_module conftest.err; then
6997 cat conftest.err >&5
6998 # Otherwise, if the output was created with a 0 exit code from
6999 # the compiler, it worked.
7000 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7001 lt_cv_apple_cc_single_mod=yes
7003 cat conftest.err >&5
7005 rm -rf libconftest.dylib*
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7010 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7013 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7014 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 lt_cv_ld_exported_symbols_list=no
7018 save_LDFLAGS=$LDFLAGS
7019 echo "_main" > conftest.sym
7020 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7032 if ac_fn_c_try_link "$LINENO"; then :
7033 lt_cv_ld_exported_symbols_list=yes
7035 lt_cv_ld_exported_symbols_list=no
7037 rm -f core conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
7039 LDFLAGS="$save_LDFLAGS"
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7043 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7046 $as_echo_n "checking for -force_load linker flag... " >&6; }
7047 if ${lt_cv_ld_force_load+:} false; then :
7048 $as_echo_n "(cached) " >&6
7050 lt_cv_ld_force_load=no
7051 cat > conftest.c << _LT_EOF
7052 int forced_loaded() { return 2;}
7054 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7055 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7056 echo "$AR cru libconftest.a conftest.o" >&5
7057 $AR cru libconftest.a conftest.o 2>&5
7058 echo "$RANLIB libconftest.a" >&5
7059 $RANLIB libconftest.a 2>&5
7060 cat > conftest.c << _LT_EOF
7061 int main() { return 0;}
7063 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7064 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7066 if test -s conftest.err && $GREP force_load conftest.err; then
7067 cat conftest.err >&5
7068 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7069 lt_cv_ld_force_load=yes
7071 cat conftest.err >&5
7073 rm -f conftest.err libconftest.a conftest conftest.c
7074 rm -rf conftest.dSYM
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7078 $as_echo "$lt_cv_ld_force_load" >&6; }
7080 rhapsody* | darwin1.[012])
7081 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7083 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7084 darwin*) # darwin 5.x on
7085 # if running on 10.5 or later, the deployment target defaults
7086 # to the OS version, if on x86, and 10.4, the deployment
7087 # target defaults to 10.4. Don't you love it?
7088 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7089 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7090 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7092 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7094 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7098 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7099 _lt_dar_single_mod='$single_module'
7101 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7102 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7104 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7106 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7107 _lt_dsymutil='~$DSYMUTIL $lib || :'
7115 ac_cpp='$CPP $CPPFLAGS'
7116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7120 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7121 # On Suns, sometimes $CPP names a directory.
7122 if test -n "$CPP" && test -d "$CPP"; then
7125 if test -z "$CPP"; then
7126 if ${ac_cv_prog_CPP+:} false; then :
7127 $as_echo_n "(cached) " >&6
7129 # Double quotes because CPP needs to be expanded
7130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7133 for ac_c_preproc_warn_flag in '' yes
7135 # Use a header file that comes with gcc, so configuring glibc
7136 # with a fresh cross-compiler works.
7137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7138 # <limits.h> exists even on freestanding compilers.
7139 # On the NeXT, cc -E runs the code through the compiler's parser,
7140 # not just through cpp. "Syntax error" is here to catch this case.
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7144 # include <limits.h>
7146 # include <assert.h>
7150 if ac_fn_c_try_cpp "$LINENO"; then :
7153 # Broken: fails on valid input.
7156 rm -f conftest.err conftest.i conftest.$ac_ext
7158 # OK, works on sane cases. Now check whether nonexistent headers
7159 # can be detected and how.
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 #include <ac_nonexistent.h>
7164 if ac_fn_c_try_cpp "$LINENO"; then :
7165 # Broken: success on invalid input.
7168 # Passes both tests.
7172 rm -f conftest.err conftest.i conftest.$ac_ext
7175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7176 rm -f conftest.i conftest.err conftest.$ac_ext
7177 if $ac_preproc_ok; then :
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7190 $as_echo "$CPP" >&6; }
7192 for ac_c_preproc_warn_flag in '' yes
7194 # Use a header file that comes with gcc, so configuring glibc
7195 # with a fresh cross-compiler works.
7196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7197 # <limits.h> exists even on freestanding compilers.
7198 # On the NeXT, cc -E runs the code through the compiler's parser,
7199 # not just through cpp. "Syntax error" is here to catch this case.
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7203 # include <limits.h>
7205 # include <assert.h>
7209 if ac_fn_c_try_cpp "$LINENO"; then :
7212 # Broken: fails on valid input.
7215 rm -f conftest.err conftest.i conftest.$ac_ext
7217 # OK, works on sane cases. Now check whether nonexistent headers
7218 # can be detected and how.
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <ac_nonexistent.h>
7223 if ac_fn_c_try_cpp "$LINENO"; then :
7224 # Broken: success on invalid input.
7227 # Passes both tests.
7231 rm -f conftest.err conftest.i conftest.$ac_ext
7234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7235 rm -f conftest.i conftest.err conftest.$ac_ext
7236 if $ac_preproc_ok; then :
7239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7241 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7242 See \`config.log' for more details" "$LINENO" 5; }
7246 ac_cpp='$CPP $CPPFLAGS'
7247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7253 $as_echo_n "checking for ANSI C header files... " >&6; }
7254 if ${ac_cv_header_stdc+:} false; then :
7255 $as_echo_n "(cached) " >&6
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7272 if ac_fn_c_try_compile "$LINENO"; then :
7273 ac_cv_header_stdc=yes
7275 ac_cv_header_stdc=no
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 if test $ac_cv_header_stdc = yes; then
7280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h. */
7286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7287 $EGREP "memchr" >/dev/null 2>&1; then :
7290 ac_cv_header_stdc=no
7296 if test $ac_cv_header_stdc = yes; then
7297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7304 $EGREP "free" >/dev/null 2>&1; then :
7307 ac_cv_header_stdc=no
7313 if test $ac_cv_header_stdc = yes; then
7314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7315 if test "$cross_compiling" = yes; then :
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7322 #if ((' ' & 0x0FF) == 0x020)
7323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7326 # define ISLOWER(c) \
7327 (('a' <= (c) && (c) <= 'i') \
7328 || ('j' <= (c) && (c) <= 'r') \
7329 || ('s' <= (c) && (c) <= 'z'))
7330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7338 for (i = 0; i < 256; i++)
7339 if (XOR (islower (i), ISLOWER (i))
7340 || toupper (i) != TOUPPER (i))
7345 if ac_fn_c_try_run "$LINENO"; then :
7348 ac_cv_header_stdc=no
7350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7351 conftest.$ac_objext conftest.beam conftest.$ac_ext
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7357 $as_echo "$ac_cv_header_stdc" >&6; }
7358 if test $ac_cv_header_stdc = yes; then
7360 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7366 inttypes.h stdint.h unistd.h
7368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7372 cat >>confdefs.h <<_ACEOF
7373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7381 for ac_header in dlfcn.h
7383 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7385 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7386 cat >>confdefs.h <<_ACEOF
7387 #define HAVE_DLFCN_H 1
7400 enable_win32_dll=yes
7403 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7404 if test -n "$ac_tool_prefix"; then
7405 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7406 set dummy ${ac_tool_prefix}as; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if ${ac_cv_prog_AS+:} false; then :
7410 $as_echo_n "(cached) " >&6
7412 if test -n "$AS"; then
7413 ac_cv_prog_AS="$AS" # Let the user override the test.
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422 ac_cv_prog_AS="${ac_tool_prefix}as"
7423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 if test -n "$AS"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7435 $as_echo "$AS" >&6; }
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7443 if test -z "$ac_cv_prog_AS"; then
7445 # Extract the first word of "as", so it can be a program name with args.
7446 set dummy as; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7450 $as_echo_n "(cached) " >&6
7452 if test -n "$ac_ct_AS"; then
7453 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462 ac_cv_prog_ac_ct_AS="as"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7473 if test -n "$ac_ct_AS"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7475 $as_echo "$ac_ct_AS" >&6; }
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7481 if test "x$ac_ct_AS" = x; then
7484 case $cross_compiling:$ac_tool_warned in
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7488 ac_tool_warned=yes ;;
7496 if test -n "$ac_tool_prefix"; then
7497 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if ${ac_cv_prog_DLLTOOL+:} false; then :
7502 $as_echo_n "(cached) " >&6
7504 if test -n "$DLLTOOL"; then
7505 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 DLLTOOL=$ac_cv_prog_DLLTOOL
7525 if test -n "$DLLTOOL"; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7527 $as_echo "$DLLTOOL" >&6; }
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530 $as_echo "no" >&6; }
7535 if test -z "$ac_cv_prog_DLLTOOL"; then
7536 ac_ct_DLLTOOL=$DLLTOOL
7537 # Extract the first word of "dlltool", so it can be a program name with args.
7538 set dummy dlltool; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7542 $as_echo_n "(cached) " >&6
7544 if test -n "$ac_ct_DLLTOOL"; then
7545 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7565 if test -n "$ac_ct_DLLTOOL"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7567 $as_echo "$ac_ct_DLLTOOL" >&6; }
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7573 if test "x$ac_ct_DLLTOOL" = x; then
7576 case $cross_compiling:$ac_tool_warned in
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7580 ac_tool_warned=yes ;;
7582 DLLTOOL=$ac_ct_DLLTOOL
7585 DLLTOOL="$ac_cv_prog_DLLTOOL"
7588 if test -n "$ac_tool_prefix"; then
7589 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7590 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if ${ac_cv_prog_OBJDUMP+:} false; then :
7594 $as_echo_n "(cached) " >&6
7596 if test -n "$OBJDUMP"; then
7597 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 OBJDUMP=$ac_cv_prog_OBJDUMP
7617 if test -n "$OBJDUMP"; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7619 $as_echo "$OBJDUMP" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7627 if test -z "$ac_cv_prog_OBJDUMP"; then
7628 ac_ct_OBJDUMP=$OBJDUMP
7629 # Extract the first word of "objdump", so it can be a program name with args.
7630 set dummy objdump; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7634 $as_echo_n "(cached) " >&6
7636 if test -n "$ac_ct_OBJDUMP"; then
7637 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7657 if test -n "$ac_ct_OBJDUMP"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7659 $as_echo "$ac_ct_OBJDUMP" >&6; }
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7665 if test "x$ac_ct_OBJDUMP" = x; then
7668 case $cross_compiling:$ac_tool_warned in
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7672 ac_tool_warned=yes ;;
7674 OBJDUMP=$ac_ct_OBJDUMP
7677 OBJDUMP="$ac_cv_prog_OBJDUMP"
7683 test -z "$AS" && AS=as
7689 test -z "$DLLTOOL" && DLLTOOL=dlltool
7695 test -z "$OBJDUMP" && OBJDUMP=objdump
7700 # Check whether --enable-static was given.
7701 if test "${enable_static+set}" = set; then :
7702 enableval=$enable_static; p=${PACKAGE-default}
7704 yes) enable_static=yes ;;
7705 no) enable_static=no ;;
7708 # Look at the argument we got. We use all the common list separators.
7709 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7710 for pkg in $enableval; do
7712 if test "X$pkg" = "X$p"; then
7734 # Check whether --enable-shared was given.
7735 if test "${enable_shared+set}" = set; then :
7736 enableval=$enable_shared; p=${PACKAGE-default}
7738 yes) enable_shared=yes ;;
7739 no) enable_shared=no ;;
7742 # Look at the argument we got. We use all the common list separators.
7743 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7744 for pkg in $enableval; do
7746 if test "X$pkg" = "X$p"; then
7767 # Check whether --with-pic was given.
7768 if test "${with_pic+set}" = set; then :
7769 withval=$with_pic; lt_p=${PACKAGE-default}
7771 yes|no) pic_mode=$withval ;;
7774 # Look at the argument we got. We use all the common list separators.
7775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7776 for lt_pkg in $withval; do
7778 if test "X$lt_pkg" = "X$lt_p"; then
7790 test -z "$pic_mode" && pic_mode=default
7798 # Check whether --enable-fast-install was given.
7799 if test "${enable_fast_install+set}" = set; then :
7800 enableval=$enable_fast_install; p=${PACKAGE-default}
7802 yes) enable_fast_install=yes ;;
7803 no) enable_fast_install=no ;;
7805 enable_fast_install=no
7806 # Look at the argument we got. We use all the common list separators.
7807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7808 for pkg in $enableval; do
7810 if test "X$pkg" = "X$p"; then
7811 enable_fast_install=yes
7818 enable_fast_install=yes
7831 # This can be used to rebuild libtool when needed
7832 LIBTOOL_DEPS="$ltmain"
7834 # Always use our own libtool.
7835 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7866 test -z "$LN_S" && LN_S="ln -s"
7881 if test -n "${ZSH_VERSION+set}" ; then
7882 setopt NO_GLOB_SUBST
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7886 $as_echo_n "checking for objdir... " >&6; }
7887 if ${lt_cv_objdir+:} false; then :
7888 $as_echo_n "(cached) " >&6
7890 rm -f .libs 2>/dev/null
7891 mkdir .libs 2>/dev/null
7892 if test -d .libs; then
7895 # MS-DOS does not allow filenames that begin with a dot.
7898 rmdir .libs 2>/dev/null
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7901 $as_echo "$lt_cv_objdir" >&6; }
7902 objdir=$lt_cv_objdir
7908 cat >>confdefs.h <<_ACEOF
7909 #define LT_OBJDIR "$lt_cv_objdir/"
7917 # AIX sometimes has problems with the GCC collect2 program. For some
7918 # reason, if we set the COLLECT_NAMES environment variable, the problems
7919 # vanish in a puff of smoke.
7920 if test "X${COLLECT_NAMES+set}" != Xset; then
7922 export COLLECT_NAMES
7929 can_build_shared=yes
7931 # All known linkers require a `.a' archive for static linking (except MSVC,
7932 # which needs '.lib').
7935 with_gnu_ld="$lt_cv_prog_gnu_ld"
7938 old_CFLAGS="$CFLAGS"
7940 # Set sane defaults for various variables
7941 test -z "$CC" && CC=cc
7942 test -z "$LTCC" && LTCC=$CC
7943 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7944 test -z "$LD" && LD=ld
7945 test -z "$ac_objext" && ac_objext=o
7947 for cc_temp in $compiler""; do
7949 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7950 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7955 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7958 # Only perform the check for file, if the check method requires it
7959 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7960 case $deplibs_check_method in
7962 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7964 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7965 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7966 $as_echo_n "(cached) " >&6
7970 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7973 lt_save_MAGIC_CMD="$MAGIC_CMD"
7974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7975 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7976 for ac_dir in $ac_dummy; do
7978 test -z "$ac_dir" && ac_dir=.
7979 if test -f $ac_dir/${ac_tool_prefix}file; then
7980 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7981 if test -n "$file_magic_test_file"; then
7982 case $deplibs_check_method in
7984 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7986 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7987 $EGREP "$file_magic_regex" > /dev/null; then
7992 *** Warning: the command libtool uses to detect shared libraries,
7993 *** $file_magic_cmd, produces output that libtool cannot recognize.
7994 *** The result is that libtool may fail to recognize shared libraries
7995 *** as such. This will affect the creation of libtool libraries that
7996 *** depend on shared libraries, but programs linked with such libtool
7997 *** libraries will work regardless of this problem. Nevertheless, you
7998 *** may want to report the problem to your system manager and/or to
7999 *** bug-libtool@gnu.org
8009 MAGIC_CMD="$lt_save_MAGIC_CMD"
8014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015 if test -n "$MAGIC_CMD"; then
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8017 $as_echo "$MAGIC_CMD" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8027 if test -z "$lt_cv_path_MAGIC_CMD"; then
8028 if test -n "$ac_tool_prefix"; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8030 $as_echo_n "checking for file... " >&6; }
8031 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8032 $as_echo_n "(cached) " >&6
8036 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8039 lt_save_MAGIC_CMD="$MAGIC_CMD"
8040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8041 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8042 for ac_dir in $ac_dummy; do
8044 test -z "$ac_dir" && ac_dir=.
8045 if test -f $ac_dir/file; then
8046 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8047 if test -n "$file_magic_test_file"; then
8048 case $deplibs_check_method in
8050 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8053 $EGREP "$file_magic_regex" > /dev/null; then
8058 *** Warning: the command libtool uses to detect shared libraries,
8059 *** $file_magic_cmd, produces output that libtool cannot recognize.
8060 *** The result is that libtool may fail to recognize shared libraries
8061 *** as such. This will affect the creation of libtool libraries that
8062 *** depend on shared libraries, but programs linked with such libtool
8063 *** libraries will work regardless of this problem. Nevertheless, you
8064 *** may want to report the problem to your system manager and/or to
8065 *** bug-libtool@gnu.org
8075 MAGIC_CMD="$lt_save_MAGIC_CMD"
8080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8081 if test -n "$MAGIC_CMD"; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8083 $as_echo "$MAGIC_CMD" >&6; }
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8099 # Use C for the default configuration in the libtool script
8103 ac_cpp='$CPP $CPPFLAGS'
8104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8109 # Source file extension for C test sources.
8112 # Object file extension for compiled C test sources.
8116 # Code to be used in simple compile tests
8117 lt_simple_compile_test_code="int some_variable = 0;"
8119 # Code to be used in simple link tests
8120 lt_simple_link_test_code='int main(){return(0);}'
8128 # If no C compiler was specified, use CC.
8131 # If no C compiler flags were specified, use CFLAGS.
8132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8134 # Allow CC to be a program name with arguments.
8137 # Save the default compiler, since it gets overwritten when the other
8138 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8139 compiler_DEFAULT=$CC
8141 # save warnings/boilerplate of simple test code
8142 ac_outfile=conftest.$ac_objext
8143 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8144 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8145 _lt_compiler_boilerplate=`cat conftest.err`
8148 ac_outfile=conftest.$ac_objext
8149 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8150 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8151 _lt_linker_boilerplate=`cat conftest.err`
8156 ## There is no encapsulation within the following macros, do not change
8157 ## the running order or otherwise move them around unless you know exactly
8158 ## what you are doing...
8159 if test -n "$compiler"; then
8161 lt_prog_compiler_no_builtin_flag=
8163 if test "$GCC" = yes; then
8164 case $cc_basename in
8166 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8168 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8172 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8173 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8174 $as_echo_n "(cached) " >&6
8176 lt_cv_prog_compiler_rtti_exceptions=no
8177 ac_outfile=conftest.$ac_objext
8178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8179 lt_compiler_flag="-fno-rtti -fno-exceptions"
8180 # Insert the option either (1) after the last *FLAGS variable, or
8181 # (2) before a word containing "conftest.", or (3) at the end.
8182 # Note that $ac_compile itself does not contain backslashes and begins
8183 # with a dollar sign (not a hyphen), so the echo should work correctly.
8184 # The option is referenced via a variable to avoid confusing sed.
8185 lt_compile=`echo "$ac_compile" | $SED \
8186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8188 -e 's:$: $lt_compiler_flag:'`
8189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8190 (eval "$lt_compile" 2>conftest.err)
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 if (exit $ac_status) && test -s "$ac_outfile"; then
8195 # The compiler can only warn and ignore the option if not recognized
8196 # So say no if there are warnings other than the usual output.
8197 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8200 lt_cv_prog_compiler_rtti_exceptions=yes
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8207 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8209 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8210 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8222 lt_prog_compiler_wl=
8223 lt_prog_compiler_pic=
8224 lt_prog_compiler_static=
8227 if test "$GCC" = yes; then
8228 lt_prog_compiler_wl='-Wl,'
8229 lt_prog_compiler_static='-static'
8233 # All AIX code is PIC.
8234 if test "$host_cpu" = ia64; then
8235 # AIX 5 now supports IA64 processor
8236 lt_prog_compiler_static='-Bstatic'
8243 # see comment about AmigaOS4 .so support
8244 lt_prog_compiler_pic='-fPIC'
8247 # FIXME: we need at least 68020 code to build shared libraries, but
8248 # adding the `-m68020' flag to GCC prevents building anything better,
8250 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8255 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8256 # PIC is the default for these OSes.
8259 mingw* | cygwin* | pw32* | os2* | cegcc*)
8260 # This hack is so that the source file can tell whether it is being
8261 # built for inclusion in a dll (and should export symbols for example).
8262 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8263 # (--disable-auto-import) libraries
8264 lt_prog_compiler_pic='-DDLL_EXPORT'
8267 darwin* | rhapsody*)
8268 # PIC is the default on this platform
8269 # Common symbols not allowed in MH_DYLIB files
8270 lt_prog_compiler_pic='-fno-common'
8274 # PIC is the default for Haiku.
8275 # The "-static" flag exists, but is broken.
8276 lt_prog_compiler_static=
8280 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8281 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8282 # sets the default TLS model and affects inlining.
8288 lt_prog_compiler_pic='-fPIC'
8294 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8295 # Instead, we relocate shared libraries at runtime.
8299 # Just because we use GCC doesn't mean we suddenly get shared libraries
8300 # on systems that don't support them.
8301 lt_prog_compiler_can_build_shared=no
8306 # QNX uses GNU C++, but need to define -shared option too, otherwise
8308 lt_prog_compiler_pic='-fPIC -shared'
8312 if test -d /usr/nec; then
8313 lt_prog_compiler_pic=-Kconform_pic
8318 lt_prog_compiler_pic='-fPIC'
8322 case $cc_basename in
8323 nvcc*) # Cuda Compiler Driver 2.2
8324 lt_prog_compiler_wl='-Xlinker '
8325 if test -n "$lt_prog_compiler_pic"; then
8326 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8331 # PORTME Check for flag to pass linker flags through the system compiler.
8334 lt_prog_compiler_wl='-Wl,'
8335 if test "$host_cpu" = ia64; then
8336 # AIX 5 now supports IA64 processor
8337 lt_prog_compiler_static='-Bstatic'
8339 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8343 mingw* | cygwin* | pw32* | os2* | cegcc*)
8344 # This hack is so that the source file can tell whether it is being
8345 # built for inclusion in a dll (and should export symbols for example).
8346 lt_prog_compiler_pic='-DDLL_EXPORT'
8349 hpux9* | hpux10* | hpux11*)
8350 lt_prog_compiler_wl='-Wl,'
8351 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8358 lt_prog_compiler_pic='+Z'
8361 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8362 lt_prog_compiler_static='${wl}-a ${wl}archive'
8365 irix5* | irix6* | nonstopux*)
8366 lt_prog_compiler_wl='-Wl,'
8367 # PIC (with -KPIC) is the default.
8368 lt_prog_compiler_static='-non_shared'
8371 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8372 case $cc_basename in
8373 # old Intel for x86_64 which still supported -KPIC.
8375 lt_prog_compiler_wl='-Wl,'
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-static'
8379 # icc used to be incompatible with GCC.
8380 # ICC 10 doesn't accept -KPIC any more.
8382 lt_prog_compiler_wl='-Wl,'
8383 lt_prog_compiler_pic='-fPIC'
8384 lt_prog_compiler_static='-static'
8386 # Lahey Fortran 8.1.
8388 lt_prog_compiler_wl='-Wl,'
8389 lt_prog_compiler_pic='--shared'
8390 lt_prog_compiler_static='--static'
8393 # NAG Fortran compiler
8394 lt_prog_compiler_wl='-Wl,-Wl,,'
8395 lt_prog_compiler_pic='-PIC'
8396 lt_prog_compiler_static='-Bstatic'
8398 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8399 # Portland Group compilers (*not* the Pentium gcc compiler,
8400 # which looks to be a dead project)
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_pic='-fpic'
8403 lt_prog_compiler_static='-Bstatic'
8406 lt_prog_compiler_wl='-Wl,'
8407 # All Alpha code is PIC.
8408 lt_prog_compiler_static='-non_shared'
8410 xl* | bgxl* | bgf* | mpixl*)
8411 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8412 lt_prog_compiler_wl='-Wl,'
8413 lt_prog_compiler_pic='-qpic'
8414 lt_prog_compiler_static='-qstaticlink'
8417 case `$CC -V 2>&1 | sed 5q` in
8418 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8419 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8420 lt_prog_compiler_pic='-KPIC'
8421 lt_prog_compiler_static='-Bstatic'
8422 lt_prog_compiler_wl=''
8424 *Sun\ F* | *Sun*Fortran*)
8425 lt_prog_compiler_pic='-KPIC'
8426 lt_prog_compiler_static='-Bstatic'
8427 lt_prog_compiler_wl='-Qoption ld '
8431 lt_prog_compiler_pic='-KPIC'
8432 lt_prog_compiler_static='-Bstatic'
8433 lt_prog_compiler_wl='-Wl,'
8435 *Intel*\ [CF]*Compiler*)
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_pic='-fPIC'
8438 lt_prog_compiler_static='-static'
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_pic='-fpic'
8443 lt_prog_compiler_static='-Bstatic'
8451 lt_prog_compiler_pic='-KPIC'
8452 lt_prog_compiler_static='-Bstatic'
8456 # QNX uses GNU C++, but need to define -shared option too, otherwise
8458 lt_prog_compiler_pic='-fPIC -shared'
8461 osf3* | osf4* | osf5*)
8462 lt_prog_compiler_wl='-Wl,'
8463 # All OSF/1 code is PIC.
8464 lt_prog_compiler_static='-non_shared'
8468 lt_prog_compiler_static='-non_shared'
8472 lt_prog_compiler_pic='-KPIC'
8473 lt_prog_compiler_static='-Bstatic'
8474 case $cc_basename in
8475 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8476 lt_prog_compiler_wl='-Qoption ld ';;
8478 lt_prog_compiler_wl='-Wl,';;
8483 lt_prog_compiler_wl='-Qoption ld '
8484 lt_prog_compiler_pic='-PIC'
8485 lt_prog_compiler_static='-Bstatic'
8488 sysv4 | sysv4.2uw2* | sysv4.3*)
8489 lt_prog_compiler_wl='-Wl,'
8490 lt_prog_compiler_pic='-KPIC'
8491 lt_prog_compiler_static='-Bstatic'
8495 if test -d /usr/nec ;then
8496 lt_prog_compiler_pic='-Kconform_pic'
8497 lt_prog_compiler_static='-Bstatic'
8501 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8502 lt_prog_compiler_wl='-Wl,'
8503 lt_prog_compiler_pic='-KPIC'
8504 lt_prog_compiler_static='-Bstatic'
8508 lt_prog_compiler_wl='-Wl,'
8509 lt_prog_compiler_can_build_shared=no
8513 lt_prog_compiler_pic='-pic'
8514 lt_prog_compiler_static='-Bstatic'
8518 lt_prog_compiler_can_build_shared=no
8524 # For platforms which do not support PIC, -DPIC is meaningless:
8526 lt_prog_compiler_pic=
8529 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8534 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8535 if ${lt_cv_prog_compiler_pic+:} false; then :
8536 $as_echo_n "(cached) " >&6
8538 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8541 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8542 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8545 # Check to make sure the PIC flag actually works.
8547 if test -n "$lt_prog_compiler_pic"; then
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8549 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8550 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8551 $as_echo_n "(cached) " >&6
8553 lt_cv_prog_compiler_pic_works=no
8554 ac_outfile=conftest.$ac_objext
8555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8556 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8557 # Insert the option either (1) after the last *FLAGS variable, or
8558 # (2) before a word containing "conftest.", or (3) at the end.
8559 # Note that $ac_compile itself does not contain backslashes and begins
8560 # with a dollar sign (not a hyphen), so the echo should work correctly.
8561 # The option is referenced via a variable to avoid confusing sed.
8562 lt_compile=`echo "$ac_compile" | $SED \
8563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8565 -e 's:$: $lt_compiler_flag:'`
8566 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8567 (eval "$lt_compile" 2>conftest.err)
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 if (exit $ac_status) && test -s "$ac_outfile"; then
8572 # The compiler can only warn and ignore the option if not recognized
8573 # So say no if there are warnings other than the usual output.
8574 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8576 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8577 lt_cv_prog_compiler_pic_works=yes
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8584 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8586 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8587 case $lt_prog_compiler_pic in
8589 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8592 lt_prog_compiler_pic=
8593 lt_prog_compiler_can_build_shared=no
8609 # Check to make sure the static flag actually works.
8611 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8613 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8614 if ${lt_cv_prog_compiler_static_works+:} false; then :
8615 $as_echo_n "(cached) " >&6
8617 lt_cv_prog_compiler_static_works=no
8618 save_LDFLAGS="$LDFLAGS"
8619 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8620 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8621 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8622 # The linker can only warn and ignore the option if not recognized
8623 # So say no if there are warnings
8624 if test -s conftest.err; then
8625 # Append any errors to the config.log.
8626 cat conftest.err 1>&5
8627 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8629 if diff conftest.exp conftest.er2 >/dev/null; then
8630 lt_cv_prog_compiler_static_works=yes
8633 lt_cv_prog_compiler_static_works=yes
8637 LDFLAGS="$save_LDFLAGS"
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8641 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8643 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8646 lt_prog_compiler_static=
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8656 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8657 if ${lt_cv_prog_compiler_c_o+:} false; then :
8658 $as_echo_n "(cached) " >&6
8660 lt_cv_prog_compiler_c_o=no
8661 $RM -r conftest 2>/dev/null
8665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8667 lt_compiler_flag="-o out/conftest2.$ac_objext"
8668 # Insert the option either (1) after the last *FLAGS variable, or
8669 # (2) before a word containing "conftest.", or (3) at the end.
8670 # Note that $ac_compile itself does not contain backslashes and begins
8671 # with a dollar sign (not a hyphen), so the echo should work correctly.
8672 lt_compile=`echo "$ac_compile" | $SED \
8673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8675 -e 's:$: $lt_compiler_flag:'`
8676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8677 (eval "$lt_compile" 2>out/conftest.err)
8679 cat out/conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8683 # The compiler can only warn and ignore the option if not recognized
8684 # So say no if there are warnings
8685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8686 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8687 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8688 lt_cv_prog_compiler_c_o=yes
8693 # SGI C++ compiler will create directory out/ii_files/ for
8694 # template instantiation
8695 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8696 $RM out/* && rmdir out
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8703 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8711 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8712 if ${lt_cv_prog_compiler_c_o+:} false; then :
8713 $as_echo_n "(cached) " >&6
8715 lt_cv_prog_compiler_c_o=no
8716 $RM -r conftest 2>/dev/null
8720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8722 lt_compiler_flag="-o out/conftest2.$ac_objext"
8723 # Insert the option either (1) after the last *FLAGS variable, or
8724 # (2) before a word containing "conftest.", or (3) at the end.
8725 # Note that $ac_compile itself does not contain backslashes and begins
8726 # with a dollar sign (not a hyphen), so the echo should work correctly.
8727 lt_compile=`echo "$ac_compile" | $SED \
8728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8730 -e 's:$: $lt_compiler_flag:'`
8731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8732 (eval "$lt_compile" 2>out/conftest.err)
8734 cat out/conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8738 # The compiler can only warn and ignore the option if not recognized
8739 # So say no if there are warnings
8740 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8741 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8742 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8743 lt_cv_prog_compiler_c_o=yes
8748 # SGI C++ compiler will create directory out/ii_files/ for
8749 # template instantiation
8750 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8751 $RM out/* && rmdir out
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8758 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8763 hard_links="nottested"
8764 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8765 # do not overwrite the value of need_locks provided by the user
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8767 $as_echo_n "checking if we can lock with hard links... " >&6; }
8770 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8772 ln conftest.a conftest.b 2>&5 || hard_links=no
8773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8775 $as_echo "$hard_links" >&6; }
8776 if test "$hard_links" = no; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8778 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8791 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8794 allow_undefined_flag=
8795 always_export_symbols=no
8797 archive_expsym_cmds=
8798 compiler_needs_object=no
8799 enable_shared_with_static_runtimes=no
8800 export_dynamic_flag_spec=
8801 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8802 hardcode_automatic=no
8804 hardcode_direct_absolute=no
8805 hardcode_libdir_flag_spec=
8806 hardcode_libdir_separator=
8808 hardcode_shlibpath_var=unsupported
8810 link_all_deplibs=unknown
8813 old_archive_from_new_cmds=
8814 old_archive_from_expsyms_cmds=
8815 thread_safe_flag_spec=
8816 whole_archive_flag_spec=
8817 # include_expsyms should be a list of space-separated symbols to be *always*
8818 # included in the symbol list
8820 # exclude_expsyms can be an extended regexp of symbols to exclude
8821 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8822 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8823 # as well as any symbol that contains `d'.
8824 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8825 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8826 # platforms (ab)use it in PIC code, but their linkers get confused if
8827 # the symbol is explicitly referenced. Since portable code cannot
8828 # rely on this symbol name, it's probably fine to never include it in
8829 # preloaded symbol tables.
8830 # Exclude shared library initialization/finalization symbols.
8831 extract_expsyms_cmds=
8834 cygwin* | mingw* | pw32* | cegcc*)
8835 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8836 # When not using gcc, we currently assume that we are using
8837 # Microsoft Visual C++.
8838 if test "$GCC" != yes; then
8843 # we just hope/assume this is gcc and not c89 (= MSVC++)
8853 # On some targets, GNU ld is compatible enough with the native linker
8854 # that we're better off using the native interface for both.
8855 lt_use_gnu_ld_interface=no
8856 if test "$with_gnu_ld" = yes; then
8859 # The AIX port of GNU ld has always aspired to compatibility
8860 # with the native linker. However, as the warning in the GNU ld
8861 # block says, versions before 2.19.5* couldn't really create working
8862 # shared libraries, regardless of the interface used.
8863 case `$LD -v 2>&1` in
8864 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8865 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8866 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8868 lt_use_gnu_ld_interface=yes
8873 lt_use_gnu_ld_interface=yes
8878 if test "$lt_use_gnu_ld_interface" = yes; then
8879 # If archive_cmds runs LD, not CC, wlarc should be empty
8882 # Set some defaults for GNU ld with shared library support. These
8883 # are reset later if shared libraries are not supported. Putting them
8884 # here allows them to be overridden if necessary.
8885 runpath_var=LD_RUN_PATH
8886 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8887 export_dynamic_flag_spec='${wl}--export-dynamic'
8888 # ancient GNU ld didn't support --whole-archive et. al.
8889 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8890 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8892 whole_archive_flag_spec=
8894 supports_anon_versioning=no
8895 case `$LD -v 2>&1` in
8896 *GNU\ gold*) supports_anon_versioning=yes ;;
8897 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8898 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8899 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8900 *\ 2.11.*) ;; # other 2.11 versions
8901 *) supports_anon_versioning=yes ;;
8904 # See if GNU ld supports shared libraries.
8907 # On AIX/PPC, the GNU linker is very broken
8908 if test "$host_cpu" != ia64; then
8912 *** Warning: the GNU linker, at least up to release 2.19, is reported
8913 *** to be unable to reliably create shared libraries on AIX.
8914 *** Therefore, libtool is disabling shared libraries support. If you
8915 *** really care for shared libraries, you may want to install binutils
8916 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8917 *** You will then need to restart the configuration process.
8926 # see comment about AmigaOS4 .so support
8927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8928 archive_expsym_cmds=''
8931 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)'
8932 hardcode_libdir_flag_spec='-L$libdir'
8933 hardcode_minus_L=yes
8939 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8940 allow_undefined_flag=unsupported
8941 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8942 # support --undefined. This deserves some investigation. FIXME
8943 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949 cygwin* | mingw* | pw32* | cegcc*)
8950 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8951 # as there is no search path for DLLs.
8952 hardcode_libdir_flag_spec='-L$libdir'
8953 export_dynamic_flag_spec='${wl}--export-all-symbols'
8954 allow_undefined_flag=unsupported
8955 always_export_symbols=no
8956 enable_shared_with_static_runtimes=yes
8957 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'
8958 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8960 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8962 # If the export-symbols file already is a .def file (1st line
8963 # is EXPORTS), use it as is; otherwise, prepend...
8964 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8965 cp $export_symbols $output_objdir/$soname.def;
8967 echo EXPORTS > $output_objdir/$soname.def;
8968 cat $export_symbols >> $output_objdir/$soname.def;
8970 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978 link_all_deplibs=yes
8983 hardcode_shlibpath_var=no
8984 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8985 export_dynamic_flag_spec='${wl}-E'
8986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8987 # Instead, shared libraries are loaded at an image base (0x10000000 by
8988 # default) and relocated if they conflict, which is a slow very memory
8989 # consuming and fragmenting process. To avoid this, we pick a random,
8990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8991 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8992 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8993 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'
8996 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8998 if test "$host_os" = linux-dietlibc; then
8999 case $cc_basename in
9000 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9003 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9004 && test "$tmp_diet" = no
9006 tmp_addflag=' $pic_flag'
9007 tmp_sharedflag='-shared'
9008 case $cc_basename,$host_cpu in
9009 pgcc*) # Portland Group C compiler
9010 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'
9011 tmp_addflag=' $pic_flag'
9013 pgf77* | pgf90* | pgf95* | pgfortran*)
9014 # Portland Group f77 and f90 compilers
9015 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'
9016 tmp_addflag=' $pic_flag -Mnomain' ;;
9017 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9018 tmp_addflag=' -i_dynamic' ;;
9019 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9020 tmp_addflag=' -i_dynamic -nofor_main' ;;
9021 ifc* | ifort*) # Intel Fortran compiler
9022 tmp_addflag=' -nofor_main' ;;
9023 lf95*) # Lahey Fortran 8.1
9024 whole_archive_flag_spec=
9025 tmp_sharedflag='--shared' ;;
9026 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9027 tmp_sharedflag='-qmkshrobj'
9029 nvcc*) # Cuda Compiler Driver 2.2
9030 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'
9031 compiler_needs_object=yes
9034 case `$CC -V 2>&1 | sed 5q` in
9035 *Sun\ C*) # Sun C 5.9
9036 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'
9037 compiler_needs_object=yes
9038 tmp_sharedflag='-G' ;;
9039 *Sun\ F*) # Sun Fortran 8.3
9040 tmp_sharedflag='-G' ;;
9042 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044 if test "x$supports_anon_versioning" = xyes; then
9045 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9046 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9047 echo "local: *; };" >> $output_objdir/$libname.ver~
9048 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9051 case $cc_basename in
9052 xlf* | bgf* | bgxlf* | mpixlf*)
9053 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9054 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9056 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9057 if test "x$supports_anon_versioning" = xyes; then
9058 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9059 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9060 echo "local: *; };" >> $output_objdir/$libname.ver~
9061 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9071 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9072 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9081 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9085 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9086 *** create shared libraries on Solaris systems. Therefore, libtool
9087 *** is disabling shared libraries support. We urge you to upgrade GNU
9088 *** binutils to release 2.9.1 or newer. Another option is to modify
9089 *** your PATH or compiler configuration so that the native linker is
9090 *** used, and then restart.
9093 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9095 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9102 case `$LD -v 2>&1` in
9103 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9107 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9108 *** reliably create shared libraries on SCO systems. Therefore, libtool
9109 *** is disabling shared libraries support. We urge you to upgrade GNU
9110 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9111 *** your PATH or compiler configuration so that the native linker is
9112 *** used, and then restart.
9117 # For security reasons, it is highly recommended that you always
9118 # use absolute paths for naming shared libraries, and exclude the
9119 # DT_RUNPATH tag from executables and libraries. But doing so
9120 # requires that you compile everything twice, which is a pain.
9121 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9133 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9136 hardcode_shlibpath_var=no
9140 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9141 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9149 if test "$ld_shlibs" = no; then
9151 hardcode_libdir_flag_spec=
9152 export_dynamic_flag_spec=
9153 whole_archive_flag_spec=
9156 # PORTME fill in a description of your system's linker (not GNU ld)
9159 allow_undefined_flag=unsupported
9160 always_export_symbols=yes
9161 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'
9162 # Note: this linker hardcodes the directories in LIBPATH if there
9163 # are no directories specified by -L.
9164 hardcode_minus_L=yes
9165 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9166 # Neither direct hardcoding nor static linking is supported with a
9168 hardcode_direct=unsupported
9173 if test "$host_cpu" = ia64; then
9174 # On IA64, the linker does run time linking by default, so we don't
9175 # have to do anything special.
9176 aix_use_runtimelinking=no
9177 exp_sym_flag='-Bexport'
9180 # If we're using GNU nm, then we don't want the "-C" option.
9181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9182 # Also, AIX nm treats weak defined symbols like other global
9183 # defined symbols, whereas GNU nm marks them as "W".
9184 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9185 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'
9187 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'
9189 aix_use_runtimelinking=no
9191 # Test if we are trying to use run time linking or normal
9192 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9193 # need to do runtime linking.
9194 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9195 for ld_flag in $LDFLAGS; do
9196 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9197 aix_use_runtimelinking=yes
9204 exp_sym_flag='-bexport'
9205 no_entry_flag='-bnoentry'
9208 # When large executables or shared objects are built, AIX ld can
9209 # have problems creating the table of contents. If linking a library
9210 # or program results in "error TOC overflow" add -mminimal-toc to
9211 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9212 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9216 hardcode_direct_absolute=yes
9217 hardcode_libdir_separator=':'
9218 link_all_deplibs=yes
9219 file_list_spec='${wl}-f,'
9221 if test "$GCC" = yes; then
9222 case $host_os in aix4.[012]|aix4.[012].*)
9223 # We only want to do this on AIX 4.2 and lower, the check
9224 # below for broken collect2 doesn't work under 4.3+
9225 collect2name=`${CC} -print-prog-name=collect2`
9226 if test -f "$collect2name" &&
9227 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9229 # We have reworked collect2
9232 # We have old collect2
9233 hardcode_direct=unsupported
9234 # It fails to find uninstalled libraries when the uninstalled
9235 # path is not listed in the libpath. Setting hardcode_minus_L
9236 # to unsupported forces relinking
9237 hardcode_minus_L=yes
9238 hardcode_libdir_flag_spec='-L$libdir'
9239 hardcode_libdir_separator=
9243 shared_flag='-shared'
9244 if test "$aix_use_runtimelinking" = yes; then
9245 shared_flag="$shared_flag "'${wl}-G'
9249 if test "$host_cpu" = ia64; then
9250 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9251 # chokes on -Wl,-G. The following line is correct:
9254 if test "$aix_use_runtimelinking" = yes; then
9255 shared_flag='${wl}-G'
9257 shared_flag='${wl}-bM:SRE'
9262 export_dynamic_flag_spec='${wl}-bexpall'
9263 # It seems that -bexpall does not export symbols beginning with
9264 # underscore (_), so it is better to generate a list of symbols to export.
9265 always_export_symbols=yes
9266 if test "$aix_use_runtimelinking" = yes; then
9267 # Warning - without using the other runtime loading flags (-brtl),
9268 # -berok will link without error, but may produce a broken library.
9269 allow_undefined_flag='-berok'
9270 # Determine the default libpath from the value encoded in an
9272 if test "${lt_cv_aix_libpath+set}" = set; then
9273 aix_libpath=$lt_cv_aix_libpath
9275 if ${lt_cv_aix_libpath_+:} false; then :
9276 $as_echo_n "(cached) " >&6
9278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h. */
9289 if ac_fn_c_try_link "$LINENO"; then :
9291 lt_aix_libpath_sed='
9292 /Import File Strings/,/^$/ {
9294 s/^0 *\([^ ]*\) *$/\1/
9298 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9299 # Check for a 64-bit object if we didn't find anything.
9300 if test -z "$lt_cv_aix_libpath_"; then
9301 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9304 rm -f core conftest.err conftest.$ac_objext \
9305 conftest$ac_exeext conftest.$ac_ext
9306 if test -z "$lt_cv_aix_libpath_"; then
9307 lt_cv_aix_libpath_="/usr/lib:/lib"
9312 aix_libpath=$lt_cv_aix_libpath_
9315 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9316 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"
9318 if test "$host_cpu" = ia64; then
9319 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9320 allow_undefined_flag="-z nodefs"
9321 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"
9323 # Determine the default libpath from the value encoded in an
9325 if test "${lt_cv_aix_libpath+set}" = set; then
9326 aix_libpath=$lt_cv_aix_libpath
9328 if ${lt_cv_aix_libpath_+:} false; then :
9329 $as_echo_n "(cached) " >&6
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9342 if ac_fn_c_try_link "$LINENO"; then :
9344 lt_aix_libpath_sed='
9345 /Import File Strings/,/^$/ {
9347 s/^0 *\([^ ]*\) *$/\1/
9351 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9352 # Check for a 64-bit object if we didn't find anything.
9353 if test -z "$lt_cv_aix_libpath_"; then
9354 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9357 rm -f core conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359 if test -z "$lt_cv_aix_libpath_"; then
9360 lt_cv_aix_libpath_="/usr/lib:/lib"
9365 aix_libpath=$lt_cv_aix_libpath_
9368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9369 # Warning - without using the other run time loading flags,
9370 # -berok will link without error, but may produce a broken library.
9371 no_undefined_flag=' ${wl}-bernotok'
9372 allow_undefined_flag=' ${wl}-berok'
9373 if test "$with_gnu_ld" = yes; then
9374 # We only use this code for GNU lds that support --whole-archive.
9375 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9377 # Exported symbols can be pulled into shared objects from archives
9378 whole_archive_flag_spec='$convenience'
9380 archive_cmds_need_lc=yes
9381 # This is similar to how AIX traditionally builds its shared libraries.
9382 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'
9390 # see comment about AmigaOS4 .so support
9391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392 archive_expsym_cmds=''
9395 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)'
9396 hardcode_libdir_flag_spec='-L$libdir'
9397 hardcode_minus_L=yes
9403 export_dynamic_flag_spec=-rdynamic
9406 cygwin* | mingw* | pw32* | cegcc*)
9407 # When not using gcc, we currently assume that we are using
9408 # Microsoft Visual C++.
9409 # hardcode_libdir_flag_spec is actually meaningless, as there is
9410 # no search path for DLLs.
9411 case $cc_basename in
9414 hardcode_libdir_flag_spec=' '
9415 allow_undefined_flag=unsupported
9416 always_export_symbols=yes
9418 # Tell ltmain to make .lib files, not .a files.
9420 # Tell ltmain to make .dll files, not .so files.
9422 # FIXME: Setting linknames here is a bad hack.
9423 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9424 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9425 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9427 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9429 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9431 # The linker will not automatically build a static lib if we build a DLL.
9432 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9433 enable_shared_with_static_runtimes=yes
9434 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9435 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9437 old_postinstall_cmds='chmod 644 $oldlib'
9438 postlink_cmds='lt_outputfile="@OUTPUT@"~
9439 lt_tool_outputfile="@TOOL_OUTPUT@"~
9440 case $lt_outputfile in
9443 lt_outputfile="$lt_outputfile.exe"
9444 lt_tool_outputfile="$lt_tool_outputfile.exe"
9447 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9448 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9449 $RM "$lt_outputfile.manifest";
9453 # Assume MSVC wrapper
9454 hardcode_libdir_flag_spec=' '
9455 allow_undefined_flag=unsupported
9456 # Tell ltmain to make .lib files, not .a files.
9458 # Tell ltmain to make .dll files, not .so files.
9460 # FIXME: Setting linknames here is a bad hack.
9461 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9462 # The linker will automatically build a .lib file if we build a DLL.
9463 old_archive_from_new_cmds='true'
9464 # FIXME: Should let the user specify the lib program.
9465 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9466 enable_shared_with_static_runtimes=yes
9471 darwin* | rhapsody*)
9474 archive_cmds_need_lc=no
9476 hardcode_automatic=yes
9477 hardcode_shlibpath_var=unsupported
9478 if test "$lt_cv_ld_force_load" = "yes"; then
9479 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\"`'
9482 whole_archive_flag_spec=''
9484 link_all_deplibs=yes
9485 allow_undefined_flag="$_lt_dar_allow_undefined"
9486 case $cc_basename in
9487 ifort*) _lt_dar_can_shared=yes ;;
9488 *) _lt_dar_can_shared=$GCC ;;
9490 if test "$_lt_dar_can_shared" = "yes"; then
9491 output_verbose_link_cmd=func_echo_all
9492 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9493 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9494 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}"
9495 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}"
9504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9505 hardcode_libdir_flag_spec='-L$libdir'
9506 hardcode_shlibpath_var=no
9509 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9510 # support. Future versions do this automatically, but an explicit c++rt0.o
9511 # does not break anything, and helps significantly (at the cost of a little
9514 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9515 hardcode_libdir_flag_spec='-R$libdir'
9517 hardcode_shlibpath_var=no
9520 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9524 hardcode_minus_L=yes
9525 hardcode_shlibpath_var=no
9528 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9529 freebsd* | dragonfly*)
9530 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9531 hardcode_libdir_flag_spec='-R$libdir'
9533 hardcode_shlibpath_var=no
9537 if test "$GCC" = yes; then
9538 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'
9540 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'
9542 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9543 hardcode_libdir_separator=:
9546 # hardcode_minus_L: Not really in the search PATH,
9547 # but as the default location of the library.
9548 hardcode_minus_L=yes
9549 export_dynamic_flag_spec='${wl}-E'
9553 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9554 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9556 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9558 if test "$with_gnu_ld" = no; then
9559 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9560 hardcode_libdir_separator=:
9562 hardcode_direct_absolute=yes
9563 export_dynamic_flag_spec='${wl}-E'
9564 # hardcode_minus_L: Not really in the search PATH,
9565 # but as the default location of the library.
9566 hardcode_minus_L=yes
9571 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9574 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9580 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9586 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9589 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9593 # Older versions of the 11.00 compiler do not understand -b yet
9594 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9596 $as_echo_n "checking if $CC understands -b... " >&6; }
9597 if ${lt_cv_prog_compiler__b+:} false; then :
9598 $as_echo_n "(cached) " >&6
9600 lt_cv_prog_compiler__b=no
9601 save_LDFLAGS="$LDFLAGS"
9602 LDFLAGS="$LDFLAGS -b"
9603 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9605 # The linker can only warn and ignore the option if not recognized
9606 # So say no if there are warnings
9607 if test -s conftest.err; then
9608 # Append any errors to the config.log.
9609 cat conftest.err 1>&5
9610 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9612 if diff conftest.exp conftest.er2 >/dev/null; then
9613 lt_cv_prog_compiler__b=yes
9616 lt_cv_prog_compiler__b=yes
9620 LDFLAGS="$save_LDFLAGS"
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9624 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9626 if test x"$lt_cv_prog_compiler__b" = xyes; then
9627 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9635 if test "$with_gnu_ld" = no; then
9636 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9637 hardcode_libdir_separator=:
9642 hardcode_shlibpath_var=no
9646 hardcode_direct_absolute=yes
9647 export_dynamic_flag_spec='${wl}-E'
9649 # hardcode_minus_L: Not really in the search PATH,
9650 # but as the default location of the library.
9651 hardcode_minus_L=yes
9657 irix5* | irix6* | nonstopux*)
9658 if test "$GCC" = yes; then
9659 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'
9660 # Try to use the -exported_symbol ld option, if it does not
9661 # work, assume that -exports_file does not work either and
9662 # implicitly export all symbols.
9663 # This should be the same for all languages, so no per-tag cache variable.
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9665 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9666 if ${lt_cv_irix_exported_symbol+:} false; then :
9667 $as_echo_n "(cached) " >&6
9669 save_LDFLAGS="$LDFLAGS"
9670 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9673 int foo (void) { return 0; }
9675 if ac_fn_c_try_link "$LINENO"; then :
9676 lt_cv_irix_exported_symbol=yes
9678 lt_cv_irix_exported_symbol=no
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 LDFLAGS="$save_LDFLAGS"
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9685 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9686 if test "$lt_cv_irix_exported_symbol" = yes; then
9687 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'
9690 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'
9691 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'
9693 archive_cmds_need_lc='no'
9694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695 hardcode_libdir_separator=:
9697 link_all_deplibs=yes
9701 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9704 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9706 hardcode_libdir_flag_spec='-R$libdir'
9708 hardcode_shlibpath_var=no
9712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9715 hardcode_libdir_separator=:
9716 hardcode_shlibpath_var=no
9723 if test -f /usr/libexec/ld.so; then
9725 hardcode_shlibpath_var=no
9726 hardcode_direct_absolute=yes
9727 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9729 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9730 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9731 export_dynamic_flag_spec='${wl}-E'
9734 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_libdir_flag_spec='-R$libdir'
9739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9750 hardcode_libdir_flag_spec='-L$libdir'
9751 hardcode_minus_L=yes
9752 allow_undefined_flag=unsupported
9753 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'
9754 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9758 if test "$GCC" = yes; then
9759 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9760 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'
9762 allow_undefined_flag=' -expect_unresolved \*'
9763 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'
9765 archive_cmds_need_lc='no'
9766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9767 hardcode_libdir_separator=:
9770 osf4* | osf5*) # as osf3* with the addition of -msym flag
9771 if test "$GCC" = yes; then
9772 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9773 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'
9774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9776 allow_undefined_flag=' -expect_unresolved \*'
9777 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'
9778 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~
9779 $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'
9781 # Both c and cxx compiler support -rpath directly
9782 hardcode_libdir_flag_spec='-rpath $libdir'
9784 archive_cmds_need_lc='no'
9785 hardcode_libdir_separator=:
9789 no_undefined_flag=' -z defs'
9790 if test "$GCC" = yes; then
9792 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9793 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9794 $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'
9796 case `$CC -V 2>&1` in
9799 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9801 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9805 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9806 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9807 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9811 hardcode_libdir_flag_spec='-R$libdir'
9812 hardcode_shlibpath_var=no
9814 solaris2.[0-5] | solaris2.[0-5].*) ;;
9816 # The compiler driver will combine and reorder linker options,
9817 # but understands `-z linker_flag'. GCC discards it without `$wl',
9818 # but is careful enough not to reorder.
9819 # Supported since Solaris 2.6 (maybe 2.5.1?)
9820 if test "$GCC" = yes; then
9821 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9823 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9827 link_all_deplibs=yes
9831 if test "x$host_vendor" = xsequent; then
9832 # Use $CC to link under sequent, because it throws in some extra .o
9833 # files that make .init and .fini sections work.
9834 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9836 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9838 hardcode_libdir_flag_spec='-L$libdir'
9840 hardcode_minus_L=yes
9841 hardcode_shlibpath_var=no
9845 case $host_vendor in
9847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848 hardcode_direct=yes # is this really true???
9851 ## LD is ld it makes a PLAMLIB
9852 ## CC just makes a GrossModule.
9853 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9854 reload_cmds='$CC -r -o $output$reload_objs'
9858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9862 runpath_var='LD_RUN_PATH'
9863 hardcode_shlibpath_var=no
9867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9868 hardcode_shlibpath_var=no
9869 export_dynamic_flag_spec='-Bexport'
9873 if test -d /usr/nec; then
9874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875 hardcode_shlibpath_var=no
9876 runpath_var=LD_RUN_PATH
9877 hardcode_runpath_var=yes
9882 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9883 no_undefined_flag='${wl}-z,text'
9884 archive_cmds_need_lc=no
9885 hardcode_shlibpath_var=no
9886 runpath_var='LD_RUN_PATH'
9888 if test "$GCC" = yes; then
9889 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9892 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9893 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9897 sysv5* | sco3.2v5* | sco5v6*)
9898 # Note: We can NOT use -z defs as we might desire, because we do not
9899 # link with -lc, and that would cause any symbols used from libc to
9900 # always be unresolved, which means just about no library would
9901 # ever link correctly. If we're not using GNU ld we use -z text
9902 # though, which does catch some bad symbols but isn't as heavy-handed
9904 no_undefined_flag='${wl}-z,text'
9905 allow_undefined_flag='${wl}-z,nodefs'
9906 archive_cmds_need_lc=no
9907 hardcode_shlibpath_var=no
9908 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9909 hardcode_libdir_separator=':'
9910 link_all_deplibs=yes
9911 export_dynamic_flag_spec='${wl}-Bexport'
9912 runpath_var='LD_RUN_PATH'
9914 if test "$GCC" = yes; then
9915 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9916 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925 hardcode_libdir_flag_spec='-L$libdir'
9926 hardcode_shlibpath_var=no
9934 if test x$host_vendor = xsni; then
9936 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9937 export_dynamic_flag_spec='${wl}-Blargedynsym'
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9944 $as_echo "$ld_shlibs" >&6; }
9945 test "$ld_shlibs" = no && can_build_shared=no
9947 with_gnu_ld=$with_gnu_ld
9964 # Do we need to explicitly link libc?
9966 case "x$archive_cmds_need_lc" in
9968 # Assume -lc should be added
9969 archive_cmds_need_lc=yes
9971 if test "$enable_shared" = yes && test "$GCC" = yes; then
9972 case $archive_cmds in
9974 # FIXME: we may have to deal with multi-command sequences.
9977 # Test whether the compiler implicitly links with -lc since on some
9978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9979 # to ld, don't add -lc before -lgcc.
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9981 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9982 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9983 $as_echo_n "(cached) " >&6
9986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9989 (eval $ac_compile) 2>&5
9991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9992 test $ac_status = 0; } 2>conftest.err; then
9995 libobjs=conftest.$ac_objext
9997 wl=$lt_prog_compiler_wl
9998 pic_flag=$lt_prog_compiler_pic
10004 lt_save_allow_undefined_flag=$allow_undefined_flag
10005 allow_undefined_flag=
10006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10007 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10010 test $ac_status = 0; }
10012 lt_cv_archive_cmds_need_lc=no
10014 lt_cv_archive_cmds_need_lc=yes
10016 allow_undefined_flag=$lt_save_allow_undefined_flag
10018 cat conftest.err 1>&5
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10024 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10025 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10184 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10186 if test "$GCC" = yes; then
10188 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10189 *) lt_awk_arg="/^libraries:/" ;;
10192 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10193 *) lt_sed_strip_eq="s,=/,/,g" ;;
10195 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10196 case $lt_search_path_spec in
10198 # if the path contains ";" then we assume it to be the separator
10199 # otherwise default to the standard path separator (i.e. ":") - it is
10200 # assumed that no part of a normal pathname contains ";" but that should
10201 # okay in the real world where ";" in dirpaths is itself problematic.
10202 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10205 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10208 # Ok, now we have the path, separated by spaces, we can step through it
10209 # and add multilib dir if necessary.
10210 lt_tmp_lt_search_path_spec=
10211 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10212 for lt_sys_path in $lt_search_path_spec; do
10213 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10214 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10216 test -d "$lt_sys_path" && \
10217 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10220 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10221 BEGIN {RS=" "; FS="/|\n";} {
10224 for (lt_i = NF; lt_i > 0; lt_i--) {
10225 if ($lt_i != "" && $lt_i != ".") {
10226 if ($lt_i == "..") {
10229 if (lt_count == 0) {
10230 lt_foo="/" $lt_i lt_foo;
10237 if (lt_foo != "") { lt_freq[lt_foo]++; }
10238 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10240 # AWK program above erroneously prepends '/' to C:/dos/paths
10243 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10244 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10246 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10250 library_names_spec=
10251 libname_spec='lib$name'
10255 postuninstall_cmds=
10259 shlibpath_overrides_runpath=unknown
10261 dynamic_linker="$host_os ld.so"
10262 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10263 need_lib_prefix=unknown
10264 hardcode_into_libs=no
10266 # when you set need_version to no, make sure it does not cause -set_version
10267 # flags to be left without arguments
10268 need_version=unknown
10272 version_type=linux # correct to gnu/linux during the next big refactor
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10274 shlibpath_var=LIBPATH
10276 # AIX 3 has no versioning support, so we append a major version to the name.
10277 soname_spec='${libname}${release}${shared_ext}$major'
10281 version_type=linux # correct to gnu/linux during the next big refactor
10284 hardcode_into_libs=yes
10285 if test "$host_cpu" = ia64; then
10286 # AIX 5 supports IA64
10287 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10288 shlibpath_var=LD_LIBRARY_PATH
10290 # With GCC up to 2.95.x, collect2 would create an import file
10291 # for dependence libraries. The import file would start with
10292 # the line `#! .'. This would cause the generated library to
10293 # depend on `.', always an invalid library. This was fixed in
10294 # development snapshots of GCC prior to 3.0.
10296 aix4 | aix4.[01] | aix4.[01].*)
10297 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10299 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10302 can_build_shared=no
10306 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10307 # soname into executable. Probably we can add versioning support to
10308 # collect2, so additional links can be useful in future.
10309 if test "$aix_use_runtimelinking" = yes; then
10310 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10311 # instead of lib<name>.a to let people know that these are not
10312 # typical AIX shared libraries.
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10315 # We preserve .a as extension for shared libraries through AIX4.2
10316 # and later when we are not doing run time linking.
10317 library_names_spec='${libname}${release}.a $libname.a'
10318 soname_spec='${libname}${release}${shared_ext}$major'
10320 shlibpath_var=LIBPATH
10327 # Since July 2007 AmigaOS4 officially supports .so libraries.
10328 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 library_names_spec='$libname.ixlibrary $libname.a'
10333 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10334 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'
10340 library_names_spec='${libname}${shared_ext}'
10341 dynamic_linker="$host_os ld.so"
10342 shlibpath_var=LIBRARY_PATH
10346 version_type=linux # correct to gnu/linux during the next big refactor
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10353 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10354 # the default ld.so.conf also contains /usr/contrib/lib and
10355 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10356 # libtool to hard-code these into programs
10359 cygwin* | mingw* | pw32* | cegcc*)
10360 version_type=windows
10365 case $GCC,$cc_basename in
10368 library_names_spec='$libname.dll.a'
10369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10370 postinstall_cmds='base_file=`basename \${file}`~
10371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10372 dldir=$destdir/`dirname \$dlpath`~
10373 test -d \$dldir || mkdir -p \$dldir~
10374 $install_prog $dir/$dlname \$dldir/$dlname~
10375 chmod a+x \$dldir/$dlname~
10376 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10377 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10379 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10380 dlpath=$dir/\$dldll~
10382 shlibpath_overrides_runpath=yes
10386 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10387 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10389 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10392 # MinGW DLLs use traditional 'lib' prefix
10393 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10396 # pw32 DLLs use 'pw' prefix rather than 'lib'
10397 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10400 dynamic_linker='Win32 ld.exe'
10405 libname_spec='$name'
10406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10407 library_names_spec='${libname}.dll.lib'
10411 sys_lib_search_path_spec=
10414 for lt_path in $LIB
10417 # Let DOS variable expansion print the short 8.3 style file name.
10418 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10419 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10422 # Convert to MSYS style.
10423 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10426 # Convert to unix form, then to dos form, then back to unix form
10427 # but this time dos style (no spaces!) so that the unix form looks
10428 # like /cygdrive/c/PROGRA~1:/cygdr...
10429 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10430 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10431 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10434 sys_lib_search_path_spec="$LIB"
10435 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10436 # It is most probably a Windows format PATH.
10437 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10441 # FIXME: find the short name or the path components, as spaces are
10442 # common. (e.g. "Program Files" -> "PROGRA~1")
10446 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10447 postinstall_cmds='base_file=`basename \${file}`~
10448 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10449 dldir=$destdir/`dirname \$dlpath`~
10450 test -d \$dldir || mkdir -p \$dldir~
10451 $install_prog $dir/$dlname \$dldir/$dlname'
10452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10453 dlpath=$dir/\$dldll~
10455 shlibpath_overrides_runpath=yes
10456 dynamic_linker='Win32 link.exe'
10460 # Assume MSVC wrapper
10461 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10462 dynamic_linker='Win32 ld.exe'
10465 # FIXME: first we should search . and the directory the executable is in
10469 darwin* | rhapsody*)
10470 dynamic_linker="$host_os dyld"
10471 version_type=darwin
10474 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10475 soname_spec='${libname}${release}${major}$shared_ext'
10476 shlibpath_overrides_runpath=yes
10477 shlibpath_var=DYLD_LIBRARY_PATH
10478 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10480 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10481 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10485 version_type=linux # correct to gnu/linux during the next big refactor
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 shlibpath_var=LD_LIBRARY_PATH
10493 freebsd* | dragonfly*)
10494 # DragonFly does not have aout. When/if they implement a new
10495 # versioning mechanism, adjust this.
10496 if test -x /usr/bin/objformat; then
10497 objformat=`/usr/bin/objformat`
10500 freebsd[23].*) objformat=aout ;;
10501 *) objformat=elf ;;
10504 version_type=freebsd-$objformat
10505 case $version_type in
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10516 shlibpath_var=LD_LIBRARY_PATH
10519 shlibpath_overrides_runpath=yes
10521 freebsd3.[01]* | freebsdelf3.[01]*)
10522 shlibpath_overrides_runpath=yes
10523 hardcode_into_libs=yes
10525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10527 shlibpath_overrides_runpath=no
10528 hardcode_into_libs=yes
10530 *) # from 4.6 on, and DragonFly
10531 shlibpath_overrides_runpath=yes
10532 hardcode_into_libs=yes
10538 version_type=linux # correct to gnu/linux during the next big refactor
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10542 soname_spec='${libname}${release}${shared_ext}$major'
10543 shlibpath_var=LD_LIBRARY_PATH
10544 shlibpath_overrides_runpath=no
10545 hardcode_into_libs=yes
10549 version_type=linux # correct to gnu/linux during the next big refactor
10552 dynamic_linker="$host_os runtime_loader"
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10554 soname_spec='${libname}${release}${shared_ext}$major'
10555 shlibpath_var=LIBRARY_PATH
10556 shlibpath_overrides_runpath=yes
10557 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10558 hardcode_into_libs=yes
10561 hpux9* | hpux10* | hpux11*)
10562 # Give a soname corresponding to the major version so that dld.sl refuses to
10563 # link against other versions.
10570 hardcode_into_libs=yes
10571 dynamic_linker="$host_os dld.so"
10572 shlibpath_var=LD_LIBRARY_PATH
10573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575 soname_spec='${libname}${release}${shared_ext}$major'
10576 if test "X$HPUX_IA64_MODE" = X32; then
10577 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10579 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10585 hardcode_into_libs=yes
10586 dynamic_linker="$host_os dld.sl"
10587 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10596 dynamic_linker="$host_os dld.sl"
10597 shlibpath_var=SHLIB_PATH
10598 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10603 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10604 postinstall_cmds='chmod 555 $lib'
10605 # or fails outright, so override atomically:
10606 install_override_mode=555
10610 version_type=linux # correct to gnu/linux during the next big refactor
10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10614 soname_spec='${libname}${release}${shared_ext}$major'
10615 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=no
10618 hardcode_into_libs=yes
10621 irix5* | irix6* | nonstopux*)
10623 nonstopux*) version_type=nonstopux ;;
10625 if test "$lt_cv_prog_gnu_ld" = yes; then
10626 version_type=linux # correct to gnu/linux during the next big refactor
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10636 irix5* | nonstopux*)
10637 libsuff= shlibsuff=
10640 case $LD in # libtool.m4 will add one of these switches to LD
10641 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10642 libsuff= shlibsuff= libmagic=32-bit;;
10643 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10644 libsuff=32 shlibsuff=N32 libmagic=N32;;
10645 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10646 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10647 *) libsuff= shlibsuff= libmagic=never-match;;
10651 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10652 shlibpath_overrides_runpath=no
10653 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10654 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10655 hardcode_into_libs=yes
10658 # No shared lib support for Linux oldld, aout, or coff.
10659 linux*oldld* | linux*aout* | linux*coff*)
10663 # This must be glibc/ELF.
10664 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10665 version_type=linux # correct to gnu/linux during the next big refactor
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10671 shlibpath_var=LD_LIBRARY_PATH
10672 shlibpath_overrides_runpath=no
10674 # Some binutils ld are patched to set DT_RUNPATH
10675 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10676 $as_echo_n "(cached) " >&6
10678 lt_cv_shlibpath_overrides_runpath=no
10679 save_LDFLAGS=$LDFLAGS
10680 save_libdir=$libdir
10681 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10682 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10694 if ac_fn_c_try_link "$LINENO"; then :
10695 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10696 lt_cv_shlibpath_overrides_runpath=yes
10699 rm -f core conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10701 LDFLAGS=$save_LDFLAGS
10702 libdir=$save_libdir
10706 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10708 # This implies no fast_install, which is unacceptable.
10709 # Some rework will be needed to allow for fast_install
10710 # before this can be enabled.
10711 hardcode_into_libs=yes
10713 # Add ABI-specific directories to the system library path.
10714 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10716 # Append ld.so.conf contents to the search path
10717 if test -f /etc/ld.so.conf; then
10718 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' ' '`
10719 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10723 # We used to test for /lib/ld.so.1 and disable shared libraries on
10724 # powerpc, because MkLinux only supported shared libraries with the
10725 # GNU dynamic linker. Since this was broken with cross compilers,
10726 # most powerpc-linux boxes support dynamic linking these days and
10727 # people can always --disable-shared, the test was removed, and we
10728 # assume the GNU/Linux dynamic linker is in use.
10729 dynamic_linker='GNU/Linux ld.so'
10736 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10738 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10739 dynamic_linker='NetBSD (a.out) ld.so'
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 dynamic_linker='NetBSD ld.elf_so'
10745 shlibpath_var=LD_LIBRARY_PATH
10746 shlibpath_overrides_runpath=yes
10747 hardcode_into_libs=yes
10751 version_type=linux # correct to gnu/linux during the next big refactor
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 shlibpath_overrides_runpath=yes
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762 soname_spec='${libname}${release}${shared_ext}$major'
10763 shlibpath_var=LD_LIBRARY_PATH
10764 shlibpath_overrides_runpath=no
10765 hardcode_into_libs=yes
10766 dynamic_linker='ldqnx.so'
10771 sys_lib_dlsearch_path_spec="/usr/lib"
10773 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10775 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10776 *) need_version=no ;;
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10780 shlibpath_var=LD_LIBRARY_PATH
10781 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10783 openbsd2.[89] | openbsd2.[89].*)
10784 shlibpath_overrides_runpath=no
10787 shlibpath_overrides_runpath=yes
10791 shlibpath_overrides_runpath=yes
10796 libname_spec='$name'
10799 library_names_spec='$libname${shared_ext} $libname.a'
10800 dynamic_linker='OS/2 ld.exe'
10801 shlibpath_var=LIBPATH
10804 osf3* | osf4* | osf5*)
10808 soname_spec='${libname}${release}${shared_ext}$major'
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 shlibpath_var=LD_LIBRARY_PATH
10811 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10812 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10820 version_type=linux # correct to gnu/linux during the next big refactor
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 shlibpath_var=LD_LIBRARY_PATH
10826 shlibpath_overrides_runpath=yes
10827 hardcode_into_libs=yes
10828 # ldd complains unless libraries are executable
10829 postinstall_cmds='chmod +x $lib'
10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10835 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10836 shlibpath_var=LD_LIBRARY_PATH
10837 shlibpath_overrides_runpath=yes
10838 if test "$with_gnu_ld" = yes; then
10845 version_type=linux # correct to gnu/linux during the next big refactor
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847 soname_spec='${libname}${release}${shared_ext}$major'
10848 shlibpath_var=LD_LIBRARY_PATH
10849 case $host_vendor in
10851 shlibpath_overrides_runpath=no
10853 runpath_var=LD_RUN_PATH
10861 shlibpath_overrides_runpath=no
10862 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10868 if test -d /usr/nec ;then
10869 version_type=linux # correct to gnu/linux during the next big refactor
10870 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10871 soname_spec='$libname${shared_ext}.$major'
10872 shlibpath_var=LD_LIBRARY_PATH
10876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10877 version_type=freebsd-elf
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10881 soname_spec='${libname}${release}${shared_ext}$major'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=yes
10884 hardcode_into_libs=yes
10885 if test "$with_gnu_ld" = yes; then
10886 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10888 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10891 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10895 sys_lib_dlsearch_path_spec='/usr/lib'
10899 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10900 version_type=linux # correct to gnu/linux during the next big refactor
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 shlibpath_overrides_runpath=no
10906 hardcode_into_libs=yes
10910 version_type=linux # correct to gnu/linux during the next big refactor
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912 soname_spec='${libname}${release}${shared_ext}$major'
10913 shlibpath_var=LD_LIBRARY_PATH
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10921 $as_echo "$dynamic_linker" >&6; }
10922 test "$dynamic_linker" = no && can_build_shared=no
10924 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10925 if test "$GCC" = yes; then
10926 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10929 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10930 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10932 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10933 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11028 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11030 if test -n "$hardcode_libdir_flag_spec" ||
11031 test -n "$runpath_var" ||
11032 test "X$hardcode_automatic" = "Xyes" ; then
11034 # We can hardcode non-existent directories.
11035 if test "$hardcode_direct" != no &&
11036 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11037 # have to relink, otherwise we might link with an installed library
11038 # when we should be linking with a yet-to-be-installed one
11039 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11040 test "$hardcode_minus_L" != no; then
11041 # Linking always hardcodes the temporary library directory.
11042 hardcode_action=relink
11044 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11045 hardcode_action=immediate
11048 # We cannot hardcode anything, or else we can only hardcode existing
11050 hardcode_action=unsupported
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11053 $as_echo "$hardcode_action" >&6; }
11055 if test "$hardcode_action" = relink ||
11056 test "$inherit_rpath" = yes; then
11057 # Fast installation is not supported
11058 enable_fast_install=no
11059 elif test "$shlibpath_overrides_runpath" = yes ||
11060 test "$enable_shared" = no; then
11061 # Fast installation is not necessary
11062 enable_fast_install=needless
11070 if test "x$enable_dlopen" != xyes; then
11071 enable_dlopen=unknown
11072 enable_dlopen_self=unknown
11073 enable_dlopen_self_static=unknown
11080 lt_cv_dlopen="load_add_on"
11082 lt_cv_dlopen_self=yes
11085 mingw* | pw32* | cegcc*)
11086 lt_cv_dlopen="LoadLibrary"
11091 lt_cv_dlopen="dlopen"
11096 # if libdl is installed we need to link against it
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11098 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11099 if ${ac_cv_lib_dl_dlopen+:} false; then :
11100 $as_echo_n "(cached) " >&6
11102 ac_check_lib_save_LIBS=$LIBS
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11122 if ac_fn_c_try_link "$LINENO"; then :
11123 ac_cv_lib_dl_dlopen=yes
11125 ac_cv_lib_dl_dlopen=no
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_lib_save_LIBS
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11132 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11133 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11137 lt_cv_dlopen="dyld"
11139 lt_cv_dlopen_self=yes
11146 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11147 if test "x$ac_cv_func_shl_load" = xyes; then :
11148 lt_cv_dlopen="shl_load"
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11151 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11152 if ${ac_cv_lib_dld_shl_load+:} false; then :
11153 $as_echo_n "(cached) " >&6
11155 ac_check_lib_save_LIBS=$LIBS
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h. */
11160 /* Override any GCC internal prototype to avoid an error.
11161 Use char because int might match the return type of a GCC
11162 builtin and then its argument prototype would still apply. */
11170 return shl_load ();
11175 if ac_fn_c_try_link "$LINENO"; then :
11176 ac_cv_lib_dld_shl_load=yes
11178 ac_cv_lib_dld_shl_load=no
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11185 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11186 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11187 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11189 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11190 if test "x$ac_cv_func_dlopen" = xyes; then :
11191 lt_cv_dlopen="dlopen"
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11194 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11195 if ${ac_cv_lib_dl_dlopen+:} false; then :
11196 $as_echo_n "(cached) " >&6
11198 ac_check_lib_save_LIBS=$LIBS
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11203 /* Override any GCC internal prototype to avoid an error.
11204 Use char because int might match the return type of a GCC
11205 builtin and then its argument prototype would still apply. */
11218 if ac_fn_c_try_link "$LINENO"; then :
11219 ac_cv_lib_dl_dlopen=yes
11221 ac_cv_lib_dl_dlopen=no
11223 rm -f core conftest.err conftest.$ac_objext \
11224 conftest$ac_exeext conftest.$ac_ext
11225 LIBS=$ac_check_lib_save_LIBS
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11228 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11229 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11233 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11234 if ${ac_cv_lib_svld_dlopen+:} false; then :
11235 $as_echo_n "(cached) " >&6
11237 ac_check_lib_save_LIBS=$LIBS
11238 LIBS="-lsvld $LIBS"
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11242 /* Override any GCC internal prototype to avoid an error.
11243 Use char because int might match the return type of a GCC
11244 builtin and then its argument prototype would still apply. */
11257 if ac_fn_c_try_link "$LINENO"; then :
11258 ac_cv_lib_svld_dlopen=yes
11260 ac_cv_lib_svld_dlopen=no
11262 rm -f core conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
11264 LIBS=$ac_check_lib_save_LIBS
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11267 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11268 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11272 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11273 if ${ac_cv_lib_dld_dld_link+:} false; then :
11274 $as_echo_n "(cached) " >&6
11276 ac_check_lib_save_LIBS=$LIBS
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11291 return dld_link ();
11296 if ac_fn_c_try_link "$LINENO"; then :
11297 ac_cv_lib_dld_dld_link=yes
11299 ac_cv_lib_dld_dld_link=no
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11306 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11307 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11308 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11329 if test "x$lt_cv_dlopen" != xno; then
11335 case $lt_cv_dlopen in
11337 save_CPPFLAGS="$CPPFLAGS"
11338 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11340 save_LDFLAGS="$LDFLAGS"
11341 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11344 LIBS="$lt_cv_dlopen_libs $LIBS"
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11347 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11348 if ${lt_cv_dlopen_self+:} false; then :
11349 $as_echo_n "(cached) " >&6
11351 if test "$cross_compiling" = yes; then :
11352 lt_cv_dlopen_self=cross
11354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11355 lt_status=$lt_dlunknown
11356 cat > conftest.$ac_ext <<_LT_EOF
11357 #line $LINENO "configure"
11358 #include "confdefs.h"
11367 # define LT_DLGLOBAL RTLD_GLOBAL
11370 # define LT_DLGLOBAL DL_GLOBAL
11372 # define LT_DLGLOBAL 0
11376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11377 find out it does not work in some platform. */
11378 #ifndef LT_DLLAZY_OR_NOW
11380 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11383 # define LT_DLLAZY_OR_NOW DL_LAZY
11386 # define LT_DLLAZY_OR_NOW RTLD_NOW
11389 # define LT_DLLAZY_OR_NOW DL_NOW
11391 # define LT_DLLAZY_OR_NOW 0
11398 /* When -fvisbility=hidden is used, assume the code has been annotated
11399 correspondingly for the symbols needed. */
11400 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11401 int fnord () __attribute__((visibility("default")));
11404 int fnord () { return 42; }
11407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11408 int status = $lt_dlunknown;
11412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11415 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11416 else puts (dlerror ());
11418 /* dlclose (self); */
11426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11427 (eval $ac_link) 2>&5
11429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11430 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11431 (./conftest; exit; ) >&5 2>/dev/null
11433 case x$lt_status in
11434 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11435 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11436 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11439 # compilation failed
11440 lt_cv_dlopen_self=no
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11448 $as_echo "$lt_cv_dlopen_self" >&6; }
11450 if test "x$lt_cv_dlopen_self" = xyes; then
11451 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11453 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11454 if ${lt_cv_dlopen_self_static+:} false; then :
11455 $as_echo_n "(cached) " >&6
11457 if test "$cross_compiling" = yes; then :
11458 lt_cv_dlopen_self_static=cross
11460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11461 lt_status=$lt_dlunknown
11462 cat > conftest.$ac_ext <<_LT_EOF
11463 #line $LINENO "configure"
11464 #include "confdefs.h"
11473 # define LT_DLGLOBAL RTLD_GLOBAL
11476 # define LT_DLGLOBAL DL_GLOBAL
11478 # define LT_DLGLOBAL 0
11482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11483 find out it does not work in some platform. */
11484 #ifndef LT_DLLAZY_OR_NOW
11486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11489 # define LT_DLLAZY_OR_NOW DL_LAZY
11492 # define LT_DLLAZY_OR_NOW RTLD_NOW
11495 # define LT_DLLAZY_OR_NOW DL_NOW
11497 # define LT_DLLAZY_OR_NOW 0
11504 /* When -fvisbility=hidden is used, assume the code has been annotated
11505 correspondingly for the symbols needed. */
11506 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11507 int fnord () __attribute__((visibility("default")));
11510 int fnord () { return 42; }
11513 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11514 int status = $lt_dlunknown;
11518 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11521 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11522 else puts (dlerror ());
11524 /* dlclose (self); */
11532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11533 (eval $ac_link) 2>&5
11535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11536 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11537 (./conftest; exit; ) >&5 2>/dev/null
11539 case x$lt_status in
11540 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11541 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11542 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11545 # compilation failed
11546 lt_cv_dlopen_self_static=no
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11554 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11557 CPPFLAGS="$save_CPPFLAGS"
11558 LDFLAGS="$save_LDFLAGS"
11563 case $lt_cv_dlopen_self in
11564 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11565 *) enable_dlopen_self=unknown ;;
11568 case $lt_cv_dlopen_self_static in
11569 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11570 *) enable_dlopen_self_static=unknown ;;
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11593 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11594 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11595 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11596 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11598 $as_echo "yes" >&6; }
11600 # FIXME - insert some real tests, host_os isn't really good enough
11603 if test -n "$STRIP" ; then
11604 striplib="$STRIP -x"
11605 old_striplib="$STRIP -S"
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11607 $as_echo "yes" >&6; }
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11631 # Report which library types will actually be built
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11633 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11635 $as_echo "$can_build_shared" >&6; }
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11638 $as_echo_n "checking whether to build shared libraries... " >&6; }
11639 test "$can_build_shared" = "no" && enable_shared=no
11641 # On AIX, shared libraries and static libraries use the same namespace, and
11642 # are all built from PIC.
11645 test "$enable_shared" = yes && enable_static=no
11646 if test -n "$RANLIB"; then
11647 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11648 postinstall_cmds='$RANLIB $lib'
11653 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11654 test "$enable_shared" = yes && enable_static=no
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11659 $as_echo "$enable_shared" >&6; }
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11662 $as_echo_n "checking whether to build static libraries... " >&6; }
11663 # Make sure either enable_shared or enable_static is yes.
11664 test "$enable_shared" = yes || enable_static=yes
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11666 $as_echo "$enable_static" >&6; }
11673 ac_cpp='$CPP $CPPFLAGS'
11674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11694 ac_config_commands="$ac_config_commands libtool"
11699 # Only expand once:
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11704 $as_echo_n "checking for library containing strerror... " >&6; }
11705 if ${ac_cv_search_strerror+:} false; then :
11706 $as_echo_n "(cached) " >&6
11708 ac_func_search_save_LIBS=$LIBS
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11712 /* Override any GCC internal prototype to avoid an error.
11713 Use char because int might match the return type of a GCC
11714 builtin and then its argument prototype would still apply. */
11722 return strerror ();
11727 for ac_lib in '' cposix; do
11728 if test -z "$ac_lib"; then
11729 ac_res="none required"
11732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11734 if ac_fn_c_try_link "$LINENO"; then :
11735 ac_cv_search_strerror=$ac_res
11737 rm -f core conftest.err conftest.$ac_objext \
11739 if ${ac_cv_search_strerror+:} false; then :
11743 if ${ac_cv_search_strerror+:} false; then :
11746 ac_cv_search_strerror=no
11748 rm conftest.$ac_ext
11749 LIBS=$ac_func_search_save_LIBS
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11752 $as_echo "$ac_cv_search_strerror" >&6; }
11753 ac_res=$ac_cv_search_strerror
11754 if test "$ac_res" != no; then :
11755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11760 ac_cpp='$CPP $CPPFLAGS'
11761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11764 if test -n "$ac_tool_prefix"; then
11765 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11766 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768 $as_echo_n "checking for $ac_word... " >&6; }
11769 if ${ac_cv_prog_CC+:} false; then :
11770 $as_echo_n "(cached) " >&6
11772 if test -n "$CC"; then
11773 ac_cv_prog_CC="$CC" # Let the user override the test.
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 if test -n "$CC"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11795 $as_echo "$CC" >&6; }
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798 $as_echo "no" >&6; }
11803 if test -z "$ac_cv_prog_CC"; then
11805 # Extract the first word of "gcc", so it can be a program name with args.
11806 set dummy gcc; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11810 $as_echo_n "(cached) " >&6
11812 if test -n "$ac_ct_CC"; then
11813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11822 ac_cv_prog_ac_ct_CC="gcc"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11833 if test -n "$ac_ct_CC"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11835 $as_echo "$ac_ct_CC" >&6; }
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11841 if test "x$ac_ct_CC" = x; then
11844 case $cross_compiling:$ac_tool_warned in
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11848 ac_tool_warned=yes ;;
11853 CC="$ac_cv_prog_CC"
11856 if test -z "$CC"; then
11857 if test -n "$ac_tool_prefix"; then
11858 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11859 set dummy ${ac_tool_prefix}cc; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_prog_CC+:} false; then :
11863 $as_echo_n "(cached) " >&6
11865 if test -n "$CC"; then
11866 ac_cv_prog_CC="$CC" # Let the user override the test.
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11872 test -z "$as_dir" && as_dir=.
11873 for ac_exec_ext in '' $ac_executable_extensions; do
11874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11875 ac_cv_prog_CC="${ac_tool_prefix}cc"
11876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11886 if test -n "$CC"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11888 $as_echo "$CC" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11897 if test -z "$CC"; then
11898 # Extract the first word of "cc", so it can be a program name with args.
11899 set dummy cc; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if ${ac_cv_prog_CC+:} false; then :
11903 $as_echo_n "(cached) " >&6
11905 if test -n "$CC"; then
11906 ac_cv_prog_CC="$CC" # Let the user override the test.
11908 ac_prog_rejected=no
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11917 ac_prog_rejected=yes
11921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11928 if test $ac_prog_rejected = yes; then
11929 # We found a bogon in the path, so make sure we never use it.
11930 set dummy $ac_cv_prog_CC
11932 if test $# != 0; then
11933 # We chose a different compiler from the bogus one.
11934 # However, it has the same basename, so the bogon will be chosen
11935 # first if we set CC to just the basename; use the full file name.
11937 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11943 if test -n "$CC"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11945 $as_echo "$CC" >&6; }
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11953 if test -z "$CC"; then
11954 if test -n "$ac_tool_prefix"; then
11955 for ac_prog in cl.exe
11957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960 $as_echo_n "checking for $ac_word... " >&6; }
11961 if ${ac_cv_prog_CC+:} false; then :
11962 $as_echo_n "(cached) " >&6
11964 if test -n "$CC"; then
11965 ac_cv_prog_CC="$CC" # Let the user override the test.
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11971 test -z "$as_dir" && as_dir=.
11972 for ac_exec_ext in '' $ac_executable_extensions; do
11973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 if test -n "$CC"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11987 $as_echo "$CC" >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11994 test -n "$CC" && break
11997 if test -z "$CC"; then
11999 for ac_prog in cl.exe
12001 # Extract the first word of "$ac_prog", so it can be a program name with args.
12002 set dummy $ac_prog; ac_word=$2
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004 $as_echo_n "checking for $ac_word... " >&6; }
12005 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12006 $as_echo_n "(cached) " >&6
12008 if test -n "$ac_ct_CC"; then
12009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_prog_ac_ct_CC="$ac_prog"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12029 if test -n "$ac_ct_CC"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12031 $as_echo "$ac_ct_CC" >&6; }
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12038 test -n "$ac_ct_CC" && break
12041 if test "x$ac_ct_CC" = x; then
12044 case $cross_compiling:$ac_tool_warned in
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12048 ac_tool_warned=yes ;;
12057 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12059 as_fn_error $? "no acceptable C compiler found in \$PATH
12060 See \`config.log' for more details" "$LINENO" 5; }
12062 # Provide some information about the compiler.
12063 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12066 for ac_option in --version -v -V -qversion; do
12067 { { ac_try="$ac_compiler $ac_option >&5"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12073 $as_echo "$ac_try_echo"; } >&5
12074 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12076 if test -s conftest.err; then
12078 ... rest of stderr output deleted ...
12079 10q' conftest.err >conftest.er1
12080 cat conftest.er1 >&5
12082 rm -f conftest.er1 conftest.err
12083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12084 test $ac_status = 0; }
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12088 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12089 if ${ac_cv_c_compiler_gnu+:} false; then :
12090 $as_echo_n "(cached) " >&6
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12106 if ac_fn_c_try_compile "$LINENO"; then :
12107 ac_compiler_gnu=yes
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12116 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12117 if test $ac_compiler_gnu = yes; then
12122 ac_test_CFLAGS=${CFLAGS+set}
12123 ac_save_CFLAGS=$CFLAGS
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12125 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12126 if ${ac_cv_prog_cc_g+:} false; then :
12127 $as_echo_n "(cached) " >&6
12129 ac_save_c_werror_flag=$ac_c_werror_flag
12130 ac_c_werror_flag=yes
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12144 if ac_fn_c_try_compile "$LINENO"; then :
12145 ac_cv_prog_cc_g=yes
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12159 if ac_fn_c_try_compile "$LINENO"; then :
12162 ac_c_werror_flag=$ac_save_c_werror_flag
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12175 if ac_fn_c_try_compile "$LINENO"; then :
12176 ac_cv_prog_cc_g=yes
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183 ac_c_werror_flag=$ac_save_c_werror_flag
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12186 $as_echo "$ac_cv_prog_cc_g" >&6; }
12187 if test "$ac_test_CFLAGS" = set; then
12188 CFLAGS=$ac_save_CFLAGS
12189 elif test $ac_cv_prog_cc_g = yes; then
12190 if test "$GCC" = yes; then
12196 if test "$GCC" = yes; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12203 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12204 if ${ac_cv_prog_cc_c89+:} false; then :
12205 $as_echo_n "(cached) " >&6
12207 ac_cv_prog_cc_c89=no
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211 #include <stdarg.h>
12214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12215 struct buf { int x; };
12216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12217 static char *e (p, i)
12223 static char *f (char * (*g) (char **, int), char **p, ...)
12228 s = g (p, va_arg (v,int));
12233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12234 function prototypes and stuff, but not '\xHH' hex character constants.
12235 These don't provoke an error unfortunately, instead are silently treated
12236 as 'x'. The following induces an error, until -std is added to get
12237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12238 array size at least. It's necessary to write '\x00'==0 to get something
12239 that's true only with -std. */
12240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12243 inside strings and character constants. */
12245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12247 int test (int i, double x);
12248 struct s1 {int (*f) (int a);};
12249 struct s2 {int (*f) (double a);};
12250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12256 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12262 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12264 CC="$ac_save_CC $ac_arg"
12265 if ac_fn_c_try_compile "$LINENO"; then :
12266 ac_cv_prog_cc_c89=$ac_arg
12268 rm -f core conftest.err conftest.$ac_objext
12269 test "x$ac_cv_prog_cc_c89" != "xno" && break
12271 rm -f conftest.$ac_ext
12276 case "x$ac_cv_prog_cc_c89" in
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12279 $as_echo "none needed" >&6; } ;;
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12282 $as_echo "unsupported" >&6; } ;;
12284 CC="$CC $ac_cv_prog_cc_c89"
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12286 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12288 if test "x$ac_cv_prog_cc_c89" != xno; then :
12293 ac_cpp='$CPP $CPPFLAGS'
12294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12298 depcc="$CC" am_compiler_list=
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12301 $as_echo_n "checking dependency style of $depcc... " >&6; }
12302 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12303 $as_echo_n "(cached) " >&6
12305 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12306 # We make a subdir and do the tests there. Otherwise we can end up
12307 # making bogus files that we don't know about and never remove. For
12308 # instance it was reported that on HP-UX the gcc test will end up
12309 # making a dummy file named `D' -- because `-MD' means `put the output
12311 rm -rf conftest.dir
12313 # Copy depcomp to subdir because otherwise we won't find it if we're
12314 # using a relative directory.
12315 cp "$am_depcomp" conftest.dir
12317 # We will build objects and dependencies in a subdirectory because
12318 # it helps to detect inapplicable dependency modes. For instance
12319 # both Tru64's cc and ICC support -MD to output dependencies as a
12320 # side effect of compilation, but ICC will put the dependencies in
12321 # the current directory while Tru64 will put them in the object
12325 am_cv_CC_dependencies_compiler_type=none
12326 if test "$am_compiler_list" = ""; then
12327 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12329 am__universal=false
12330 case " $depcc " in #(
12331 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12334 for depmode in $am_compiler_list; do
12335 # Setup a source with many dependencies, because some compilers
12336 # like to wrap large dependency lists on column 80 (with \), and
12337 # we should not choose a depcomp mode which is confused by this.
12339 # We need to recreate these files for each test, as the compiler may
12340 # overwrite some of them when testing with obscure command lines.
12341 # This happens at least with the AIX C compiler.
12343 for i in 1 2 3 4 5 6; do
12344 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12345 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12346 # Solaris 8's {/usr,}/bin/sh.
12347 touch sub/conftst$i.h
12349 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12351 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12352 # mode. It turns out that the SunPro C++ compiler does not properly
12353 # handle `-M -o', and we need to detect this. Also, some Intel
12354 # versions had trouble with output in subdirs
12355 am__obj=sub/conftest.${OBJEXT-o}
12356 am__minus_obj="-o $am__obj"
12359 # This depmode causes a compiler race in universal mode.
12360 test "$am__universal" = false || continue
12363 # after this tag, mechanisms are not by side-effect, so they'll
12364 # only be used when explicitly requested
12365 if test "x$enable_dependency_tracking" = xyes; then
12371 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12372 # This compiler won't grok `-c -o', but also, the minuso test has
12373 # not run yet. These depmodes are late enough in the game, and
12374 # so weak that their functioning should not be impacted.
12375 am__obj=conftest.${OBJEXT-o}
12380 if depmode=$depmode \
12381 source=sub/conftest.c object=$am__obj \
12382 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12383 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12384 >/dev/null 2>conftest.err &&
12385 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12386 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12387 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12388 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12389 # icc doesn't choke on unknown options, it will just issue warnings
12390 # or remarks (even with -Werror). So we grep stderr for any message
12391 # that says an option was ignored or not supported.
12392 # When given -MP, icc 7.0 and 7.1 complain thusly:
12393 # icc: Command line warning: ignoring option '-M'; no argument required
12394 # The diagnosis changed in icc 8.0:
12395 # icc: Command line remark: option '-MP' not supported
12396 if (grep 'ignoring option' conftest.err ||
12397 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12398 am_cv_CC_dependencies_compiler_type=$depmode
12405 rm -rf conftest.dir
12407 am_cv_CC_dependencies_compiler_type=none
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12412 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12413 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12416 test "x$enable_dependency_tracking" != xno \
12417 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12418 am__fastdepCC_TRUE=
12419 am__fastdepCC_FALSE='#'
12421 am__fastdepCC_TRUE='#'
12422 am__fastdepCC_FALSE=
12426 if test "x$CC" != xcc; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12428 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12431 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12433 set dummy $CC; ac_cc=`$as_echo "$2" |
12434 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12435 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12436 $as_echo_n "(cached) " >&6
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12449 # Make sure it works both with $CC and with simple cc.
12450 # We do the test twice because some compilers refuse to overwrite an
12451 # existing .o file with -o, though they will create one.
12452 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12454 if { { case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12459 $as_echo "$ac_try_echo"; } >&5
12460 (eval "$ac_try") 2>&5
12462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12463 test $ac_status = 0; } &&
12464 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12469 $as_echo "$ac_try_echo"; } >&5
12470 (eval "$ac_try") 2>&5
12472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12473 test $ac_status = 0; };
12475 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12476 if test "x$CC" != xcc; then
12477 # Test first that cc exists at all.
12478 if { ac_try='cc -c conftest.$ac_ext >&5'
12479 { { case "(($ac_try" in
12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12484 $as_echo "$ac_try_echo"; } >&5
12485 (eval "$ac_try") 2>&5
12487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12488 test $ac_status = 0; }; }; then
12489 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12491 if { { case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12496 $as_echo "$ac_try_echo"; } >&5
12497 (eval "$ac_try") 2>&5
12499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12500 test $ac_status = 0; } &&
12501 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12506 $as_echo "$ac_try_echo"; } >&5
12507 (eval "$ac_try") 2>&5
12509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12510 test $ac_status = 0; };
12515 # cc exists but doesn't like -o.
12516 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12521 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12523 rm -f core conftest*
12526 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12528 $as_echo "yes" >&6; }
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12533 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12537 # FIXME: we rely on the cache variable name because
12538 # there is no other way.
12540 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12541 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12542 if test "$am_t" != yes; then
12543 # Losing compiler, so override with the script.
12544 # FIXME: It is wrong to rewrite CC.
12545 # But if we don't then we get into trouble of one sort or another.
12546 # A longer-term fix would be to have automake use am__CC in this case,
12547 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12548 CC="$am_aux_dir/compile $CC"
12553 # option to specify python interpreter to use; this just sets $PYTHON, so that
12554 # we will fallback to reading $PYTHON if --with-python is not given, and
12555 # python.m4 will get the expected input
12557 # Check whether --with-python was given.
12558 if test "${with_python+set}" = set; then :
12559 withval=$with_python; PYTHON="$withval"
12562 if test x"$PYTHON" = xyes; then
12563 as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12565 if test -n "$PYTHON" && ! which "$PYTHON"; then
12566 as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12569 # check that we have the minimum version of python necessary to build
12574 if test -n "$PYTHON"; then
12575 # If the user set $PYTHON, use it and don't search something else.
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
12577 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
12579 # split strings by '.' and convert to numeric. Append some zeros
12580 # because we need at least 4 digits for the hex conversion.
12581 # map returns an iterator in Python 3.0 and a list in 2.x
12582 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12584 # xrange is not present in Python 3.0 and range returns an iterator
12585 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12586 sys.exit(sys.hexversion < minverhex)"
12587 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12588 ($PYTHON -c "$prog") >&5 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; then :
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12593 $as_echo "yes" >&6; }
12595 as_fn_error $? "too old" "$LINENO" 5
12597 am_display_PYTHON=$PYTHON
12599 # Otherwise, try each interpreter until we find one that satisfies
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
12602 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
12603 if ${am_cv_pathless_PYTHON+:} false; then :
12604 $as_echo_n "(cached) " >&6
12607 for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
12608 test "$am_cv_pathless_PYTHON" = none && break
12610 # split strings by '.' and convert to numeric. Append some zeros
12611 # because we need at least 4 digits for the hex conversion.
12612 # map returns an iterator in Python 3.0 and a list in 2.x
12613 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12615 # xrange is not present in Python 3.0 and range returns an iterator
12616 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12617 sys.exit(sys.hexversion < minverhex)"
12618 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12619 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; then :
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12628 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12629 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12630 if test "$am_cv_pathless_PYTHON" = none; then
12633 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12634 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636 $as_echo_n "checking for $ac_word... " >&6; }
12637 if ${ac_cv_path_PYTHON+:} false; then :
12638 $as_echo_n "(cached) " >&6
12642 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12652 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663 PYTHON=$ac_cv_path_PYTHON
12664 if test -n "$PYTHON"; then
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12666 $as_echo "$PYTHON" >&6; }
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12674 am_display_PYTHON=$am_cv_pathless_PYTHON
12678 if test "$PYTHON" = :; then
12679 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12684 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12685 if ${am_cv_python_version+:} false; then :
12686 $as_echo_n "(cached) " >&6
12688 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12691 $as_echo "$am_cv_python_version" >&6; }
12692 PYTHON_VERSION=$am_cv_python_version
12696 PYTHON_PREFIX='${prefix}'
12698 PYTHON_EXEC_PREFIX='${exec_prefix}'
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12703 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12704 if ${am_cv_python_platform+:} false; then :
12705 $as_echo_n "(cached) " >&6
12707 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12710 $as_echo "$am_cv_python_platform" >&6; }
12711 PYTHON_PLATFORM=$am_cv_python_platform
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12717 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12718 if ${am_cv_python_pythondir+:} false; then :
12719 $as_echo_n "(cached) " >&6
12721 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12722 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12725 $as_echo "$am_cv_python_pythondir" >&6; }
12726 pythondir=$am_cv_python_pythondir
12730 pkgpythondir=\${pythondir}/$PACKAGE
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12734 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12735 if ${am_cv_python_pyexecdir+:} false; then :
12736 $as_echo_n "(cached) " >&6
12738 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12739 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12742 $as_echo "$am_cv_python_pyexecdir" >&6; }
12743 pyexecdir=$am_cv_python_pyexecdir
12747 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12755 # check if we are building for python 3
12757 # split strings by '.' and convert to numeric. Append some zeros
12758 # because we need at least 4 digits for the hex conversion.
12759 # map returns an iterator in Python 3.0 and a list in 2.x
12760 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12762 # xrange is not present in Python 3.0 and range returns an iterator
12763 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12764 sys.exit(sys.hexversion < minverhex)"
12765 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12766 ($PYTHON -c "$prog") >&5 2>&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; then :
12775 # if building for python 3 make sure we have the minimum version supported
12776 if test $build_py3k = true ; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12778 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
12780 # split strings by '.' and convert to numeric. Append some zeros
12781 # because we need at least 4 digits for the hex conversion.
12782 # map returns an iterator in Python 3.0 and a list in 2.x
12783 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
12785 # xrange is not present in Python 3.0 and range returns an iterator
12786 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12787 sys.exit(sys.hexversion < minverhex)"
12788 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12789 ($PYTHON -c "$prog") >&5 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; then :
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12794 $as_echo "yes" >&6; }
12796 as_fn_error $? "too old" "$LINENO" 5
12800 # - 'SO' for PyPy, CPython 2.7-3.2
12801 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
12802 # - fallback to '.so'
12803 PYTHON_SO=`$PYTHON -c "import distutils.sysconfig, sys; get = distutils.sysconfig.get_config_var; sys.stdout.write(get('EXT_SUFFIX') or get('SO') or '.so');"`
12812 # Find any Python interpreter.
12813 if test -z "$PYTHON"; then
12814 for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
12816 # Extract the first word of "$ac_prog", so it can be a program name with args.
12817 set dummy $ac_prog; ac_word=$2
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819 $as_echo_n "checking for $ac_word... " >&6; }
12820 if ${ac_cv_path_PYTHON+:} false; then :
12821 $as_echo_n "(cached) " >&6
12825 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $PATH
12832 test -z "$as_dir" && as_dir=.
12833 for ac_exec_ext in '' $ac_executable_extensions; do
12834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12835 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12846 PYTHON=$ac_cv_path_PYTHON
12847 if test -n "$PYTHON"; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12849 $as_echo "$PYTHON" >&6; }
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852 $as_echo "no" >&6; }
12856 test -n "$PYTHON" && break
12858 test -n "$PYTHON" || PYTHON=":"
12861 am_display_PYTHON=python
12864 if test "$PYTHON" = :; then
12865 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12870 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12871 if ${am_cv_python_version+:} false; then :
12872 $as_echo_n "(cached) " >&6
12874 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12877 $as_echo "$am_cv_python_version" >&6; }
12878 PYTHON_VERSION=$am_cv_python_version
12882 PYTHON_PREFIX='${prefix}'
12884 PYTHON_EXEC_PREFIX='${exec_prefix}'
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12889 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12890 if ${am_cv_python_platform+:} false; then :
12891 $as_echo_n "(cached) " >&6
12893 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12896 $as_echo "$am_cv_python_platform" >&6; }
12897 PYTHON_PLATFORM=$am_cv_python_platform
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12903 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12904 if ${am_cv_python_pythondir+:} false; then :
12905 $as_echo_n "(cached) " >&6
12907 if test "x$prefix" = xNONE
12909 am_py_prefix=$ac_default_prefix
12911 am_py_prefix=$prefix
12913 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`
12914 case $am_cv_python_pythondir in
12916 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12917 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12920 case $am_py_prefix in
12923 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12931 $as_echo "$am_cv_python_pythondir" >&6; }
12932 pythondir=$am_cv_python_pythondir
12936 pkgpythondir=\${pythondir}/$PACKAGE
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12940 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12941 if ${am_cv_python_pyexecdir+:} false; then :
12942 $as_echo_n "(cached) " >&6
12944 if test "x$exec_prefix" = xNONE
12946 am_py_exec_prefix=$am_py_prefix
12948 am_py_exec_prefix=$exec_prefix
12950 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`
12951 case $am_cv_python_pyexecdir in
12952 $am_py_exec_prefix*)
12953 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12954 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
12957 case $am_py_exec_prefix in
12960 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12968 $as_echo "$am_cv_python_pyexecdir" >&6; }
12969 pyexecdir=$am_cv_python_pyexecdir
12973 pkgpyexecdir=\${pyexecdir}/$PACKAGE
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
12982 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
12983 if test "x$PYTHON_INCLUDES" = x; then
12984 PYTHON_CONFIG=`which $PYTHON`-config
12985 if test -x "$PYTHON_CONFIG"; then
12986 PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
12988 PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
12989 PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
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$link_python_libs" = "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_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13016 if test "x$PYTHON_LIBS" = x; then
13017 PYTHON_CONFIG=`which $PYTHON`-config
13018 if test -x "$PYTHON_CONFIG"; then
13019 PYTHON_LIBS=`$PYTHON_CONFIG --ldflags 2>/dev/null`
13021 PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13024 if test "x$PYTHON_LIB_LOC" = x; then
13025 PYTHON_LIB_LOC="${py_prefix}/lib"
13030 LIBS="$LIBS $PYTHON_LIBS"
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13034 /* Override any GCC internal prototype to avoid an error.
13035 Use char because int might match the return type of a GCC
13036 builtin and then its argument prototype would still apply. */
13040 char Py_Initialize ();
13044 return Py_Initialize ();
13049 if ac_fn_c_try_link "$LINENO"; then :
13050 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13051 $as_echo "yes" >&6; };
13053 LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows and Darwin require Python modules to be explicitly linked to libpython." "$LINENO" 5
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13063 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13064 old_CPPFLAGS=$CPPFLAGS
13065 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13068 #include <Python.h>
13072 PySignal_SetWakeupFd(0);
13077 if ac_fn_c_try_compile "$LINENO"; then :
13082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13084 $as_echo "$setwakeupfd_ok" >&6; }
13085 if test "x$setwakeupfd_ok" != xno; then
13087 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13090 CPPFLAGS=$old_CPPFLAGS
13092 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13095 # Check whether --enable-thread was given.
13096 if test "${enable_thread+set}" = set; then :
13097 enableval=$enable_thread;
13104 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13106 $as_echo_n "checking for python module thread... " >&6; }
13107 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13108 $as_echo_n "(cached) " >&6
13115 except ImportError:
13120 if $PYTHON -c "$prog" 1>&5 2>&5
13122 eval "py_cv_mod_$py_mod_var=yes"
13124 eval "py_cv_mod_$py_mod_var=no"
13129 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13130 if test "x$py_val" != xno; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13132 $as_echo "yes" >&6; }
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136 enable_thread=check_for_py3_module
13139 if test "x$enable_thread" = xcheck_for_py3_module; then
13141 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13143 $as_echo_n "checking for python module _thread... " >&6; }
13144 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13145 $as_echo_n "(cached) " >&6
13152 except ImportError:
13157 if $PYTHON -c "$prog" 1>&5 2>&5
13159 eval "py_cv_mod_$py_mod_var=yes"
13161 eval "py_cv_mod_$py_mod_var=no"
13166 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13167 if test "x$py_val" != xno; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13169 $as_echo "yes" >&6; }
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13180 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13181 if test "x$enable_thread" != xno; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185 $as_echo "yes" >&6; }
13188 THREADING_CFLAGS="-DDISABLE_THREADING"
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13193 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13195 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13197 # Check whether --enable-glibtest was given.
13198 if test "${enable_glibtest+set}" = set; then :
13199 enableval=$enable_glibtest;
13201 enable_glibtest=yes
13205 pkg_config_args=glib-2.0
13206 for module in . gobject $extra_mods
13210 pkg_config_args="$pkg_config_args gmodule-2.0"
13213 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13216 pkg_config_args="$pkg_config_args gobject-2.0"
13219 pkg_config_args="$pkg_config_args gthread-2.0"
13222 pkg_config_args="$pkg_config_args $module-2.0"
13234 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13235 if test -n "$ac_tool_prefix"; then
13236 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13237 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239 $as_echo_n "checking for $ac_word... " >&6; }
13240 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13241 $as_echo_n "(cached) " >&6
13243 case $PKG_CONFIG in
13245 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13252 test -z "$as_dir" && as_dir=.
13253 for ac_exec_ext in '' $ac_executable_extensions; do
13254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13255 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13266 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13267 if test -n "$PKG_CONFIG"; then
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13269 $as_echo "$PKG_CONFIG" >&6; }
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 $as_echo "no" >&6; }
13277 if test -z "$ac_cv_path_PKG_CONFIG"; then
13278 ac_pt_PKG_CONFIG=$PKG_CONFIG
13279 # Extract the first word of "pkg-config", so it can be a program name with args.
13280 set dummy pkg-config; ac_word=$2
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13282 $as_echo_n "checking for $ac_word... " >&6; }
13283 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13284 $as_echo_n "(cached) " >&6
13286 case $ac_pt_PKG_CONFIG in
13288 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13295 test -z "$as_dir" && as_dir=.
13296 for ac_exec_ext in '' $ac_executable_extensions; do
13297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13298 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13309 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13310 if test -n "$ac_pt_PKG_CONFIG"; then
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13312 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13318 if test "x$ac_pt_PKG_CONFIG" = x; then
13321 case $cross_compiling:$ac_tool_warned in
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13325 ac_tool_warned=yes ;;
13327 PKG_CONFIG=$ac_pt_PKG_CONFIG
13330 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13334 if test -n "$PKG_CONFIG"; then
13335 _pkg_min_version=0.16
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13337 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13338 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13340 $as_echo "yes" >&6; }
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13350 if test "x$PKG_CONFIG" = x ; then
13355 min_glib_version=2.38.0
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13357 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13359 if test x$PKG_CONFIG != xno ; then
13360 ## don't try to run the test against uninstalled libtool libs
13361 if $PKG_CONFIG --uninstalled $pkg_config_args; then
13362 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13366 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13373 if test x"$no_glib" = x ; then
13374 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13375 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13376 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13377 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13379 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13380 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13381 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13382 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13383 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13384 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13385 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13386 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13387 if test "x$enable_glibtest" = "xyes" ; then
13388 ac_save_CFLAGS="$CFLAGS"
13389 ac_save_LIBS="$LIBS"
13390 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13391 LIBS="$GLIB_LIBS $LIBS"
13392 rm -f conf.glibtest
13393 if test "$cross_compiling" = yes; then :
13394 echo $ac_n "cross compiling; assumed OK... $ac_c"
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13401 #include <stdlib.h>
13406 unsigned int major, minor, micro;
13408 fclose (fopen ("conf.glibtest", "w"));
13410 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) {
13411 printf("%s, bad version string\n", "$min_glib_version");
13415 if ((glib_major_version != $glib_config_major_version) ||
13416 (glib_minor_version != $glib_config_minor_version) ||
13417 (glib_micro_version != $glib_config_micro_version))
13419 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13420 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13421 glib_major_version, glib_minor_version, glib_micro_version);
13422 printf ("*** was found! If pkg-config was correct, then it is best\n");
13423 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13424 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13425 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13426 printf("*** required on your system.\n");
13427 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13428 printf("*** to point to the correct configuration files\n");
13430 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13431 (glib_minor_version != GLIB_MINOR_VERSION) ||
13432 (glib_micro_version != GLIB_MICRO_VERSION))
13434 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13435 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13436 printf("*** library (version %d.%d.%d)\n",
13437 glib_major_version, glib_minor_version, glib_micro_version);
13441 if ((glib_major_version > major) ||
13442 ((glib_major_version == major) && (glib_minor_version > minor)) ||
13443 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13449 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13450 glib_major_version, glib_minor_version, glib_micro_version);
13451 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13452 major, minor, micro);
13453 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13455 printf("*** If you have already installed a sufficiently new version, this error\n");
13456 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13457 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13458 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13459 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13460 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13461 printf("*** so that the correct libraries are found at run-time))\n");
13468 if ac_fn_c_try_run "$LINENO"; then :
13473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13474 conftest.$ac_objext conftest.beam conftest.$ac_ext
13477 CFLAGS="$ac_save_CFLAGS"
13478 LIBS="$ac_save_LIBS"
13481 if test "x$no_glib" = x ; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13483 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13488 if test "$PKG_CONFIG" = "no" ; then
13489 echo "*** A new enough version of pkg-config was not found."
13490 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13492 if test -f conf.glibtest ; then
13495 echo "*** Could not run GLIB test program, checking why..."
13496 ac_save_CFLAGS="$CFLAGS"
13497 ac_save_LIBS="$LIBS"
13498 CFLAGS="$CFLAGS $GLIB_CFLAGS"
13499 LIBS="$LIBS $GLIB_LIBS"
13500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h. */
13509 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13514 if ac_fn_c_try_link "$LINENO"; then :
13515 echo "*** The test program compiled, but did not run. This usually means"
13516 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13517 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13518 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13519 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13520 echo "*** is required on your system"
13522 echo "*** If you have an old version installed, it is best to remove it, although"
13523 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13525 echo "*** The test program failed to compile or link. See the file config.log for the"
13526 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13528 rm -f core conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext conftest.$ac_ext
13530 CFLAGS="$ac_save_CFLAGS"
13531 LIBS="$ac_save_LIBS"
13539 GLIB_COMPILE_RESOURCES=""
13540 as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13548 rm -f conf.glibtest
13550 if test -n "$export_dynamic"; then
13551 GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13553 PYTHON_BASENAME=`basename $PYTHON`
13560 prefix_save=$prefix
13561 exec_prefix_save=$exec_prefix
13563 if test "x$prefix" = "xNONE"; then
13564 prefix=$ac_default_prefix
13566 if test "x$exec_prefix" = "xNONE"; then
13567 exec_prefix=$prefix
13570 full_var="$FROM_VAR"
13572 new_full_var="`eval echo $full_var`"
13573 if test "x$new_full_var"="x$full_var"; then break; fi
13574 full_var=$new_full_var
13577 full_var=$new_full_var
13578 DATADIR="$full_var"
13581 prefix=$prefix_save
13582 exec_prefix=$exec_prefix_save
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13588 $as_echo_n "checking for FFI... " >&6; }
13590 if test -n "$FFI_CFLAGS"; then
13591 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13592 elif test -n "$PKG_CONFIG"; then
13593 if test -n "$PKG_CONFIG" && \
13594 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13595 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598 test $ac_status = 0; }; then
13599 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
13600 test "x$?" != "x0" && pkg_failed=yes
13607 if test -n "$FFI_LIBS"; then
13608 pkg_cv_FFI_LIBS="$FFI_LIBS"
13609 elif test -n "$PKG_CONFIG"; then
13610 if test -n "$PKG_CONFIG" && \
13611 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13612 ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13615 test $ac_status = 0; }; then
13616 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
13617 test "x$?" != "x0" && pkg_failed=yes
13627 if test $pkg_failed = yes; then
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13631 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13632 _pkg_short_errors_supported=yes
13634 _pkg_short_errors_supported=no
13636 if test $_pkg_short_errors_supported = yes; then
13637 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13639 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13641 # Put the nasty error message in config.log where it belongs
13642 echo "$FFI_PKG_ERRORS" >&5
13644 as_fn_error $? "Package requirements (libffi >= 3.0) were not met:
13648 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13649 installed software in a non-standard prefix.
13651 Alternatively, you may set the environment variables FFI_CFLAGS
13652 and FFI_LIBS to avoid the need to call pkg-config.
13653 See the pkg-config man page for more details." "$LINENO" 5
13654 elif test $pkg_failed = untried; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656 $as_echo "no" >&6; }
13657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13659 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13660 is in your PATH or set the PKG_CONFIG environment variable to the full
13661 path to pkg-config.
13663 Alternatively, you may set the environment variables FFI_CFLAGS
13664 and FFI_LIBS to avoid the need to call pkg-config.
13665 See the pkg-config man page for more details.
13667 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13668 See \`config.log' for more details" "$LINENO" 5; }
13670 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13671 FFI_LIBS=$pkg_cv_FFI_LIBS
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13673 $as_echo "yes" >&6; }
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13685 $as_echo_n "checking for GIO... " >&6; }
13687 if test -n "$GIO_CFLAGS"; then
13688 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13689 elif test -n "$PKG_CONFIG"; then
13690 if test -n "$PKG_CONFIG" && \
13691 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13692 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13695 test $ac_status = 0; }; then
13696 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.38.0" 2>/dev/null`
13697 test "x$?" != "x0" && pkg_failed=yes
13704 if test -n "$GIO_LIBS"; then
13705 pkg_cv_GIO_LIBS="$GIO_LIBS"
13706 elif test -n "$PKG_CONFIG"; then
13707 if test -n "$PKG_CONFIG" && \
13708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13709 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13712 test $ac_status = 0; }; then
13713 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.38.0" 2>/dev/null`
13714 test "x$?" != "x0" && pkg_failed=yes
13724 if test $pkg_failed = yes; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726 $as_echo "no" >&6; }
13728 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13729 _pkg_short_errors_supported=yes
13731 _pkg_short_errors_supported=no
13733 if test $_pkg_short_errors_supported = yes; then
13734 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13736 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13738 # Put the nasty error message in config.log where it belongs
13739 echo "$GIO_PKG_ERRORS" >&5
13741 as_fn_error $? "Package requirements (gio-2.0 >= 2.38.0) were not met:
13745 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13746 installed software in a non-standard prefix.
13748 Alternatively, you may set the environment variables GIO_CFLAGS
13749 and GIO_LIBS to avoid the need to call pkg-config.
13750 See the pkg-config man page for more details." "$LINENO" 5
13751 elif test $pkg_failed = untried; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753 $as_echo "no" >&6; }
13754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13756 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13757 is in your PATH or set the PKG_CONFIG environment variable to the full
13758 path to pkg-config.
13760 Alternatively, you may set the environment variables GIO_CFLAGS
13761 and GIO_LIBS to avoid the need to call pkg-config.
13762 See the pkg-config man page for more details.
13764 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13765 See \`config.log' for more details" "$LINENO" 5; }
13767 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13768 GIO_LIBS=$pkg_cv_GIO_LIBS
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13770 $as_echo "yes" >&6; }
13774 # Check whether --enable-cairo was given.
13775 if test "${enable_cairo+set}" = set; then :
13776 enableval=$enable_cairo; enable_cairo=$enableval
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13785 $as_echo_n "checking for GI... " >&6; }
13787 if test -n "$GI_CFLAGS"; then
13788 pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13789 elif test -n "$PKG_CONFIG"; then
13790 if test -n "$PKG_CONFIG" && \
13791 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13792 gobject-introspection-1.0 >= 1.39.0
13794 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13795 gobject-introspection-1.0 >= 1.39.0
13798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13799 test $ac_status = 0; }; then
13800 pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0
13801 gobject-introspection-1.0 >= 1.39.0
13803 test "x$?" != "x0" && pkg_failed=yes
13810 if test -n "$GI_LIBS"; then
13811 pkg_cv_GI_LIBS="$GI_LIBS"
13812 elif test -n "$PKG_CONFIG"; then
13813 if test -n "$PKG_CONFIG" && \
13814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13815 gobject-introspection-1.0 >= 1.39.0
13817 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13818 gobject-introspection-1.0 >= 1.39.0
13821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13822 test $ac_status = 0; }; then
13823 pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0
13824 gobject-introspection-1.0 >= 1.39.0
13826 test "x$?" != "x0" && pkg_failed=yes
13836 if test $pkg_failed = yes; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838 $as_echo "no" >&6; }
13840 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13841 _pkg_short_errors_supported=yes
13843 _pkg_short_errors_supported=no
13845 if test $_pkg_short_errors_supported = yes; then
13846 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13847 gobject-introspection-1.0 >= 1.39.0
13850 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13851 gobject-introspection-1.0 >= 1.39.0
13854 # Put the nasty error message in config.log where it belongs
13855 echo "$GI_PKG_ERRORS" >&5
13857 as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0
13858 gobject-introspection-1.0 >= 1.39.0
13863 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13864 installed software in a non-standard prefix.
13866 Alternatively, you may set the environment variables GI_CFLAGS
13867 and GI_LIBS to avoid the need to call pkg-config.
13868 See the pkg-config man page for more details." "$LINENO" 5
13869 elif test $pkg_failed = untried; then
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871 $as_echo "no" >&6; }
13872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13874 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13875 is in your PATH or set the PKG_CONFIG environment variable to the full
13876 path to pkg-config.
13878 Alternatively, you may set the environment variables GI_CFLAGS
13879 and GI_LIBS to avoid the need to call pkg-config.
13880 See the pkg-config man page for more details.
13882 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13883 See \`config.log' for more details" "$LINENO" 5; }
13885 GI_CFLAGS=$pkg_cv_GI_CFLAGS
13886 GI_LIBS=$pkg_cv_GI_LIBS
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13888 $as_echo "yes" >&6; }
13892 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13895 if test "$enable_cairo" != no; then
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13899 $as_echo_n "checking for CAIRO... " >&6; }
13901 if test -n "$CAIRO_CFLAGS"; then
13902 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13903 elif test -n "$PKG_CONFIG"; then
13904 if test -n "$PKG_CONFIG" && \
13905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13906 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13909 test $ac_status = 0; }; then
13910 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13911 test "x$?" != "x0" && pkg_failed=yes
13918 if test -n "$CAIRO_LIBS"; then
13919 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13920 elif test -n "$PKG_CONFIG"; then
13921 if test -n "$PKG_CONFIG" && \
13922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13923 ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13926 test $ac_status = 0; }; then
13927 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13928 test "x$?" != "x0" && pkg_failed=yes
13938 if test $pkg_failed = yes; then
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940 $as_echo "no" >&6; }
13942 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13943 _pkg_short_errors_supported=yes
13945 _pkg_short_errors_supported=no
13947 if test $_pkg_short_errors_supported = yes; then
13948 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13950 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13952 # Put the nasty error message in config.log where it belongs
13953 echo "$CAIRO_PKG_ERRORS" >&5
13955 as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
13959 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13960 installed software in a non-standard prefix.
13962 Alternatively, you may set the environment variables CAIRO_CFLAGS
13963 and CAIRO_LIBS to avoid the need to call pkg-config.
13964 See the pkg-config man page for more details." "$LINENO" 5
13965 elif test $pkg_failed = untried; then
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13967 $as_echo "no" >&6; }
13968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13970 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13971 is in your PATH or set the PKG_CONFIG environment variable to the full
13972 path to pkg-config.
13974 Alternatively, you may set the environment variables CAIRO_CFLAGS
13975 and CAIRO_LIBS to avoid the need to call pkg-config.
13976 See the pkg-config man page for more details.
13978 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13979 See \`config.log' for more details" "$LINENO" 5; }
13981 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13982 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13984 $as_echo "yes" >&6; }
13988 if test $build_py3k = true; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
13992 $as_echo_n "checking for PYCAIRO... " >&6; }
13994 if test -n "$PYCAIRO_CFLAGS"; then
13995 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
13996 elif test -n "$PKG_CONFIG"; then
13997 if test -n "$PKG_CONFIG" && \
13998 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14000 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14004 test $ac_status = 0; }; then
14005 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14007 test "x$?" != "x0" && pkg_failed=yes
14014 if test -n "$PYCAIRO_LIBS"; then
14015 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14016 elif test -n "$PKG_CONFIG"; then
14017 if test -n "$PKG_CONFIG" && \
14018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14020 ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14024 test $ac_status = 0; }; then
14025 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14027 test "x$?" != "x0" && pkg_failed=yes
14037 if test $pkg_failed = yes; then
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 $as_echo "no" >&6; }
14041 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14042 _pkg_short_errors_supported=yes
14044 _pkg_short_errors_supported=no
14046 if test $_pkg_short_errors_supported = yes; then
14047 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14050 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14053 # Put the nasty error message in config.log where it belongs
14054 echo "$PYCAIRO_PKG_ERRORS" >&5
14056 as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14059 $PYCAIRO_PKG_ERRORS
14061 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14062 installed software in a non-standard prefix.
14064 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14065 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14066 See the pkg-config man page for more details." "$LINENO" 5
14067 elif test $pkg_failed = untried; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14072 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14073 is in your PATH or set the PKG_CONFIG environment variable to the full
14074 path to pkg-config.
14076 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14077 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14078 See the pkg-config man page for more details.
14080 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14081 See \`config.log' for more details" "$LINENO" 5; }
14083 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14084 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14086 $as_echo "yes" >&6; }
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14093 $as_echo_n "checking for PYCAIRO... " >&6; }
14095 if test -n "$PYCAIRO_CFLAGS"; then
14096 pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14097 elif test -n "$PKG_CONFIG"; then
14098 if test -n "$PKG_CONFIG" && \
14099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14101 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14105 test $ac_status = 0; }; then
14106 pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14108 test "x$?" != "x0" && pkg_failed=yes
14115 if test -n "$PYCAIRO_LIBS"; then
14116 pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14117 elif test -n "$PKG_CONFIG"; then
14118 if test -n "$PKG_CONFIG" && \
14119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14121 ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14125 test $ac_status = 0; }; then
14126 pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14128 test "x$?" != "x0" && pkg_failed=yes
14138 if test $pkg_failed = yes; then
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140 $as_echo "no" >&6; }
14142 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14143 _pkg_short_errors_supported=yes
14145 _pkg_short_errors_supported=no
14147 if test $_pkg_short_errors_supported = yes; then
14148 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14151 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14154 # Put the nasty error message in config.log where it belongs
14155 echo "$PYCAIRO_PKG_ERRORS" >&5
14157 as_fn_error $? "Package requirements (pycairo >= 1.2.0
14160 $PYCAIRO_PKG_ERRORS
14162 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14163 installed software in a non-standard prefix.
14165 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14166 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14167 See the pkg-config man page for more details." "$LINENO" 5
14168 elif test $pkg_failed = untried; then
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14170 $as_echo "no" >&6; }
14171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14173 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14174 is in your PATH or set the PKG_CONFIG environment variable to the full
14175 path to pkg-config.
14177 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14178 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14179 See the pkg-config man page for more details.
14181 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14182 See \`config.log' for more details" "$LINENO" 5; }
14184 PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14185 PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14187 $as_echo "yes" >&6; }
14192 if test "$enable_cairo" = "yes"; then
14194 ENABLE_CAIRO_FALSE='#'
14196 ENABLE_CAIRO_TRUE='#'
14197 ENABLE_CAIRO_FALSE=
14202 # Check whether --with-common was given.
14203 if test "${with_common+set}" = set; then :
14204 withval=$with_common; with_common=$enableval
14209 if test "$with_common" = "yes"; then
14211 WITH_COMMON_FALSE='#'
14213 WITH_COMMON_TRUE='#'
14218 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14219 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14224 # compiler warnings, errors, required cflags, and code coverage support
14227 # Check whether --enable-compile-warnings was given.
14228 if test "${enable_compile_warnings+set}" = set; then :
14229 enableval=$enable_compile_warnings;
14231 enable_compile_warnings="maximum"
14235 if test "x$GCC" != xyes; then
14236 enable_compile_warnings=no
14240 realsave_CFLAGS="$CFLAGS"
14242 base_warn_flags=" \
14244 -Wstrict-prototypes \
14248 base_error_flags=" \
14249 -Werror=missing-prototypes \
14250 -Werror=implicit-function-declaration \
14251 -Werror=pointer-arith \
14252 -Werror=init-self \
14253 -Werror=format-security \
14255 -Werror=missing-include-dirs \
14256 -Werror=return-type \
14259 additional_flags=""
14261 case "$enable_compile_warnings" in
14266 warning_flags="-Wall"
14269 warning_flags="$base_warn_flags $base_error_flags $additional_flags"
14272 as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14276 if test "$enable_compile_warnings" = "error" ; then
14277 warning_flags="$warning_flags -Werror"
14280 for option in $warning_flags; do
14281 save_CFLAGS="$CFLAGS"
14282 CFLAGS="$CFLAGS $option"
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14284 $as_echo_n "checking whether gcc understands $option... " >&6; }
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14296 if ac_fn_c_try_compile "$LINENO"; then :
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 CFLAGS="$save_CFLAGS"
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14304 $as_echo "$has_option" >&6; }
14305 if test $has_option = yes; then
14306 tested_warning_flags="$tested_warning_flags $option"
14312 CFLAGS="$realsave_CFLAGS"
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14314 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14316 $as_echo "$tested_warning_flags" >&6; }
14318 # Check whether --enable-iso-c was given.
14319 if test "${enable_iso_c+set}" = set; then :
14320 enableval=$enable_iso_c;
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14327 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14329 if test "x$enable_iso_c" != "xno"; then
14330 if test "x$GCC" = "xyes"; then
14331 case " $CFLAGS " in
14332 *\ \ -ansi\ \ *) ;;
14333 *) complCFLAGS="$complCFLAGS -ansi" ;;
14335 case " $CFLAGS " in
14336 *\ \ -pedantic\ \ *) ;;
14337 *) complCFLAGS="$complCFLAGS -pedantic" ;;
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14342 $as_echo "$complCFLAGS" >&6; }
14344 WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14348 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14350 $as_echo "yes" >&6; }
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14354 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14355 # Check whether --enable-code-coverage was given.
14356 if test "${enable_code_coverage+set}" = set; then :
14357 enableval=$enable_code_coverage;
14359 enable_code_coverage=no
14362 if test x$enable_code_coverage = xyes; then
14363 CODE_COVERAGE_ENABLED_TRUE=
14364 CODE_COVERAGE_ENABLED_FALSE='#'
14366 CODE_COVERAGE_ENABLED_TRUE='#'
14367 CODE_COVERAGE_ENABLED_FALSE=
14370 CODE_COVERAGE_ENABLED=$enable_code_coverage
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14373 $as_echo "$enable_code_coverage" >&6; }
14375 if test "$enable_code_coverage" = "yes" ; then :
14377 if test "$GCC" = "no" ; then :
14379 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14383 # List of supported lcov versions.
14384 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
14386 # Extract the first word of "lcov", so it can be a program name with args.
14387 set dummy lcov; ac_word=$2
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14389 $as_echo_n "checking for $ac_word... " >&6; }
14390 if ${ac_cv_prog_LCOV+:} false; then :
14391 $as_echo_n "(cached) " >&6
14393 if test -n "$LCOV"; then
14394 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14397 for as_dir in $PATH
14400 test -z "$as_dir" && as_dir=.
14401 for ac_exec_ext in '' $ac_executable_extensions; do
14402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14403 ac_cv_prog_LCOV="lcov"
14404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14413 LCOV=$ac_cv_prog_LCOV
14414 if test -n "$LCOV"; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14416 $as_echo "$LCOV" >&6; }
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14423 # Extract the first word of "genhtml", so it can be a program name with args.
14424 set dummy genhtml; ac_word=$2
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14426 $as_echo_n "checking for $ac_word... " >&6; }
14427 if ${ac_cv_prog_GENHTML+:} false; then :
14428 $as_echo_n "(cached) " >&6
14430 if test -n "$GENHTML"; then
14431 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14437 test -z "$as_dir" && as_dir=.
14438 for ac_exec_ext in '' $ac_executable_extensions; do
14439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14440 ac_cv_prog_GENHTML="genhtml"
14441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14450 GENHTML=$ac_cv_prog_GENHTML
14451 if test -n "$GENHTML"; then
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14453 $as_echo "$GENHTML" >&6; }
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456 $as_echo "no" >&6; }
14461 if test "$LCOV" ; then :
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14464 $as_echo_n "checking for lcov version... " >&6; }
14465 if ${ax_cv_lcov_version+:} false; then :
14466 $as_echo_n "(cached) " >&6
14469 ax_cv_lcov_version=invalid
14470 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14471 for lcov_check_version in $lcov_version_list; do
14472 if test "$lcov_version" = "$lcov_check_version"; then
14473 ax_cv_lcov_version="$lcov_check_version (ok)"
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
14479 $as_echo "$ax_cv_lcov_version" >&6; }
14483 lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14484 as_fn_error $? "$lcov_msg" "$LINENO" 5
14488 case $ax_cv_lcov_version in
14490 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14491 as_fn_error $? "$lcov_msg" "$LINENO" 5
14496 if test -z "$GENHTML" ; then :
14498 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14502 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14503 CODE_COVERAGE_LDFLAGS="-lgcov"
14510 CODE_COVERAGE_RULES='
14514 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14515 # (Default: $(top_builddir))
14516 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14517 # by lcov for code coverage. (Default:
14518 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14519 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14520 # reports to be created. (Default:
14521 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14522 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14524 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14525 # instance. (Default: empty)
14526 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
14528 # The generated report will be titled using the $(PACKAGE_NAME) and
14529 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14530 # use the git-version-gen script, available online.
14532 # Optional variables
14533 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14534 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14535 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14536 CODE_COVERAGE_LCOV_OPTIONS ?=
14537 CODE_COVERAGE_GENHTML_OPTIONS ?=
14538 CODE_COVERAGE_IGNORE_PATTERN ?=
14540 code_coverage_quiet = $(code_coverage_quiet_$(V))
14541 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
14542 code_coverage_quiet_0 = --quiet
14544 # Use recursive makes in order to ignore errors during check
14545 check-code-coverage:
14546 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14547 -$(MAKE) $(AM_MAKEFLAGS) -k check
14548 $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14550 @echo "Need to reconfigure with --enable-code-coverage"
14553 # Capture code coverage data
14554 code-coverage-capture: code-coverage-capture-hook
14555 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14556 $(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)
14557 $(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)"
14558 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14559 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)
14560 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14562 @echo "Need to reconfigure with --enable-code-coverage"
14565 # Hook rule executed before code-coverage-capture, overridable by the user
14566 code-coverage-capture-hook:
14568 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14569 clean: code-coverage-clean
14570 code-coverage-clean:
14571 -$(LCOV) --directory $(top_builddir) -z
14572 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14573 -find . -name "*.gcda" -o -name "*.gcov" -delete
14577 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14579 DISTCHECK_CONFIGURE_FLAGS ?=
14580 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14582 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14588 GNOME_CODE_COVERAGE_RULES=$CODE_COVERAGE_RULES
14594 if test "x$GCC" = "xyes"; then
14596 case " $CFLAGS " in
14597 *[\ \ ]-Wall[\ \ ]*)
14600 save_CFLAGS="$CFLAGS"
14601 CFLAGS="$CFLAGS -Wall"
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14603 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h. */
14615 if ac_fn_c_try_compile "$LINENO"; then :
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14622 $as_echo "$jh_has_option" >&6; }
14623 if test $jh_has_option = no; then
14624 CFLAGS="$save_CFLAGS"
14629 case " $CFLAGS " in
14630 *[\ \ ]-Werror=unused-variable[\ \ ]*)
14633 save_CFLAGS="$CFLAGS"
14634 CFLAGS="$CFLAGS -Werror=unused-variable"
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14636 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14648 if ac_fn_c_try_compile "$LINENO"; then :
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14655 $as_echo "$jh_has_option" >&6; }
14656 if test $jh_has_option = no; then
14657 CFLAGS="$save_CFLAGS"
14662 case " $CFLAGS " in
14663 *[\ \ ]-fno-strict-aliasing[\ \ ]*)
14666 save_CFLAGS="$CFLAGS"
14667 CFLAGS="$CFLAGS -fno-strict-aliasing"
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14669 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14681 if ac_fn_c_try_compile "$LINENO"; then :
14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14688 $as_echo "$jh_has_option" >&6; }
14689 if test $jh_has_option = no; then
14690 CFLAGS="$save_CFLAGS"
14695 case " $CFLAGS " in
14696 *[\ \ ]-Werror=declaration-after-statement[\ \ ]*)
14699 save_CFLAGS="$CFLAGS"
14700 CFLAGS="$CFLAGS -Werror=declaration-after-statement"
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=declaration-after-statement" >&5
14702 $as_echo_n "checking whether $CC understands -Werror=declaration-after-statement... " >&6; }
14703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14714 if ac_fn_c_try_compile "$LINENO"; then :
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14721 $as_echo "$jh_has_option" >&6; }
14722 if test $jh_has_option = no; then
14723 CFLAGS="$save_CFLAGS"
14733 case " $CFLAGS " in
14734 *[\ \ ]-std=c90[\ \ ]*)
14737 save_CFLAGS="$CFLAGS"
14738 CFLAGS="$CFLAGS -std=c90"
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c90" >&5
14740 $as_echo_n "checking whether $CC understands -std=c90... " >&6; }
14741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14752 if ac_fn_c_try_compile "$LINENO"; then :
14757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14759 $as_echo "$jh_has_option" >&6; }
14760 if test $jh_has_option = no; then
14761 CFLAGS="$save_CFLAGS"
14770 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
14771 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14773 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/_gobject/Makefile examples/Makefile tests/Makefile pygtkcompat/Makefile PKG-INFO"
14775 cat >confcache <<\_ACEOF
14776 # This file is a shell script that caches the results of configure
14777 # tests run on this system so they can be shared between configure
14778 # scripts and configure runs, see configure's option --config-cache.
14779 # It is not useful on other systems. If it contains results you don't
14780 # want to keep, you may remove or edit it.
14782 # config.status only pays attention to the cache file if you give it
14783 # the --recheck option to rerun configure.
14785 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14786 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14787 # following values.
14791 # The following way of writing the cache mishandles newlines in values,
14792 # but we know of no workaround that is simple, portable, and efficient.
14793 # So, we kill variables containing newlines.
14794 # Ultrix sh set writes to stderr and can't be redirected directly,
14795 # and sets the high bit in the cache file unless we assign to the vars.
14797 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14798 eval ac_val=\$$ac_var
14802 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14803 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14806 _ | IFS | as_nl) ;; #(
14807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14808 *) { eval $ac_var=; unset $ac_var;} ;;
14814 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14815 *${as_nl}ac_space=\ *)
14816 # `set' does not quote correctly, so add quotes: double-quote
14817 # substitution turns \\\\ into \\, and sed turns \\ into \.
14820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14823 # `set' quotes correctly as required by POSIX, so do not add quotes.
14824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14833 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14835 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14837 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14838 if test -w "$cache_file"; then
14839 if test "x$cache_file" != "x/dev/null"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14841 $as_echo "$as_me: updating cache $cache_file" >&6;}
14842 if test ! -f "$cache_file" || test -h "$cache_file"; then
14843 cat confcache >"$cache_file"
14845 case $cache_file in #(
14847 mv -f confcache "$cache_file"$$ &&
14848 mv -f "$cache_file"$$ "$cache_file" ;; #(
14850 mv -f confcache "$cache_file" ;;
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14856 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14861 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14862 # Let make expand exec_prefix.
14863 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14865 DEFS=-DHAVE_CONFIG_H
14870 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14871 # 1. Remove the extension, and $U if already installed.
14872 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14873 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14874 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14875 # will be set to the directory where LIBOBJS objects are built.
14876 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14877 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14879 LIBOBJS=$ac_libobjs
14881 LTLIBOBJS=$ac_ltlibobjs
14884 if test -n "$EXEEXT"; then
14886 am__EXEEXT_FALSE='#'
14888 am__EXEEXT_TRUE='#'
14892 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14893 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14896 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14897 as_fn_error $? "conditional \"AMDEP\" was never defined.
14898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14901 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14904 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14905 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14908 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
14909 as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
14910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14912 if test -z "${WITH_COMMON_TRUE}" && test -z "${WITH_COMMON_FALSE}"; then
14913 as_fn_error $? "conditional \"WITH_COMMON\" was never defined.
14914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14916 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
14917 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
14918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14921 : "${CONFIG_STATUS=./config.status}"
14923 ac_clean_files_save=$ac_clean_files
14924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14926 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14928 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14930 # Generated by $as_me.
14931 # Run this file to recreate the current configuration.
14932 # Compiler output produced by configure, useful for debugging
14933 # configure, is in config.log if it exists.
14936 ac_cs_recheck=false
14939 SHELL=\${CONFIG_SHELL-$SHELL}
14942 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14943 ## -------------------- ##
14944 ## M4sh Initialization. ##
14945 ## -------------------- ##
14947 # Be more Bourne compatible
14948 DUALCASE=1; export DUALCASE # for MKS sh
14949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14953 # is contrary to our usage. Disable this feature.
14954 alias -g '${1+"$@"}'='"$@"'
14955 setopt NO_GLOB_SUBST
14957 case `(set -o) 2>/dev/null` in #(
14969 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14970 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14971 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14973 # Prefer a ksh shell builtin over an external printf program on Solaris,
14974 # but without wasting forks for bash or zsh.
14975 if test -z "$BASH_VERSION$ZSH_VERSION" \
14976 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14977 as_echo='print -r --'
14978 as_echo_n='print -rn --'
14979 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14980 as_echo='printf %s\n'
14981 as_echo_n='printf %s'
14983 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14984 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14985 as_echo_n='/usr/ucb/echo -n'
14987 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14988 as_echo_n_body='eval
14992 expr "X$arg" : "X\\(.*\\)$as_nl";
14993 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14995 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14997 export as_echo_n_body
14998 as_echo_n='sh -c $as_echo_n_body as_echo'
15000 export as_echo_body
15001 as_echo='sh -c $as_echo_body as_echo'
15004 # The user is always right.
15005 if test "${PATH_SEPARATOR+set}" != set; then
15007 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15008 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15015 # We need space, tab and new line, in precisely that order. Quoting is
15016 # there to prevent editors from complaining about space-tab.
15017 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15018 # splitting by setting IFS to empty value.)
15021 # Find who we are. Look in the path if we contain no directory separator.
15024 *[\\/]* ) as_myself=$0 ;;
15025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $PATH
15029 test -z "$as_dir" && as_dir=.
15030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15036 # We did not find ourselves, most probably we were run as `sh COMMAND'
15037 # in which case we are not to be found in the path.
15038 if test "x$as_myself" = x; then
15041 if test ! -f "$as_myself"; then
15042 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15046 # Unset variables that we do not need and which cause bugs (e.g. in
15047 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15048 # suppresses any "Segmentation fault" message there. '((' could
15049 # trigger a bug in pdksh 5.2.14.
15050 for as_var in BASH_ENV ENV MAIL MAILPATH
15051 do eval test x\${$as_var+set} = xset \
15052 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15068 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15069 # ----------------------------------------
15070 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15071 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15072 # script with STATUS, using 1 if that was 0.
15075 as_status=$1; test $as_status -eq 0 && as_status=1
15077 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15078 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15080 $as_echo "$as_me: error: $2" >&2
15081 as_fn_exit $as_status
15085 # as_fn_set_status STATUS
15086 # -----------------------
15087 # Set $? to STATUS, without forking.
15088 as_fn_set_status ()
15091 } # as_fn_set_status
15093 # as_fn_exit STATUS
15094 # -----------------
15095 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15099 as_fn_set_status $1
15105 # Portably unset VAR.
15108 { eval $1=; unset $1;}
15110 as_unset=as_fn_unset
15111 # as_fn_append VAR VALUE
15112 # ----------------------
15113 # Append the text in VALUE to the end of the definition contained in VAR. Take
15114 # advantage of any shell optimizations that allow amortized linear growth over
15115 # repeated appends, instead of the typical quadratic growth present in naive
15117 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15118 eval 'as_fn_append ()
15129 # as_fn_arith ARG...
15130 # ------------------
15131 # Perform arithmetic evaluation on the ARGs, and store the result in the
15132 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15133 # must be portable across $(()) and expr.
15134 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15135 eval 'as_fn_arith ()
15142 as_val=`expr "$@" || test $? -eq 1`
15147 if expr a : '\(a\)' >/dev/null 2>&1 &&
15148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15155 as_basename=basename
15160 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15166 as_me=`$as_basename -- "$0" ||
15167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15168 X"$0" : 'X\(//\)$' \| \
15169 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15171 sed '/^.*\/\([^/][^/]*\)\/*$/{
15185 # Avoid depending upon Character Ranges.
15186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15189 as_cr_digits='0123456789'
15190 as_cr_alnum=$as_cr_Letters$as_cr_digits
15192 ECHO_C= ECHO_N= ECHO_T=
15193 case `echo -n x` in #(((((
15195 case `echo 'xy\c'` in
15196 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15198 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15205 rm -f conf$$ conf$$.exe conf$$.file
15206 if test -d conf$$.dir; then
15207 rm -f conf$$.dir/conf$$.file
15210 mkdir conf$$.dir 2>/dev/null
15212 if (echo >conf$$.file) 2>/dev/null; then
15213 if ln -s conf$$.file conf$$ 2>/dev/null; then
15215 # ... but there are two gotchas:
15216 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15217 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15218 # In both cases, we have to default to `cp -pR'.
15219 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15221 elif ln conf$$.file conf$$ 2>/dev/null; then
15229 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15230 rmdir conf$$.dir 2>/dev/null
15235 # Create "$as_dir" as a directory, including parents if necessary.
15240 -*) as_dir=./$as_dir;;
15242 test -d "$as_dir" || eval $as_mkdir_p || {
15246 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15247 *) as_qdir=$as_dir;;
15249 as_dirs="'$as_qdir' $as_dirs"
15250 as_dir=`$as_dirname -- "$as_dir" ||
15251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15252 X"$as_dir" : 'X\(//\)[^/]' \| \
15253 X"$as_dir" : 'X\(//\)$' \| \
15254 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15255 $as_echo X"$as_dir" |
15256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15260 /^X\(\/\/\)[^/].*/{
15273 test -d "$as_dir" && break
15275 test -z "$as_dirs" || eval "mkdir $as_dirs"
15276 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15280 if mkdir -p . 2>/dev/null; then
15281 as_mkdir_p='mkdir -p "$as_dir"'
15283 test -d ./-p && rmdir ./-p
15288 # as_fn_executable_p FILE
15289 # -----------------------
15290 # Test if FILE is an executable regular file.
15291 as_fn_executable_p ()
15293 test -f "$1" && test -x "$1"
15294 } # as_fn_executable_p
15295 as_test_x='test -x'
15296 as_executable_p=as_fn_executable_p
15298 # Sed expression to map a string onto a valid CPP name.
15299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15301 # Sed expression to map a string onto a valid variable name.
15302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15306 ## ----------------------------------- ##
15307 ## Main body of $CONFIG_STATUS script. ##
15308 ## ----------------------------------- ##
15310 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15313 # Save the log message, to keep $0 and so on meaningful, and to
15314 # report actual input values of CONFIG_FILES etc. instead of their
15315 # values after options handling.
15317 This file was extended by pygobject $as_me 3.18.1, which was
15318 generated by GNU Autoconf 2.69. Invocation command line was
15320 CONFIG_FILES = $CONFIG_FILES
15321 CONFIG_HEADERS = $CONFIG_HEADERS
15322 CONFIG_LINKS = $CONFIG_LINKS
15323 CONFIG_COMMANDS = $CONFIG_COMMANDS
15326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15331 case $ac_config_files in *"
15332 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15335 case $ac_config_headers in *"
15336 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15341 # Files that config.status was made for.
15342 config_files="$ac_config_files"
15343 config_headers="$ac_config_headers"
15344 config_commands="$ac_config_commands"
15348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15350 \`$as_me' instantiates files and other configuration actions
15351 from templates according to the current configuration. Unless the files
15352 and actions are specified as TAGs, all are instantiated by default.
15354 Usage: $0 [OPTION]... [TAG]...
15356 -h, --help print this help, then exit
15357 -V, --version print version number and configuration settings, then exit
15358 --config print configuration, then exit
15359 -q, --quiet, --silent
15360 do not print progress messages
15361 -d, --debug don't remove temporary files
15362 --recheck update $as_me by reconfiguring in the same conditions
15363 --file=FILE[:TEMPLATE]
15364 instantiate the configuration file FILE
15365 --header=FILE[:TEMPLATE]
15366 instantiate the configuration header FILE
15368 Configuration files:
15371 Configuration headers:
15374 Configuration commands:
15377 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15378 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>."
15381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15382 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15384 pygobject config.status 3.18.1
15385 configured by $0, generated by GNU Autoconf 2.69,
15386 with options \\"\$ac_cs_config\\"
15388 Copyright (C) 2012 Free Software Foundation, Inc.
15389 This config.status script is free software; the Free Software Foundation
15390 gives unlimited permission to copy, distribute and modify it."
15397 test -n "\$AWK" || AWK=awk
15400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15401 # The default lists apply if the user does not specify any file.
15407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15408 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15412 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15424 # Handling of the options.
15425 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15427 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15428 $as_echo "$ac_cs_version"; exit ;;
15429 --config | --confi | --conf | --con | --co | --c )
15430 $as_echo "$ac_cs_config"; exit ;;
15431 --debug | --debu | --deb | --de | --d | -d )
15433 --file | --fil | --fi | --f )
15436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15437 '') as_fn_error $? "missing file argument" ;;
15439 as_fn_append CONFIG_FILES " '$ac_optarg'"
15440 ac_need_defaults=false;;
15441 --header | --heade | --head | --hea )
15444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15446 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15447 ac_need_defaults=false;;
15449 # Conflict between --help and --header
15450 as_fn_error $? "ambiguous option: \`$1'
15451 Try \`$0 --help' for more information.";;
15452 --help | --hel | -h )
15453 $as_echo "$ac_cs_usage"; exit ;;
15454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15455 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15458 # This is an error.
15459 -*) as_fn_error $? "unrecognized option: \`$1'
15460 Try \`$0 --help' for more information." ;;
15462 *) as_fn_append ac_config_targets " $1"
15463 ac_need_defaults=false ;;
15469 ac_configure_extra_args=
15471 if $ac_cs_silent; then
15473 ac_configure_extra_args="$ac_configure_extra_args --silent"
15477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15478 if \$ac_cs_recheck; then
15479 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15481 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15482 CONFIG_SHELL='$SHELL'
15483 export CONFIG_SHELL
15488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15492 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15493 ## Running $as_me. ##
15499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15503 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15506 # The HP-UX ksh and POSIX shell print the target directory to stdout
15507 # if CDPATH is set.
15508 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15510 sed_quote_subst='$sed_quote_subst'
15511 double_quote_subst='$double_quote_subst'
15512 delay_variable_subst='$delay_variable_subst'
15513 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15514 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15515 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15516 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15517 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15518 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15519 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15520 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15521 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15522 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15523 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15524 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15525 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15526 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15527 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15528 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15529 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15530 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15531 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15532 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15533 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15534 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15535 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15536 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15537 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15538 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15539 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15540 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15541 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15542 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15543 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15544 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15545 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15546 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15547 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15548 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15549 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15550 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15551 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15552 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15553 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15554 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15555 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15556 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15557 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15558 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15559 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15560 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15561 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15562 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15563 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15564 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15565 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15566 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15567 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15568 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15569 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15570 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"`'
15571 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15572 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15573 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15574 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15575 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15576 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15577 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15578 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15579 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15580 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15581 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15582 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15583 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15584 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15585 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15586 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15587 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15588 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15589 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15590 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15591 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15592 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15593 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15594 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15595 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15596 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15597 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15598 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15599 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15600 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15601 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15602 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15603 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15604 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15605 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15606 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15607 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15608 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15609 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15610 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15611 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15612 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15613 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15614 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15615 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15616 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15617 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15618 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15619 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15620 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15621 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15622 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15623 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15624 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15625 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15626 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15627 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15628 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15629 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15630 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15631 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15632 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15633 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15634 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15635 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15636 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15637 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15638 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15639 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15640 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15641 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15642 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15643 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15646 LTCFLAGS='$LTCFLAGS'
15647 compiler='$compiler_DEFAULT'
15649 # A function that is used when there is no print builtin or printf.
15650 func_fallback_echo ()
15652 eval 'cat <<_LTECHO_EOF
15657 # Quote evaled strings.
15674 deplibs_check_method \
15678 sharedlib_from_linklib_cmd \
15681 archiver_list_spec \
15687 lt_cv_sys_global_symbol_pipe \
15688 lt_cv_sys_global_symbol_to_cdecl \
15689 lt_cv_sys_global_symbol_to_c_name_address \
15690 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15691 nm_file_list_spec \
15692 lt_prog_compiler_no_builtin_flag \
15693 lt_prog_compiler_pic \
15694 lt_prog_compiler_wl \
15695 lt_prog_compiler_static \
15696 lt_cv_prog_compiler_c_o \
15705 export_dynamic_flag_spec \
15706 whole_archive_flag_spec \
15707 compiler_needs_object \
15709 allow_undefined_flag \
15710 no_undefined_flag \
15711 hardcode_libdir_flag_spec \
15712 hardcode_libdir_separator \
15716 variables_saved_for_relink \
15718 library_names_spec \
15720 install_override_mode \
15724 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15725 *[\\\\\\\`\\"\\\$]*)
15726 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15729 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15734 # Double-quote double-evaled strings.
15735 for var in reload_cmds \
15736 old_postinstall_cmds \
15737 old_postuninstall_cmds \
15739 extract_expsyms_cmds \
15740 old_archive_from_new_cmds \
15741 old_archive_from_expsyms_cmds \
15743 archive_expsym_cmds \
15745 module_expsym_cmds \
15746 export_symbols_cmds \
15750 postuninstall_cmds \
15752 sys_lib_search_path_spec \
15753 sys_lib_dlsearch_path_spec; do
15754 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15755 *[\\\\\\\`\\"\\\$]*)
15756 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15759 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15764 ac_aux_dir='$ac_aux_dir'
15765 xsi_shell='$xsi_shell'
15766 lt_shell_append='$lt_shell_append'
15768 # See if we are running on zsh, and set the options which allow our
15769 # commands through without removal of \ escapes INIT.
15770 if test -n "\${ZSH_VERSION+set}" ; then
15771 setopt NO_GLOB_SUBST
15777 TIMESTAMP='$TIMESTAMP'
15786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15788 # Handling of arguments.
15789 for ac_config_target in $ac_config_targets
15791 case $ac_config_target in
15792 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15793 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15794 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15795 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15796 "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
15797 "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
15798 "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
15799 "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
15800 "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
15801 "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
15802 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15803 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15804 "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
15805 "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
15807 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15812 # If the user did not use the arguments to specify the items to instantiate,
15813 # then the envvar interface is used. Set only those that are not.
15814 # We use the long form for the default assignment because of an extremely
15815 # bizarre bug on SunOS 4.1.3.
15816 if $ac_need_defaults; then
15817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15822 # Have a temporary directory for convenience. Make it in the build tree
15823 # simply because there is no reason against having it here, and in addition,
15824 # creating and moving files from /tmp can sometimes cause problems.
15825 # Hook for its removal unless debugging.
15826 # Note that there is a small window in which the directory will not be cleaned:
15827 # after its creation but before its name has been assigned to `$tmp'.
15831 trap 'exit_status=$?
15832 : "${ac_tmp:=$tmp}"
15833 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15835 trap 'as_fn_exit 1' 1 2 13 15
15837 # Create a (secure) tmp directory for tmp files.
15840 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15844 tmp=./conf$$-$RANDOM
15845 (umask 077 && mkdir "$tmp")
15846 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15849 # Set up the scripts for CONFIG_FILES section.
15850 # No need to generate them if there are no CONFIG_FILES.
15851 # This happens for instance with `./config.status config.h'.
15852 if test -n "$CONFIG_FILES"; then
15855 ac_cr=`echo X | tr X '\015'`
15856 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15857 # But we know of no other shell where ac_cr would be empty at this
15858 # point, so we can use a bashism as a fallback.
15859 if test "x$ac_cr" = x; then
15860 eval ac_cr=\$\'\\r\'
15862 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15863 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15866 ac_cs_awk_cr=$ac_cr
15869 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15874 echo "cat >conf$$subs.awk <<_ACEOF" &&
15875 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15877 } >conf$$subs.sh ||
15878 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15879 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15881 for ac_last_try in false false false false false :; do
15882 . ./conf$$subs.sh ||
15883 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15885 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15886 if test $ac_delim_n = $ac_delim_num; then
15888 elif $ac_last_try; then
15889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15894 rm -f conf$$subs.sh
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15901 s/^/S["/; s/!.*/"]=/
15911 s/\(.\{148\}\)..*/\1/
15913 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15918 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15925 s/\(.\{148\}\)..*/\1/
15927 s/["\\]/\\&/g; s/^/"/; s/$/"/
15931 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15936 ' <conf$$subs.awk | sed '
15941 ' >>$CONFIG_STATUS || ac_write_fail=1
15942 rm -f conf$$subs.awk
15943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15945 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15946 for (key in S) S_is_set[key] = 1
15952 nfields = split(line, field, "@")
15954 len = length(field[1])
15955 for (i = 2; i < nfields; i++) {
15957 keylen = length(key)
15958 if (S_is_set[key]) {
15960 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15961 len += length(value) + length(field[++i])
15972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15973 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15974 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15977 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15978 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15981 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15982 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15983 # trailing colons and then remove the whole line if VPATH becomes empty
15984 # (actually we leave an empty line to preserve line numbers).
15985 if test "x$srcdir" = x.; then
15986 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16005 fi # test -n "$CONFIG_FILES"
16007 # Set up the scripts for CONFIG_HEADERS section.
16008 # No need to generate them if there are no CONFIG_HEADERS.
16009 # This happens for instance with `./config.status Makefile'.
16010 if test -n "$CONFIG_HEADERS"; then
16011 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16015 # Transform confdefs.h into an awk script `defines.awk', embedded as
16016 # here-document in config.status, that substitutes the proper values into
16017 # config.h.in to produce config.h.
16019 # Create a delimiter string that does not exist in confdefs.h, to ease
16020 # handling of long lines.
16022 for ac_last_try in false false :; do
16023 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16024 if test -z "$ac_tt"; then
16026 elif $ac_last_try; then
16027 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16029 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16033 # For the awk script, D is an array of macro values keyed by name,
16034 # likewise P contains macro parameters if any. Preserve backslash
16035 # newline sequences.
16037 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16039 s/.\{148\}/&'"$ac_delim"'/g
16042 s/^[ ]*#[ ]*define[ ][ ]*/ /
16049 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16051 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16055 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16056 D["\1"]=" \3\\\\\\n"\\/p
16058 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16063 s/.\{148\}/&'"$ac_delim"'/g
16068 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16071 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16073 ' <confdefs.h | sed '
16074 s/'"$ac_delim"'/"\\\
16075 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16078 for (key in D) D_is_set[key] = 1
16081 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16083 split(line, arg, " ")
16084 if (arg[1] == "#") {
16088 defundef = substr(arg[1], 2)
16091 split(mac1, mac2, "(") #)
16093 prefix = substr(line, 1, index(line, defundef) - 1)
16094 if (D_is_set[macro]) {
16095 # Preserve the white space surrounding the "#".
16096 print prefix "define", macro P[macro] D[macro]
16099 # Replace #undef with comments. This is necessary, for example,
16100 # in the case of _POSIX_SOURCE, which is predefined and required
16101 # on some systems where configure will not decide to define it.
16102 if (defundef == "undef") {
16103 print "/*", prefix defundef, macro, "*/"
16111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16112 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16113 fi # test -n "$CONFIG_HEADERS"
16116 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16121 :[FHLC]) ac_mode=$ac_tag; continue;;
16123 case $ac_mode$ac_tag in
16125 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16126 :[FH]-) ac_tag=-:-;;
16127 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16144 -) ac_f="$ac_tmp/stdin";;
16145 *) # Look for the file first in the build tree, then in the source tree
16146 # (if the path is not absolute). The absolute path cannot be DOS-style,
16147 # because $ac_f cannot contain `:'.
16151 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16153 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16155 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16156 as_fn_append ac_file_inputs " '$ac_f'"
16159 # Let's still pretend it is `configure' which instantiates (i.e., don't
16160 # use $as_me), people would be surprised to read:
16161 # /* config.h. Generated by config.status. */
16162 configure_input='Generated from '`
16163 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16165 if test x"$ac_file" != x-; then
16166 configure_input="$ac_file. $configure_input"
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16168 $as_echo "$as_me: creating $ac_file" >&6;}
16170 # Neutralize special characters interpreted by sed in replacement strings.
16171 case $configure_input in #(
16172 *\&* | *\|* | *\\* )
16173 ac_sed_conf_input=`$as_echo "$configure_input" |
16174 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16175 *) ac_sed_conf_input=$configure_input;;
16179 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16185 ac_dir=`$as_dirname -- "$ac_file" ||
16186 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16187 X"$ac_file" : 'X\(//\)[^/]' \| \
16188 X"$ac_file" : 'X\(//\)$' \| \
16189 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16190 $as_echo X"$ac_file" |
16191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16195 /^X\(\/\/\)[^/].*/{
16208 as_dir="$ac_dir"; as_fn_mkdir_p
16212 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16214 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16215 # A ".." for each directory in $ac_dir_suffix.
16216 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16217 case $ac_top_builddir_sub in
16218 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16219 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16222 ac_abs_top_builddir=$ac_pwd
16223 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16224 # for backward compatibility:
16225 ac_top_builddir=$ac_top_build_prefix
16228 .) # We are building in place.
16230 ac_top_srcdir=$ac_top_builddir_sub
16231 ac_abs_top_srcdir=$ac_pwd ;;
16232 [\\/]* | ?:[\\/]* ) # Absolute name.
16233 ac_srcdir=$srcdir$ac_dir_suffix;
16234 ac_top_srcdir=$srcdir
16235 ac_abs_top_srcdir=$srcdir ;;
16236 *) # Relative name.
16237 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16238 ac_top_srcdir=$ac_top_build_prefix$srcdir
16239 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16241 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16251 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16252 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16254 ac_MKDIR_P=$MKDIR_P
16256 [\\/$]* | ?:[\\/]* ) ;;
16257 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16262 # If the template does not know about datarootdir, expand it.
16263 # FIXME: This hack should be removed a few years after 2.60.
16264 ac_datarootdir_hack=; ac_datarootdir_seen=
16275 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16276 *datarootdir*) ac_datarootdir_seen=yes;;
16277 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16279 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16282 ac_datarootdir_hack='
16283 s&@datadir@&$datadir&g
16284 s&@docdir@&$docdir&g
16285 s&@infodir@&$infodir&g
16286 s&@localedir@&$localedir&g
16287 s&@mandir@&$mandir&g
16288 s&\\\${datarootdir}&$datarootdir&g' ;;
16292 # Neutralize VPATH when `$srcdir' = `.'.
16293 # Shell code in configure.ac might set extrasub.
16294 # FIXME: do we really want to maintain this feature?
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296 ac_sed_extra="$ac_vpsub
16299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16302 s|@configure_input@|$ac_sed_conf_input|;t t
16303 s&@top_builddir@&$ac_top_builddir_sub&;t t
16304 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16305 s&@srcdir@&$ac_srcdir&;t t
16306 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16307 s&@top_srcdir@&$ac_top_srcdir&;t t
16308 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16309 s&@builddir@&$ac_builddir&;t t
16310 s&@abs_builddir@&$ac_abs_builddir&;t t
16311 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16312 s&@INSTALL@&$ac_INSTALL&;t t
16313 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16314 $ac_datarootdir_hack
16316 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16317 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16319 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16320 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16321 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16322 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16324 which seems to be undefined. Please make sure it is defined" >&5
16325 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16326 which seems to be undefined. Please make sure it is defined" >&2;}
16328 rm -f "$ac_tmp/stdin"
16330 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16331 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16339 if test x"$ac_file" != x-; then
16341 $as_echo "/* $configure_input */" \
16342 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16343 } >"$ac_tmp/config.h" \
16344 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16345 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16347 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16350 mv "$ac_tmp/config.h" "$ac_file" \
16351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16354 $as_echo "/* $configure_input */" \
16355 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16356 || as_fn_error $? "could not create -" "$LINENO" 5
16358 # Compute "$ac_file"'s index in $config_headers.
16361 for _am_header in $config_headers :; do
16362 case $_am_header in
16363 $_am_arg | $_am_arg:* )
16366 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16369 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16370 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16371 X"$_am_arg" : 'X\(//\)[^/]' \| \
16372 X"$_am_arg" : 'X\(//\)$' \| \
16373 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16374 $as_echo X"$_am_arg" |
16375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16379 /^X\(\/\/\)[^/].*/{
16391 s/.*/./; q'`/stamp-h$_am_stamp_count
16394 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16395 $as_echo "$as_me: executing $ac_file commands" >&6;}
16400 case $ac_file$ac_mode in
16401 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16402 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16403 # are listed without --file. Let's play safe and only enable the eval
16404 # if we detect the quoting.
16405 case $CONFIG_FILES in
16406 *\'*) eval set x "$CONFIG_FILES" ;;
16407 *) set x $CONFIG_FILES ;;
16412 # Strip MF so we end up with the name of the file.
16413 mf=`echo "$mf" | sed -e 's/:.*$//'`
16414 # Check whether this is an Automake generated Makefile or not.
16415 # We used to match only the files named `Makefile.in', but
16416 # some people rename them; so instead we look at the file content.
16417 # Grep'ing the first line is not enough: some people post-process
16418 # each Makefile.in and add a new line on top of each file to say so.
16419 # Grep'ing the whole file is not good either: AIX grep has a line
16420 # limit of 2048, but all sed's we know have understand at least 4000.
16421 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16422 dirpart=`$as_dirname -- "$mf" ||
16423 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16424 X"$mf" : 'X\(//\)[^/]' \| \
16425 X"$mf" : 'X\(//\)$' \| \
16426 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16432 /^X\(\/\/\)[^/].*/{
16448 # Extract the definition of DEPDIR, am__include, and am__quote
16449 # from the Makefile without running `make'.
16450 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16451 test -z "$DEPDIR" && continue
16452 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16453 test -z "am__include" && continue
16454 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16455 # When using ansi2knr, U may be empty or an underscore; expand it
16456 U=`sed -n 's/^U = //p' < "$mf"`
16457 # Find all dependency output files, they are included files with
16458 # $(DEPDIR) in their names. We invoke sed twice because it is the
16459 # simplest approach to changing $(DEPDIR) to its actual value in the
16461 for file in `sed -n "
16462 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16463 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16464 # Make sure the directory exists.
16465 test -f "$dirpart/$file" && continue
16466 fdir=`$as_dirname -- "$file" ||
16467 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16468 X"$file" : 'X\(//\)[^/]' \| \
16469 X"$file" : 'X\(//\)$' \| \
16470 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16471 $as_echo X"$file" |
16472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16476 /^X\(\/\/\)[^/].*/{
16489 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16490 # echo "creating $dirpart/$file"
16491 echo '# dummy' > "$dirpart/$file"
16498 # See if we are running on zsh, and set the options which allow our
16499 # commands through without removal of \ escapes.
16500 if test -n "${ZSH_VERSION+set}" ; then
16501 setopt NO_GLOB_SUBST
16504 cfgfile="${ofile}T"
16505 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16508 cat <<_LT_EOF >> "$cfgfile"
16511 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16512 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16513 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16514 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16516 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16517 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16519 # Written by Gordon Matzigkeit, 1996
16521 # This file is part of GNU Libtool.
16523 # GNU Libtool is free software; you can redistribute it and/or
16524 # modify it under the terms of the GNU General Public License as
16525 # published by the Free Software Foundation; either version 2 of
16526 # the License, or (at your option) any later version.
16528 # As a special exception to the GNU General Public License,
16529 # if you distribute this file as part of a program or library that
16530 # is built using GNU Libtool, you may include this file under the
16531 # same distribution terms that you use for the rest of that program.
16533 # GNU Libtool is distributed in the hope that it will be useful,
16534 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16535 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16536 # GNU General Public License for more details.
16538 # You should have received a copy of the GNU General Public License
16539 # along with GNU Libtool; see the file COPYING. If not, a copy
16540 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16541 # obtained by writing to the Free Software Foundation, Inc.,
16542 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16545 # The names of the tagged configurations supported by this script.
16548 # ### BEGIN LIBTOOL CONFIG
16550 # Which release of libtool.m4 was used?
16551 macro_version=$macro_version
16552 macro_revision=$macro_revision
16554 # Assembler program.
16557 # DLL creation program.
16558 DLLTOOL=$lt_DLLTOOL
16560 # Object dumper program.
16561 OBJDUMP=$lt_OBJDUMP
16563 # Whether or not to build static libraries.
16564 build_old_libs=$enable_static
16566 # Whether or not to build shared libraries.
16567 build_libtool_libs=$enable_shared
16569 # What type of objects to build.
16572 # Whether or not to optimize for fast installation.
16573 fast_install=$enable_fast_install
16575 # Shell to use when invoking shell scripts.
16578 # An echo program that protects backslashes.
16581 # The PATH separator for the build system.
16582 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16585 host_alias=$host_alias
16589 # The build system.
16590 build_alias=$build_alias
16594 # A sed program that does not truncate output.
16597 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16598 Xsed="\$SED -e 1s/^X//"
16600 # A grep program that handles long lines.
16606 # A literal string matcher.
16609 # A BSD- or MS-compatible name lister.
16612 # Whether we need soft or hard links.
16615 # What is the maximum length of a command?
16616 max_cmd_len=$max_cmd_len
16618 # Object file suffix (normally "o").
16621 # Executable file suffix (normally "").
16624 # whether the shell understands "unset".
16627 # turn spaces into newlines.
16630 # turn newlines into spaces.
16633 # convert \$build file names to \$host format.
16634 to_host_file_cmd=$lt_cv_to_host_file_cmd
16636 # convert \$build files to toolchain format.
16637 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16639 # Method to check whether dependent libraries are shared objects.
16640 deplibs_check_method=$lt_deplibs_check_method
16642 # Command to use when deplibs_check_method = "file_magic".
16643 file_magic_cmd=$lt_file_magic_cmd
16645 # How to find potential files when deplibs_check_method = "file_magic".
16646 file_magic_glob=$lt_file_magic_glob
16648 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16649 want_nocaseglob=$lt_want_nocaseglob
16651 # Command to associate shared and link libraries.
16652 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16657 # Flags to create an archive.
16658 AR_FLAGS=$lt_AR_FLAGS
16660 # How to feed a file listing to the archiver.
16661 archiver_list_spec=$lt_archiver_list_spec
16663 # A symbol stripping program.
16666 # Commands used to install an old-style archive.
16668 old_postinstall_cmds=$lt_old_postinstall_cmds
16669 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16671 # Whether to use a lock for old archive extraction.
16672 lock_old_archive_extraction=$lock_old_archive_extraction
16677 # LTCC compiler flags.
16678 LTCFLAGS=$lt_CFLAGS
16680 # Take the output of nm and produce a listing of raw symbols and C names.
16681 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16683 # Transform the output of nm in a proper C declaration.
16684 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16686 # Transform the output of nm in a C name address pair.
16687 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16689 # Transform the output of nm in a C name address pair when lib prefix is needed.
16690 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16692 # Specify filename containing input files for \$NM.
16693 nm_file_list_spec=$lt_nm_file_list_spec
16695 # The root where to search for dependent libraries,and in which our libraries should be installed.
16696 lt_sysroot=$lt_sysroot
16698 # The name of the directory that contains temporary libtool files.
16701 # Used to examine libraries when file_magic_cmd begins with "file".
16702 MAGIC_CMD=$MAGIC_CMD
16704 # Must we lock files when doing compilation?
16705 need_locks=$lt_need_locks
16708 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16710 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16711 DSYMUTIL=$lt_DSYMUTIL
16713 # Tool to change global to local symbols on Mac OS X.
16716 # Tool to manipulate fat objects and archives on Mac OS X.
16719 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16722 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16723 OTOOL64=$lt_OTOOL64
16725 # Old archive suffix (normally "a").
16728 # Shared library suffix (normally ".so").
16729 shrext_cmds=$lt_shrext_cmds
16731 # The commands to extract the exported symbol list from a shared archive.
16732 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16734 # Variables whose values should be saved in libtool wrapper scripts and
16735 # restored at link time.
16736 variables_saved_for_relink=$lt_variables_saved_for_relink
16738 # Do we need the "lib" prefix for modules?
16739 need_lib_prefix=$need_lib_prefix
16741 # Do we need a version for libraries?
16742 need_version=$need_version
16744 # Library versioning type.
16745 version_type=$version_type
16747 # Shared library runtime path variable.
16748 runpath_var=$runpath_var
16750 # Shared library path variable.
16751 shlibpath_var=$shlibpath_var
16753 # Is shlibpath searched before the hard-coded library search path?
16754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16756 # Format of library name prefix.
16757 libname_spec=$lt_libname_spec
16759 # List of archive names. First name is the real one, the rest are links.
16760 # The last name is the one that the linker finds with -lNAME
16761 library_names_spec=$lt_library_names_spec
16763 # The coded name of the library, if different from the real name.
16764 soname_spec=$lt_soname_spec
16766 # Permission mode override for installation of shared libraries.
16767 install_override_mode=$lt_install_override_mode
16769 # Command to use after installation of a shared archive.
16770 postinstall_cmds=$lt_postinstall_cmds
16772 # Command to use after uninstallation of a shared archive.
16773 postuninstall_cmds=$lt_postuninstall_cmds
16775 # Commands used to finish a libtool library installation in a directory.
16776 finish_cmds=$lt_finish_cmds
16778 # As "finish_cmds", except a single script fragment to be evaled but
16780 finish_eval=$lt_finish_eval
16782 # Whether we should hardcode library paths into libraries.
16783 hardcode_into_libs=$hardcode_into_libs
16785 # Compile-time system search path for libraries.
16786 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16788 # Run-time system search path for libraries.
16789 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16791 # Whether dlopen is supported.
16792 dlopen_support=$enable_dlopen
16794 # Whether dlopen of programs is supported.
16795 dlopen_self=$enable_dlopen_self
16797 # Whether dlopen of statically linked programs is supported.
16798 dlopen_self_static=$enable_dlopen_self_static
16800 # Commands to strip libraries.
16801 old_striplib=$lt_old_striplib
16802 striplib=$lt_striplib
16805 # The linker used to build libraries.
16808 # How to create reloadable object files.
16809 reload_flag=$lt_reload_flag
16810 reload_cmds=$lt_reload_cmds
16812 # Commands used to build an old-style archive.
16813 old_archive_cmds=$lt_old_archive_cmds
16815 # A language specific compiler.
16818 # Is the compiler the GNU compiler?
16821 # Compiler flag to turn off builtin functions.
16822 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16824 # Additional compiler flags for building library objects.
16825 pic_flag=$lt_lt_prog_compiler_pic
16827 # How to pass a linker flag through the compiler.
16828 wl=$lt_lt_prog_compiler_wl
16830 # Compiler flag to prevent dynamic linking.
16831 link_static_flag=$lt_lt_prog_compiler_static
16833 # Does compiler simultaneously support -c and -o options?
16834 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16836 # Whether or not to add -lc for building shared libraries.
16837 build_libtool_need_lc=$archive_cmds_need_lc
16839 # Whether or not to disallow shared libs when runtime libs are static.
16840 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16842 # Compiler flag to allow reflexive dlopens.
16843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16845 # Compiler flag to generate shared objects directly from archives.
16846 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16848 # Whether the compiler copes with passing no objects directly.
16849 compiler_needs_object=$lt_compiler_needs_object
16851 # Create an old-style archive from a shared archive.
16852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16854 # Create a temporary old-style archive to link instead of a shared archive.
16855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16857 # Commands used to build a shared archive.
16858 archive_cmds=$lt_archive_cmds
16859 archive_expsym_cmds=$lt_archive_expsym_cmds
16861 # Commands used to build a loadable module if different from building
16862 # a shared archive.
16863 module_cmds=$lt_module_cmds
16864 module_expsym_cmds=$lt_module_expsym_cmds
16866 # Whether we are building with GNU ld or not.
16867 with_gnu_ld=$lt_with_gnu_ld
16869 # Flag that allows shared libraries with undefined symbols to be built.
16870 allow_undefined_flag=$lt_allow_undefined_flag
16872 # Flag that enforces no undefined symbols.
16873 no_undefined_flag=$lt_no_undefined_flag
16875 # Flag to hardcode \$libdir into a binary during linking.
16876 # This must work even if \$libdir does not exist
16877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16879 # Whether we need a single "-rpath" flag with a separated argument.
16880 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16882 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16883 # DIR into the resulting binary.
16884 hardcode_direct=$hardcode_direct
16886 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16887 # DIR into the resulting binary and the resulting library dependency is
16888 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16889 # library is relocated.
16890 hardcode_direct_absolute=$hardcode_direct_absolute
16892 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16893 # into the resulting binary.
16894 hardcode_minus_L=$hardcode_minus_L
16896 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16897 # into the resulting binary.
16898 hardcode_shlibpath_var=$hardcode_shlibpath_var
16900 # Set to "yes" if building a shared library automatically hardcodes DIR
16901 # into the library and all subsequent libraries and executables linked
16903 hardcode_automatic=$hardcode_automatic
16905 # Set to yes if linker adds runtime paths of dependent libraries
16906 # to runtime path list.
16907 inherit_rpath=$inherit_rpath
16909 # Whether libtool must link a program against all its dependency libraries.
16910 link_all_deplibs=$link_all_deplibs
16912 # Set to "yes" if exported symbols are required.
16913 always_export_symbols=$always_export_symbols
16915 # The commands to list exported symbols.
16916 export_symbols_cmds=$lt_export_symbols_cmds
16918 # Symbols that should not be listed in the preloaded symbols.
16919 exclude_expsyms=$lt_exclude_expsyms
16921 # Symbols that must always be exported.
16922 include_expsyms=$lt_include_expsyms
16924 # Commands necessary for linking programs (against libraries) with templates.
16925 prelink_cmds=$lt_prelink_cmds
16927 # Commands necessary for finishing linking programs.
16928 postlink_cmds=$lt_postlink_cmds
16930 # Specify filename containing input files.
16931 file_list_spec=$lt_file_list_spec
16933 # How to hardcode a shared library path into an executable.
16934 hardcode_action=$hardcode_action
16936 # ### END LIBTOOL CONFIG
16942 cat <<\_LT_EOF >> "$cfgfile"
16943 # AIX sometimes has problems with the GCC collect2 program. For some
16944 # reason, if we set the COLLECT_NAMES environment variable, the problems
16945 # vanish in a puff of smoke.
16946 if test "X${COLLECT_NAMES+set}" != Xset; then
16948 export COLLECT_NAMES
16955 ltmain="$ac_aux_dir/ltmain.sh"
16958 # We use sed instead of cat because bash on DJGPP gets confused if
16959 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16960 # text mode, it properly converts lines to CR/LF. This bash problem
16961 # is reportedly fixed, but why not run on old versions too?
16962 sed '$q' "$ltmain" >> "$cfgfile" \
16963 || (rm -f "$cfgfile"; exit 1)
16965 if test x"$xsi_shell" = xyes; then
16966 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16970 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16971 \ * ) func_dirname_result="${3}" ;;\
16973 } # Extended-shell func_dirname 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_basename ()$/,/^} # func_basename /c\
16982 \ func_basename_result="${1##*/}"\
16983 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16984 && mv -f "$cfgfile.tmp" "$cfgfile" \
16985 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16986 test 0 -eq $? || _lt_function_replace_fail=:
16989 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16990 func_dirname_and_basename ()\
16993 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16994 \ * ) func_dirname_result="${3}" ;;\
16996 \ func_basename_result="${1##*/}"\
16997 } # Extended-shell func_dirname_and_basename 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_stripname ()$/,/^} # func_stripname /c\
17006 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17007 \ # positional parameters, so assign one to ordinary parameter first.\
17008 \ func_stripname_result=${3}\
17009 \ func_stripname_result=${func_stripname_result#"${1}"}\
17010 \ func_stripname_result=${func_stripname_result%"${2}"}\
17011 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17012 && mv -f "$cfgfile.tmp" "$cfgfile" \
17013 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17014 test 0 -eq $? || _lt_function_replace_fail=:
17017 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17018 func_split_long_opt ()\
17020 \ func_split_long_opt_name=${1%%=*}\
17021 \ func_split_long_opt_arg=${1#*=}\
17022 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17023 && mv -f "$cfgfile.tmp" "$cfgfile" \
17024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17025 test 0 -eq $? || _lt_function_replace_fail=:
17028 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17029 func_split_short_opt ()\
17031 \ func_split_short_opt_arg=${1#??}\
17032 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17033 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17034 && mv -f "$cfgfile.tmp" "$cfgfile" \
17035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17036 test 0 -eq $? || _lt_function_replace_fail=:
17039 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17043 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17044 \ *) func_lo2o_result=${1} ;;\
17046 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17047 && mv -f "$cfgfile.tmp" "$cfgfile" \
17048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17049 test 0 -eq $? || _lt_function_replace_fail=:
17052 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17055 func_xform_result=${1%.*}.lo\
17056 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17057 && mv -f "$cfgfile.tmp" "$cfgfile" \
17058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17059 test 0 -eq $? || _lt_function_replace_fail=:
17062 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17065 func_arith_result=$(( $* ))\
17066 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17067 && mv -f "$cfgfile.tmp" "$cfgfile" \
17068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17069 test 0 -eq $? || _lt_function_replace_fail=:
17072 sed -e '/^func_len ()$/,/^} # func_len /c\
17075 func_len_result=${#1}\
17076 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17077 && mv -f "$cfgfile.tmp" "$cfgfile" \
17078 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17079 test 0 -eq $? || _lt_function_replace_fail=:
17083 if test x"$lt_shell_append" = xyes; then
17084 sed -e '/^func_append ()$/,/^} # func_append /c\
17087 eval "${1}+=\\${2}"\
17088 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17089 && mv -f "$cfgfile.tmp" "$cfgfile" \
17090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17091 test 0 -eq $? || _lt_function_replace_fail=:
17094 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17095 func_append_quoted ()\
17097 \ func_quote_for_eval "${2}"\
17098 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17099 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17100 && mv -f "$cfgfile.tmp" "$cfgfile" \
17101 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17102 test 0 -eq $? || _lt_function_replace_fail=:
17105 # Save a `func_append' function call where possible by direct use of '+='
17106 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17107 && mv -f "$cfgfile.tmp" "$cfgfile" \
17108 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17109 test 0 -eq $? || _lt_function_replace_fail=:
17111 # Save a `func_append' function call even when '+=' is not available
17112 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17113 && mv -f "$cfgfile.tmp" "$cfgfile" \
17114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17115 test 0 -eq $? || _lt_function_replace_fail=:
17118 if test x"$_lt_function_replace_fail" = x":"; then
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17120 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17124 mv -f "$cfgfile" "$ofile" ||
17125 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17136 ac_clean_files=$ac_clean_files_save
17138 test $ac_write_fail = 0 ||
17139 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17142 # configure is writing to config.log, and then calls config.status.
17143 # config.status does its own redirection, appending to config.log.
17144 # Unfortunately, on DOS this fails, as config.log is still kept open
17145 # by configure, so config.status won't be able to write to it; its
17146 # output is simply discarded. So we exec the FD to /dev/null,
17147 # effectively closing config.log, so it can be properly (re)opened and
17148 # appended to by config.status. When coming back to configure, we
17149 # need to make the FD available again.
17150 if test "$no_create" != yes; then
17152 ac_config_status_args=
17153 test "$silent" = yes &&
17154 ac_config_status_args="$ac_config_status_args --quiet"
17156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17159 # would make configure fail if this is the last instruction.
17160 $ac_cs_success || as_fn_exit 1
17162 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17164 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17171 Using python interpreter: $PYTHON
17172 cairo support: $enable_cairo
17173 thread support: $enable_thread
17174 code coverage support: $enable_code_coverage
17179 Using python interpreter: $PYTHON
17180 cairo support: $enable_cairo
17181 thread support: $enable_thread
17182 code coverage support: $enable_code_coverage