2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for mpc 1.0.
5 # Report bugs to <mpc-discuss@lists.gforge.inria.fr>.
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
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: mpc-discuss@lists.gforge.inria.fr about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='mpc'
593 PACKAGE_VERSION='1.0'
594 PACKAGE_STRING='mpc 1.0'
595 PACKAGE_BUGREPORT='mpc-discuss@lists.gforge.inria.fr'
598 ac_unique_file="src/mpc-impl.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
694 MAINTAINER_MODE_FALSE
704 INSTALL_STRIP_PROGRAM
746 program_transform_name
759 enable_option_checking
760 enable_maintainer_mode
761 enable_dependency_tracking
769 enable_valgrind_tests
778 ac_precious_vars='build_alias
789 # Initialize some variables set by options.
791 ac_init_version=false
792 ac_unrecognized_opts=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
803 program_transform_name=s,x,x,
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
849 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 # Accept the important Cygnus configure options, so we can diagnose typos.
856 case $ac_dashdash$ac_option in
860 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 -build | --build | --buil | --bui | --bu)
866 ac_prev=build_alias ;;
867 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868 build_alias=$ac_optarg ;;
870 -cache-file | --cache-file | --cache-fil | --cache-fi \
871 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872 ac_prev=cache_file ;;
873 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875 cache_file=$ac_optarg ;;
878 cache_file=config.cache ;;
880 -datadir | --datadir | --datadi | --datad)
882 -datadir=* | --datadir=* | --datadi=* | --datad=*)
883 datadir=$ac_optarg ;;
885 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886 | --dataroo | --dataro | --datar)
887 ac_prev=datarootdir ;;
888 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890 datarootdir=$ac_optarg ;;
892 -disable-* | --disable-*)
893 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894 # Reject names that are not valid shell variable names.
895 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896 as_fn_error $? "invalid feature name: $ac_useropt"
897 ac_useropt_orig=$ac_useropt
898 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
899 case $ac_user_opts in
903 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
904 ac_unrecognized_sep=', ';;
906 eval enable_$ac_useropt=no ;;
908 -docdir | --docdir | --docdi | --doc | --do)
910 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 -enable-* | --enable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
932 eval enable_$ac_useropt=\$ac_optarg ;;
934 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
935 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
936 | --exec | --exe | --ex)
937 ac_prev=exec_prefix ;;
938 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
939 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
940 | --exec=* | --exe=* | --ex=*)
941 exec_prefix=$ac_optarg ;;
943 -gas | --gas | --ga | --g)
944 # Obsolete; use --with-gas.
947 -help | --help | --hel | --he | -h)
949 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
950 ac_init_help=recursive ;;
951 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
952 ac_init_help=short ;;
954 -host | --host | --hos | --ho)
955 ac_prev=host_alias ;;
956 -host=* | --host=* | --hos=* | --ho=*)
957 host_alias=$ac_optarg ;;
959 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 htmldir=$ac_optarg ;;
965 -includedir | --includedir | --includedi | --included | --include \
966 | --includ | --inclu | --incl | --inc)
967 ac_prev=includedir ;;
968 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
969 | --includ=* | --inclu=* | --incl=* | --inc=*)
970 includedir=$ac_optarg ;;
972 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
975 infodir=$ac_optarg ;;
977 -libdir | --libdir | --libdi | --libd)
979 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
983 | --libexe | --libex | --libe)
984 ac_prev=libexecdir ;;
985 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
986 | --libexe=* | --libex=* | --libe=*)
987 libexecdir=$ac_optarg ;;
989 -localedir | --localedir | --localedi | --localed | --locale)
991 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
992 localedir=$ac_optarg ;;
994 -localstatedir | --localstatedir | --localstatedi | --localstated \
995 | --localstate | --localstat | --localsta | --localst | --locals)
996 ac_prev=localstatedir ;;
997 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
998 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
999 localstatedir=$ac_optarg ;;
1001 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1004 mandir=$ac_optarg ;;
1006 -nfp | --nfp | --nf)
1007 # Obsolete; use --without-fp.
1010 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1011 | --no-cr | --no-c | -n)
1014 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1015 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1019 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1020 | --oldin | --oldi | --old | --ol | --o)
1021 ac_prev=oldincludedir ;;
1022 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1023 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1024 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1025 oldincludedir=$ac_optarg ;;
1027 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1030 prefix=$ac_optarg ;;
1032 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1033 | --program-pre | --program-pr | --program-p)
1034 ac_prev=program_prefix ;;
1035 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1036 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1037 program_prefix=$ac_optarg ;;
1039 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1040 | --program-suf | --program-su | --program-s)
1041 ac_prev=program_suffix ;;
1042 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1043 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1044 program_suffix=$ac_optarg ;;
1046 -program-transform-name | --program-transform-name \
1047 | --program-transform-nam | --program-transform-na \
1048 | --program-transform-n | --program-transform- \
1049 | --program-transform | --program-transfor \
1050 | --program-transfo | --program-transf \
1051 | --program-trans | --program-tran \
1052 | --progr-tra | --program-tr | --program-t)
1053 ac_prev=program_transform_name ;;
1054 -program-transform-name=* | --program-transform-name=* \
1055 | --program-transform-nam=* | --program-transform-na=* \
1056 | --program-transform-n=* | --program-transform-=* \
1057 | --program-transform=* | --program-transfor=* \
1058 | --program-transfo=* | --program-transf=* \
1059 | --program-trans=* | --program-tran=* \
1060 | --progr-tra=* | --program-tr=* | --program-t=*)
1061 program_transform_name=$ac_optarg ;;
1063 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1066 pdfdir=$ac_optarg ;;
1068 -psdir | --psdir | --psdi | --psd | --ps)
1070 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1074 | -silent | --silent | --silen | --sile | --sil)
1077 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 sbindir=$ac_optarg ;;
1083 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1084 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1085 | --sharedst | --shareds | --shared | --share | --shar \
1087 ac_prev=sharedstatedir ;;
1088 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1089 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1090 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 sharedstatedir=$ac_optarg ;;
1094 -site | --site | --sit)
1096 -site=* | --site=* | --sit=*)
1099 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1102 srcdir=$ac_optarg ;;
1104 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1105 | --syscon | --sysco | --sysc | --sys | --sy)
1106 ac_prev=sysconfdir ;;
1107 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1108 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1109 sysconfdir=$ac_optarg ;;
1111 -target | --target | --targe | --targ | --tar | --ta | --t)
1112 ac_prev=target_alias ;;
1113 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1114 target_alias=$ac_optarg ;;
1116 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 -version | --version | --versio | --versi | --vers | -V)
1120 ac_init_version=: ;;
1123 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1136 eval with_$ac_useropt=\$ac_optarg ;;
1138 -without-* | --without-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1152 eval with_$ac_useropt=no ;;
1155 # Obsolete; use --with-x.
1158 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1159 | --x-incl | --x-inc | --x-in | --x-i)
1160 ac_prev=x_includes ;;
1161 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1162 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1163 x_includes=$ac_optarg ;;
1165 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1166 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1167 ac_prev=x_libraries ;;
1168 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1169 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1170 x_libraries=$ac_optarg ;;
1172 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1173 Try \`$0 --help' for more information"
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 case $ac_envvar in #(
1180 '' | [0-9]* | *[!_$as_cr_alnum]* )
1181 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1183 eval $ac_envvar=\$ac_optarg
1184 export $ac_envvar ;;
1187 # FIXME: should be removed in autoconf 3.0.
1188 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 if test -n "$ac_prev"; then
1198 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1199 as_fn_error $? "missing argument to $ac_option"
1202 if test -n "$ac_unrecognized_opts"; then
1203 case $enable_option_checking in
1205 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1206 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 # Check all directory arguments for consistency.
1211 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1212 datadir sysconfdir sharedstatedir localstatedir includedir \
1213 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1214 libdir localedir mandir
1216 eval ac_val=\$$ac_var
1217 # Remove trailing slashes.
1220 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1221 eval $ac_var=\$ac_val;;
1223 # Be sure to have absolute directory names.
1225 [\\/$]* | ?:[\\/]* ) continue;;
1226 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error $? "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error $? "pwd does not report name of working directory"
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1327 \`configure' configures mpc 1.0 to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking ...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/mpc]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of mpc 1.0:";;
1402 --disable-option-checking ignore unrecognized --enable/--with options
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-maintainer-mode enable make rules and dependencies not useful
1406 (and sometimes confusing) to the casual installer
1407 --disable-dependency-tracking speeds up one-time build
1408 --enable-dependency-tracking do not reject slow dependency extractors
1409 --enable-logging enable logging of function calls to stderr (default
1411 --enable-valgrind-tests run checks through valgrind (default = no)
1412 --enable-shared[=PKGS] build shared libraries [default=yes]
1413 --enable-static[=PKGS] build static libraries [default=yes]
1414 --enable-fast-install[=PKGS]
1415 optimize for fast installation [default=yes]
1416 --disable-libtool-lock avoid locking (might break parallel builds)
1419 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1420 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1421 --with-mpfr-include=DIR MPFR include directory
1422 --with-mpfr-lib=DIR MPFR lib directory
1423 --with-mpfr=DIR MPFR install directory
1424 --with-gmp-include=DIR GMP include directory
1425 --with-gmp-lib=DIR GMP lib directory
1426 --with-gmp=DIR GMP install directory
1427 --with-pic try to use only PIC/non-PIC objects [default=use
1429 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1430 --with-sysroot=DIR Search for dependent libraries within DIR
1431 (or the compiler's sysroot if not specified).
1433 Some influential environment variables:
1434 CC C compiler command
1435 CFLAGS C compiler flags
1436 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1437 nonstandard directory <lib dir>
1438 LIBS libraries to pass to the linker, e.g. -l<library>
1439 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1440 you have headers in a nonstandard directory <include dir>
1443 Use these variables to override the choices made by `configure' or to help
1444 it to find libraries and programs with nonstandard names/locations.
1446 Report bugs to <mpc-discuss@lists.gforge.inria.fr>.
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1476 .) # We are building in place.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1510 generated by GNU Autoconf 2.69
1512 Copyright (C) 2012 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1559 } # ac_fn_c_try_compile
1561 # ac_fn_c_try_link LINENO
1562 # -----------------------
1563 # Try to link conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext conftest$ac_exeext
1568 if { { ac_try="$ac_link"
1570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1571 *) ac_try_echo=$ac_try;;
1573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_link") 2>conftest.err
1577 if test -s conftest.err; then
1578 grep -v '^ *+' conftest.err >conftest.er1
1579 cat conftest.er1 >&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest$ac_exeext && {
1587 test "$cross_compiling" = yes ||
1588 test -x conftest$ac_exeext
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1597 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1598 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1599 # interfere with the next link command; also delete a directory that is
1600 # left behind by Apple's compiler. We do this before executing the actions.
1601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1605 } # ac_fn_c_try_link
1607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists and can be compiled using the include files in
1610 # INCLUDES, setting the cache variable VAR accordingly.
1611 ac_fn_c_check_header_compile ()
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1624 if ac_fn_c_try_compile "$LINENO"; then :
1629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 } # ac_fn_c_check_header_compile
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } > conftest.i && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_link"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>&5
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693 { { case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_try") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; }; }; then :
1705 $as_echo "$as_me: program exited with status $ac_status" >&5
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1709 ac_retval=$ac_status
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1717 # ac_fn_c_check_func LINENO FUNC VAR
1718 # ----------------------------------
1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1720 ac_fn_c_check_func ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732 #define $2 innocuous_$2
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below.
1736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737 <limits.h> exists even on freestanding compilers. */
1740 # include <limits.h>
1742 # include <assert.h>
1747 /* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined __stub_$2 || defined __stub___$2
1769 if ac_fn_c_try_link "$LINENO"; then :
1774 rm -f core conftest.err conftest.$ac_objext \
1775 conftest$ac_exeext conftest.$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 } # ac_fn_c_check_func
1784 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1785 # -------------------------------------------------------
1786 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1787 # the include files in INCLUDES and setting the cache variable VAR
1789 ac_fn_c_check_header_mongrel ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if eval \${$3+:} false; then :
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1802 # Is the header compilable?
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1804 $as_echo_n "checking $2 usability... " >&6; }
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811 ac_header_compiler=yes
1813 ac_header_compiler=no
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1817 $as_echo "$ac_header_compiler" >&6; }
1819 # Is the header present?
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1821 $as_echo_n "checking $2 presence... " >&6; }
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1826 if ac_fn_c_try_cpp "$LINENO"; then :
1827 ac_header_preproc=yes
1829 ac_header_preproc=no
1831 rm -f conftest.err conftest.i conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1833 $as_echo "$ac_header_preproc" >&6; }
1835 # So? What about this header?
1836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1839 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1841 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1845 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1847 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1849 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1851 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854 ( $as_echo "## ------------------------------------------------ ##
1855 ## Report this to mpc-discuss@lists.gforge.inria.fr ##
1856 ## ------------------------------------------------ ##"
1857 ) | sed "s/^/$as_me: WARNING: /" >&2
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1865 eval "$3=\$ac_header_compiler"
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_header_mongrel
1875 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1876 # -------------------------------------------
1877 # Tests whether TYPE exists after having included INCLUDES, setting cache
1878 # variable VAR accordingly.
1879 ac_fn_c_check_type ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1913 if ac_fn_c_try_compile "$LINENO"; then :
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_type
1928 cat >config.log <<_ACEOF
1929 This file contains any messages produced by compilers while
1930 running configure, to aid debugging if configure makes a mistake.
1932 It was created by mpc $as_me 1.0, which was
1933 generated by GNU Autoconf 2.69. Invocation command line was
1945 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1946 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1947 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1948 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1949 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1951 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1952 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1954 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1955 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1956 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1957 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1958 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1959 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1960 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 $as_echo "PATH: $as_dir"
1985 # Keep a trace of the command line.
1986 # Strip out --no-create and --no-recursion so they do not pile up.
1987 # Strip out --silent because we don't want to record it for future runs.
1988 # Also quote any args containing shell meta-characters.
1989 # Make two passes to allow for proper duplicate-argument suppression.
1993 ac_must_keep_next=false
1999 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2001 | -silent | --silent | --silen | --sile | --sil)
2004 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2007 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2009 as_fn_append ac_configure_args1 " '$ac_arg'"
2010 if test $ac_must_keep_next = true; then
2011 ac_must_keep_next=false # Got value, back to normal.
2014 *=* | --config-cache | -C | -disable-* | --disable-* \
2015 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2016 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2017 | -with-* | --with-* | -without-* | --without-* | --x)
2018 case "$ac_configure_args0 " in
2019 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2022 -* ) ac_must_keep_next=true ;;
2025 as_fn_append ac_configure_args " '$ac_arg'"
2030 { ac_configure_args0=; unset ac_configure_args0;}
2031 { ac_configure_args1=; unset ac_configure_args1;}
2033 # When interrupted or exit'd, cleanup temporary files, and complete
2034 # config.log. We remove comments because anyway the quotes in there
2035 # would cause problems or look ugly.
2036 # WARNING: Use '\'' to represent an apostrophe within the trap.
2037 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2038 trap 'exit_status=$?
2039 # Save into config.log some information that might help in debugging.
2043 $as_echo "## ---------------- ##
2044 ## Cache variables. ##
2045 ## ---------------- ##"
2047 # The following way of writing the cache mishandles newlines in values,
2049 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2050 eval ac_val=\$$ac_var
2054 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2055 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2058 _ | IFS | as_nl) ;; #(
2059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2060 *) { eval $ac_var=; unset $ac_var;} ;;
2065 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2066 *${as_nl}ac_space=\ *)
2068 "s/'\''/'\''\\\\'\'''\''/g;
2069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2079 $as_echo "## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##"
2083 for ac_var in $ac_subst_vars
2085 eval ac_val=\$$ac_var
2087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2089 $as_echo "$ac_var='\''$ac_val'\''"
2093 if test -n "$ac_subst_files"; then
2094 $as_echo "## ------------------- ##
2095 ## File substitutions. ##
2096 ## ------------------- ##"
2098 for ac_var in $ac_subst_files
2100 eval ac_val=\$$ac_var
2102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 $as_echo "$ac_var='\''$ac_val'\''"
2109 if test -s confdefs.h; then
2110 $as_echo "## ----------- ##
2117 test "$ac_signal" != 0 &&
2118 $as_echo "$as_me: caught signal $ac_signal"
2119 $as_echo "$as_me: exit $exit_status"
2121 rm -f core *.core core.conftest.* &&
2122 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2125 for ac_signal in 1 2 13 15; do
2126 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2130 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2131 rm -f -r conftest* confdefs.h
2133 $as_echo "/* confdefs.h */" > confdefs.h
2135 # Predefined preprocessor variables.
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_NAME "$PACKAGE_NAME"
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2145 cat >>confdefs.h <<_ACEOF
2146 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_STRING "$PACKAGE_STRING"
2153 cat >>confdefs.h <<_ACEOF
2154 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_URL "$PACKAGE_URL"
2162 # Let the site file select an alternate cache file if it wants to.
2163 # Prefer an explicitly selected file to automatically selected ones.
2166 if test -n "$CONFIG_SITE"; then
2167 # We do not want a PATH search for config.site.
2168 case $CONFIG_SITE in #((
2169 -*) ac_site_file1=./$CONFIG_SITE;;
2170 */*) ac_site_file1=$CONFIG_SITE;;
2171 *) ac_site_file1=./$CONFIG_SITE;;
2173 elif test "x$prefix" != xNONE; then
2174 ac_site_file1=$prefix/share/config.site
2175 ac_site_file2=$prefix/etc/config.site
2177 ac_site_file1=$ac_default_prefix/share/config.site
2178 ac_site_file2=$ac_default_prefix/etc/config.site
2180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2182 test "x$ac_site_file" = xNONE && continue
2183 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186 sed 's/^/| /' "$ac_site_file" >&5
2188 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 as_fn_error $? "failed to load site script $ac_site_file
2191 See \`config.log' for more details" "$LINENO" 5; }
2195 if test -r "$cache_file"; then
2196 # Some versions of bash will fail to source /dev/null (special files
2197 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2198 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2200 $as_echo "$as_me: loading cache $cache_file" >&6;}
2202 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2203 *) . "./$cache_file";;
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2208 $as_echo "$as_me: creating cache $cache_file" >&6;}
2212 # Check that the precious variables saved in the cache have kept the same
2214 ac_cache_corrupted=false
2215 for ac_var in $ac_precious_vars; do
2216 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2217 eval ac_new_set=\$ac_env_${ac_var}_set
2218 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2219 eval ac_new_val=\$ac_env_${ac_var}_value
2220 case $ac_old_set,$ac_new_set in
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2227 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2228 ac_cache_corrupted=: ;;
2231 if test "x$ac_old_val" != "x$ac_new_val"; then
2232 # differences in whitespace do not lead to failure.
2233 ac_old_val_w=`echo x $ac_old_val`
2234 ac_new_val_w=`echo x $ac_new_val`
2235 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2237 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2238 ac_cache_corrupted=:
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2241 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2242 eval $ac_var=\$ac_old_val
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2245 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2247 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2250 # Pass precious variables to config.status.
2251 if test "$ac_new_set" = set; then
2253 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2254 *) ac_arg=$ac_var=$ac_new_val ;;
2256 case " $ac_configure_args " in
2257 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2258 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2262 if $ac_cache_corrupted; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2266 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2267 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2269 ## -------------------- ##
2270 ## Main body of script. ##
2271 ## -------------------- ##
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281 ac_config_headers="$ac_config_headers config.h"
2284 am__api_version='1.11'
2287 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2288 if test -f "$ac_dir/install-sh"; then
2290 ac_install_sh="$ac_aux_dir/install-sh -c"
2292 elif test -f "$ac_dir/install.sh"; then
2294 ac_install_sh="$ac_aux_dir/install.sh -c"
2296 elif test -f "$ac_dir/shtool"; then
2298 ac_install_sh="$ac_aux_dir/shtool install -c"
2302 if test -z "$ac_aux_dir"; then
2303 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2306 # These three variables are undocumented and unsupported,
2307 # and are intended to be withdrawn in a future Autoconf release.
2308 # They can cause serious problems if a builder's source tree is in a directory
2309 # whose full name contains unusual characters.
2310 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2311 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2312 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2315 # Find a good install program. We prefer a C program (faster),
2316 # so one script is as good as another. But avoid the broken or
2317 # incompatible versions:
2318 # SysV /etc/install, /usr/sbin/install
2319 # SunOS /usr/etc/install
2320 # IRIX /sbin/install
2322 # AmigaOS /C/install, which installs bootblocks on floppy discs
2323 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2324 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2325 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2326 # OS/2's system install, which has a completely different semantic
2327 # ./install, which can be erroneously created by make from ./install.sh.
2328 # Reject install programs that cannot install multiple files.
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2330 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2331 if test -z "$INSTALL"; then
2332 if ${ac_cv_path_install+:} false; then :
2333 $as_echo_n "(cached) " >&6
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 test -z "$as_dir" && as_dir=.
2340 # Account for people who put trailing slashes in PATH elements.
2341 case $as_dir/ in #((
2342 ./ | .// | /[cC]/* | \
2343 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2344 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2347 # OSF1 and SCO ODT 3.0 have their own names for install.
2348 # Don't use installbsd from OSF since it installs stuff as root
2350 for ac_prog in ginstall scoinst install; do
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2353 if test $ac_prog = install &&
2354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2355 # AIX install. It has an incompatible calling convention.
2357 elif test $ac_prog = install &&
2358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2359 # program-specific install script used by HP pwplus--don't use.
2362 rm -rf conftest.one conftest.two conftest.dir
2363 echo one > conftest.one
2364 echo two > conftest.two
2366 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2367 test -s conftest.one && test -s conftest.two &&
2368 test -s conftest.dir/conftest.one &&
2369 test -s conftest.dir/conftest.two
2371 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2384 rm -rf conftest.one conftest.two conftest.dir
2387 if test "${ac_cv_path_install+set}" = set; then
2388 INSTALL=$ac_cv_path_install
2390 # As a last resort, use the slow shell script. Don't cache a
2391 # value for INSTALL within a source directory, because that will
2392 # break other packages using the cache if that directory is
2393 # removed, or if the value is a relative name.
2394 INSTALL=$ac_install_sh
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2398 $as_echo "$INSTALL" >&6; }
2400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2401 # It thinks the first close brace ends the variable substitution.
2402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2409 $as_echo_n "checking whether build environment is sane... " >&6; }
2412 echo timestamp > conftest.file
2413 # Reject unsafe characters in $srcdir or the absolute working directory
2414 # name. Accept space and tab only in the latter.
2418 *[\\\"\#\$\&\'\`$am_lf]*)
2419 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2423 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2426 # Do `set' in a subshell so we don't clobber the current shell's
2427 # arguments. Must try -L first in case configure is actually a
2428 # symlink; some systems play weird games with the mod time of symlinks
2429 # (eg FreeBSD returns the mod time of the symlink's containing
2432 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2433 if test "$*" = "X"; then
2435 set X `ls -t "$srcdir/configure" conftest.file`
2438 if test "$*" != "X $srcdir/configure conftest.file" \
2439 && test "$*" != "X conftest.file $srcdir/configure"; then
2441 # If neither matched, then we have a broken ls. This can happen
2442 # if, for instance, CONFIG_SHELL is bash and it inherits a
2443 # broken ls alias from the environment. This has actually
2444 # happened. Such a system could not be considered "sane".
2445 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2446 alias in your environment" "$LINENO" 5
2449 test "$2" = conftest.file
2455 as_fn_error $? "newly created file is older than distributed files!
2456 Check your system clock" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2459 $as_echo "yes" >&6; }
2460 test "$program_prefix" != NONE &&
2461 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2462 # Use a double $ so make ignores it.
2463 test "$program_suffix" != NONE &&
2464 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2465 # Double any \ or $.
2466 # By default was `s,x,x', remove it if useless.
2467 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2468 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2470 # expand $ac_aux_dir to an absolute path
2471 am_aux_dir=`cd $ac_aux_dir && pwd`
2473 if test x"${MISSING+set}" != xset; then
2476 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2478 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2481 # Use eval to expand $SHELL
2482 if eval "$MISSING --run true"; then
2483 am_missing_run="$MISSING --run "
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2487 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2490 if test x"${install_sh}" != xset; then
2493 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2495 install_sh="\${SHELL} $am_aux_dir/install-sh"
2499 # Installed binaries are usually stripped using `strip' when the user
2500 # run `make install-strip'. However `strip' might not be the right
2501 # tool to use in cross-compilation environments, therefore Automake
2502 # will honor the `STRIP' environment variable to overrule this program.
2503 if test "$cross_compiling" != no; then
2504 if test -n "$ac_tool_prefix"; then
2505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2506 set dummy ${ac_tool_prefix}strip; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if ${ac_cv_prog_STRIP+:} false; then :
2510 $as_echo_n "(cached) " >&6
2512 if test -n "$STRIP"; then
2513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 STRIP=$ac_cv_prog_STRIP
2533 if test -n "$STRIP"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2535 $as_echo "$STRIP" >&6; }
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2543 if test -z "$ac_cv_prog_STRIP"; then
2545 # Extract the first word of "strip", so it can be a program name with args.
2546 set dummy strip; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2550 $as_echo_n "(cached) " >&6
2552 if test -n "$ac_ct_STRIP"; then
2553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562 ac_cv_prog_ac_ct_STRIP="strip"
2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2573 if test -n "$ac_ct_STRIP"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2575 $as_echo "$ac_ct_STRIP" >&6; }
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578 $as_echo "no" >&6; }
2581 if test "x$ac_ct_STRIP" = x; then
2584 case $cross_compiling:$ac_tool_warned in
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2588 ac_tool_warned=yes ;;
2593 STRIP="$ac_cv_prog_STRIP"
2597 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2600 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2601 if test -z "$MKDIR_P"; then
2602 if ${ac_cv_path_mkdir+:} false; then :
2603 $as_echo_n "(cached) " >&6
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2609 test -z "$as_dir" && as_dir=.
2610 for ac_prog in mkdir gmkdir; do
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2613 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2614 'mkdir (GNU coreutils) '* | \
2615 'mkdir (coreutils) '* | \
2616 'mkdir (fileutils) '4.1*)
2617 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2627 test -d ./--version && rmdir ./--version
2628 if test "${ac_cv_path_mkdir+set}" = set; then
2629 MKDIR_P="$ac_cv_path_mkdir -p"
2631 # As a last resort, use the slow shell script. Don't cache a
2632 # value for MKDIR_P within a source directory, because that will
2633 # break other packages using the cache if that directory is
2634 # removed, or if the value is a relative name.
2635 MKDIR_P="$ac_install_sh -d"
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2639 $as_echo "$MKDIR_P" >&6; }
2643 [\\/$]* | ?:[\\/]*) ;;
2644 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2647 for ac_prog in gawk mawk nawk awk
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_AWK+:} false; then :
2654 $as_echo_n "(cached) " >&6
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679 $as_echo "$AWK" >&6; }
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2686 test -n "$AWK" && break
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2690 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2692 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2693 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2694 $as_echo_n "(cached) " >&6
2696 cat >conftest.make <<\_ACEOF
2699 @echo '@@@%%%=$(MAKE)=@@@%%%'
2701 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2702 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2704 eval ac_cv_prog_make_${ac_make}_set=yes;;
2706 eval ac_cv_prog_make_${ac_make}_set=no;;
2710 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712 $as_echo "yes" >&6; }
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 SET_MAKE="MAKE=${MAKE-make}"
2720 rm -rf .tst 2>/dev/null
2721 mkdir .tst 2>/dev/null
2722 if test -d .tst; then
2727 rmdir .tst 2>/dev/null
2729 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2730 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2731 # is not polluted with repeated "-I."
2732 am__isrc=' -I$(srcdir)'
2733 # test to see if srcdir already configured
2734 if test -f $srcdir/config.status; then
2735 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2739 # test whether we have cygpath
2740 if test -z "$CYGPATH_W"; then
2741 if (cygpath --version) >/dev/null 2>/dev/null; then
2742 CYGPATH_W='cygpath -w'
2749 # Define the identity of the package.
2754 cat >>confdefs.h <<_ACEOF
2755 #define PACKAGE "$PACKAGE"
2759 cat >>confdefs.h <<_ACEOF
2760 #define VERSION "$VERSION"
2763 # Some tools Automake needs.
2765 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2768 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2771 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2774 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2777 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2779 # We need awk for the "check" target. The system "awk" is bad on
2781 # Always define AMTAR for backward compatibility. Yes, it's still used
2782 # in the wild :-( We should find a proper way to deprecate it ...
2785 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2793 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2794 # Check whether --enable-maintainer-mode was given.
2795 if test "${enable_maintainer_mode+set}" = set; then :
2796 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2798 USE_MAINTAINER_MODE=no
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2802 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2803 if test $USE_MAINTAINER_MODE = yes; then
2804 MAINTAINER_MODE_TRUE=
2805 MAINTAINER_MODE_FALSE='#'
2807 MAINTAINER_MODE_TRUE='#'
2808 MAINTAINER_MODE_FALSE=
2811 MAINT=$MAINTAINER_MODE_TRUE
2818 # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
2819 DEPDIR="${am__leading_dot}deps"
2821 ac_config_commands="$ac_config_commands depfiles"
2824 am_make=${MAKE-make}
2825 cat > confinc << 'END'
2827 @echo this is the am__doit target
2830 # If we don't find an include directive, just comment out the code.
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2832 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2836 # First try GNU make style include.
2837 echo "include confinc" > confmf
2838 # Ignore all kinds of additional output from `make'.
2839 case `$am_make -s -f confmf 2> /dev/null` in #(
2840 *the\ am__doit\ target*)
2846 # Now try BSD make style include.
2847 if test "$am__include" = "#"; then
2848 echo '.include "confinc"' > confmf
2849 case `$am_make -s -f confmf 2> /dev/null` in #(
2850 *the\ am__doit\ target*)
2851 am__include=.include
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2860 $as_echo "$_am_result" >&6; }
2861 rm -f confinc confmf
2863 # Check whether --enable-dependency-tracking was given.
2864 if test "${enable_dependency_tracking+set}" = set; then :
2865 enableval=$enable_dependency_tracking;
2868 if test "x$enable_dependency_tracking" != xno; then
2869 am_depcomp="$ac_aux_dir/depcomp"
2873 if test "x$enable_dependency_tracking" != xno; then
2883 ac_cpp='$CPP $CPPFLAGS'
2884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887 if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2889 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_CC+:} false; then :
2893 $as_echo_n "(cached) " >&6
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC="$CC" # Let the user override the test.
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2926 if test -z "$ac_cv_prog_CC"; then
2928 # Extract the first word of "gcc", so it can be a program name with args.
2929 set dummy gcc; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2933 $as_echo_n "(cached) " >&6
2935 if test -n "$ac_ct_CC"; then
2936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_CC="gcc"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956 if test -n "$ac_ct_CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2958 $as_echo "$ac_ct_CC" >&6; }
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2964 if test "x$ac_ct_CC" = x; then
2967 case $cross_compiling:$ac_tool_warned in
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2979 if test -z "$CC"; then
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}cc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_CC="${ac_tool_prefix}cc"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3020 if test -z "$CC"; then
3021 # Extract the first word of "cc", so it can be a program name with args.
3022 set dummy cc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3040 ac_prog_rejected=yes
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 if test $ac_prog_rejected = yes; then
3052 # We found a bogon in the path, so make sure we never use it.
3053 set dummy $ac_cv_prog_CC
3055 if test $# != 0; then
3056 # We chose a different compiler from the bogus one.
3057 # However, it has the same basename, so the bogon will be chosen
3058 # first if we set CC to just the basename; use the full file name.
3060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3076 if test -z "$CC"; then
3077 if test -n "$ac_tool_prefix"; then
3078 for ac_prog in cl.exe
3080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_CC+:} false; then :
3085 $as_echo_n "(cached) " >&6
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 if test -n "$CC"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110 $as_echo "$CC" >&6; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3117 test -n "$CC" && break
3120 if test -z "$CC"; then
3122 for ac_prog in cl.exe
3124 # Extract the first word of "$ac_prog", so it can be a program name with args.
3125 set dummy $ac_prog; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3129 $as_echo_n "(cached) " >&6
3131 if test -n "$ac_ct_CC"; then
3132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_ac_ct_CC="$ac_prog"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3152 if test -n "$ac_ct_CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3154 $as_echo "$ac_ct_CC" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3161 test -n "$ac_ct_CC" && break
3164 if test "x$ac_ct_CC" = x; then
3167 case $cross_compiling:$ac_tool_warned in
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned=yes ;;
3180 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "no acceptable C compiler found in \$PATH
3183 See \`config.log' for more details" "$LINENO" 5; }
3185 # Provide some information about the compiler.
3186 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3189 for ac_option in --version -v -V -qversion; do
3190 { { ac_try="$ac_compiler $ac_option >&5"
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3199 if test -s conftest.err; then
3201 ... rest of stderr output deleted ...
3202 10q' conftest.err >conftest.er1
3203 cat conftest.er1 >&5
3205 rm -f conftest.er1 conftest.err
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3221 ac_clean_files_save=$ac_clean_files
3222 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3223 # Try to create an executable without -o first, disregard a.out.
3224 # It will help us diagnose broken compilers, and finding out an intuition
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3227 $as_echo_n "checking whether the C compiler works... " >&6; }
3228 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3230 # The possible output files:
3231 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3234 for ac_file in $ac_files
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3238 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3243 if { { ac_try="$ac_link_default"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_link_default") 2>&5
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }; then :
3254 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3255 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3256 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3257 # so that the user can short-circuit this test for compilers unknown to
3259 for ac_file in $ac_files ''
3261 test -f "$ac_file" || continue
3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3266 # We found the default executable, but exeext='' is most
3270 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3272 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274 # We set ac_cv_exeext here because the later test for it is not
3275 # safe: cross compilers may not add the suffix if given an `-o'
3276 # argument, so we may need to know it at that point already.
3277 # Even if this section looks crufty: it has the advantage of
3284 test "$ac_cv_exeext" = no && ac_cv_exeext=
3289 if test -z "$ac_file"; then :
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 $as_echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error 77 "C compiler cannot create executables
3298 See \`config.log' for more details" "$LINENO" 5; }
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301 $as_echo "yes" >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3304 $as_echo_n "checking for C compiler default output file name... " >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3306 $as_echo "$ac_file" >&6; }
3307 ac_exeext=$ac_cv_exeext
3309 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3310 ac_clean_files=$ac_clean_files_save
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3312 $as_echo_n "checking for suffix of executables... " >&6; }
3313 if { { ac_try="$ac_link"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 $as_echo "$ac_try_echo"; } >&5
3320 (eval "$ac_link") 2>&5
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }; then :
3324 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3325 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3326 # work properly (i.e., refer to `conftest.exe'), while it won't with
3328 for ac_file in conftest.exe conftest conftest.*; do
3329 test -f "$ac_file" || continue
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3332 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3341 See \`config.log' for more details" "$LINENO" 5; }
3343 rm -f conftest conftest$ac_cv_exeext
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3345 $as_echo "$ac_cv_exeext" >&6; }
3347 rm -f conftest.$ac_ext
3348 EXEEXT=$ac_cv_exeext
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3356 FILE *f = fopen ("conftest.out", "w");
3357 return ferror (f) || fclose (f) != 0;
3363 ac_clean_files="$ac_clean_files conftest.out"
3364 # Check that the compiler produces executables we can run. If not, either
3365 # the compiler is broken, or we cross compile.
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3367 $as_echo_n "checking whether we are cross compiling... " >&6; }
3368 if test "$cross_compiling" != yes; then
3369 { { ac_try="$ac_link"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_link") 2>&5
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }
3380 if { ac_try='./conftest$ac_cv_exeext'
3381 { { case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_try") 2>&5
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; }; then
3393 if test "$cross_compiling" = maybe; then
3396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398 as_fn_error $? "cannot run C compiled programs.
3399 If you meant to cross compile, use \`--host'.
3400 See \`config.log' for more details" "$LINENO" 5; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3405 $as_echo "$cross_compiling" >&6; }
3407 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3408 ac_clean_files=$ac_clean_files_save
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3410 $as_echo_n "checking for suffix of object files... " >&6; }
3411 if ${ac_cv_objext+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3425 rm -f conftest.o conftest.obj
3426 if { { ac_try="$ac_compile"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_compile") 2>&5
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 for ac_file in conftest.o conftest.obj conftest.*; do
3438 test -f "$ac_file" || continue;
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3441 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3446 $as_echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error $? "cannot compute suffix of object files: cannot compile
3452 See \`config.log' for more details" "$LINENO" 5; }
3454 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3457 $as_echo "$ac_cv_objext" >&6; }
3458 OBJEXT=$ac_cv_objext
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3461 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3462 if ${ac_cv_c_compiler_gnu+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3479 if ac_fn_c_try_compile "$LINENO"; then :
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3489 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3490 if test $ac_compiler_gnu = yes; then
3495 ac_test_CFLAGS=${CFLAGS+set}
3496 ac_save_CFLAGS=$CFLAGS
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3498 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3499 if ${ac_cv_prog_cc_g+:} false; then :
3500 $as_echo_n "(cached) " >&6
3502 ac_save_c_werror_flag=$ac_c_werror_flag
3503 ac_c_werror_flag=yes
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3517 if ac_fn_c_try_compile "$LINENO"; then :
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3532 if ac_fn_c_try_compile "$LINENO"; then :
3535 ac_c_werror_flag=$ac_save_c_werror_flag
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3548 if ac_fn_c_try_compile "$LINENO"; then :
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 ac_c_werror_flag=$ac_save_c_werror_flag
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3559 $as_echo "$ac_cv_prog_cc_g" >&6; }
3560 if test "$ac_test_CFLAGS" = set; then
3561 CFLAGS=$ac_save_CFLAGS
3562 elif test $ac_cv_prog_cc_g = yes; then
3563 if test "$GCC" = yes; then
3569 if test "$GCC" = yes; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3576 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3577 if ${ac_cv_prog_cc_c89+:} false; then :
3578 $as_echo_n "(cached) " >&6
3580 ac_cv_prog_cc_c89=no
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3587 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3588 struct buf { int x; };
3589 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3590 static char *e (p, i)
3596 static char *f (char * (*g) (char **, int), char **p, ...)
3601 s = g (p, va_arg (v,int));
3606 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3607 function prototypes and stuff, but not '\xHH' hex character constants.
3608 These don't provoke an error unfortunately, instead are silently treated
3609 as 'x'. The following induces an error, until -std is added to get
3610 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3611 array size at least. It's necessary to write '\x00'==0 to get something
3612 that's true only with -std. */
3613 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3615 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3616 inside strings and character constants. */
3618 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3620 int test (int i, double x);
3621 struct s1 {int (*f) (int a);};
3622 struct s2 {int (*f) (double a);};
3623 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3629 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3634 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3635 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3637 CC="$ac_save_CC $ac_arg"
3638 if ac_fn_c_try_compile "$LINENO"; then :
3639 ac_cv_prog_cc_c89=$ac_arg
3641 rm -f core conftest.err conftest.$ac_objext
3642 test "x$ac_cv_prog_cc_c89" != "xno" && break
3644 rm -f conftest.$ac_ext
3649 case "x$ac_cv_prog_cc_c89" in
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3652 $as_echo "none needed" >&6; } ;;
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3655 $as_echo "unsupported" >&6; } ;;
3657 CC="$CC $ac_cv_prog_cc_c89"
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3659 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3661 if test "x$ac_cv_prog_cc_c89" != xno; then :
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671 depcc="$CC" am_compiler_list=
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3674 $as_echo_n "checking dependency style of $depcc... " >&6; }
3675 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3676 $as_echo_n "(cached) " >&6
3678 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3679 # We make a subdir and do the tests there. Otherwise we can end up
3680 # making bogus files that we don't know about and never remove. For
3681 # instance it was reported that on HP-UX the gcc test will end up
3682 # making a dummy file named `D' -- because `-MD' means `put the output
3686 # Copy depcomp to subdir because otherwise we won't find it if we're
3687 # using a relative directory.
3688 cp "$am_depcomp" conftest.dir
3690 # We will build objects and dependencies in a subdirectory because
3691 # it helps to detect inapplicable dependency modes. For instance
3692 # both Tru64's cc and ICC support -MD to output dependencies as a
3693 # side effect of compilation, but ICC will put the dependencies in
3694 # the current directory while Tru64 will put them in the object
3698 am_cv_CC_dependencies_compiler_type=none
3699 if test "$am_compiler_list" = ""; then
3700 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3703 case " $depcc " in #(
3704 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3707 for depmode in $am_compiler_list; do
3708 # Setup a source with many dependencies, because some compilers
3709 # like to wrap large dependency lists on column 80 (with \), and
3710 # we should not choose a depcomp mode which is confused by this.
3712 # We need to recreate these files for each test, as the compiler may
3713 # overwrite some of them when testing with obscure command lines.
3714 # This happens at least with the AIX C compiler.
3716 for i in 1 2 3 4 5 6; do
3717 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3718 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3719 # Solaris 8's {/usr,}/bin/sh.
3720 touch sub/conftst$i.h
3722 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3724 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3725 # mode. It turns out that the SunPro C++ compiler does not properly
3726 # handle `-M -o', and we need to detect this. Also, some Intel
3727 # versions had trouble with output in subdirs
3728 am__obj=sub/conftest.${OBJEXT-o}
3729 am__minus_obj="-o $am__obj"
3732 # This depmode causes a compiler race in universal mode.
3733 test "$am__universal" = false || continue
3736 # after this tag, mechanisms are not by side-effect, so they'll
3737 # only be used when explicitly requested
3738 if test "x$enable_dependency_tracking" = xyes; then
3744 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3745 # This compiler won't grok `-c -o', but also, the minuso test has
3746 # not run yet. These depmodes are late enough in the game, and
3747 # so weak that their functioning should not be impacted.
3748 am__obj=conftest.${OBJEXT-o}
3753 if depmode=$depmode \
3754 source=sub/conftest.c object=$am__obj \
3755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3756 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3757 >/dev/null 2>conftest.err &&
3758 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3759 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3760 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3761 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3762 # icc doesn't choke on unknown options, it will just issue warnings
3763 # or remarks (even with -Werror). So we grep stderr for any message
3764 # that says an option was ignored or not supported.
3765 # When given -MP, icc 7.0 and 7.1 complain thusly:
3766 # icc: Command line warning: ignoring option '-M'; no argument required
3767 # The diagnosis changed in icc 8.0:
3768 # icc: Command line remark: option '-MP' not supported
3769 if (grep 'ignoring option' conftest.err ||
3770 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3771 am_cv_CC_dependencies_compiler_type=$depmode
3780 am_cv_CC_dependencies_compiler_type=none
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3785 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3786 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3789 test "x$enable_dependency_tracking" != xno \
3790 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3792 am__fastdepCC_FALSE='#'
3794 am__fastdepCC_TRUE='#'
3795 am__fastdepCC_FALSE=
3800 if test -n "$ac_tool_prefix"; then
3801 for ac_prog in ar lib "link -lib"
3803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if ${ac_cv_prog_AR+:} false; then :
3808 $as_echo_n "(cached) " >&6
3810 if test -n "$AR"; then
3811 ac_cv_prog_AR="$AR" # Let the user override the test.
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 if test -n "$AR"; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3833 $as_echo "$AR" >&6; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3840 test -n "$AR" && break
3843 if test -z "$AR"; then
3845 for ac_prog in ar lib "link -lib"
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3852 $as_echo_n "(cached) " >&6
3854 if test -n "$ac_ct_AR"; then
3855 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_AR="$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3875 if test -n "$ac_ct_AR"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3877 $as_echo "$ac_ct_AR" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 test -n "$ac_ct_AR" && break
3887 if test "x$ac_ct_AR" = x; then
3890 case $cross_compiling:$ac_tool_warned in
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3903 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3904 if ${am_cv_ar_interface+:} false; then :
3905 $as_echo_n "(cached) " >&6
3907 am_cv_ar_interface=ar
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3910 int some_variable = 0;
3912 if ac_fn_c_try_compile "$LINENO"; then :
3913 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3915 (eval $am_ar_try) 2>&5
3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }
3919 if test "$ac_status" -eq 0; then
3920 am_cv_ar_interface=ar
3922 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3924 (eval $am_ar_try) 2>&5
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3928 if test "$ac_status" -eq 0; then
3929 am_cv_ar_interface=lib
3931 am_cv_ar_interface=unknown
3934 rm -f conftest.lib libconftest.a
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3941 $as_echo "$am_cv_ar_interface" >&6; }
3943 case $am_cv_ar_interface in
3947 # Microsoft lib, so override with the ar-lib wrapper script.
3948 # FIXME: It is wrong to rewrite AR.
3949 # But if we don't then we get into trouble of one sort or another.
3950 # A longer-term fix would be to have automake use am__AR in this case,
3951 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3953 AR="$am_aux_dir/ar-lib $AR"
3956 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3961 # Make sure we can run config.sub.
3962 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3963 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3966 $as_echo_n "checking build system type... " >&6; }
3967 if ${ac_cv_build+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 ac_build_alias=$build_alias
3971 test "x$ac_build_alias" = x &&
3972 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3973 test "x$ac_build_alias" = x &&
3974 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3975 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3976 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3980 $as_echo "$ac_cv_build" >&6; }
3981 case $ac_cv_build in
3983 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3986 ac_save_IFS=$IFS; IFS='-'
3992 # Remember, the first character of IFS is used to create $*,
3993 # except with old shells:
3996 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4000 $as_echo_n "checking host system type... " >&6; }
4001 if ${ac_cv_host+:} false; then :
4002 $as_echo_n "(cached) " >&6
4004 if test "x$host_alias" = x; then
4005 ac_cv_host=$ac_cv_build
4007 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4008 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4013 $as_echo "$ac_cv_host" >&6; }
4016 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4019 ac_save_IFS=$IFS; IFS='-'
4025 # Remember, the first character of IFS is used to create $*,
4026 # except with old shells:
4029 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4035 # Extra arguments to configure
4037 # Check whether --with-mpfr_include was given.
4038 if test "${with_mpfr_include+set}" = set; then :
4039 withval=$with_mpfr_include; CPPFLAGS="-I$withval $CPPFLAGS"
4043 # Check whether --with-mpfr_lib was given.
4044 if test "${with_mpfr_lib+set}" = set; then :
4045 withval=$with_mpfr_lib; LDFLAGS="-L$withval $LDFLAGS"
4049 # Check whether --with-mpfr was given.
4050 if test "${with_mpfr+set}" = set; then :
4052 if test -z "$with_mpfr_include" -a -z "$with_mpfr_lib" ; then
4053 CPPFLAGS="-I$withval/include $CPPFLAGS"
4054 LDFLAGS="-L$withval/lib $LDFLAGS"
4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $? "Do not use --with-mpfr and --with-mpfr-include/--with-mpfr-lib options simultaneously.
4059 See \`config.log' for more details" "$LINENO" 5; }
4065 # Check whether --with-gmp_include was given.
4066 if test "${with_gmp_include+set}" = set; then :
4067 withval=$with_gmp_include; CPPFLAGS="-I$withval $CPPFLAGS"
4071 # Check whether --with-gmp_lib was given.
4072 if test "${with_gmp_lib+set}" = set; then :
4073 withval=$with_gmp_lib; LDFLAGS="-L$withval $LDFLAGS"
4077 # Check whether --with-gmp was given.
4078 if test "${with_gmp+set}" = set; then :
4080 if test -z "$with_gmp_lib" -a -z "$with_gmp_include" ; then
4081 CPPFLAGS="-I$withval/include $CPPFLAGS"
4082 LDFLAGS="-L$withval/lib $LDFLAGS"
4084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
4087 See \`config.log' for more details" "$LINENO" 5; }
4092 # Check whether --enable-logging was given.
4093 if test "${enable_logging+set}" = set; then :
4094 enableval=$enable_logging; case $enableval in
4095 yes) if test "x$enable_shared" = "xno"; then :
4096 as_fn_error $? "Logging works only with shared libraries; do not mix --enable-logging and --disable-shared" "$LINENO" 5
4099 *) as_fn_error $? "Bad value for --enable-logging: Use yes or no" "$LINENO" 5 ;;
4105 # Check whether --enable-valgrind-tests was given.
4106 if test "${enable_valgrind_tests+set}" = set; then :
4107 enableval=$enable_valgrind_tests; case $enableval in
4109 # Run self-tests under valgrind?
4110 if test "$cross_compiling" = no; then
4111 for ac_prog in valgrind
4113 # Extract the first word of "$ac_prog", so it can be a program name with args.
4114 set dummy $ac_prog; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_VALGRIND+:} false; then :
4118 $as_echo_n "(cached) " >&6
4120 if test -n "$VALGRIND"; then
4121 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_VALGRIND="$ac_prog"
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140 VALGRIND=$ac_cv_prog_VALGRIND
4141 if test -n "$VALGRIND"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
4143 $as_echo "$VALGRIND" >&6; }
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4150 test -n "$VALGRIND" && break
4155 if test -n "$VALGRIND" && $VALGRIND -q true > /dev/null 2>&1; then
4156 opt_valgrind_tests=yes
4157 VALGRIND="$VALGRIND -q --error-exitcode=1 --leak-check=full"
4158 # Addition AE: enable suppression file through a shell variable
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind suppression file" >&5
4160 $as_echo_n "checking for valgrind suppression file... " >&6; }
4161 if test -n "$VALGRIND_SUPPRESSION"; then
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_SUPPRESSION" >&5
4163 $as_echo "$VALGRIND_SUPPRESSION" >&6; }
4164 VALGRIND="$VALGRIND --suppressions=$VALGRIND_SUPPRESSION"
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4170 $as_echo "#define MPC_USE_VALGRIND 1" >>confdefs.h
4173 opt_valgrind_tests=no
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether self tests are run under valgrind" >&5
4178 $as_echo_n "checking whether self tests are run under valgrind... " >&6; }
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opt_valgrind_tests" >&5
4180 $as_echo "$opt_valgrind_tests" >&6; }
4183 *) as_fn_error $? "Bad value for --enable-valgrind-tests: Use yes or no" "$LINENO" 5 ;;
4190 # Check for CC and CFLAGS in gmp.h unless the user specified one of them
4191 # look for EGREP and SED here, see continued problem
4192 # at http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-January/001056.html
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4194 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4195 if ${ac_cv_path_GREP+:} false; then :
4196 $as_echo_n "(cached) " >&6
4198 if test -z "$GREP"; then
4199 ac_path_GREP_found=false
4200 # Loop through the user's path and test for each of PROGNAME-LIST
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4205 test -z "$as_dir" && as_dir=.
4206 for ac_prog in grep ggrep; do
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4209 as_fn_executable_p "$ac_path_GREP" || continue
4210 # Check for GNU ac_path_GREP and select it if it is found.
4211 # Check for GNU $ac_path_GREP
4212 case `"$ac_path_GREP" --version 2>&1` in
4214 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4217 $as_echo_n 0123456789 >"conftest.in"
4220 cat "conftest.in" "conftest.in" >"conftest.tmp"
4221 mv "conftest.tmp" "conftest.in"
4222 cp "conftest.in" "conftest.nl"
4223 $as_echo 'GREP' >> "conftest.nl"
4224 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226 as_fn_arith $ac_count + 1 && ac_count=$as_val
4227 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4228 # Best one so far, save it but keep looking for a better one
4229 ac_cv_path_GREP="$ac_path_GREP"
4230 ac_path_GREP_max=$ac_count
4232 # 10*(2^10) chars as input seems more than enough
4233 test $ac_count -gt 10 && break
4235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4238 $ac_path_GREP_found && break 3
4243 if test -z "$ac_cv_path_GREP"; then
4244 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4247 ac_cv_path_GREP=$GREP
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4252 $as_echo "$ac_cv_path_GREP" >&6; }
4253 GREP="$ac_cv_path_GREP"
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4257 $as_echo_n "checking for egrep... " >&6; }
4258 if ${ac_cv_path_EGREP+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4262 then ac_cv_path_EGREP="$GREP -E"
4264 if test -z "$EGREP"; then
4265 ac_path_EGREP_found=false
4266 # Loop through the user's path and test for each of PROGNAME-LIST
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4271 test -z "$as_dir" && as_dir=.
4272 for ac_prog in egrep; do
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4275 as_fn_executable_p "$ac_path_EGREP" || continue
4276 # Check for GNU ac_path_EGREP and select it if it is found.
4277 # Check for GNU $ac_path_EGREP
4278 case `"$ac_path_EGREP" --version 2>&1` in
4280 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4283 $as_echo_n 0123456789 >"conftest.in"
4286 cat "conftest.in" "conftest.in" >"conftest.tmp"
4287 mv "conftest.tmp" "conftest.in"
4288 cp "conftest.in" "conftest.nl"
4289 $as_echo 'EGREP' >> "conftest.nl"
4290 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4292 as_fn_arith $ac_count + 1 && ac_count=$as_val
4293 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4294 # Best one so far, save it but keep looking for a better one
4295 ac_cv_path_EGREP="$ac_path_EGREP"
4296 ac_path_EGREP_max=$ac_count
4298 # 10*(2^10) chars as input seems more than enough
4299 test $ac_count -gt 10 && break
4301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4304 $ac_path_EGREP_found && break 3
4309 if test -z "$ac_cv_path_EGREP"; then
4310 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4313 ac_cv_path_EGREP=$EGREP
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4319 $as_echo "$ac_cv_path_EGREP" >&6; }
4320 EGREP="$ac_cv_path_EGREP"
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4324 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4325 if ${ac_cv_path_SED+:} false; then :
4326 $as_echo_n "(cached) " >&6
4328 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4329 for ac_i in 1 2 3 4 5 6 7; do
4330 ac_script="$ac_script$as_nl$ac_script"
4332 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4333 { ac_script=; unset ac_script;}
4334 if test -z "$SED"; then
4335 ac_path_SED_found=false
4336 # Loop through the user's path and test for each of PROGNAME-LIST
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 test -z "$as_dir" && as_dir=.
4342 for ac_prog in sed gsed; do
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4345 as_fn_executable_p "$ac_path_SED" || continue
4346 # Check for GNU ac_path_SED and select it if it is found.
4347 # Check for GNU $ac_path_SED
4348 case `"$ac_path_SED" --version 2>&1` in
4350 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4353 $as_echo_n 0123456789 >"conftest.in"
4356 cat "conftest.in" "conftest.in" >"conftest.tmp"
4357 mv "conftest.tmp" "conftest.in"
4358 cp "conftest.in" "conftest.nl"
4359 $as_echo '' >> "conftest.nl"
4360 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4362 as_fn_arith $ac_count + 1 && ac_count=$as_val
4363 if test $ac_count -gt ${ac_path_SED_max-0}; then
4364 # Best one so far, save it but keep looking for a better one
4365 ac_cv_path_SED="$ac_path_SED"
4366 ac_path_SED_max=$ac_count
4368 # 10*(2^10) chars as input seems more than enough
4369 test $ac_count -gt 10 && break
4371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4374 $ac_path_SED_found && break 3
4379 if test -z "$ac_cv_path_SED"; then
4380 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4388 $as_echo "$ac_cv_path_SED" >&6; }
4389 SED="$ac_cv_path_SED"
4392 if test -z "$USER_CC" && test -z "$USER_CFLAGS"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
4395 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
4396 # AC_PROG_CPP triggers the search for a C compiler; use hack instead
4397 for cpp in /lib/cpp gcc cc c99
4399 test $cpp = /lib/cpp || cpp="$cpp -E"
4400 echo foo > conftest.c
4401 if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
4403 echo "#include \"gmp.h\"" > conftest.c
4404 echo "MPFR_OPTION __GMP_CC" >> conftest.c
4405 GMP_CC=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
4407 echo "#include \"gmp.h\"" > conftest.c
4408 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
4409 GMP_CFLAGS=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'`
4414 if test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" -o "x$GMP_CC" = "x__GMP_CC" ; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
4421 $as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
4424 # Check for validity of CC and CFLAGS obtained from gmp.h
4425 if test -n "$GMP_CC$GMP_CFLAGS" ; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
4427 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
4428 echo "int main (void) { return 0; }" > conftest.c
4429 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4431 $as_echo "yes" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4444 # Setup CC and CFLAGS
4446 ac_cpp='$CPP $CPPFLAGS'
4447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450 if test -n "$ac_tool_prefix"; then
4451 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4452 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_CC+:} false; then :
4456 $as_echo_n "(cached) " >&6
4458 if test -n "$CC"; then
4459 ac_cv_prog_CC="$CC" # Let the user override the test.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 if test -n "$CC"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4481 $as_echo "$CC" >&6; }
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4489 if test -z "$ac_cv_prog_CC"; then
4491 # Extract the first word of "gcc", so it can be a program name with args.
4492 set dummy gcc; ac_word=$2
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494 $as_echo_n "checking for $ac_word... " >&6; }
4495 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4496 $as_echo_n "(cached) " >&6
4498 if test -n "$ac_ct_CC"; then
4499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508 ac_cv_prog_ac_ct_CC="gcc"
4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4519 if test -n "$ac_ct_CC"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4521 $as_echo "$ac_ct_CC" >&6; }
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 $as_echo "no" >&6; }
4527 if test "x$ac_ct_CC" = x; then
4530 case $cross_compiling:$ac_tool_warned in
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534 ac_tool_warned=yes ;;
4542 if test -z "$CC"; then
4543 if test -n "$ac_tool_prefix"; then
4544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4545 set dummy ${ac_tool_prefix}cc; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_CC+:} false; then :
4549 $as_echo_n "(cached) " >&6
4551 if test -n "$CC"; then
4552 ac_cv_prog_CC="$CC" # Let the user override the test.
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_CC="${ac_tool_prefix}cc"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 if test -n "$CC"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574 $as_echo "$CC" >&6; }
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4583 if test -z "$CC"; then
4584 # Extract the first word of "cc", so it can be a program name with args.
4585 set dummy cc; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_prog_CC+:} false; then :
4589 $as_echo_n "(cached) " >&6
4591 if test -n "$CC"; then
4592 ac_cv_prog_CC="$CC" # Let the user override the test.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4603 ac_prog_rejected=yes
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 if test $ac_prog_rejected = yes; then
4615 # We found a bogon in the path, so make sure we never use it.
4616 set dummy $ac_cv_prog_CC
4618 if test $# != 0; then
4619 # We chose a different compiler from the bogus one.
4620 # However, it has the same basename, so the bogon will be chosen
4621 # first if we set CC to just the basename; use the full file name.
4623 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4629 if test -n "$CC"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4631 $as_echo "$CC" >&6; }
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4639 if test -z "$CC"; then
4640 if test -n "$ac_tool_prefix"; then
4641 for ac_prog in cl.exe
4643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if ${ac_cv_prog_CC+:} false; then :
4648 $as_echo_n "(cached) " >&6
4650 if test -n "$CC"; then
4651 ac_cv_prog_CC="$CC" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 if test -n "$CC"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4673 $as_echo "$CC" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4680 test -n "$CC" && break
4683 if test -z "$CC"; then
4685 for ac_prog in cl.exe
4687 # Extract the first word of "$ac_prog", so it can be a program name with args.
4688 set dummy $ac_prog; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4692 $as_echo_n "(cached) " >&6
4694 if test -n "$ac_ct_CC"; then
4695 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_ac_ct_CC="$ac_prog"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715 if test -n "$ac_ct_CC"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4717 $as_echo "$ac_ct_CC" >&6; }
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4724 test -n "$ac_ct_CC" && break
4727 if test "x$ac_ct_CC" = x; then
4730 case $cross_compiling:$ac_tool_warned in
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4734 ac_tool_warned=yes ;;
4743 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4745 as_fn_error $? "no acceptable C compiler found in \$PATH
4746 See \`config.log' for more details" "$LINENO" 5; }
4748 # Provide some information about the compiler.
4749 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4752 for ac_option in --version -v -V -qversion; do
4753 { { ac_try="$ac_compiler $ac_option >&5"
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4759 $as_echo "$ac_try_echo"; } >&5
4760 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4762 if test -s conftest.err; then
4764 ... rest of stderr output deleted ...
4765 10q' conftest.err >conftest.er1
4766 cat conftest.er1 >&5
4768 rm -f conftest.er1 conftest.err
4769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770 test $ac_status = 0; }
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4775 if ${ac_cv_c_compiler_gnu+:} false; then :
4776 $as_echo_n "(cached) " >&6
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4792 if ac_fn_c_try_compile "$LINENO"; then :
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4803 if test $ac_compiler_gnu = yes; then
4808 ac_test_CFLAGS=${CFLAGS+set}
4809 ac_save_CFLAGS=$CFLAGS
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4812 if ${ac_cv_prog_cc_g+:} false; then :
4813 $as_echo_n "(cached) " >&6
4815 ac_save_c_werror_flag=$ac_c_werror_flag
4816 ac_c_werror_flag=yes
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4830 if ac_fn_c_try_compile "$LINENO"; then :
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4845 if ac_fn_c_try_compile "$LINENO"; then :
4848 ac_c_werror_flag=$ac_save_c_werror_flag
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4861 if ac_fn_c_try_compile "$LINENO"; then :
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 ac_c_werror_flag=$ac_save_c_werror_flag
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4872 $as_echo "$ac_cv_prog_cc_g" >&6; }
4873 if test "$ac_test_CFLAGS" = set; then
4874 CFLAGS=$ac_save_CFLAGS
4875 elif test $ac_cv_prog_cc_g = yes; then
4876 if test "$GCC" = yes; then
4882 if test "$GCC" = yes; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4890 if ${ac_cv_prog_cc_c89+:} false; then :
4891 $as_echo_n "(cached) " >&6
4893 ac_cv_prog_cc_c89=no
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4901 struct buf { int x; };
4902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4903 static char *e (p, i)
4909 static char *f (char * (*g) (char **, int), char **p, ...)
4914 s = g (p, va_arg (v,int));
4919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4920 function prototypes and stuff, but not '\xHH' hex character constants.
4921 These don't provoke an error unfortunately, instead are silently treated
4922 as 'x'. The following induces an error, until -std is added to get
4923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4924 array size at least. It's necessary to write '\x00'==0 to get something
4925 that's true only with -std. */
4926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4929 inside strings and character constants. */
4931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4933 int test (int i, double x);
4934 struct s1 {int (*f) (int a);};
4935 struct s2 {int (*f) (double a);};
4936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4950 CC="$ac_save_CC $ac_arg"
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_cv_prog_cc_c89=$ac_arg
4954 rm -f core conftest.err conftest.$ac_objext
4955 test "x$ac_cv_prog_cc_c89" != "xno" && break
4957 rm -f conftest.$ac_ext
4962 case "x$ac_cv_prog_cc_c89" in
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4965 $as_echo "none needed" >&6; } ;;
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968 $as_echo "unsupported" >&6; } ;;
4970 CC="$CC $ac_cv_prog_cc_c89"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4974 if test "x$ac_cv_prog_cc_c89" != xno; then :
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984 depcc="$CC" am_compiler_list=
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4987 $as_echo_n "checking dependency style of $depcc... " >&6; }
4988 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4992 # We make a subdir and do the tests there. Otherwise we can end up
4993 # making bogus files that we don't know about and never remove. For
4994 # instance it was reported that on HP-UX the gcc test will end up
4995 # making a dummy file named `D' -- because `-MD' means `put the output
4999 # Copy depcomp to subdir because otherwise we won't find it if we're
5000 # using a relative directory.
5001 cp "$am_depcomp" conftest.dir
5003 # We will build objects and dependencies in a subdirectory because
5004 # it helps to detect inapplicable dependency modes. For instance
5005 # both Tru64's cc and ICC support -MD to output dependencies as a
5006 # side effect of compilation, but ICC will put the dependencies in
5007 # the current directory while Tru64 will put them in the object
5011 am_cv_CC_dependencies_compiler_type=none
5012 if test "$am_compiler_list" = ""; then
5013 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5016 case " $depcc " in #(
5017 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5020 for depmode in $am_compiler_list; do
5021 # Setup a source with many dependencies, because some compilers
5022 # like to wrap large dependency lists on column 80 (with \), and
5023 # we should not choose a depcomp mode which is confused by this.
5025 # We need to recreate these files for each test, as the compiler may
5026 # overwrite some of them when testing with obscure command lines.
5027 # This happens at least with the AIX C compiler.
5029 for i in 1 2 3 4 5 6; do
5030 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5031 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5032 # Solaris 8's {/usr,}/bin/sh.
5033 touch sub/conftst$i.h
5035 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5037 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5038 # mode. It turns out that the SunPro C++ compiler does not properly
5039 # handle `-M -o', and we need to detect this. Also, some Intel
5040 # versions had trouble with output in subdirs
5041 am__obj=sub/conftest.${OBJEXT-o}
5042 am__minus_obj="-o $am__obj"
5045 # This depmode causes a compiler race in universal mode.
5046 test "$am__universal" = false || continue
5049 # after this tag, mechanisms are not by side-effect, so they'll
5050 # only be used when explicitly requested
5051 if test "x$enable_dependency_tracking" = xyes; then
5057 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5058 # This compiler won't grok `-c -o', but also, the minuso test has
5059 # not run yet. These depmodes are late enough in the game, and
5060 # so weak that their functioning should not be impacted.
5061 am__obj=conftest.${OBJEXT-o}
5066 if depmode=$depmode \
5067 source=sub/conftest.c object=$am__obj \
5068 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5069 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5070 >/dev/null 2>conftest.err &&
5071 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5072 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5073 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5074 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5075 # icc doesn't choke on unknown options, it will just issue warnings
5076 # or remarks (even with -Werror). So we grep stderr for any message
5077 # that says an option was ignored or not supported.
5078 # When given -MP, icc 7.0 and 7.1 complain thusly:
5079 # icc: Command line warning: ignoring option '-M'; no argument required
5080 # The diagnosis changed in icc 8.0:
5081 # icc: Command line remark: option '-MP' not supported
5082 if (grep 'ignoring option' conftest.err ||
5083 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5084 am_cv_CC_dependencies_compiler_type=$depmode
5093 am_cv_CC_dependencies_compiler_type=none
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5098 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5099 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5102 test "x$enable_dependency_tracking" != xno \
5103 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5105 am__fastdepCC_FALSE='#'
5107 am__fastdepCC_TRUE='#'
5108 am__fastdepCC_FALSE=
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5123 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5128 macro_version='2.4.2'
5129 macro_revision='1.3337'
5143 ltmain="$ac_aux_dir/ltmain.sh"
5145 # Backslashify metacharacters that are still active within
5146 # double-quoted strings.
5147 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5149 # Same as above, but do not quote variable references.
5150 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5152 # Sed substitution to delay expansion of an escaped shell variable in a
5153 # double_quote_subst'ed string.
5154 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5156 # Sed substitution to delay expansion of an escaped single quote.
5157 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5159 # Sed substitution to avoid accidental globbing in evaled expressions
5160 no_glob_subst='s/\*/\\\*/g'
5162 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5163 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5164 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5167 $as_echo_n "checking how to print strings... " >&6; }
5168 # Test print first, because it will be a builtin if present.
5169 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5170 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5172 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5175 # Use this function as a fallback that always works.
5176 func_fallback_echo ()
5178 eval 'cat <<_LTECHO_EOF
5182 ECHO='func_fallback_echo'
5185 # func_echo_all arg...
5186 # Invoke $ECHO with all args, space-separated.
5193 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5194 $as_echo "printf" >&6; } ;;
5195 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5196 $as_echo "print -r" >&6; } ;;
5197 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5198 $as_echo "cat" >&6; } ;;
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5215 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5216 if ${ac_cv_path_SED+:} false; then :
5217 $as_echo_n "(cached) " >&6
5219 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5220 for ac_i in 1 2 3 4 5 6 7; do
5221 ac_script="$ac_script$as_nl$ac_script"
5223 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5224 { ac_script=; unset ac_script;}
5225 if test -z "$SED"; then
5226 ac_path_SED_found=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_prog in sed gsed; do
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5236 as_fn_executable_p "$ac_path_SED" || continue
5237 # Check for GNU ac_path_SED and select it if it is found.
5238 # Check for GNU $ac_path_SED
5239 case `"$ac_path_SED" --version 2>&1` in
5241 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5244 $as_echo_n 0123456789 >"conftest.in"
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo '' >> "conftest.nl"
5251 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5253 as_fn_arith $ac_count + 1 && ac_count=$as_val
5254 if test $ac_count -gt ${ac_path_SED_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_SED="$ac_path_SED"
5257 ac_path_SED_max=$ac_count
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5265 $ac_path_SED_found && break 3
5270 if test -z "$ac_cv_path_SED"; then
5271 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5279 $as_echo "$ac_cv_path_SED" >&6; }
5280 SED="$ac_cv_path_SED"
5283 test -z "$SED" && SED=sed
5284 Xsed="$SED -e 1s/^X//"
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5297 $as_echo_n "checking for fgrep... " >&6; }
5298 if ${ac_cv_path_FGREP+:} false; then :
5299 $as_echo_n "(cached) " >&6
5301 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5302 then ac_cv_path_FGREP="$GREP -F"
5304 if test -z "$FGREP"; then
5305 ac_path_FGREP_found=false
5306 # Loop through the user's path and test for each of PROGNAME-LIST
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5311 test -z "$as_dir" && as_dir=.
5312 for ac_prog in fgrep; do
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5315 as_fn_executable_p "$ac_path_FGREP" || continue
5316 # Check for GNU ac_path_FGREP and select it if it is found.
5317 # Check for GNU $ac_path_FGREP
5318 case `"$ac_path_FGREP" --version 2>&1` in
5320 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5323 $as_echo_n 0123456789 >"conftest.in"
5326 cat "conftest.in" "conftest.in" >"conftest.tmp"
5327 mv "conftest.tmp" "conftest.in"
5328 cp "conftest.in" "conftest.nl"
5329 $as_echo 'FGREP' >> "conftest.nl"
5330 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5332 as_fn_arith $ac_count + 1 && ac_count=$as_val
5333 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5334 # Best one so far, save it but keep looking for a better one
5335 ac_cv_path_FGREP="$ac_path_FGREP"
5336 ac_path_FGREP_max=$ac_count
5338 # 10*(2^10) chars as input seems more than enough
5339 test $ac_count -gt 10 && break
5341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5344 $ac_path_FGREP_found && break 3
5349 if test -z "$ac_cv_path_FGREP"; then
5350 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5353 ac_cv_path_FGREP=$FGREP
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5359 $as_echo "$ac_cv_path_FGREP" >&6; }
5360 FGREP="$ac_cv_path_FGREP"
5363 test -z "$GREP" && GREP=grep
5383 # Check whether --with-gnu-ld was given.
5384 if test "${with_gnu_ld+set}" = set; then :
5385 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5391 if test "$GCC" = yes; then
5392 # Check if gcc -print-prog-name=ld gives a path.
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5394 $as_echo_n "checking for ld used by $CC... " >&6; }
5397 # gcc leaves a trailing carriage return which upsets mingw
5398 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5400 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5403 # Accept absolute paths.
5405 re_direlt='/[^/][^/]*/\.\./'
5406 # Canonicalize the pathname of ld
5407 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5408 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5409 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5411 test -z "$LD" && LD="$ac_prog"
5414 # If it fails, then pretend we aren't using GCC.
5418 # If it is relative, then search for the first ld in PATH.
5422 elif test "$with_gnu_ld" = yes; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5424 $as_echo_n "checking for GNU ld... " >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5427 $as_echo_n "checking for non-GNU ld... " >&6; }
5429 if ${lt_cv_path_LD+:} false; then :
5430 $as_echo_n "(cached) " >&6
5432 if test -z "$LD"; then
5433 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5434 for ac_dir in $PATH; do
5436 test -z "$ac_dir" && ac_dir=.
5437 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5438 lt_cv_path_LD="$ac_dir/$ac_prog"
5439 # Check to see if the program is GNU ld. I'd rather use --version,
5440 # but apparently some variants of GNU ld only accept -v.
5441 # Break only if it was the GNU/non-GNU ld that we prefer.
5442 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5443 *GNU* | *'with BFD'*)
5444 test "$with_gnu_ld" != no && break
5447 test "$with_gnu_ld" != yes && break
5454 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5459 if test -n "$LD"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5461 $as_echo "$LD" >&6; }
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5466 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5468 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5469 if ${lt_cv_prog_gnu_ld+:} false; then :
5470 $as_echo_n "(cached) " >&6
5472 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5473 case `$LD -v 2>&1 </dev/null` in
5474 *GNU* | *'with BFD'*)
5475 lt_cv_prog_gnu_ld=yes
5478 lt_cv_prog_gnu_ld=no
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5483 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5484 with_gnu_ld=$lt_cv_prog_gnu_ld
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5495 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5496 if ${lt_cv_path_NM+:} false; then :
5497 $as_echo_n "(cached) " >&6
5499 if test -n "$NM"; then
5500 # Let the user override the test.
5503 lt_nm_to_check="${ac_tool_prefix}nm"
5504 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5505 lt_nm_to_check="$lt_nm_to_check nm"
5507 for lt_tmp_nm in $lt_nm_to_check; do
5508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5509 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5511 test -z "$ac_dir" && ac_dir=.
5512 tmp_nm="$ac_dir/$lt_tmp_nm"
5513 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5514 # Check to see if the nm accepts a BSD-compat flag.
5515 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5516 # nm: unknown option "B" ignored
5517 # Tru64's nm complains that /dev/null is an invalid object file
5518 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5519 */dev/null* | *'Invalid file or object type'*)
5520 lt_cv_path_NM="$tmp_nm -B"
5524 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5526 lt_cv_path_NM="$tmp_nm -p"
5530 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5531 continue # so that we can try to find one that supports BSD flags
5540 : ${lt_cv_path_NM=no}
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5544 $as_echo "$lt_cv_path_NM" >&6; }
5545 if test "$lt_cv_path_NM" != "no"; then
5548 # Didn't find any BSD compatible name lister, look for dumpbin.
5549 if test -n "$DUMPBIN"; then :
5550 # Let the user override the test.
5552 if test -n "$ac_tool_prefix"; then
5553 for ac_prog in dumpbin "link -dump"
5555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_DUMPBIN+:} false; then :
5560 $as_echo_n "(cached) " >&6
5562 if test -n "$DUMPBIN"; then
5563 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 DUMPBIN=$ac_cv_prog_DUMPBIN
5583 if test -n "$DUMPBIN"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5585 $as_echo "$DUMPBIN" >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5592 test -n "$DUMPBIN" && break
5595 if test -z "$DUMPBIN"; then
5596 ac_ct_DUMPBIN=$DUMPBIN
5597 for ac_prog in dumpbin "link -dump"
5599 # Extract the first word of "$ac_prog", so it can be a program name with args.
5600 set dummy $ac_prog; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5604 $as_echo_n "(cached) " >&6
5606 if test -n "$ac_ct_DUMPBIN"; then
5607 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5627 if test -n "$ac_ct_DUMPBIN"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5629 $as_echo "$ac_ct_DUMPBIN" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5636 test -n "$ac_ct_DUMPBIN" && break
5639 if test "x$ac_ct_DUMPBIN" = x; then
5642 case $cross_compiling:$ac_tool_warned in
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646 ac_tool_warned=yes ;;
5648 DUMPBIN=$ac_ct_DUMPBIN
5652 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5654 DUMPBIN="$DUMPBIN -symbols"
5662 if test "$DUMPBIN" != ":"; then
5666 test -z "$NM" && NM=nm
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5674 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5675 if ${lt_cv_nm_interface+:} false; then :
5676 $as_echo_n "(cached) " >&6
5678 lt_cv_nm_interface="BSD nm"
5679 echo "int some_variable = 0;" > conftest.$ac_ext
5680 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5681 (eval "$ac_compile" 2>conftest.err)
5682 cat conftest.err >&5
5683 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5684 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5685 cat conftest.err >&5
5686 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5687 cat conftest.out >&5
5688 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5689 lt_cv_nm_interface="MS dumpbin"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5694 $as_echo "$lt_cv_nm_interface" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5697 $as_echo_n "checking whether ln -s works... " >&6; }
5699 if test "$LN_S" = "ln -s"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5701 $as_echo "yes" >&6; }
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5704 $as_echo "no, using $LN_S" >&6; }
5707 # find the maximum length of command line arguments
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5709 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5710 if ${lt_cv_sys_max_cmd_len+:} false; then :
5711 $as_echo_n "(cached) " >&6
5718 # On DJGPP, this test can blow up pretty badly due to problems in libc
5719 # (any single argument exceeding 2000 bytes causes a buffer overrun
5720 # during glob expansion). Even if it were fixed, the result of this
5721 # check would be larger than it should be.
5722 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5726 # Under GNU Hurd, this test is not required because there is
5727 # no limit to the length of command line arguments.
5728 # Libtool will interpret -1 as no limit whatsoever
5729 lt_cv_sys_max_cmd_len=-1;
5732 cygwin* | mingw* | cegcc*)
5733 # On Win9x/ME, this test blows up -- it succeeds, but takes
5734 # about 5 minutes as the teststring grows exponentially.
5735 # Worse, since 9x/ME are not pre-emptively multitasking,
5736 # you end up with a "frozen" computer, even though with patience
5737 # the test eventually succeeds (with a max line length of 256k).
5738 # Instead, let's just punt: use the minimum linelength reported by
5739 # all of the supported platforms: 8192 (on NT/2K/XP).
5740 lt_cv_sys_max_cmd_len=8192;
5744 # On MiNT this can take a long time and run out of memory.
5745 lt_cv_sys_max_cmd_len=8192;
5749 # On AmigaOS with pdksh, this test takes hours, literally.
5750 # So we just punt and use a minimum line length of 8192.
5751 lt_cv_sys_max_cmd_len=8192;
5754 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5755 # This has been around since 386BSD, at least. Likely further.
5756 if test -x /sbin/sysctl; then
5757 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5758 elif test -x /usr/sbin/sysctl; then
5759 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5761 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5763 # And add a safety zone
5764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5769 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5770 lt_cv_sys_max_cmd_len=196608
5774 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5775 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5776 # nice to cause kernel panics so lets avoid the loop below.
5777 # First set a reasonable default.
5778 lt_cv_sys_max_cmd_len=16384
5780 if test -x /sbin/sysconfig; then
5781 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5782 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5787 lt_cv_sys_max_cmd_len=102400
5789 sysv5* | sco5v6* | sysv4.2uw2*)
5790 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5791 if test -n "$kargmax"; then
5792 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5794 lt_cv_sys_max_cmd_len=32768
5798 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5799 if test -n "$lt_cv_sys_max_cmd_len"; then
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5803 # Make teststring a little bigger before we do anything with it.
5804 # a 1K string should be a reasonable start.
5805 for i in 1 2 3 4 5 6 7 8 ; do
5806 teststring=$teststring$teststring
5808 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5809 # If test is not a shell built-in, we'll probably end up computing a
5810 # maximum length that is only half of the actual maximum length, but
5812 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5813 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5814 test $i != 17 # 1/2 MB should be enough
5817 teststring=$teststring$teststring
5819 # Only check the string length outside the loop.
5820 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5822 # Add a significant safety factor because C++ compilers can tack on
5823 # massive amounts of additional arguments before passing them to the
5824 # linker. It appears as though 1/2 is a usable value.
5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5832 if test -n $lt_cv_sys_max_cmd_len ; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5834 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5837 $as_echo "none" >&6; }
5839 max_cmd_len=$lt_cv_sys_max_cmd_len
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5851 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5852 # Try some XSI features
5855 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5857 && eval 'test $(( 1 + 1 )) -eq 2 \
5858 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5861 $as_echo "$xsi_shell" >&6; }
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5865 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5867 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5869 && lt_shell_append=yes
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5871 $as_echo "$lt_shell_append" >&6; }
5874 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5884 # test EBCDIC or ASCII
5885 case `echo X|tr X '\101'` in
5886 A) # ASCII based system
5887 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5888 lt_SP2NL='tr \040 \012'
5889 lt_NL2SP='tr \015\012 \040\040'
5891 *) # EBCDIC based system
5892 lt_SP2NL='tr \100 \n'
5893 lt_NL2SP='tr \r\n \100\100'
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5906 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5907 if ${lt_cv_to_host_file_cmd+:} false; then :
5908 $as_echo_n "(cached) " >&6
5913 *-*-mingw* ) # actually msys
5914 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5917 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5919 * ) # otherwise, assume *nix
5920 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5926 *-*-mingw* ) # actually msys
5927 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5930 lt_cv_to_host_file_cmd=func_convert_file_noop
5932 * ) # otherwise, assume *nix
5933 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5937 * ) # unhandled hosts (and "normal" native builds)
5938 lt_cv_to_host_file_cmd=func_convert_file_noop
5944 to_host_file_cmd=$lt_cv_to_host_file_cmd
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5946 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5953 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5954 if ${lt_cv_to_tool_file_cmd+:} false; then :
5955 $as_echo_n "(cached) " >&6
5957 #assume ordinary cross tools, or native build.
5958 lt_cv_to_tool_file_cmd=func_convert_file_noop
5962 *-*-mingw* ) # actually msys
5963 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5971 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5973 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5980 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5981 if ${lt_cv_ld_reload_flag+:} false; then :
5982 $as_echo_n "(cached) " >&6
5984 lt_cv_ld_reload_flag='-r'
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5987 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5988 reload_flag=$lt_cv_ld_reload_flag
5989 case $reload_flag in
5991 *) reload_flag=" $reload_flag" ;;
5993 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5995 cygwin* | mingw* | pw32* | cegcc*)
5996 if test "$GCC" != yes; then
6001 if test "$GCC" = yes; then
6002 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6004 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6017 if test -n "$ac_tool_prefix"; then
6018 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6019 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6021 $as_echo_n "checking for $ac_word... " >&6; }
6022 if ${ac_cv_prog_OBJDUMP+:} false; then :
6023 $as_echo_n "(cached) " >&6
6025 if test -n "$OBJDUMP"; then
6026 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 test -z "$as_dir" && as_dir=.
6033 for ac_exec_ext in '' $ac_executable_extensions; do
6034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6035 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 OBJDUMP=$ac_cv_prog_OBJDUMP
6046 if test -n "$OBJDUMP"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6048 $as_echo "$OBJDUMP" >&6; }
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051 $as_echo "no" >&6; }
6056 if test -z "$ac_cv_prog_OBJDUMP"; then
6057 ac_ct_OBJDUMP=$OBJDUMP
6058 # Extract the first word of "objdump", so it can be a program name with args.
6059 set dummy objdump; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6063 $as_echo_n "(cached) " >&6
6065 if test -n "$ac_ct_OBJDUMP"; then
6066 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6085 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6086 if test -n "$ac_ct_OBJDUMP"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6088 $as_echo "$ac_ct_OBJDUMP" >&6; }
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6094 if test "x$ac_ct_OBJDUMP" = x; then
6097 case $cross_compiling:$ac_tool_warned in
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6101 ac_tool_warned=yes ;;
6103 OBJDUMP=$ac_ct_OBJDUMP
6106 OBJDUMP="$ac_cv_prog_OBJDUMP"
6109 test -z "$OBJDUMP" && OBJDUMP=objdump
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6120 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6121 if ${lt_cv_deplibs_check_method+:} false; then :
6122 $as_echo_n "(cached) " >&6
6124 lt_cv_file_magic_cmd='$MAGIC_CMD'
6125 lt_cv_file_magic_test_file=
6126 lt_cv_deplibs_check_method='unknown'
6127 # Need to set the preceding variable on all platforms that support
6128 # interlibrary dependencies.
6129 # 'none' -- dependencies not supported.
6130 # `unknown' -- same as none, but documents that we really don't know.
6131 # 'pass_all' -- all dependencies passed with no checks.
6132 # 'test_compile' -- check by making test program.
6133 # 'file_magic [[regex]]' -- check by looking for files in library path
6134 # which responds to the $file_magic_cmd with a given extended regex.
6135 # If you have `file' or equivalent on your system and you're not sure
6136 # whether `pass_all' will *always* work, you probably want this one.
6140 lt_cv_deplibs_check_method=pass_all
6144 lt_cv_deplibs_check_method=pass_all
6148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6149 lt_cv_file_magic_cmd='/usr/bin/file -L'
6150 lt_cv_file_magic_test_file=/shlib/libc.so
6154 # func_win32_libid is a shell function defined in ltmain.sh
6155 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6156 lt_cv_file_magic_cmd='func_win32_libid'
6160 # Base MSYS/MinGW do not provide the 'file' command needed by
6161 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6162 # unless we find 'file', for example because we are cross-compiling.
6163 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6164 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6165 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6166 lt_cv_file_magic_cmd='func_win32_libid'
6168 # Keep this pattern in sync with the one in func_win32_libid.
6169 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6170 lt_cv_file_magic_cmd='$OBJDUMP -f'
6175 # use the weaker test based on 'objdump'. See mingw*.
6176 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6177 lt_cv_file_magic_cmd='$OBJDUMP -f'
6180 darwin* | rhapsody*)
6181 lt_cv_deplibs_check_method=pass_all
6184 freebsd* | dragonfly*)
6185 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6188 # Not sure whether the presence of OpenBSD here was a mistake.
6189 # Let's accept both of them until this is cleared up.
6190 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6191 lt_cv_file_magic_cmd=/usr/bin/file
6192 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6196 lt_cv_deplibs_check_method=pass_all
6201 lt_cv_deplibs_check_method=pass_all
6205 lt_cv_deplibs_check_method=pass_all
6208 hpux10.20* | hpux11*)
6209 lt_cv_file_magic_cmd=/usr/bin/file
6212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6213 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6216 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]'
6217 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6220 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6221 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6227 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6231 irix5* | irix6* | nonstopux*)
6233 *-32|*"-32 ") libmagic=32-bit;;
6234 *-n32|*"-n32 ") libmagic=N32;;
6235 *-64|*"-64 ") libmagic=64-bit;;
6236 *) libmagic=never-match;;
6238 lt_cv_deplibs_check_method=pass_all
6241 # This must be Linux ELF.
6242 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6243 lt_cv_deplibs_check_method=pass_all
6246 netbsd* | netbsdelf*-gnu)
6247 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6256 lt_cv_file_magic_cmd=/usr/bin/file
6257 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6261 lt_cv_deplibs_check_method=pass_all
6265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6272 osf3* | osf4* | osf5*)
6273 lt_cv_deplibs_check_method=pass_all
6277 lt_cv_deplibs_check_method=pass_all
6281 lt_cv_deplibs_check_method=pass_all
6284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6285 lt_cv_deplibs_check_method=pass_all
6289 case $host_vendor in
6291 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]'
6292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6295 lt_cv_deplibs_check_method=pass_all
6298 lt_cv_file_magic_cmd='/bin/file'
6299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6302 lt_cv_file_magic_cmd='/bin/file'
6303 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6304 lt_cv_file_magic_test_file=/lib/libc.so
6307 lt_cv_deplibs_check_method=pass_all
6310 lt_cv_deplibs_check_method=pass_all
6316 lt_cv_deplibs_check_method=pass_all
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6322 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6326 if test "$build" = "$host"; then
6329 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6332 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6338 file_magic_cmd=$lt_cv_file_magic_cmd
6339 deplibs_check_method=$lt_cv_deplibs_check_method
6340 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6363 if test -n "$ac_tool_prefix"; then
6364 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6365 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if ${ac_cv_prog_DLLTOOL+:} false; then :
6369 $as_echo_n "(cached) " >&6
6371 if test -n "$DLLTOOL"; then
6372 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6381 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 DLLTOOL=$ac_cv_prog_DLLTOOL
6392 if test -n "$DLLTOOL"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6394 $as_echo "$DLLTOOL" >&6; }
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6402 if test -z "$ac_cv_prog_DLLTOOL"; then
6403 ac_ct_DLLTOOL=$DLLTOOL
6404 # Extract the first word of "dlltool", so it can be a program name with args.
6405 set dummy dlltool; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6409 $as_echo_n "(cached) " >&6
6411 if test -n "$ac_ct_DLLTOOL"; then
6412 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6421 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6432 if test -n "$ac_ct_DLLTOOL"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6434 $as_echo "$ac_ct_DLLTOOL" >&6; }
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6440 if test "x$ac_ct_DLLTOOL" = x; then
6443 case $cross_compiling:$ac_tool_warned in
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447 ac_tool_warned=yes ;;
6449 DLLTOOL=$ac_ct_DLLTOOL
6452 DLLTOOL="$ac_cv_prog_DLLTOOL"
6455 test -z "$DLLTOOL" && DLLTOOL=dlltool
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6467 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6468 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6469 $as_echo_n "(cached) " >&6
6471 lt_cv_sharedlib_from_linklib_cmd='unknown'
6474 cygwin* | mingw* | pw32* | cegcc*)
6475 # two different shell functions defined in ltmain.sh
6476 # decide which to use based on capabilities of $DLLTOOL
6477 case `$DLLTOOL --help 2>&1` in
6478 *--identify-strict*)
6479 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6482 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6487 # fallback: assume linklib IS sharedlib
6488 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6494 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6495 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6496 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6504 if test -n "$ac_tool_prefix"; then
6507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_AR+:} false; then :
6512 $as_echo_n "(cached) " >&6
6514 if test -n "$AR"; then
6515 ac_cv_prog_AR="$AR" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 if test -n "$AR"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6537 $as_echo "$AR" >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6544 test -n "$AR" && break
6547 if test -z "$AR"; then
6551 # Extract the first word of "$ac_prog", so it can be a program name with args.
6552 set dummy $ac_prog; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6556 $as_echo_n "(cached) " >&6
6558 if test -n "$ac_ct_AR"; then
6559 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_ac_ct_AR="$ac_prog"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6579 if test -n "$ac_ct_AR"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6581 $as_echo "$ac_ct_AR" >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6588 test -n "$ac_ct_AR" && break
6591 if test "x$ac_ct_AR" = x; then
6594 case $cross_compiling:$ac_tool_warned in
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6618 $as_echo_n "checking for archiver @FILE support... " >&6; }
6619 if ${lt_cv_ar_at_file+:} false; then :
6620 $as_echo_n "(cached) " >&6
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6634 if ac_fn_c_try_compile "$LINENO"; then :
6635 echo conftest.$ac_objext > conftest.lst
6636 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6638 (eval $lt_ar_try) 2>&5
6640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641 test $ac_status = 0; }
6642 if test "$ac_status" -eq 0; then
6643 # Ensure the archiver fails upon bogus file names.
6644 rm -f conftest.$ac_objext libconftest.a
6645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6646 (eval $lt_ar_try) 2>&5
6648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6649 test $ac_status = 0; }
6650 if test "$ac_status" -ne 0; then
6654 rm -f conftest.* libconftest.a
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6661 $as_echo "$lt_cv_ar_at_file" >&6; }
6663 if test "x$lt_cv_ar_at_file" = xno; then
6666 archiver_list_spec=$lt_cv_ar_at_file
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}strip; ac_word=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_STRIP+:} false; then :
6681 $as_echo_n "(cached) " >&6
6683 if test -n "$STRIP"; then
6684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 STRIP=$ac_cv_prog_STRIP
6704 if test -n "$STRIP"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6706 $as_echo "$STRIP" >&6; }
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6714 if test -z "$ac_cv_prog_STRIP"; then
6716 # Extract the first word of "strip", so it can be a program name with args.
6717 set dummy strip; ac_word=$2
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6719 $as_echo_n "checking for $ac_word... " >&6; }
6720 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6721 $as_echo_n "(cached) " >&6
6723 if test -n "$ac_ct_STRIP"; then
6724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_STRIP="strip"
6734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6744 if test -n "$ac_ct_STRIP"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6746 $as_echo "$ac_ct_STRIP" >&6; }
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 $as_echo "no" >&6; }
6752 if test "x$ac_ct_STRIP" = x; then
6755 case $cross_compiling:$ac_tool_warned in
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6764 STRIP="$ac_cv_prog_STRIP"
6767 test -z "$STRIP" && STRIP=:
6774 if test -n "$ac_tool_prefix"; then
6775 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6776 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if ${ac_cv_prog_RANLIB+:} false; then :
6780 $as_echo_n "(cached) " >&6
6782 if test -n "$RANLIB"; then
6783 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 RANLIB=$ac_cv_prog_RANLIB
6803 if test -n "$RANLIB"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6805 $as_echo "$RANLIB" >&6; }
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6813 if test -z "$ac_cv_prog_RANLIB"; then
6814 ac_ct_RANLIB=$RANLIB
6815 # Extract the first word of "ranlib", so it can be a program name with args.
6816 set dummy ranlib; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6820 $as_echo_n "(cached) " >&6
6822 if test -n "$ac_ct_RANLIB"; then
6823 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6832 ac_cv_prog_ac_ct_RANLIB="ranlib"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6843 if test -n "$ac_ct_RANLIB"; then
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6845 $as_echo "$ac_ct_RANLIB" >&6; }
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6851 if test "x$ac_ct_RANLIB" = x; then
6854 case $cross_compiling:$ac_tool_warned in
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6858 ac_tool_warned=yes ;;
6860 RANLIB=$ac_ct_RANLIB
6863 RANLIB="$ac_cv_prog_RANLIB"
6866 test -z "$RANLIB" && RANLIB=:
6873 # Determine commands to create old-style static archives.
6874 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6875 old_postinstall_cmds='chmod 644 $oldlib'
6876 old_postuninstall_cmds=
6878 if test -n "$RANLIB"; then
6881 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6884 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6887 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6892 lock_old_archive_extraction=yes ;;
6894 lock_old_archive_extraction=no ;;
6935 # If no C compiler was specified, use CC.
6938 # If no C compiler flags were specified, use CFLAGS.
6939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6941 # Allow CC to be a program name with arguments.
6945 # Check for command to grab the raw symbol name followed by C symbol from nm.
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6947 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6948 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6949 $as_echo_n "(cached) " >&6
6952 # These are sane defaults that work on at least a few old systems.
6953 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6955 # Character class describing NM global symbol codes.
6956 symcode='[BCDEGRST]'
6958 # Regexp to match symbols that can be accessed directly from C.
6959 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6961 # Define system-specific variables.
6966 cygwin* | mingw* | pw32* | cegcc*)
6967 symcode='[ABCDGISTW]'
6970 if test "$host_cpu" = ia64; then
6971 symcode='[ABCDEGRST]'
6975 symcode='[BCDEGRST]'
6978 symcode='[BCDEGQRST]'
6989 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6997 # If we're using GNU nm, then use its standard symbol codes.
6998 case `$NM -V 2>&1` in
6999 *GNU* | *'with BFD'*)
7000 symcode='[ABCDGIRSTW]' ;;
7003 # Transform an extracted symbol line into a proper C declaration.
7004 # Some systems (esp. on ia64) link data and code symbols differently,
7005 # so use this general approach.
7006 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7008 # Transform an extracted symbol line into symbol name and symbol address
7009 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7010 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'"
7012 # Handle CRLF in mingw tool chain
7016 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7020 # Try without a prefix underscore, then with it.
7021 for ac_symprfx in "" "_"; do
7023 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7024 symxfrm="\\1 $ac_symprfx\\2 \\2"
7026 # Write the raw and C identifiers.
7027 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7028 # Fake it for dumpbin and say T for any non-static function
7029 # and D for any global variable.
7030 # Also find C++ and __fastcall symbols from MSVC++,
7031 # which start with @ or ?.
7032 lt_cv_sys_global_symbol_pipe="$AWK '"\
7033 " {last_section=section; section=\$ 3};"\
7034 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7035 " \$ 0!~/External *\|/{next};"\
7036 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7037 " {if(hide[section]) next};"\
7038 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7039 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7040 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7041 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7042 " ' prfx=^$ac_symprfx"
7044 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7046 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7048 # Check to see that the pipe works correctly.
7052 cat > conftest.$ac_ext <<_LT_EOF
7057 void nm_test_func(void);
7058 void nm_test_func(void){}
7062 int main(){nm_test_var='a';nm_test_func();return(0);}
7065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7066 (eval $ac_compile) 2>&5
7068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069 test $ac_status = 0; }; then
7070 # Now try to grab the symbols.
7072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7073 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7076 test $ac_status = 0; } && test -s "$nlist"; then
7077 # Try sorting and uniquifying the output.
7078 if sort "$nlist" | uniq > "$nlist"T; then
7079 mv -f "$nlist"T "$nlist"
7084 # Make sure that we snagged all the symbols we need.
7085 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7086 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7087 cat <<_LT_EOF > conftest.$ac_ext
7088 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7089 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7090 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7091 relocations are performed -- see ld's documentation on pseudo-relocs. */
7092 # define LT_DLSYM_CONST
7093 #elif defined(__osf__)
7094 /* This system does not cope well with relocations in const data. */
7095 # define LT_DLSYM_CONST
7097 # define LT_DLSYM_CONST const
7105 # Now generate the symbol file.
7106 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7108 cat <<_LT_EOF >> conftest.$ac_ext
7110 /* The mapping between symbol names and symbols. */
7111 LT_DLSYM_CONST struct {
7115 lt__PROGRAM__LTX_preloaded_symbols[] =
7117 { "@PROGRAM@", (void *) 0 },
7119 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7120 cat <<\_LT_EOF >> conftest.$ac_ext
7124 /* This works around a problem in FreeBSD linker */
7125 #ifdef FREEBSD_WORKAROUND
7126 static const void *lt_preloaded_setup() {
7127 return lt__PROGRAM__LTX_preloaded_symbols;
7135 # Now try linking the two files.
7136 mv conftest.$ac_objext conftstm.$ac_objext
7137 lt_globsym_save_LIBS=$LIBS
7138 lt_globsym_save_CFLAGS=$CFLAGS
7139 LIBS="conftstm.$ac_objext"
7140 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7142 (eval $ac_link) 2>&5
7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7148 LIBS=$lt_globsym_save_LIBS
7149 CFLAGS=$lt_globsym_save_CFLAGS
7151 echo "cannot find nm_test_func in $nlist" >&5
7154 echo "cannot find nm_test_var in $nlist" >&5
7157 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7160 echo "$progname: failed program was:" >&5
7161 cat conftest.$ac_ext >&5
7163 rm -rf conftest* conftst*
7165 # Do not use the global_symbol_pipe unless it works.
7166 if test "$pipe_works" = yes; then
7169 lt_cv_sys_global_symbol_pipe=
7175 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7176 lt_cv_sys_global_symbol_to_cdecl=
7178 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7180 $as_echo "failed" >&6; }
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7183 $as_echo "ok" >&6; }
7186 # Response file support.
7187 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7188 nm_file_list_spec='@'
7189 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7190 nm_file_list_spec='@'
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7220 $as_echo_n "checking for sysroot... " >&6; }
7222 # Check whether --with-sysroot was given.
7223 if test "${with_sysroot+set}" = set; then :
7224 withval=$with_sysroot;
7231 case ${with_sysroot} in #(
7233 if test "$GCC" = yes; then
7234 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7238 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7244 $as_echo "${with_sysroot}" >&6; }
7245 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7250 $as_echo "${lt_sysroot:-no}" >&6; }
7256 # Check whether --enable-libtool-lock was given.
7257 if test "${enable_libtool_lock+set}" = set; then :
7258 enableval=$enable_libtool_lock;
7261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7263 # Some flags need to be propagated to the compiler or linker for good
7267 # Find out which ABI we are using.
7268 echo 'int i;' > conftest.$ac_ext
7269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7270 (eval $ac_compile) 2>&5
7272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7273 test $ac_status = 0; }; then
7274 case `/usr/bin/file conftest.$ac_objext` in
7286 # Find out which ABI we are using.
7287 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7289 (eval $ac_compile) 2>&5
7291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7292 test $ac_status = 0; }; then
7293 if test "$lt_cv_prog_gnu_ld" = yes; then
7294 case `/usr/bin/file conftest.$ac_objext` in
7296 LD="${LD-ld} -melf32bsmip"
7299 LD="${LD-ld} -melf32bmipn32"
7302 LD="${LD-ld} -melf64bmip"
7306 case `/usr/bin/file conftest.$ac_objext` in
7322 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7323 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7324 # Find out which ABI we are using.
7325 echo 'int i;' > conftest.$ac_ext
7326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7327 (eval $ac_compile) 2>&5
7329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7330 test $ac_status = 0; }; then
7331 case `/usr/bin/file conftest.o` in
7334 x86_64-*kfreebsd*-gnu)
7335 LD="${LD-ld} -m elf_i386_fbsd"
7338 LD="${LD-ld} -m elf_i386"
7340 ppc64-*linux*|powerpc64-*linux*)
7341 LD="${LD-ld} -m elf32ppclinux"
7344 LD="${LD-ld} -m elf_s390"
7347 LD="${LD-ld} -m elf32_sparc"
7353 x86_64-*kfreebsd*-gnu)
7354 LD="${LD-ld} -m elf_x86_64_fbsd"
7357 LD="${LD-ld} -m elf_x86_64"
7359 ppc*-*linux*|powerpc*-*linux*)
7360 LD="${LD-ld} -m elf64ppc"
7362 s390*-*linux*|s390*-*tpf*)
7363 LD="${LD-ld} -m elf64_s390"
7366 LD="${LD-ld} -m elf64_sparc"
7376 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7377 SAVE_CFLAGS="$CFLAGS"
7378 CFLAGS="$CFLAGS -belf"
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7380 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7381 if ${lt_cv_cc_needs_belf+:} false; then :
7382 $as_echo_n "(cached) " >&6
7385 ac_cpp='$CPP $CPPFLAGS'
7386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7401 if ac_fn_c_try_link "$LINENO"; then :
7402 lt_cv_cc_needs_belf=yes
7404 lt_cv_cc_needs_belf=no
7406 rm -f core conftest.err conftest.$ac_objext \
7407 conftest$ac_exeext conftest.$ac_ext
7409 ac_cpp='$CPP $CPPFLAGS'
7410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7416 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7417 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7418 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7419 CFLAGS="$SAVE_CFLAGS"
7423 # Find out which ABI we are using.
7424 echo 'int i;' > conftest.$ac_ext
7425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7426 (eval $ac_compile) 2>&5
7428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7429 test $ac_status = 0; }; then
7430 case `/usr/bin/file conftest.o` in
7432 case $lt_cv_prog_gnu_ld in
7433 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7435 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7447 need_locks="$enable_libtool_lock"
7449 if test -n "$ac_tool_prefix"; then
7450 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}mt; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7455 $as_echo_n "(cached) " >&6
7457 if test -n "$MANIFEST_TOOL"; then
7458 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7467 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7478 if test -n "$MANIFEST_TOOL"; then
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7480 $as_echo "$MANIFEST_TOOL" >&6; }
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7488 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7489 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7490 # Extract the first word of "mt", so it can be a program name with args.
7491 set dummy mt; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7495 $as_echo_n "(cached) " >&6
7497 if test -n "$ac_ct_MANIFEST_TOOL"; then
7498 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 test -z "$as_dir" && as_dir=.
7505 for ac_exec_ext in '' $ac_executable_extensions; do
7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7507 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7518 if test -n "$ac_ct_MANIFEST_TOOL"; then
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7520 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7526 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7529 case $cross_compiling:$ac_tool_warned in
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533 ac_tool_warned=yes ;;
7535 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7538 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7541 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7543 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7544 if ${lt_cv_path_mainfest_tool+:} false; then :
7545 $as_echo_n "(cached) " >&6
7547 lt_cv_path_mainfest_tool=no
7548 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7549 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7550 cat conftest.err >&5
7551 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7552 lt_cv_path_mainfest_tool=yes
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7557 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7558 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7568 rhapsody* | darwin*)
7569 if test -n "$ac_tool_prefix"; then
7570 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7575 $as_echo_n "(cached) " >&6
7577 if test -n "$DSYMUTIL"; then
7578 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7598 if test -n "$DSYMUTIL"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7600 $as_echo "$DSYMUTIL" >&6; }
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7608 if test -z "$ac_cv_prog_DSYMUTIL"; then
7609 ac_ct_DSYMUTIL=$DSYMUTIL
7610 # Extract the first word of "dsymutil", so it can be a program name with args.
7611 set dummy dsymutil; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7615 $as_echo_n "(cached) " >&6
7617 if test -n "$ac_ct_DSYMUTIL"; then
7618 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7638 if test -n "$ac_ct_DSYMUTIL"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7640 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7646 if test "x$ac_ct_DSYMUTIL" = x; then
7649 case $cross_compiling:$ac_tool_warned in
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7655 DSYMUTIL=$ac_ct_DSYMUTIL
7658 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7661 if test -n "$ac_tool_prefix"; then
7662 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7663 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_prog_NMEDIT+:} false; then :
7667 $as_echo_n "(cached) " >&6
7669 if test -n "$NMEDIT"; then
7670 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7679 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 NMEDIT=$ac_cv_prog_NMEDIT
7690 if test -n "$NMEDIT"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7692 $as_echo "$NMEDIT" >&6; }
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7700 if test -z "$ac_cv_prog_NMEDIT"; then
7701 ac_ct_NMEDIT=$NMEDIT
7702 # Extract the first word of "nmedit", so it can be a program name with args.
7703 set dummy nmedit; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7707 $as_echo_n "(cached) " >&6
7709 if test -n "$ac_ct_NMEDIT"; then
7710 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7730 if test -n "$ac_ct_NMEDIT"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7732 $as_echo "$ac_ct_NMEDIT" >&6; }
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7738 if test "x$ac_ct_NMEDIT" = x; then
7741 case $cross_compiling:$ac_tool_warned in
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7747 NMEDIT=$ac_ct_NMEDIT
7750 NMEDIT="$ac_cv_prog_NMEDIT"
7753 if test -n "$ac_tool_prefix"; then
7754 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7755 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if ${ac_cv_prog_LIPO+:} false; then :
7759 $as_echo_n "(cached) " >&6
7761 if test -n "$LIPO"; then
7762 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7771 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 LIPO=$ac_cv_prog_LIPO
7782 if test -n "$LIPO"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7784 $as_echo "$LIPO" >&6; }
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7792 if test -z "$ac_cv_prog_LIPO"; then
7794 # Extract the first word of "lipo", so it can be a program name with args.
7795 set dummy lipo; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7799 $as_echo_n "(cached) " >&6
7801 if test -n "$ac_ct_LIPO"; then
7802 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_ac_ct_LIPO="lipo"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7822 if test -n "$ac_ct_LIPO"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7824 $as_echo "$ac_ct_LIPO" >&6; }
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7830 if test "x$ac_ct_LIPO" = x; then
7833 case $cross_compiling:$ac_tool_warned in
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837 ac_tool_warned=yes ;;
7842 LIPO="$ac_cv_prog_LIPO"
7845 if test -n "$ac_tool_prefix"; then
7846 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7847 set dummy ${ac_tool_prefix}otool; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if ${ac_cv_prog_OTOOL+:} false; then :
7851 $as_echo_n "(cached) " >&6
7853 if test -n "$OTOOL"; then
7854 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 test -z "$as_dir" && as_dir=.
7861 for ac_exec_ext in '' $ac_executable_extensions; do
7862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7863 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873 OTOOL=$ac_cv_prog_OTOOL
7874 if test -n "$OTOOL"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7876 $as_echo "$OTOOL" >&6; }
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7884 if test -z "$ac_cv_prog_OTOOL"; then
7886 # Extract the first word of "otool", so it can be a program name with args.
7887 set dummy otool; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7891 $as_echo_n "(cached) " >&6
7893 if test -n "$ac_ct_OTOOL"; then
7894 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903 ac_cv_prog_ac_ct_OTOOL="otool"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7913 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7914 if test -n "$ac_ct_OTOOL"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7916 $as_echo "$ac_ct_OTOOL" >&6; }
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7922 if test "x$ac_ct_OTOOL" = x; then
7925 case $cross_compiling:$ac_tool_warned in
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929 ac_tool_warned=yes ;;
7934 OTOOL="$ac_cv_prog_OTOOL"
7937 if test -n "$ac_tool_prefix"; then
7938 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7939 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_prog_OTOOL64+:} false; then :
7943 $as_echo_n "(cached) " >&6
7945 if test -n "$OTOOL64"; then
7946 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7955 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 OTOOL64=$ac_cv_prog_OTOOL64
7966 if test -n "$OTOOL64"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7968 $as_echo "$OTOOL64" >&6; }
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7976 if test -z "$ac_cv_prog_OTOOL64"; then
7977 ac_ct_OTOOL64=$OTOOL64
7978 # Extract the first word of "otool64", so it can be a program name with args.
7979 set dummy otool64; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7983 $as_echo_n "(cached) " >&6
7985 if test -n "$ac_ct_OTOOL64"; then
7986 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_ac_ct_OTOOL64="otool64"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8006 if test -n "$ac_ct_OTOOL64"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8008 $as_echo "$ac_ct_OTOOL64" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8014 if test "x$ac_ct_OTOOL64" = x; then
8017 case $cross_compiling:$ac_tool_warned in
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned=yes ;;
8023 OTOOL64=$ac_ct_OTOOL64
8026 OTOOL64="$ac_cv_prog_OTOOL64"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8056 $as_echo_n "checking for -single_module linker flag... " >&6; }
8057 if ${lt_cv_apple_cc_single_mod+:} false; then :
8058 $as_echo_n "(cached) " >&6
8060 lt_cv_apple_cc_single_mod=no
8061 if test -z "${LT_MULTI_MODULE}"; then
8062 # By default we will add the -single_module flag. You can override
8063 # by either setting the environment variable LT_MULTI_MODULE
8064 # non-empty at configure time, or by adding -multi_module to the
8066 rm -rf libconftest.dylib*
8067 echo "int foo(void){return 1;}" > conftest.c
8068 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8069 -dynamiclib -Wl,-single_module conftest.c" >&5
8070 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8071 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8073 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8074 lt_cv_apple_cc_single_mod=yes
8076 cat conftest.err >&5
8078 rm -rf libconftest.dylib*
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8083 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8085 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8086 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8087 $as_echo_n "(cached) " >&6
8089 lt_cv_ld_exported_symbols_list=no
8090 save_LDFLAGS=$LDFLAGS
8091 echo "_main" > conftest.sym
8092 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8104 if ac_fn_c_try_link "$LINENO"; then :
8105 lt_cv_ld_exported_symbols_list=yes
8107 lt_cv_ld_exported_symbols_list=no
8109 rm -f core conftest.err conftest.$ac_objext \
8110 conftest$ac_exeext conftest.$ac_ext
8111 LDFLAGS="$save_LDFLAGS"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8115 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8117 $as_echo_n "checking for -force_load linker flag... " >&6; }
8118 if ${lt_cv_ld_force_load+:} false; then :
8119 $as_echo_n "(cached) " >&6
8121 lt_cv_ld_force_load=no
8122 cat > conftest.c << _LT_EOF
8123 int forced_loaded() { return 2;}
8125 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8126 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8127 echo "$AR cru libconftest.a conftest.o" >&5
8128 $AR cru libconftest.a conftest.o 2>&5
8129 echo "$RANLIB libconftest.a" >&5
8130 $RANLIB libconftest.a 2>&5
8131 cat > conftest.c << _LT_EOF
8132 int main() { return 0;}
8134 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8135 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8137 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8138 lt_cv_ld_force_load=yes
8140 cat conftest.err >&5
8142 rm -f conftest.err libconftest.a conftest conftest.c
8143 rm -rf conftest.dSYM
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8147 $as_echo "$lt_cv_ld_force_load" >&6; }
8149 rhapsody* | darwin1.[012])
8150 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8152 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8153 darwin*) # darwin 5.x on
8154 # if running on 10.5 or later, the deployment target defaults
8155 # to the OS version, if on x86, and 10.4, the deployment
8156 # target defaults to 10.4. Don't you love it?
8157 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8158 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8159 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8161 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8163 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8167 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8168 _lt_dar_single_mod='$single_module'
8170 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8171 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8173 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8175 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8176 _lt_dsymutil='~$DSYMUTIL $lib || :'
8184 ac_cpp='$CPP $CPPFLAGS'
8185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8189 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8190 # On Suns, sometimes $CPP names a directory.
8191 if test -n "$CPP" && test -d "$CPP"; then
8194 if test -z "$CPP"; then
8195 if ${ac_cv_prog_CPP+:} false; then :
8196 $as_echo_n "(cached) " >&6
8198 # Double quotes because CPP needs to be expanded
8199 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8202 for ac_c_preproc_warn_flag in '' yes
8204 # Use a header file that comes with gcc, so configuring glibc
8205 # with a fresh cross-compiler works.
8206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8207 # <limits.h> exists even on freestanding compilers.
8208 # On the NeXT, cc -E runs the code through the compiler's parser,
8209 # not just through cpp. "Syntax error" is here to catch this case.
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8213 # include <limits.h>
8215 # include <assert.h>
8219 if ac_fn_c_try_cpp "$LINENO"; then :
8222 # Broken: fails on valid input.
8225 rm -f conftest.err conftest.i conftest.$ac_ext
8227 # OK, works on sane cases. Now check whether nonexistent headers
8228 # can be detected and how.
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 #include <ac_nonexistent.h>
8233 if ac_fn_c_try_cpp "$LINENO"; then :
8234 # Broken: success on invalid input.
8237 # Passes both tests.
8241 rm -f conftest.err conftest.i conftest.$ac_ext
8244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8245 rm -f conftest.i conftest.err conftest.$ac_ext
8246 if $ac_preproc_ok; then :
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8259 $as_echo "$CPP" >&6; }
8261 for ac_c_preproc_warn_flag in '' yes
8263 # Use a header file that comes with gcc, so configuring glibc
8264 # with a fresh cross-compiler works.
8265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8266 # <limits.h> exists even on freestanding compilers.
8267 # On the NeXT, cc -E runs the code through the compiler's parser,
8268 # not just through cpp. "Syntax error" is here to catch this case.
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8272 # include <limits.h>
8274 # include <assert.h>
8278 if ac_fn_c_try_cpp "$LINENO"; then :
8281 # Broken: fails on valid input.
8284 rm -f conftest.err conftest.i conftest.$ac_ext
8286 # OK, works on sane cases. Now check whether nonexistent headers
8287 # can be detected and how.
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8290 #include <ac_nonexistent.h>
8292 if ac_fn_c_try_cpp "$LINENO"; then :
8293 # Broken: success on invalid input.
8296 # Passes both tests.
8300 rm -f conftest.err conftest.i conftest.$ac_ext
8303 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8304 rm -f conftest.i conftest.err conftest.$ac_ext
8305 if $ac_preproc_ok; then :
8308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8310 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8311 See \`config.log' for more details" "$LINENO" 5; }
8315 ac_cpp='$CPP $CPPFLAGS'
8316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8322 $as_echo_n "checking for ANSI C header files... " >&6; }
8323 if ${ac_cv_header_stdc+:} false; then :
8324 $as_echo_n "(cached) " >&6
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342 ac_cv_header_stdc=yes
8344 ac_cv_header_stdc=no
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 if test $ac_cv_header_stdc = yes; then
8349 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8356 $EGREP "memchr" >/dev/null 2>&1; then :
8359 ac_cv_header_stdc=no
8365 if test $ac_cv_header_stdc = yes; then
8366 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8373 $EGREP "free" >/dev/null 2>&1; then :
8376 ac_cv_header_stdc=no
8382 if test $ac_cv_header_stdc = yes; then
8383 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8384 if test "$cross_compiling" = yes; then :
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388 /* end confdefs.h. */
8391 #if ((' ' & 0x0FF) == 0x020)
8392 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8393 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8395 # define ISLOWER(c) \
8396 (('a' <= (c) && (c) <= 'i') \
8397 || ('j' <= (c) && (c) <= 'r') \
8398 || ('s' <= (c) && (c) <= 'z'))
8399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8407 for (i = 0; i < 256; i++)
8408 if (XOR (islower (i), ISLOWER (i))
8409 || toupper (i) != TOUPPER (i))
8414 if ac_fn_c_try_run "$LINENO"; then :
8417 ac_cv_header_stdc=no
8419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8420 conftest.$ac_objext conftest.beam conftest.$ac_ext
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8426 $as_echo "$ac_cv_header_stdc" >&6; }
8427 if test $ac_cv_header_stdc = yes; then
8429 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8433 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8434 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8435 inttypes.h stdint.h unistd.h
8437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8438 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8440 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8441 cat >>confdefs.h <<_ACEOF
8442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8450 for ac_header in dlfcn.h
8452 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8454 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8455 cat >>confdefs.h <<_ACEOF
8456 #define HAVE_DLFCN_H 1
8477 # Check whether --enable-shared was given.
8478 if test "${enable_shared+set}" = set; then :
8479 enableval=$enable_shared; p=${PACKAGE-default}
8481 yes) enable_shared=yes ;;
8482 no) enable_shared=no ;;
8485 # Look at the argument we got. We use all the common list separators.
8486 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8487 for pkg in $enableval; do
8489 if test "X$pkg" = "X$p"; then
8508 # Check whether --enable-static was given.
8509 if test "${enable_static+set}" = set; then :
8510 enableval=$enable_static; p=${PACKAGE-default}
8512 yes) enable_static=yes ;;
8513 no) enable_static=no ;;
8516 # Look at the argument we got. We use all the common list separators.
8517 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8518 for pkg in $enableval; do
8520 if test "X$pkg" = "X$p"; then
8540 # Check whether --with-pic was given.
8541 if test "${with_pic+set}" = set; then :
8542 withval=$with_pic; pic_mode="$withval"
8548 test -z "$pic_mode" && pic_mode=default
8556 # Check whether --enable-fast-install was given.
8557 if test "${enable_fast_install+set}" = set; then :
8558 enableval=$enable_fast_install; p=${PACKAGE-default}
8560 yes) enable_fast_install=yes ;;
8561 no) enable_fast_install=no ;;
8563 enable_fast_install=no
8564 # Look at the argument we got. We use all the common list separators.
8565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8566 for pkg in $enableval; do
8568 if test "X$pkg" = "X$p"; then
8569 enable_fast_install=yes
8576 enable_fast_install=yes
8589 # This can be used to rebuild libtool when needed
8590 LIBTOOL_DEPS="$ltmain"
8592 # Always use our own libtool.
8593 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8620 test -z "$LN_S" && LN_S="ln -s"
8635 if test -n "${ZSH_VERSION+set}" ; then
8636 setopt NO_GLOB_SUBST
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8640 $as_echo_n "checking for objdir... " >&6; }
8641 if ${lt_cv_objdir+:} false; then :
8642 $as_echo_n "(cached) " >&6
8644 rm -f .libs 2>/dev/null
8645 mkdir .libs 2>/dev/null
8646 if test -d .libs; then
8649 # MS-DOS does not allow filenames that begin with a dot.
8652 rmdir .libs 2>/dev/null
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8655 $as_echo "$lt_cv_objdir" >&6; }
8656 objdir=$lt_cv_objdir
8662 cat >>confdefs.h <<_ACEOF
8663 #define LT_OBJDIR "$lt_cv_objdir/"
8671 # AIX sometimes has problems with the GCC collect2 program. For some
8672 # reason, if we set the COLLECT_NAMES environment variable, the problems
8673 # vanish in a puff of smoke.
8674 if test "X${COLLECT_NAMES+set}" != Xset; then
8676 export COLLECT_NAMES
8683 can_build_shared=yes
8685 # All known linkers require a `.a' archive for static linking (except MSVC,
8686 # which needs '.lib').
8689 with_gnu_ld="$lt_cv_prog_gnu_ld"
8692 old_CFLAGS="$CFLAGS"
8694 # Set sane defaults for various variables
8695 test -z "$CC" && CC=cc
8696 test -z "$LTCC" && LTCC=$CC
8697 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8698 test -z "$LD" && LD=ld
8699 test -z "$ac_objext" && ac_objext=o
8701 for cc_temp in $compiler""; do
8703 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8704 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8709 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8712 # Only perform the check for file, if the check method requires it
8713 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8714 case $deplibs_check_method in
8716 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8718 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8719 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8720 $as_echo_n "(cached) " >&6
8724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8727 lt_save_MAGIC_CMD="$MAGIC_CMD"
8728 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8729 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8730 for ac_dir in $ac_dummy; do
8732 test -z "$ac_dir" && ac_dir=.
8733 if test -f $ac_dir/${ac_tool_prefix}file; then
8734 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8735 if test -n "$file_magic_test_file"; then
8736 case $deplibs_check_method in
8738 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8739 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8740 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8741 $EGREP "$file_magic_regex" > /dev/null; then
8746 *** Warning: the command libtool uses to detect shared libraries,
8747 *** $file_magic_cmd, produces output that libtool cannot recognize.
8748 *** The result is that libtool may fail to recognize shared libraries
8749 *** as such. This will affect the creation of libtool libraries that
8750 *** depend on shared libraries, but programs linked with such libtool
8751 *** libraries will work regardless of this problem. Nevertheless, you
8752 *** may want to report the problem to your system manager and/or to
8753 *** bug-libtool@gnu.org
8763 MAGIC_CMD="$lt_save_MAGIC_CMD"
8768 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8769 if test -n "$MAGIC_CMD"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8771 $as_echo "$MAGIC_CMD" >&6; }
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8781 if test -z "$lt_cv_path_MAGIC_CMD"; then
8782 if test -n "$ac_tool_prefix"; then
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8784 $as_echo_n "checking for file... " >&6; }
8785 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8786 $as_echo_n "(cached) " >&6
8790 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8793 lt_save_MAGIC_CMD="$MAGIC_CMD"
8794 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8795 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8796 for ac_dir in $ac_dummy; do
8798 test -z "$ac_dir" && ac_dir=.
8799 if test -f $ac_dir/file; then
8800 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8801 if test -n "$file_magic_test_file"; then
8802 case $deplibs_check_method in
8804 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8806 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8807 $EGREP "$file_magic_regex" > /dev/null; then
8812 *** Warning: the command libtool uses to detect shared libraries,
8813 *** $file_magic_cmd, produces output that libtool cannot recognize.
8814 *** The result is that libtool may fail to recognize shared libraries
8815 *** as such. This will affect the creation of libtool libraries that
8816 *** depend on shared libraries, but programs linked with such libtool
8817 *** libraries will work regardless of this problem. Nevertheless, you
8818 *** may want to report the problem to your system manager and/or to
8819 *** bug-libtool@gnu.org
8829 MAGIC_CMD="$lt_save_MAGIC_CMD"
8834 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8835 if test -n "$MAGIC_CMD"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8837 $as_echo "$MAGIC_CMD" >&6; }
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8853 # Use C for the default configuration in the libtool script
8857 ac_cpp='$CPP $CPPFLAGS'
8858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8863 # Source file extension for C test sources.
8866 # Object file extension for compiled C test sources.
8870 # Code to be used in simple compile tests
8871 lt_simple_compile_test_code="int some_variable = 0;"
8873 # Code to be used in simple link tests
8874 lt_simple_link_test_code='int main(){return(0);}'
8882 # If no C compiler was specified, use CC.
8885 # If no C compiler flags were specified, use CFLAGS.
8886 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8888 # Allow CC to be a program name with arguments.
8891 # Save the default compiler, since it gets overwritten when the other
8892 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8893 compiler_DEFAULT=$CC
8895 # save warnings/boilerplate of simple test code
8896 ac_outfile=conftest.$ac_objext
8897 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8898 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8899 _lt_compiler_boilerplate=`cat conftest.err`
8902 ac_outfile=conftest.$ac_objext
8903 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8904 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8905 _lt_linker_boilerplate=`cat conftest.err`
8910 ## There is no encapsulation within the following macros, do not change
8911 ## the running order or otherwise move them around unless you know exactly
8912 ## what you are doing...
8913 if test -n "$compiler"; then
8915 lt_prog_compiler_no_builtin_flag=
8917 if test "$GCC" = yes; then
8918 case $cc_basename in
8920 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8922 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8926 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8927 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8928 $as_echo_n "(cached) " >&6
8930 lt_cv_prog_compiler_rtti_exceptions=no
8931 ac_outfile=conftest.$ac_objext
8932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8933 lt_compiler_flag="-fno-rtti -fno-exceptions"
8934 # Insert the option either (1) after the last *FLAGS variable, or
8935 # (2) before a word containing "conftest.", or (3) at the end.
8936 # Note that $ac_compile itself does not contain backslashes and begins
8937 # with a dollar sign (not a hyphen), so the echo should work correctly.
8938 # The option is referenced via a variable to avoid confusing sed.
8939 lt_compile=`echo "$ac_compile" | $SED \
8940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8942 -e 's:$: $lt_compiler_flag:'`
8943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8944 (eval "$lt_compile" 2>conftest.err)
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 if (exit $ac_status) && test -s "$ac_outfile"; then
8949 # The compiler can only warn and ignore the option if not recognized
8950 # So say no if there are warnings other than the usual output.
8951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8953 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8954 lt_cv_prog_compiler_rtti_exceptions=yes
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8961 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8963 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8964 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8976 lt_prog_compiler_wl=
8977 lt_prog_compiler_pic=
8978 lt_prog_compiler_static=
8981 if test "$GCC" = yes; then
8982 lt_prog_compiler_wl='-Wl,'
8983 lt_prog_compiler_static='-static'
8987 # All AIX code is PIC.
8988 if test "$host_cpu" = ia64; then
8989 # AIX 5 now supports IA64 processor
8990 lt_prog_compiler_static='-Bstatic'
8997 # see comment about AmigaOS4 .so support
8998 lt_prog_compiler_pic='-fPIC'
9001 # FIXME: we need at least 68020 code to build shared libraries, but
9002 # adding the `-m68020' flag to GCC prevents building anything better,
9004 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9009 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9010 # PIC is the default for these OSes.
9013 mingw* | cygwin* | pw32* | os2* | cegcc*)
9014 # This hack is so that the source file can tell whether it is being
9015 # built for inclusion in a dll (and should export symbols for example).
9016 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9017 # (--disable-auto-import) libraries
9018 lt_prog_compiler_pic='-DDLL_EXPORT'
9021 darwin* | rhapsody*)
9022 # PIC is the default on this platform
9023 # Common symbols not allowed in MH_DYLIB files
9024 lt_prog_compiler_pic='-fno-common'
9028 # PIC is the default for Haiku.
9029 # The "-static" flag exists, but is broken.
9030 lt_prog_compiler_static=
9034 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9035 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9036 # sets the default TLS model and affects inlining.
9042 lt_prog_compiler_pic='-fPIC'
9048 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9049 # Instead, we relocate shared libraries at runtime.
9053 # Just because we use GCC doesn't mean we suddenly get shared libraries
9054 # on systems that don't support them.
9055 lt_prog_compiler_can_build_shared=no
9060 # QNX uses GNU C++, but need to define -shared option too, otherwise
9062 lt_prog_compiler_pic='-fPIC -shared'
9066 if test -d /usr/nec; then
9067 lt_prog_compiler_pic=-Kconform_pic
9072 lt_prog_compiler_pic='-fPIC'
9076 case $cc_basename in
9077 nvcc*) # Cuda Compiler Driver 2.2
9078 lt_prog_compiler_wl='-Xlinker '
9079 lt_prog_compiler_pic='-Xcompiler -fPIC'
9083 # PORTME Check for flag to pass linker flags through the system compiler.
9086 lt_prog_compiler_wl='-Wl,'
9087 if test "$host_cpu" = ia64; then
9088 # AIX 5 now supports IA64 processor
9089 lt_prog_compiler_static='-Bstatic'
9091 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9095 mingw* | cygwin* | pw32* | os2* | cegcc*)
9096 # This hack is so that the source file can tell whether it is being
9097 # built for inclusion in a dll (and should export symbols for example).
9098 lt_prog_compiler_pic='-DDLL_EXPORT'
9101 hpux9* | hpux10* | hpux11*)
9102 lt_prog_compiler_wl='-Wl,'
9103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9110 lt_prog_compiler_pic='+Z'
9113 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9114 lt_prog_compiler_static='${wl}-a ${wl}archive'
9117 irix5* | irix6* | nonstopux*)
9118 lt_prog_compiler_wl='-Wl,'
9119 # PIC (with -KPIC) is the default.
9120 lt_prog_compiler_static='-non_shared'
9123 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9124 case $cc_basename in
9125 # old Intel for x86_64 which still supported -KPIC.
9127 lt_prog_compiler_wl='-Wl,'
9128 lt_prog_compiler_pic='-KPIC'
9129 lt_prog_compiler_static='-static'
9131 # icc used to be incompatible with GCC.
9132 # ICC 10 doesn't accept -KPIC any more.
9134 lt_prog_compiler_wl='-Wl,'
9135 lt_prog_compiler_pic='-fPIC'
9136 lt_prog_compiler_static='-static'
9138 # Lahey Fortran 8.1.
9140 lt_prog_compiler_wl='-Wl,'
9141 lt_prog_compiler_pic='--shared'
9142 lt_prog_compiler_static='--static'
9145 # NAG Fortran compiler
9146 lt_prog_compiler_wl='-Wl,-Wl,,'
9147 lt_prog_compiler_pic='-PIC'
9148 lt_prog_compiler_static='-Bstatic'
9150 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9151 # Portland Group compilers (*not* the Pentium gcc compiler,
9152 # which looks to be a dead project)
9153 lt_prog_compiler_wl='-Wl,'
9154 lt_prog_compiler_pic='-fpic'
9155 lt_prog_compiler_static='-Bstatic'
9158 lt_prog_compiler_wl='-Wl,'
9159 # All Alpha code is PIC.
9160 lt_prog_compiler_static='-non_shared'
9162 xl* | bgxl* | bgf* | mpixl*)
9163 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9164 lt_prog_compiler_wl='-Wl,'
9165 lt_prog_compiler_pic='-qpic'
9166 lt_prog_compiler_static='-qstaticlink'
9169 case `$CC -V 2>&1 | sed 5q` in
9170 *Sun\ F* | *Sun*Fortran*)
9171 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9172 lt_prog_compiler_pic='-KPIC'
9173 lt_prog_compiler_static='-Bstatic'
9174 lt_prog_compiler_wl=''
9178 lt_prog_compiler_pic='-KPIC'
9179 lt_prog_compiler_static='-Bstatic'
9180 lt_prog_compiler_wl='-Wl,'
9188 lt_prog_compiler_pic='-KPIC'
9189 lt_prog_compiler_static='-Bstatic'
9193 # QNX uses GNU C++, but need to define -shared option too, otherwise
9195 lt_prog_compiler_pic='-fPIC -shared'
9198 osf3* | osf4* | osf5*)
9199 lt_prog_compiler_wl='-Wl,'
9200 # All OSF/1 code is PIC.
9201 lt_prog_compiler_static='-non_shared'
9205 lt_prog_compiler_static='-non_shared'
9209 lt_prog_compiler_pic='-KPIC'
9210 lt_prog_compiler_static='-Bstatic'
9211 case $cc_basename in
9212 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9213 lt_prog_compiler_wl='-Qoption ld ';;
9215 lt_prog_compiler_wl='-Wl,';;
9220 lt_prog_compiler_wl='-Qoption ld '
9221 lt_prog_compiler_pic='-PIC'
9222 lt_prog_compiler_static='-Bstatic'
9225 sysv4 | sysv4.2uw2* | sysv4.3*)
9226 lt_prog_compiler_wl='-Wl,'
9227 lt_prog_compiler_pic='-KPIC'
9228 lt_prog_compiler_static='-Bstatic'
9232 if test -d /usr/nec ;then
9233 lt_prog_compiler_pic='-Kconform_pic'
9234 lt_prog_compiler_static='-Bstatic'
9238 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_pic='-KPIC'
9241 lt_prog_compiler_static='-Bstatic'
9245 lt_prog_compiler_wl='-Wl,'
9246 lt_prog_compiler_can_build_shared=no
9250 lt_prog_compiler_pic='-pic'
9251 lt_prog_compiler_static='-Bstatic'
9255 lt_prog_compiler_can_build_shared=no
9261 # For platforms which do not support PIC, -DPIC is meaningless:
9263 lt_prog_compiler_pic=
9266 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9271 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9272 if ${lt_cv_prog_compiler_pic+:} false; then :
9273 $as_echo_n "(cached) " >&6
9275 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9278 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9279 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9282 # Check to make sure the PIC flag actually works.
9284 if test -n "$lt_prog_compiler_pic"; then
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9286 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9287 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9288 $as_echo_n "(cached) " >&6
9290 lt_cv_prog_compiler_pic_works=no
9291 ac_outfile=conftest.$ac_objext
9292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9293 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9294 # Insert the option either (1) after the last *FLAGS variable, or
9295 # (2) before a word containing "conftest.", or (3) at the end.
9296 # Note that $ac_compile itself does not contain backslashes and begins
9297 # with a dollar sign (not a hyphen), so the echo should work correctly.
9298 # The option is referenced via a variable to avoid confusing sed.
9299 lt_compile=`echo "$ac_compile" | $SED \
9300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9302 -e 's:$: $lt_compiler_flag:'`
9303 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9304 (eval "$lt_compile" 2>conftest.err)
9306 cat conftest.err >&5
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 if (exit $ac_status) && test -s "$ac_outfile"; then
9309 # The compiler can only warn and ignore the option if not recognized
9310 # So say no if there are warnings other than the usual output.
9311 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9314 lt_cv_prog_compiler_pic_works=yes
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9321 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9323 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9324 case $lt_prog_compiler_pic in
9326 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9329 lt_prog_compiler_pic=
9330 lt_prog_compiler_can_build_shared=no
9346 # Check to make sure the static flag actually works.
9348 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9350 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9351 if ${lt_cv_prog_compiler_static_works+:} false; then :
9352 $as_echo_n "(cached) " >&6
9354 lt_cv_prog_compiler_static_works=no
9355 save_LDFLAGS="$LDFLAGS"
9356 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9357 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9358 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9359 # The linker can only warn and ignore the option if not recognized
9360 # So say no if there are warnings
9361 if test -s conftest.err; then
9362 # Append any errors to the config.log.
9363 cat conftest.err 1>&5
9364 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9365 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9366 if diff conftest.exp conftest.er2 >/dev/null; then
9367 lt_cv_prog_compiler_static_works=yes
9370 lt_cv_prog_compiler_static_works=yes
9374 LDFLAGS="$save_LDFLAGS"
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9378 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9380 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9383 lt_prog_compiler_static=
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9393 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9394 if ${lt_cv_prog_compiler_c_o+:} false; then :
9395 $as_echo_n "(cached) " >&6
9397 lt_cv_prog_compiler_c_o=no
9398 $RM -r conftest 2>/dev/null
9402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9404 lt_compiler_flag="-o out/conftest2.$ac_objext"
9405 # Insert the option either (1) after the last *FLAGS variable, or
9406 # (2) before a word containing "conftest.", or (3) at the end.
9407 # Note that $ac_compile itself does not contain backslashes and begins
9408 # with a dollar sign (not a hyphen), so the echo should work correctly.
9409 lt_compile=`echo "$ac_compile" | $SED \
9410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9412 -e 's:$: $lt_compiler_flag:'`
9413 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9414 (eval "$lt_compile" 2>out/conftest.err)
9416 cat out/conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9420 # The compiler can only warn and ignore the option if not recognized
9421 # So say no if there are warnings
9422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9423 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9424 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9425 lt_cv_prog_compiler_c_o=yes
9430 # SGI C++ compiler will create directory out/ii_files/ for
9431 # template instantiation
9432 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9433 $RM out/* && rmdir out
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9440 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9448 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9449 if ${lt_cv_prog_compiler_c_o+:} false; then :
9450 $as_echo_n "(cached) " >&6
9452 lt_cv_prog_compiler_c_o=no
9453 $RM -r conftest 2>/dev/null
9457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9459 lt_compiler_flag="-o out/conftest2.$ac_objext"
9460 # Insert the option either (1) after the last *FLAGS variable, or
9461 # (2) before a word containing "conftest.", or (3) at the end.
9462 # Note that $ac_compile itself does not contain backslashes and begins
9463 # with a dollar sign (not a hyphen), so the echo should work correctly.
9464 lt_compile=`echo "$ac_compile" | $SED \
9465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9467 -e 's:$: $lt_compiler_flag:'`
9468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9469 (eval "$lt_compile" 2>out/conftest.err)
9471 cat out/conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9475 # The compiler can only warn and ignore the option if not recognized
9476 # So say no if there are warnings
9477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9478 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9479 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9480 lt_cv_prog_compiler_c_o=yes
9485 # SGI C++ compiler will create directory out/ii_files/ for
9486 # template instantiation
9487 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9488 $RM out/* && rmdir out
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9495 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9500 hard_links="nottested"
9501 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9502 # do not overwrite the value of need_locks provided by the user
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9504 $as_echo_n "checking if we can lock with hard links... " >&6; }
9507 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9509 ln conftest.a conftest.b 2>&5 || hard_links=no
9510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9512 $as_echo "$hard_links" >&6; }
9513 if test "$hard_links" = no; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9515 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9528 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9531 allow_undefined_flag=
9532 always_export_symbols=no
9534 archive_expsym_cmds=
9535 compiler_needs_object=no
9536 enable_shared_with_static_runtimes=no
9537 export_dynamic_flag_spec=
9538 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9539 hardcode_automatic=no
9541 hardcode_direct_absolute=no
9542 hardcode_libdir_flag_spec=
9543 hardcode_libdir_flag_spec_ld=
9544 hardcode_libdir_separator=
9546 hardcode_shlibpath_var=unsupported
9548 link_all_deplibs=unknown
9551 old_archive_from_new_cmds=
9552 old_archive_from_expsyms_cmds=
9553 thread_safe_flag_spec=
9554 whole_archive_flag_spec=
9555 # include_expsyms should be a list of space-separated symbols to be *always*
9556 # included in the symbol list
9558 # exclude_expsyms can be an extended regexp of symbols to exclude
9559 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9560 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9561 # as well as any symbol that contains `d'.
9562 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9563 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9564 # platforms (ab)use it in PIC code, but their linkers get confused if
9565 # the symbol is explicitly referenced. Since portable code cannot
9566 # rely on this symbol name, it's probably fine to never include it in
9567 # preloaded symbol tables.
9568 # Exclude shared library initialization/finalization symbols.
9569 extract_expsyms_cmds=
9572 cygwin* | mingw* | pw32* | cegcc*)
9573 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9574 # When not using gcc, we currently assume that we are using
9575 # Microsoft Visual C++.
9576 if test "$GCC" != yes; then
9581 # we just hope/assume this is gcc and not c89 (= MSVC++)
9587 linux* | k*bsd*-gnu | gnu*)
9594 # On some targets, GNU ld is compatible enough with the native linker
9595 # that we're better off using the native interface for both.
9596 lt_use_gnu_ld_interface=no
9597 if test "$with_gnu_ld" = yes; then
9600 # The AIX port of GNU ld has always aspired to compatibility
9601 # with the native linker. However, as the warning in the GNU ld
9602 # block says, versions before 2.19.5* couldn't really create working
9603 # shared libraries, regardless of the interface used.
9604 case `$LD -v 2>&1` in
9605 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9606 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9607 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9609 lt_use_gnu_ld_interface=yes
9614 lt_use_gnu_ld_interface=yes
9619 if test "$lt_use_gnu_ld_interface" = yes; then
9620 # If archive_cmds runs LD, not CC, wlarc should be empty
9623 # Set some defaults for GNU ld with shared library support. These
9624 # are reset later if shared libraries are not supported. Putting them
9625 # here allows them to be overridden if necessary.
9626 runpath_var=LD_RUN_PATH
9627 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628 export_dynamic_flag_spec='${wl}--export-dynamic'
9629 # ancient GNU ld didn't support --whole-archive et. al.
9630 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9631 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9633 whole_archive_flag_spec=
9635 supports_anon_versioning=no
9636 case `$LD -v 2>&1` in
9637 *GNU\ gold*) supports_anon_versioning=yes ;;
9638 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9639 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9640 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9641 *\ 2.11.*) ;; # other 2.11 versions
9642 *) supports_anon_versioning=yes ;;
9645 # See if GNU ld supports shared libraries.
9648 # On AIX/PPC, the GNU linker is very broken
9649 if test "$host_cpu" != ia64; then
9653 *** Warning: the GNU linker, at least up to release 2.19, is reported
9654 *** to be unable to reliably create shared libraries on AIX.
9655 *** Therefore, libtool is disabling shared libraries support. If you
9656 *** really care for shared libraries, you may want to install binutils
9657 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9658 *** You will then need to restart the configuration process.
9667 # see comment about AmigaOS4 .so support
9668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669 archive_expsym_cmds=''
9672 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)'
9673 hardcode_libdir_flag_spec='-L$libdir'
9674 hardcode_minus_L=yes
9680 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9681 allow_undefined_flag=unsupported
9682 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9683 # support --undefined. This deserves some investigation. FIXME
9684 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9690 cygwin* | mingw* | pw32* | cegcc*)
9691 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9692 # as there is no search path for DLLs.
9693 hardcode_libdir_flag_spec='-L$libdir'
9694 export_dynamic_flag_spec='${wl}--export-all-symbols'
9695 allow_undefined_flag=unsupported
9696 always_export_symbols=no
9697 enable_shared_with_static_runtimes=yes
9698 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'
9699 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9701 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9703 # If the export-symbols file already is a .def file (1st line
9704 # is EXPORTS), use it as is; otherwise, prepend...
9705 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9706 cp $export_symbols $output_objdir/$soname.def;
9708 echo EXPORTS > $output_objdir/$soname.def;
9709 cat $export_symbols >> $output_objdir/$soname.def;
9711 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9719 link_all_deplibs=yes
9724 hardcode_shlibpath_var=no
9725 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9726 export_dynamic_flag_spec='${wl}-E'
9727 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9728 # Instead, shared libraries are loaded at an image base (0x10000000 by
9729 # default) and relocated if they conflict, which is a slow very memory
9730 # consuming and fragmenting process. To avoid this, we pick a random,
9731 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9732 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9733 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9734 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'
9737 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9739 if test "$host_os" = linux-dietlibc; then
9740 case $cc_basename in
9741 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9744 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9745 && test "$tmp_diet" = no
9747 tmp_addflag=' $pic_flag'
9748 tmp_sharedflag='-shared'
9749 case $cc_basename,$host_cpu in
9750 pgcc*) # Portland Group C compiler
9751 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'
9752 tmp_addflag=' $pic_flag'
9754 pgf77* | pgf90* | pgf95* | pgfortran*)
9755 # Portland Group f77 and f90 compilers
9756 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'
9757 tmp_addflag=' $pic_flag -Mnomain' ;;
9758 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9759 tmp_addflag=' -i_dynamic' ;;
9760 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9761 tmp_addflag=' -i_dynamic -nofor_main' ;;
9762 ifc* | ifort*) # Intel Fortran compiler
9763 tmp_addflag=' -nofor_main' ;;
9764 lf95*) # Lahey Fortran 8.1
9765 whole_archive_flag_spec=
9766 tmp_sharedflag='--shared' ;;
9767 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9768 tmp_sharedflag='-qmkshrobj'
9770 nvcc*) # Cuda Compiler Driver 2.2
9771 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'
9772 compiler_needs_object=yes
9775 case `$CC -V 2>&1 | sed 5q` in
9776 *Sun\ C*) # Sun C 5.9
9777 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'
9778 compiler_needs_object=yes
9779 tmp_sharedflag='-G' ;;
9780 *Sun\ F*) # Sun Fortran 8.3
9781 tmp_sharedflag='-G' ;;
9783 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785 if test "x$supports_anon_versioning" = xyes; then
9786 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9788 echo "local: *; };" >> $output_objdir/$libname.ver~
9789 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9792 case $cc_basename in
9793 xlf* | bgf* | bgxlf* | mpixlf*)
9794 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9795 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9796 hardcode_libdir_flag_spec=
9797 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9798 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9799 if test "x$supports_anon_versioning" = xyes; then
9800 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9802 echo "local: *; };" >> $output_objdir/$libname.ver~
9803 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9812 netbsd* | netbsdelf*-gnu)
9813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9814 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9817 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9818 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9823 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9827 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9828 *** create shared libraries on Solaris systems. Therefore, libtool
9829 *** is disabling shared libraries support. We urge you to upgrade GNU
9830 *** binutils to release 2.9.1 or newer. Another option is to modify
9831 *** your PATH or compiler configuration so that the native linker is
9832 *** used, and then restart.
9835 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9836 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9844 case `$LD -v 2>&1` in
9845 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9849 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9850 *** reliably create shared libraries on SCO systems. Therefore, libtool
9851 *** is disabling shared libraries support. We urge you to upgrade GNU
9852 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9853 *** your PATH or compiler configuration so that the native linker is
9854 *** used, and then restart.
9859 # For security reasons, it is highly recommended that you always
9860 # use absolute paths for naming shared libraries, and exclude the
9861 # DT_RUNPATH tag from executables and libraries. But doing so
9862 # requires that you compile everything twice, which is a pain.
9863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9866 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9875 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9878 hardcode_shlibpath_var=no
9882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9883 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9884 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9891 if test "$ld_shlibs" = no; then
9893 hardcode_libdir_flag_spec=
9894 export_dynamic_flag_spec=
9895 whole_archive_flag_spec=
9898 # PORTME fill in a description of your system's linker (not GNU ld)
9901 allow_undefined_flag=unsupported
9902 always_export_symbols=yes
9903 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'
9904 # Note: this linker hardcodes the directories in LIBPATH if there
9905 # are no directories specified by -L.
9906 hardcode_minus_L=yes
9907 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9908 # Neither direct hardcoding nor static linking is supported with a
9910 hardcode_direct=unsupported
9915 if test "$host_cpu" = ia64; then
9916 # On IA64, the linker does run time linking by default, so we don't
9917 # have to do anything special.
9918 aix_use_runtimelinking=no
9919 exp_sym_flag='-Bexport'
9922 # If we're using GNU nm, then we don't want the "-C" option.
9923 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9924 # Also, AIX nm treats weak defined symbols like other global
9925 # defined symbols, whereas GNU nm marks them as "W".
9926 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9927 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'
9929 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'
9931 aix_use_runtimelinking=no
9933 # Test if we are trying to use run time linking or normal
9934 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9935 # need to do runtime linking.
9936 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9937 for ld_flag in $LDFLAGS; do
9938 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9939 aix_use_runtimelinking=yes
9946 exp_sym_flag='-bexport'
9947 no_entry_flag='-bnoentry'
9950 # When large executables or shared objects are built, AIX ld can
9951 # have problems creating the table of contents. If linking a library
9952 # or program results in "error TOC overflow" add -mminimal-toc to
9953 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9954 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9958 hardcode_direct_absolute=yes
9959 hardcode_libdir_separator=':'
9960 link_all_deplibs=yes
9961 file_list_spec='${wl}-f,'
9963 if test "$GCC" = yes; then
9964 case $host_os in aix4.[012]|aix4.[012].*)
9965 # We only want to do this on AIX 4.2 and lower, the check
9966 # below for broken collect2 doesn't work under 4.3+
9967 collect2name=`${CC} -print-prog-name=collect2`
9968 if test -f "$collect2name" &&
9969 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9971 # We have reworked collect2
9974 # We have old collect2
9975 hardcode_direct=unsupported
9976 # It fails to find uninstalled libraries when the uninstalled
9977 # path is not listed in the libpath. Setting hardcode_minus_L
9978 # to unsupported forces relinking
9979 hardcode_minus_L=yes
9980 hardcode_libdir_flag_spec='-L$libdir'
9981 hardcode_libdir_separator=
9985 shared_flag='-shared'
9986 if test "$aix_use_runtimelinking" = yes; then
9987 shared_flag="$shared_flag "'${wl}-G'
9992 if test "$host_cpu" = ia64; then
9993 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9994 # chokes on -Wl,-G. The following line is correct:
9997 if test "$aix_use_runtimelinking" = yes; then
9998 shared_flag='${wl}-G'
10000 shared_flag='${wl}-bM:SRE'
10005 export_dynamic_flag_spec='${wl}-bexpall'
10006 # It seems that -bexpall does not export symbols beginning with
10007 # underscore (_), so it is better to generate a list of symbols to export.
10008 always_export_symbols=yes
10009 if test "$aix_use_runtimelinking" = yes; then
10010 # Warning - without using the other runtime loading flags (-brtl),
10011 # -berok will link without error, but may produce a broken library.
10012 allow_undefined_flag='-berok'
10013 # Determine the default libpath from the value encoded in an
10014 # empty executable.
10015 if test "${lt_cv_aix_libpath+set}" = set; then
10016 aix_libpath=$lt_cv_aix_libpath
10018 if ${lt_cv_aix_libpath_+:} false; then :
10019 $as_echo_n "(cached) " >&6
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10032 if ac_fn_c_try_link "$LINENO"; then :
10034 lt_aix_libpath_sed='
10035 /Import File Strings/,/^$/ {
10037 s/^0 *\([^ ]*\) *$/\1/
10041 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10042 # Check for a 64-bit object if we didn't find anything.
10043 if test -z "$lt_cv_aix_libpath_"; then
10044 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10047 rm -f core conftest.err conftest.$ac_objext \
10048 conftest$ac_exeext conftest.$ac_ext
10049 if test -z "$lt_cv_aix_libpath_"; then
10050 lt_cv_aix_libpath_="/usr/lib:/lib"
10055 aix_libpath=$lt_cv_aix_libpath_
10058 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10059 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"
10061 if test "$host_cpu" = ia64; then
10062 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10063 allow_undefined_flag="-z nodefs"
10064 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"
10066 # Determine the default libpath from the value encoded in an
10067 # empty executable.
10068 if test "${lt_cv_aix_libpath+set}" = set; then
10069 aix_libpath=$lt_cv_aix_libpath
10071 if ${lt_cv_aix_libpath_+:} false; then :
10072 $as_echo_n "(cached) " >&6
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10085 if ac_fn_c_try_link "$LINENO"; then :
10087 lt_aix_libpath_sed='
10088 /Import File Strings/,/^$/ {
10090 s/^0 *\([^ ]*\) *$/\1/
10094 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10095 # Check for a 64-bit object if we didn't find anything.
10096 if test -z "$lt_cv_aix_libpath_"; then
10097 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10100 rm -f core conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10102 if test -z "$lt_cv_aix_libpath_"; then
10103 lt_cv_aix_libpath_="/usr/lib:/lib"
10108 aix_libpath=$lt_cv_aix_libpath_
10111 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10112 # Warning - without using the other run time loading flags,
10113 # -berok will link without error, but may produce a broken library.
10114 no_undefined_flag=' ${wl}-bernotok'
10115 allow_undefined_flag=' ${wl}-berok'
10116 if test "$with_gnu_ld" = yes; then
10117 # We only use this code for GNU lds that support --whole-archive.
10118 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10120 # Exported symbols can be pulled into shared objects from archives
10121 whole_archive_flag_spec='$convenience'
10123 archive_cmds_need_lc=yes
10124 # This is similar to how AIX traditionally builds its shared libraries.
10125 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'
10133 # see comment about AmigaOS4 .so support
10134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10135 archive_expsym_cmds=''
10138 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)'
10139 hardcode_libdir_flag_spec='-L$libdir'
10140 hardcode_minus_L=yes
10146 export_dynamic_flag_spec=-rdynamic
10149 cygwin* | mingw* | pw32* | cegcc*)
10150 # When not using gcc, we currently assume that we are using
10151 # Microsoft Visual C++.
10152 # hardcode_libdir_flag_spec is actually meaningless, as there is
10153 # no search path for DLLs.
10154 case $cc_basename in
10157 hardcode_libdir_flag_spec=' '
10158 allow_undefined_flag=unsupported
10159 always_export_symbols=yes
10161 # Tell ltmain to make .lib files, not .a files.
10163 # Tell ltmain to make .dll files, not .so files.
10165 # FIXME: Setting linknames here is a bad hack.
10166 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10167 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10168 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10170 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10172 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10174 # The linker will not automatically build a static lib if we build a DLL.
10175 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10176 enable_shared_with_static_runtimes=yes
10177 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10179 old_postinstall_cmds='chmod 644 $oldlib'
10180 postlink_cmds='lt_outputfile="@OUTPUT@"~
10181 lt_tool_outputfile="@TOOL_OUTPUT@"~
10182 case $lt_outputfile in
10185 lt_outputfile="$lt_outputfile.exe"
10186 lt_tool_outputfile="$lt_tool_outputfile.exe"
10189 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10190 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10191 $RM "$lt_outputfile.manifest";
10195 # Assume MSVC wrapper
10196 hardcode_libdir_flag_spec=' '
10197 allow_undefined_flag=unsupported
10198 # Tell ltmain to make .lib files, not .a files.
10200 # Tell ltmain to make .dll files, not .so files.
10202 # FIXME: Setting linknames here is a bad hack.
10203 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10204 # The linker will automatically build a .lib file if we build a DLL.
10205 old_archive_from_new_cmds='true'
10206 # FIXME: Should let the user specify the lib program.
10207 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10208 enable_shared_with_static_runtimes=yes
10213 darwin* | rhapsody*)
10216 archive_cmds_need_lc=no
10218 hardcode_automatic=yes
10219 hardcode_shlibpath_var=unsupported
10220 if test "$lt_cv_ld_force_load" = "yes"; then
10221 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\"`'
10223 whole_archive_flag_spec=''
10225 link_all_deplibs=yes
10226 allow_undefined_flag="$_lt_dar_allow_undefined"
10227 case $cc_basename in
10228 ifort*) _lt_dar_can_shared=yes ;;
10229 *) _lt_dar_can_shared=$GCC ;;
10231 if test "$_lt_dar_can_shared" = "yes"; then
10232 output_verbose_link_cmd=func_echo_all
10233 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10234 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10235 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}"
10236 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}"
10245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246 hardcode_libdir_flag_spec='-L$libdir'
10247 hardcode_shlibpath_var=no
10254 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10255 # support. Future versions do this automatically, but an explicit c++rt0.o
10256 # does not break anything, and helps significantly (at the cost of a little
10259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10260 hardcode_libdir_flag_spec='-R$libdir'
10261 hardcode_direct=yes
10262 hardcode_shlibpath_var=no
10265 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10268 hardcode_direct=yes
10269 hardcode_minus_L=yes
10270 hardcode_shlibpath_var=no
10273 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10274 freebsd* | dragonfly*)
10275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10276 hardcode_libdir_flag_spec='-R$libdir'
10277 hardcode_direct=yes
10278 hardcode_shlibpath_var=no
10282 if test "$GCC" = yes; then
10283 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'
10285 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'
10287 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10288 hardcode_libdir_separator=:
10289 hardcode_direct=yes
10291 # hardcode_minus_L: Not really in the search PATH,
10292 # but as the default location of the library.
10293 hardcode_minus_L=yes
10294 export_dynamic_flag_spec='${wl}-E'
10298 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10299 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10301 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10303 if test "$with_gnu_ld" = no; then
10304 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10305 hardcode_libdir_flag_spec_ld='+b $libdir'
10306 hardcode_libdir_separator=:
10307 hardcode_direct=yes
10308 hardcode_direct_absolute=yes
10309 export_dynamic_flag_spec='${wl}-E'
10310 # hardcode_minus_L: Not really in the search PATH,
10311 # but as the default location of the library.
10312 hardcode_minus_L=yes
10317 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10320 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10323 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10326 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10332 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10335 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10339 # Older versions of the 11.00 compiler do not understand -b yet
10340 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10342 $as_echo_n "checking if $CC understands -b... " >&6; }
10343 if ${lt_cv_prog_compiler__b+:} false; then :
10344 $as_echo_n "(cached) " >&6
10346 lt_cv_prog_compiler__b=no
10347 save_LDFLAGS="$LDFLAGS"
10348 LDFLAGS="$LDFLAGS -b"
10349 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10351 # The linker can only warn and ignore the option if not recognized
10352 # So say no if there are warnings
10353 if test -s conftest.err; then
10354 # Append any errors to the config.log.
10355 cat conftest.err 1>&5
10356 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10358 if diff conftest.exp conftest.er2 >/dev/null; then
10359 lt_cv_prog_compiler__b=yes
10362 lt_cv_prog_compiler__b=yes
10366 LDFLAGS="$save_LDFLAGS"
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10370 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10372 if test x"$lt_cv_prog_compiler__b" = xyes; then
10373 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10375 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10381 if test "$with_gnu_ld" = no; then
10382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10383 hardcode_libdir_separator=:
10388 hardcode_shlibpath_var=no
10391 hardcode_direct=yes
10392 hardcode_direct_absolute=yes
10393 export_dynamic_flag_spec='${wl}-E'
10395 # hardcode_minus_L: Not really in the search PATH,
10396 # but as the default location of the library.
10397 hardcode_minus_L=yes
10403 irix5* | irix6* | nonstopux*)
10404 if test "$GCC" = yes; then
10405 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'
10406 # Try to use the -exported_symbol ld option, if it does not
10407 # work, assume that -exports_file does not work either and
10408 # implicitly export all symbols.
10409 # This should be the same for all languages, so no per-tag cache variable.
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10411 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10412 if ${lt_cv_irix_exported_symbol+:} false; then :
10413 $as_echo_n "(cached) " >&6
10415 save_LDFLAGS="$LDFLAGS"
10416 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10419 int foo (void) { return 0; }
10421 if ac_fn_c_try_link "$LINENO"; then :
10422 lt_cv_irix_exported_symbol=yes
10424 lt_cv_irix_exported_symbol=no
10426 rm -f core conftest.err conftest.$ac_objext \
10427 conftest$ac_exeext conftest.$ac_ext
10428 LDFLAGS="$save_LDFLAGS"
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10431 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10432 if test "$lt_cv_irix_exported_symbol" = yes; then
10433 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'
10436 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'
10437 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'
10439 archive_cmds_need_lc='no'
10440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10441 hardcode_libdir_separator=:
10443 link_all_deplibs=yes
10446 netbsd* | netbsdelf*-gnu)
10447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10450 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10452 hardcode_libdir_flag_spec='-R$libdir'
10453 hardcode_direct=yes
10454 hardcode_shlibpath_var=no
10458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459 hardcode_direct=yes
10460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10461 hardcode_libdir_separator=:
10462 hardcode_shlibpath_var=no
10469 if test -f /usr/libexec/ld.so; then
10470 hardcode_direct=yes
10471 hardcode_shlibpath_var=no
10472 hardcode_direct_absolute=yes
10473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10474 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10475 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10476 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10477 export_dynamic_flag_spec='${wl}-E'
10480 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10481 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10482 hardcode_libdir_flag_spec='-R$libdir'
10485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10486 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10496 hardcode_libdir_flag_spec='-L$libdir'
10497 hardcode_minus_L=yes
10498 allow_undefined_flag=unsupported
10499 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'
10500 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10504 if test "$GCC" = yes; then
10505 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10506 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'
10508 allow_undefined_flag=' -expect_unresolved \*'
10509 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'
10511 archive_cmds_need_lc='no'
10512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10513 hardcode_libdir_separator=:
10516 osf4* | osf5*) # as osf3* with the addition of -msym flag
10517 if test "$GCC" = yes; then
10518 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10519 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'
10520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10522 allow_undefined_flag=' -expect_unresolved \*'
10523 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'
10524 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~
10525 $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'
10527 # Both c and cxx compiler support -rpath directly
10528 hardcode_libdir_flag_spec='-rpath $libdir'
10530 archive_cmds_need_lc='no'
10531 hardcode_libdir_separator=:
10535 no_undefined_flag=' -z defs'
10536 if test "$GCC" = yes; then
10538 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10539 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10540 $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'
10542 case `$CC -V 2>&1` in
10545 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10547 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10551 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10552 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10553 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10557 hardcode_libdir_flag_spec='-R$libdir'
10558 hardcode_shlibpath_var=no
10560 solaris2.[0-5] | solaris2.[0-5].*) ;;
10562 # The compiler driver will combine and reorder linker options,
10563 # but understands `-z linker_flag'. GCC discards it without `$wl',
10564 # but is careful enough not to reorder.
10565 # Supported since Solaris 2.6 (maybe 2.5.1?)
10566 if test "$GCC" = yes; then
10567 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10569 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10573 link_all_deplibs=yes
10577 if test "x$host_vendor" = xsequent; then
10578 # Use $CC to link under sequent, because it throws in some extra .o
10579 # files that make .init and .fini sections work.
10580 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10582 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10584 hardcode_libdir_flag_spec='-L$libdir'
10585 hardcode_direct=yes
10586 hardcode_minus_L=yes
10587 hardcode_shlibpath_var=no
10591 case $host_vendor in
10593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10594 hardcode_direct=yes # is this really true???
10597 ## LD is ld it makes a PLAMLIB
10598 ## CC just makes a GrossModule.
10599 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10600 reload_cmds='$CC -r -o $output$reload_objs'
10604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10605 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10608 runpath_var='LD_RUN_PATH'
10609 hardcode_shlibpath_var=no
10613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614 hardcode_shlibpath_var=no
10615 export_dynamic_flag_spec='-Bexport'
10619 if test -d /usr/nec; then
10620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10621 hardcode_shlibpath_var=no
10622 runpath_var=LD_RUN_PATH
10623 hardcode_runpath_var=yes
10628 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10629 no_undefined_flag='${wl}-z,text'
10630 archive_cmds_need_lc=no
10631 hardcode_shlibpath_var=no
10632 runpath_var='LD_RUN_PATH'
10634 if test "$GCC" = yes; then
10635 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10636 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10638 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10639 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 sysv5* | sco3.2v5* | sco5v6*)
10644 # Note: We can NOT use -z defs as we might desire, because we do not
10645 # link with -lc, and that would cause any symbols used from libc to
10646 # always be unresolved, which means just about no library would
10647 # ever link correctly. If we're not using GNU ld we use -z text
10648 # though, which does catch some bad symbols but isn't as heavy-handed
10650 no_undefined_flag='${wl}-z,text'
10651 allow_undefined_flag='${wl}-z,nodefs'
10652 archive_cmds_need_lc=no
10653 hardcode_shlibpath_var=no
10654 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10655 hardcode_libdir_separator=':'
10656 link_all_deplibs=yes
10657 export_dynamic_flag_spec='${wl}-Bexport'
10658 runpath_var='LD_RUN_PATH'
10660 if test "$GCC" = yes; then
10661 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10662 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10664 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10665 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10671 hardcode_libdir_flag_spec='-L$libdir'
10672 hardcode_shlibpath_var=no
10680 if test x$host_vendor = xsni; then
10682 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10683 export_dynamic_flag_spec='${wl}-Blargedynsym'
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10690 $as_echo "$ld_shlibs" >&6; }
10691 test "$ld_shlibs" = no && can_build_shared=no
10693 with_gnu_ld=$with_gnu_ld
10710 # Do we need to explicitly link libc?
10712 case "x$archive_cmds_need_lc" in
10714 # Assume -lc should be added
10715 archive_cmds_need_lc=yes
10717 if test "$enable_shared" = yes && test "$GCC" = yes; then
10718 case $archive_cmds in
10720 # FIXME: we may have to deal with multi-command sequences.
10723 # Test whether the compiler implicitly links with -lc since on some
10724 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10725 # to ld, don't add -lc before -lgcc.
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10727 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10728 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10729 $as_echo_n "(cached) " >&6
10732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10735 (eval $ac_compile) 2>&5
10737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10738 test $ac_status = 0; } 2>conftest.err; then
10741 libobjs=conftest.$ac_objext
10743 wl=$lt_prog_compiler_wl
10744 pic_flag=$lt_prog_compiler_pic
10750 lt_save_allow_undefined_flag=$allow_undefined_flag
10751 allow_undefined_flag=
10752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10753 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10756 test $ac_status = 0; }
10758 lt_cv_archive_cmds_need_lc=no
10760 lt_cv_archive_cmds_need_lc=yes
10762 allow_undefined_flag=$lt_save_allow_undefined_flag
10764 cat conftest.err 1>&5
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10770 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10771 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10935 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10937 if test "$GCC" = yes; then
10939 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10940 *) lt_awk_arg="/^libraries:/" ;;
10943 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10944 *) lt_sed_strip_eq="s,=/,/,g" ;;
10946 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10947 case $lt_search_path_spec in
10949 # if the path contains ";" then we assume it to be the separator
10950 # otherwise default to the standard path separator (i.e. ":") - it is
10951 # assumed that no part of a normal pathname contains ";" but that should
10952 # okay in the real world where ";" in dirpaths is itself problematic.
10953 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10956 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10959 # Ok, now we have the path, separated by spaces, we can step through it
10960 # and add multilib dir if necessary.
10961 lt_tmp_lt_search_path_spec=
10962 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10963 for lt_sys_path in $lt_search_path_spec; do
10964 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10965 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10967 test -d "$lt_sys_path" && \
10968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10971 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10972 BEGIN {RS=" "; FS="/|\n";} {
10975 for (lt_i = NF; lt_i > 0; lt_i--) {
10976 if ($lt_i != "" && $lt_i != ".") {
10977 if ($lt_i == "..") {
10980 if (lt_count == 0) {
10981 lt_foo="/" $lt_i lt_foo;
10988 if (lt_foo != "") { lt_freq[lt_foo]++; }
10989 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10991 # AWK program above erroneously prepends '/' to C:/dos/paths
10994 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10995 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10997 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11001 library_names_spec=
11002 libname_spec='lib$name'
11006 postuninstall_cmds=
11010 shlibpath_overrides_runpath=unknown
11012 dynamic_linker="$host_os ld.so"
11013 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11014 need_lib_prefix=unknown
11015 hardcode_into_libs=no
11017 # when you set need_version to no, make sure it does not cause -set_version
11018 # flags to be left without arguments
11019 need_version=unknown
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11025 shlibpath_var=LIBPATH
11027 # AIX 3 has no versioning support, so we append a major version to the name.
11028 soname_spec='${libname}${release}${shared_ext}$major'
11035 hardcode_into_libs=yes
11036 if test "$host_cpu" = ia64; then
11037 # AIX 5 supports IA64
11038 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11039 shlibpath_var=LD_LIBRARY_PATH
11041 # With GCC up to 2.95.x, collect2 would create an import file
11042 # for dependence libraries. The import file would start with
11043 # the line `#! .'. This would cause the generated library to
11044 # depend on `.', always an invalid library. This was fixed in
11045 # development snapshots of GCC prior to 3.0.
11047 aix4 | aix4.[01] | aix4.[01].*)
11048 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11050 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11053 can_build_shared=no
11057 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11058 # soname into executable. Probably we can add versioning support to
11059 # collect2, so additional links can be useful in future.
11060 if test "$aix_use_runtimelinking" = yes; then
11061 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11062 # instead of lib<name>.a to let people know that these are not
11063 # typical AIX shared libraries.
11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11066 # We preserve .a as extension for shared libraries through AIX4.2
11067 # and later when we are not doing run time linking.
11068 library_names_spec='${libname}${release}.a $libname.a'
11069 soname_spec='${libname}${release}${shared_ext}$major'
11071 shlibpath_var=LIBPATH
11078 # Since July 2007 AmigaOS4 officially supports .so libraries.
11079 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11083 library_names_spec='$libname.ixlibrary $libname.a'
11084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11085 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'
11091 library_names_spec='${libname}${shared_ext}'
11092 dynamic_linker="$host_os ld.so"
11093 shlibpath_var=LIBRARY_PATH
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100 soname_spec='${libname}${release}${shared_ext}$major'
11101 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11102 shlibpath_var=LD_LIBRARY_PATH
11103 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11104 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11105 # the default ld.so.conf also contains /usr/contrib/lib and
11106 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11107 # libtool to hard-code these into programs
11110 cygwin* | mingw* | pw32* | cegcc*)
11111 version_type=windows
11116 case $GCC,$cc_basename in
11119 library_names_spec='$libname.dll.a'
11120 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11121 postinstall_cmds='base_file=`basename \${file}`~
11122 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11123 dldir=$destdir/`dirname \$dlpath`~
11124 test -d \$dldir || mkdir -p \$dldir~
11125 $install_prog $dir/$dlname \$dldir/$dlname~
11126 chmod a+x \$dldir/$dlname~
11127 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11128 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11130 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11131 dlpath=$dir/\$dldll~
11133 shlibpath_overrides_runpath=yes
11137 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11138 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11140 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11143 # MinGW DLLs use traditional 'lib' prefix
11144 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11147 # pw32 DLLs use 'pw' prefix rather than 'lib'
11148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11151 dynamic_linker='Win32 ld.exe'
11156 libname_spec='$name'
11157 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11158 library_names_spec='${libname}.dll.lib'
11162 sys_lib_search_path_spec=
11165 for lt_path in $LIB
11168 # Let DOS variable expansion print the short 8.3 style file name.
11169 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11170 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11173 # Convert to MSYS style.
11174 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11177 # Convert to unix form, then to dos form, then back to unix form
11178 # but this time dos style (no spaces!) so that the unix form looks
11179 # like /cygdrive/c/PROGRA~1:/cygdr...
11180 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11181 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11182 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11185 sys_lib_search_path_spec="$LIB"
11186 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11187 # It is most probably a Windows format PATH.
11188 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11190 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11192 # FIXME: find the short name or the path components, as spaces are
11193 # common. (e.g. "Program Files" -> "PROGRA~1")
11197 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11198 postinstall_cmds='base_file=`basename \${file}`~
11199 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11200 dldir=$destdir/`dirname \$dlpath`~
11201 test -d \$dldir || mkdir -p \$dldir~
11202 $install_prog $dir/$dlname \$dldir/$dlname'
11203 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11204 dlpath=$dir/\$dldll~
11206 shlibpath_overrides_runpath=yes
11207 dynamic_linker='Win32 link.exe'
11211 # Assume MSVC wrapper
11212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11213 dynamic_linker='Win32 ld.exe'
11216 # FIXME: first we should search . and the directory the executable is in
11220 darwin* | rhapsody*)
11221 dynamic_linker="$host_os dyld"
11222 version_type=darwin
11225 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11226 soname_spec='${libname}${release}${major}$shared_ext'
11227 shlibpath_overrides_runpath=yes
11228 shlibpath_var=DYLD_LIBRARY_PATH
11229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11240 soname_spec='${libname}${release}${shared_ext}$major'
11241 shlibpath_var=LD_LIBRARY_PATH
11248 freebsd* | dragonfly*)
11249 # DragonFly does not have aout. When/if they implement a new
11250 # versioning mechanism, adjust this.
11251 if test -x /usr/bin/objformat; then
11252 objformat=`/usr/bin/objformat`
11255 freebsd[123]*) objformat=aout ;;
11256 *) objformat=elf ;;
11259 version_type=freebsd-$objformat
11260 case $version_type in
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11271 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=yes
11276 freebsd3.[01]* | freebsdelf3.[01]*)
11277 shlibpath_overrides_runpath=yes
11278 hardcode_into_libs=yes
11280 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11281 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11282 shlibpath_overrides_runpath=no
11283 hardcode_into_libs=yes
11285 *) # from 4.6 on, and DragonFly
11286 shlibpath_overrides_runpath=yes
11287 hardcode_into_libs=yes
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11297 soname_spec='${libname}${release}${shared_ext}$major'
11298 shlibpath_var=LD_LIBRARY_PATH
11299 shlibpath_overrides_runpath=no
11300 hardcode_into_libs=yes
11307 dynamic_linker="$host_os runtime_loader"
11308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11309 soname_spec='${libname}${release}${shared_ext}$major'
11310 shlibpath_var=LIBRARY_PATH
11311 shlibpath_overrides_runpath=yes
11312 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11313 hardcode_into_libs=yes
11316 hpux9* | hpux10* | hpux11*)
11317 # Give a soname corresponding to the major version so that dld.sl refuses to
11318 # link against other versions.
11325 hardcode_into_libs=yes
11326 dynamic_linker="$host_os dld.so"
11327 shlibpath_var=LD_LIBRARY_PATH
11328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 if test "X$HPUX_IA64_MODE" = X32; then
11332 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11334 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11340 hardcode_into_libs=yes
11341 dynamic_linker="$host_os dld.sl"
11342 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11343 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11351 dynamic_linker="$host_os dld.sl"
11352 shlibpath_var=SHLIB_PATH
11353 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11358 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11359 postinstall_cmds='chmod 555 $lib'
11360 # or fails outright, so override atomically:
11361 install_override_mode=555
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11369 soname_spec='${libname}${release}${shared_ext}$major'
11370 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11371 shlibpath_var=LD_LIBRARY_PATH
11372 shlibpath_overrides_runpath=no
11373 hardcode_into_libs=yes
11376 irix5* | irix6* | nonstopux*)
11378 nonstopux*) version_type=nonstopux ;;
11380 if test "$lt_cv_prog_gnu_ld" = yes; then
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11391 irix5* | nonstopux*)
11392 libsuff= shlibsuff=
11395 case $LD in # libtool.m4 will add one of these switches to LD
11396 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11397 libsuff= shlibsuff= libmagic=32-bit;;
11398 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11399 libsuff=32 shlibsuff=N32 libmagic=N32;;
11400 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11401 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11402 *) libsuff= shlibsuff= libmagic=never-match;;
11406 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11407 shlibpath_overrides_runpath=no
11408 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11409 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11410 hardcode_into_libs=yes
11413 # No shared lib support for Linux oldld, aout, or coff.
11414 linux*oldld* | linux*aout* | linux*coff*)
11418 # This must be Linux ELF.
11419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11424 soname_spec='${libname}${release}${shared_ext}$major'
11425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 shlibpath_overrides_runpath=no
11429 # Some binutils ld are patched to set DT_RUNPATH
11430 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11431 $as_echo_n "(cached) " >&6
11433 lt_cv_shlibpath_overrides_runpath=no
11434 save_LDFLAGS=$LDFLAGS
11435 save_libdir=$libdir
11436 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11437 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11449 if ac_fn_c_try_link "$LINENO"; then :
11450 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11451 lt_cv_shlibpath_overrides_runpath=yes
11454 rm -f core conftest.err conftest.$ac_objext \
11455 conftest$ac_exeext conftest.$ac_ext
11456 LDFLAGS=$save_LDFLAGS
11457 libdir=$save_libdir
11461 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11463 # This implies no fast_install, which is unacceptable.
11464 # Some rework will be needed to allow for fast_install
11465 # before this can be enabled.
11466 hardcode_into_libs=yes
11468 # Append ld.so.conf contents to the search path
11469 if test -f /etc/ld.so.conf; then
11470 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' ' '`
11471 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11474 # We used to test for /lib/ld.so.1 and disable shared libraries on
11475 # powerpc, because MkLinux only supported shared libraries with the
11476 # GNU dynamic linker. Since this was broken with cross compilers,
11477 # most powerpc-linux boxes support dynamic linking these days and
11478 # people can always --disable-shared, the test was removed, and we
11479 # assume the GNU/Linux dynamic linker is in use.
11480 dynamic_linker='GNU/Linux ld.so'
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 shlibpath_var=LD_LIBRARY_PATH
11490 shlibpath_overrides_runpath=no
11491 hardcode_into_libs=yes
11492 dynamic_linker='NetBSD ld.elf_so'
11499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11502 dynamic_linker='NetBSD (a.out) ld.so'
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 dynamic_linker='NetBSD ld.elf_so'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes
11510 hardcode_into_libs=yes
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 shlibpath_overrides_runpath=yes
11524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11525 soname_spec='${libname}${release}${shared_ext}$major'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=no
11528 hardcode_into_libs=yes
11529 dynamic_linker='ldqnx.so'
11534 sys_lib_dlsearch_path_spec="/usr/lib"
11536 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11538 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11539 *) need_version=no ;;
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11543 shlibpath_var=LD_LIBRARY_PATH
11544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11546 openbsd2.[89] | openbsd2.[89].*)
11547 shlibpath_overrides_runpath=no
11550 shlibpath_overrides_runpath=yes
11554 shlibpath_overrides_runpath=yes
11559 libname_spec='$name'
11562 library_names_spec='$libname${shared_ext} $libname.a'
11563 dynamic_linker='OS/2 ld.exe'
11564 shlibpath_var=LIBPATH
11567 osf3* | osf4* | osf5*)
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573 shlibpath_var=LD_LIBRARY_PATH
11574 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11575 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 shlibpath_overrides_runpath=yes
11590 hardcode_into_libs=yes
11591 # ldd complains unless libraries are executable
11592 postinstall_cmds='chmod +x $lib'
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11598 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 shlibpath_overrides_runpath=yes
11601 if test "$with_gnu_ld" = yes; then
11609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610 soname_spec='${libname}${release}${shared_ext}$major'
11611 shlibpath_var=LD_LIBRARY_PATH
11612 case $host_vendor in
11614 shlibpath_overrides_runpath=no
11616 runpath_var=LD_RUN_PATH
11624 shlibpath_overrides_runpath=no
11625 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11631 if test -d /usr/nec ;then
11633 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11634 soname_spec='$libname${shared_ext}.$major'
11635 shlibpath_var=LD_LIBRARY_PATH
11639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11640 version_type=freebsd-elf
11643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11644 soname_spec='${libname}${release}${shared_ext}$major'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 shlibpath_overrides_runpath=yes
11647 hardcode_into_libs=yes
11648 if test "$with_gnu_ld" = yes; then
11649 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11651 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11654 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11658 sys_lib_dlsearch_path_spec='/usr/lib'
11662 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11667 shlibpath_var=LD_LIBRARY_PATH
11668 shlibpath_overrides_runpath=no
11669 hardcode_into_libs=yes
11674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675 soname_spec='${libname}${release}${shared_ext}$major'
11676 shlibpath_var=LD_LIBRARY_PATH
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11684 $as_echo "$dynamic_linker" >&6; }
11685 test "$dynamic_linker" = no && can_build_shared=no
11687 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11688 if test "$GCC" = yes; then
11689 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11692 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11693 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11695 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11696 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11791 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11793 if test -n "$hardcode_libdir_flag_spec" ||
11794 test -n "$runpath_var" ||
11795 test "X$hardcode_automatic" = "Xyes" ; then
11797 # We can hardcode non-existent directories.
11798 if test "$hardcode_direct" != no &&
11799 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11800 # have to relink, otherwise we might link with an installed library
11801 # when we should be linking with a yet-to-be-installed one
11802 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11803 test "$hardcode_minus_L" != no; then
11804 # Linking always hardcodes the temporary library directory.
11805 hardcode_action=relink
11807 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11808 hardcode_action=immediate
11811 # We cannot hardcode anything, or else we can only hardcode existing
11813 hardcode_action=unsupported
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11816 $as_echo "$hardcode_action" >&6; }
11818 if test "$hardcode_action" = relink ||
11819 test "$inherit_rpath" = yes; then
11820 # Fast installation is not supported
11821 enable_fast_install=no
11822 elif test "$shlibpath_overrides_runpath" = yes ||
11823 test "$enable_shared" = no; then
11824 # Fast installation is not necessary
11825 enable_fast_install=needless
11833 if test "x$enable_dlopen" != xyes; then
11834 enable_dlopen=unknown
11835 enable_dlopen_self=unknown
11836 enable_dlopen_self_static=unknown
11843 lt_cv_dlopen="load_add_on"
11845 lt_cv_dlopen_self=yes
11848 mingw* | pw32* | cegcc*)
11849 lt_cv_dlopen="LoadLibrary"
11854 lt_cv_dlopen="dlopen"
11859 # if libdl is installed we need to link against it
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11861 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11862 if ${ac_cv_lib_dl_dlopen+:} false; then :
11863 $as_echo_n "(cached) " >&6
11865 ac_check_lib_save_LIBS=$LIBS
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11870 /* Override any GCC internal prototype to avoid an error.
11871 Use char because int might match the return type of a GCC
11872 builtin and then its argument prototype would still apply. */
11885 if ac_fn_c_try_link "$LINENO"; then :
11886 ac_cv_lib_dl_dlopen=yes
11888 ac_cv_lib_dl_dlopen=no
11890 rm -f core conftest.err conftest.$ac_objext \
11891 conftest$ac_exeext conftest.$ac_ext
11892 LIBS=$ac_check_lib_save_LIBS
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11895 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11896 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11900 lt_cv_dlopen="dyld"
11902 lt_cv_dlopen_self=yes
11909 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11910 if test "x$ac_cv_func_shl_load" = xyes; then :
11911 lt_cv_dlopen="shl_load"
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11914 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11915 if ${ac_cv_lib_dld_shl_load+:} false; then :
11916 $as_echo_n "(cached) " >&6
11918 ac_check_lib_save_LIBS=$LIBS
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11933 return shl_load ();
11938 if ac_fn_c_try_link "$LINENO"; then :
11939 ac_cv_lib_dld_shl_load=yes
11941 ac_cv_lib_dld_shl_load=no
11943 rm -f core conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11948 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11949 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11950 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11952 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11953 if test "x$ac_cv_func_dlopen" = xyes; then :
11954 lt_cv_dlopen="dlopen"
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11957 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11958 if ${ac_cv_lib_dl_dlopen+:} false; then :
11959 $as_echo_n "(cached) " >&6
11961 ac_check_lib_save_LIBS=$LIBS
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11966 /* Override any GCC internal prototype to avoid an error.
11967 Use char because int might match the return type of a GCC
11968 builtin and then its argument prototype would still apply. */
11981 if ac_fn_c_try_link "$LINENO"; then :
11982 ac_cv_lib_dl_dlopen=yes
11984 ac_cv_lib_dl_dlopen=no
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11991 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11992 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11993 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11996 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11997 if ${ac_cv_lib_svld_dlopen+:} false; then :
11998 $as_echo_n "(cached) " >&6
12000 ac_check_lib_save_LIBS=$LIBS
12001 LIBS="-lsvld $LIBS"
12002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h. */
12005 /* Override any GCC internal prototype to avoid an error.
12006 Use char because int might match the return type of a GCC
12007 builtin and then its argument prototype would still apply. */
12020 if ac_fn_c_try_link "$LINENO"; then :
12021 ac_cv_lib_svld_dlopen=yes
12023 ac_cv_lib_svld_dlopen=no
12025 rm -f core conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12027 LIBS=$ac_check_lib_save_LIBS
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12030 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12031 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12032 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12035 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12036 if ${ac_cv_lib_dld_dld_link+:} false; then :
12037 $as_echo_n "(cached) " >&6
12039 ac_check_lib_save_LIBS=$LIBS
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12054 return dld_link ();
12059 if ac_fn_c_try_link "$LINENO"; then :
12060 ac_cv_lib_dld_dld_link=yes
12062 ac_cv_lib_dld_dld_link=no
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066 LIBS=$ac_check_lib_save_LIBS
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12069 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12070 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12071 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12092 if test "x$lt_cv_dlopen" != xno; then
12098 case $lt_cv_dlopen in
12100 save_CPPFLAGS="$CPPFLAGS"
12101 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12103 save_LDFLAGS="$LDFLAGS"
12104 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12107 LIBS="$lt_cv_dlopen_libs $LIBS"
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12110 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12111 if ${lt_cv_dlopen_self+:} false; then :
12112 $as_echo_n "(cached) " >&6
12114 if test "$cross_compiling" = yes; then :
12115 lt_cv_dlopen_self=cross
12117 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12118 lt_status=$lt_dlunknown
12119 cat > conftest.$ac_ext <<_LT_EOF
12120 #line $LINENO "configure"
12121 #include "confdefs.h"
12130 # define LT_DLGLOBAL RTLD_GLOBAL
12133 # define LT_DLGLOBAL DL_GLOBAL
12135 # define LT_DLGLOBAL 0
12139 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12140 find out it does not work in some platform. */
12141 #ifndef LT_DLLAZY_OR_NOW
12143 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12146 # define LT_DLLAZY_OR_NOW DL_LAZY
12149 # define LT_DLLAZY_OR_NOW RTLD_NOW
12152 # define LT_DLLAZY_OR_NOW DL_NOW
12154 # define LT_DLLAZY_OR_NOW 0
12161 /* When -fvisbility=hidden is used, assume the code has been annotated
12162 correspondingly for the symbols needed. */
12163 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12164 int fnord () __attribute__((visibility("default")));
12167 int fnord () { return 42; }
12170 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12171 int status = $lt_dlunknown;
12175 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12178 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12179 else puts (dlerror ());
12181 /* dlclose (self); */
12189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12190 (eval $ac_link) 2>&5
12192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12193 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12194 (./conftest; exit; ) >&5 2>/dev/null
12196 case x$lt_status in
12197 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12198 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12199 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12202 # compilation failed
12203 lt_cv_dlopen_self=no
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12211 $as_echo "$lt_cv_dlopen_self" >&6; }
12213 if test "x$lt_cv_dlopen_self" = xyes; then
12214 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12216 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12217 if ${lt_cv_dlopen_self_static+:} false; then :
12218 $as_echo_n "(cached) " >&6
12220 if test "$cross_compiling" = yes; then :
12221 lt_cv_dlopen_self_static=cross
12223 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12224 lt_status=$lt_dlunknown
12225 cat > conftest.$ac_ext <<_LT_EOF
12226 #line $LINENO "configure"
12227 #include "confdefs.h"
12236 # define LT_DLGLOBAL RTLD_GLOBAL
12239 # define LT_DLGLOBAL DL_GLOBAL
12241 # define LT_DLGLOBAL 0
12245 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12246 find out it does not work in some platform. */
12247 #ifndef LT_DLLAZY_OR_NOW
12249 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12252 # define LT_DLLAZY_OR_NOW DL_LAZY
12255 # define LT_DLLAZY_OR_NOW RTLD_NOW
12258 # define LT_DLLAZY_OR_NOW DL_NOW
12260 # define LT_DLLAZY_OR_NOW 0
12267 /* When -fvisbility=hidden is used, assume the code has been annotated
12268 correspondingly for the symbols needed. */
12269 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12270 int fnord () __attribute__((visibility("default")));
12273 int fnord () { return 42; }
12276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12277 int status = $lt_dlunknown;
12281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12284 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12285 else puts (dlerror ());
12287 /* dlclose (self); */
12295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12296 (eval $ac_link) 2>&5
12298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12299 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12300 (./conftest; exit; ) >&5 2>/dev/null
12302 case x$lt_status in
12303 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12304 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12305 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12308 # compilation failed
12309 lt_cv_dlopen_self_static=no
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12317 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12320 CPPFLAGS="$save_CPPFLAGS"
12321 LDFLAGS="$save_LDFLAGS"
12326 case $lt_cv_dlopen_self in
12327 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12328 *) enable_dlopen_self=unknown ;;
12331 case $lt_cv_dlopen_self_static in
12332 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12333 *) enable_dlopen_self_static=unknown ;;
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12356 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12357 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12358 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12359 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12361 $as_echo "yes" >&6; }
12363 # FIXME - insert some real tests, host_os isn't really good enough
12366 if test -n "$STRIP" ; then
12367 striplib="$STRIP -x"
12368 old_striplib="$STRIP -S"
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12370 $as_echo "yes" >&6; }
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12394 # Report which library types will actually be built
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12396 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12398 $as_echo "$can_build_shared" >&6; }
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12401 $as_echo_n "checking whether to build shared libraries... " >&6; }
12402 test "$can_build_shared" = "no" && enable_shared=no
12404 # On AIX, shared libraries and static libraries use the same namespace, and
12405 # are all built from PIC.
12408 test "$enable_shared" = yes && enable_static=no
12409 if test -n "$RANLIB"; then
12410 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12411 postinstall_cmds='$RANLIB $lib'
12416 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12417 test "$enable_shared" = yes && enable_static=no
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12422 $as_echo "$enable_shared" >&6; }
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12425 $as_echo_n "checking whether to build static libraries... " >&6; }
12426 # Make sure either enable_shared or enable_static is yes.
12427 test "$enable_shared" = yes || enable_static=yes
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12429 $as_echo "$enable_static" >&6; }
12436 ac_cpp='$CPP $CPPFLAGS'
12437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12455 ac_config_commands="$ac_config_commands libtool"
12460 # Only expand once:
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
12466 $as_echo_n "checking for gmp.h... " >&6; }
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12475 $as_echo "yes" >&6; }
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12479 $as_echo "no" >&6; }
12480 as_fn_error $? "gmp.h cannot be found or is unusable." "$LINENO" 5
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12485 # Check (only in development versions) if the compiler accepts warning
12486 # flags and add them to CFLAGS
12487 # Note: don't do this if the user defined CFLAGS, since adding new flags
12488 # might override the user's settings, see
12489 # http://lists.gforge.inria.fr/pipermail/mpc-discuss/2012-May/001115.html
12490 if test -z "$USER_CFLAGS"; then
12493 if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then
12494 if test "x$GCC" = "xyes" -a "x$compiler" != "xicc" -a "x$compiler" != "xg++"; then
12495 # enable -Werror for myself (Andreas Enge)
12496 if test "x$USER" = "xenge"; then
12503 flag=`echo "-Werror" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Werror flag" >&5
12506 $as_echo_n "checking whether the C compiler accepts the -Werror flag... " >&6; }
12507 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12508 $as_echo_n "(cached) " >&6
12513 ac_cpp='$CPP $CPPFLAGS'
12514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12519 save_CFLAGS="$CFLAGS"
12520 CFLAGS="$CFLAGS -Werror"
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12534 if ac_fn_c_try_compile "$LINENO"; then :
12536 eval "ax_cv_c_check_flag_$flag=yes"
12540 eval "ax_cv_c_check_flag_$flag=no"
12543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12545 CFLAGS="$save_CFLAGS"
12548 ac_cpp='$CPP $CPPFLAGS'
12549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12556 eval ac_res=\$ax_cv_c_check_flag_$flag
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12558 $as_echo "$ac_res" >&6; }
12560 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12563 CFLAGS="$CFLAGS -Werror"
12580 flag=`echo "-g" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -g flag" >&5
12583 $as_echo_n "checking whether the C compiler accepts the -g flag... " >&6; }
12584 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12585 $as_echo_n "(cached) " >&6
12590 ac_cpp='$CPP $CPPFLAGS'
12591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12596 save_CFLAGS="$CFLAGS"
12597 CFLAGS="$CFLAGS -g"
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12611 if ac_fn_c_try_compile "$LINENO"; then :
12613 eval "ax_cv_c_check_flag_$flag=yes"
12617 eval "ax_cv_c_check_flag_$flag=no"
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622 CFLAGS="$save_CFLAGS"
12625 ac_cpp='$CPP $CPPFLAGS'
12626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12633 eval ac_res=\$ax_cv_c_check_flag_$flag
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12635 $as_echo "$ac_res" >&6; }
12637 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12640 CFLAGS="$CFLAGS -g"
12656 flag=`echo "-std=c99" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -std=c99 flag" >&5
12659 $as_echo_n "checking whether the C compiler accepts the -std=c99 flag... " >&6; }
12660 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12661 $as_echo_n "(cached) " >&6
12666 ac_cpp='$CPP $CPPFLAGS'
12667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12672 save_CFLAGS="$CFLAGS"
12673 CFLAGS="$CFLAGS -std=c99"
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675 /* end confdefs.h. */
12687 if ac_fn_c_try_compile "$LINENO"; then :
12689 eval "ax_cv_c_check_flag_$flag=yes"
12693 eval "ax_cv_c_check_flag_$flag=no"
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 CFLAGS="$save_CFLAGS"
12701 ac_cpp='$CPP $CPPFLAGS'
12702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12709 eval ac_res=\$ax_cv_c_check_flag_$flag
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12711 $as_echo "$ac_res" >&6; }
12713 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12716 CFLAGS="$CFLAGS -std=c99"
12732 flag=`echo "-pedantic" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -pedantic flag" >&5
12735 $as_echo_n "checking whether the C compiler accepts the -pedantic flag... " >&6; }
12736 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12737 $as_echo_n "(cached) " >&6
12742 ac_cpp='$CPP $CPPFLAGS'
12743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12748 save_CFLAGS="$CFLAGS"
12749 CFLAGS="$CFLAGS -pedantic"
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12763 if ac_fn_c_try_compile "$LINENO"; then :
12765 eval "ax_cv_c_check_flag_$flag=yes"
12769 eval "ax_cv_c_check_flag_$flag=no"
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774 CFLAGS="$save_CFLAGS"
12777 ac_cpp='$CPP $CPPFLAGS'
12778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12785 eval ac_res=\$ax_cv_c_check_flag_$flag
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12787 $as_echo "$ac_res" >&6; }
12789 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12792 CFLAGS="$CFLAGS -pedantic"
12808 flag=`echo "-Wno-long-long" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-long-long flag" >&5
12811 $as_echo_n "checking whether the C compiler accepts the -Wno-long-long flag... " >&6; }
12812 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12813 $as_echo_n "(cached) " >&6
12818 ac_cpp='$CPP $CPPFLAGS'
12819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12824 save_CFLAGS="$CFLAGS"
12825 CFLAGS="$CFLAGS -Wno-long-long"
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12839 if ac_fn_c_try_compile "$LINENO"; then :
12841 eval "ax_cv_c_check_flag_$flag=yes"
12845 eval "ax_cv_c_check_flag_$flag=no"
12848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 CFLAGS="$save_CFLAGS"
12853 ac_cpp='$CPP $CPPFLAGS'
12854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12861 eval ac_res=\$ax_cv_c_check_flag_$flag
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12863 $as_echo "$ac_res" >&6; }
12865 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12868 CFLAGS="$CFLAGS -Wno-long-long"
12884 flag=`echo "-Wall" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wall flag" >&5
12887 $as_echo_n "checking whether the C compiler accepts the -Wall flag... " >&6; }
12888 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12889 $as_echo_n "(cached) " >&6
12894 ac_cpp='$CPP $CPPFLAGS'
12895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12900 save_CFLAGS="$CFLAGS"
12901 CFLAGS="$CFLAGS -Wall"
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12915 if ac_fn_c_try_compile "$LINENO"; then :
12917 eval "ax_cv_c_check_flag_$flag=yes"
12921 eval "ax_cv_c_check_flag_$flag=no"
12924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12926 CFLAGS="$save_CFLAGS"
12929 ac_cpp='$CPP $CPPFLAGS'
12930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12937 eval ac_res=\$ax_cv_c_check_flag_$flag
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12939 $as_echo "$ac_res" >&6; }
12941 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
12944 CFLAGS="$CFLAGS -Wall"
12960 flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wextra flag" >&5
12963 $as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
12964 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
12965 $as_echo_n "(cached) " >&6
12970 ac_cpp='$CPP $CPPFLAGS'
12971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12976 save_CFLAGS="$CFLAGS"
12977 CFLAGS="$CFLAGS -Wextra"
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12991 if ac_fn_c_try_compile "$LINENO"; then :
12993 eval "ax_cv_c_check_flag_$flag=yes"
12997 eval "ax_cv_c_check_flag_$flag=no"
13000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002 CFLAGS="$save_CFLAGS"
13005 ac_cpp='$CPP $CPPFLAGS'
13006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13013 eval ac_res=\$ax_cv_c_check_flag_$flag
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13015 $as_echo "$ac_res" >&6; }
13017 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13020 CFLAGS="$CFLAGS -Wextra"
13036 flag=`echo "-Wdeclaration-after-statement" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wdeclaration-after-statement flag" >&5
13039 $as_echo_n "checking whether the C compiler accepts the -Wdeclaration-after-statement flag... " >&6; }
13040 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13041 $as_echo_n "(cached) " >&6
13046 ac_cpp='$CPP $CPPFLAGS'
13047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13052 save_CFLAGS="$CFLAGS"
13053 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13067 if ac_fn_c_try_compile "$LINENO"; then :
13069 eval "ax_cv_c_check_flag_$flag=yes"
13073 eval "ax_cv_c_check_flag_$flag=no"
13076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 CFLAGS="$save_CFLAGS"
13081 ac_cpp='$CPP $CPPFLAGS'
13082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13089 eval ac_res=\$ax_cv_c_check_flag_$flag
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13091 $as_echo "$ac_res" >&6; }
13093 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13096 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13112 flag=`echo "-Wundef" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wundef flag" >&5
13115 $as_echo_n "checking whether the C compiler accepts the -Wundef flag... " >&6; }
13116 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13117 $as_echo_n "(cached) " >&6
13122 ac_cpp='$CPP $CPPFLAGS'
13123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13128 save_CFLAGS="$CFLAGS"
13129 CFLAGS="$CFLAGS -Wundef"
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13143 if ac_fn_c_try_compile "$LINENO"; then :
13145 eval "ax_cv_c_check_flag_$flag=yes"
13149 eval "ax_cv_c_check_flag_$flag=no"
13152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13154 CFLAGS="$save_CFLAGS"
13157 ac_cpp='$CPP $CPPFLAGS'
13158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13165 eval ac_res=\$ax_cv_c_check_flag_$flag
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13167 $as_echo "$ac_res" >&6; }
13169 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13172 CFLAGS="$CFLAGS -Wundef"
13188 flag=`echo "-Wshadow" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wshadow flag" >&5
13191 $as_echo_n "checking whether the C compiler accepts the -Wshadow flag... " >&6; }
13192 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13193 $as_echo_n "(cached) " >&6
13198 ac_cpp='$CPP $CPPFLAGS'
13199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13204 save_CFLAGS="$CFLAGS"
13205 CFLAGS="$CFLAGS -Wshadow"
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13219 if ac_fn_c_try_compile "$LINENO"; then :
13221 eval "ax_cv_c_check_flag_$flag=yes"
13225 eval "ax_cv_c_check_flag_$flag=no"
13228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13230 CFLAGS="$save_CFLAGS"
13233 ac_cpp='$CPP $CPPFLAGS'
13234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13241 eval ac_res=\$ax_cv_c_check_flag_$flag
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13243 $as_echo "$ac_res" >&6; }
13245 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13248 CFLAGS="$CFLAGS -Wshadow"
13264 flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
13267 $as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
13268 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13269 $as_echo_n "(cached) " >&6
13274 ac_cpp='$CPP $CPPFLAGS'
13275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13280 save_CFLAGS="$CFLAGS"
13281 CFLAGS="$CFLAGS -Wstrict-prototypes"
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13295 if ac_fn_c_try_compile "$LINENO"; then :
13297 eval "ax_cv_c_check_flag_$flag=yes"
13301 eval "ax_cv_c_check_flag_$flag=no"
13304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13306 CFLAGS="$save_CFLAGS"
13309 ac_cpp='$CPP $CPPFLAGS'
13310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13317 eval ac_res=\$ax_cv_c_check_flag_$flag
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13319 $as_echo "$ac_res" >&6; }
13321 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13324 CFLAGS="$CFLAGS -Wstrict-prototypes"
13340 flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
13343 $as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
13344 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13345 $as_echo_n "(cached) " >&6
13350 ac_cpp='$CPP $CPPFLAGS'
13351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13356 save_CFLAGS="$CFLAGS"
13357 CFLAGS="$CFLAGS -Wmissing-prototypes"
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13371 if ac_fn_c_try_compile "$LINENO"; then :
13373 eval "ax_cv_c_check_flag_$flag=yes"
13377 eval "ax_cv_c_check_flag_$flag=no"
13380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382 CFLAGS="$save_CFLAGS"
13385 ac_cpp='$CPP $CPPFLAGS'
13386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13393 eval ac_res=\$ax_cv_c_check_flag_$flag
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13395 $as_echo "$ac_res" >&6; }
13397 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13400 CFLAGS="$CFLAGS -Wmissing-prototypes"
13416 flag=`echo "-Wno-unused-value" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts the -Wno-unused-value flag" >&5
13419 $as_echo_n "checking whether the C compiler accepts the -Wno-unused-value flag... " >&6; }
13420 if eval \${ax_cv_c_check_flag_$flag+:} false; then :
13421 $as_echo_n "(cached) " >&6
13426 ac_cpp='$CPP $CPPFLAGS'
13427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13432 save_CFLAGS="$CFLAGS"
13433 CFLAGS="$CFLAGS -Wno-unused-value"
13434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435 /* end confdefs.h. */
13447 if ac_fn_c_try_compile "$LINENO"; then :
13449 eval "ax_cv_c_check_flag_$flag=yes"
13453 eval "ax_cv_c_check_flag_$flag=no"
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13458 CFLAGS="$save_CFLAGS"
13461 ac_cpp='$CPP $CPPFLAGS'
13462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13469 eval ac_res=\$ax_cv_c_check_flag_$flag
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13471 $as_echo "$ac_res" >&6; }
13473 if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then :
13476 CFLAGS="$CFLAGS -Wno-unused-value"
13492 # Checks for header files.
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13494 $as_echo_n "checking for ANSI C header files... " >&6; }
13495 if ${ac_cv_header_stdc+:} false; then :
13496 $as_echo_n "(cached) " >&6
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13500 #include <stdlib.h>
13501 #include <stdarg.h>
13502 #include <string.h>
13513 if ac_fn_c_try_compile "$LINENO"; then :
13514 ac_cv_header_stdc=yes
13516 ac_cv_header_stdc=no
13518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13520 if test $ac_cv_header_stdc = yes; then
13521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524 #include <string.h>
13527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13528 $EGREP "memchr" >/dev/null 2>&1; then :
13531 ac_cv_header_stdc=no
13537 if test $ac_cv_header_stdc = yes; then
13538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13541 #include <stdlib.h>
13544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13545 $EGREP "free" >/dev/null 2>&1; then :
13548 ac_cv_header_stdc=no
13554 if test $ac_cv_header_stdc = yes; then
13555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13556 if test "$cross_compiling" = yes; then :
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13562 #include <stdlib.h>
13563 #if ((' ' & 0x0FF) == 0x020)
13564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13567 # define ISLOWER(c) \
13568 (('a' <= (c) && (c) <= 'i') \
13569 || ('j' <= (c) && (c) <= 'r') \
13570 || ('s' <= (c) && (c) <= 'z'))
13571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13579 for (i = 0; i < 256; i++)
13580 if (XOR (islower (i), ISLOWER (i))
13581 || toupper (i) != TOUPPER (i))
13586 if ac_fn_c_try_run "$LINENO"; then :
13589 ac_cv_header_stdc=no
13591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13592 conftest.$ac_objext conftest.beam conftest.$ac_ext
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13598 $as_echo "$ac_cv_header_stdc" >&6; }
13599 if test $ac_cv_header_stdc = yes; then
13601 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13605 for ac_header in locale.h inttypes.h stdint.h limits.h unistd.h sys/time.h
13607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13608 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13610 cat >>confdefs.h <<_ACEOF
13611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13619 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13620 if ${ac_cv_header_time+:} false; then :
13621 $as_echo_n "(cached) " >&6
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13625 #include <sys/types.h>
13626 #include <sys/time.h>
13632 if ((struct tm *) 0)
13638 if ac_fn_c_try_compile "$LINENO"; then :
13639 ac_cv_header_time=yes
13641 ac_cv_header_time=no
13643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13646 $as_echo "$ac_cv_header_time" >&6; }
13647 if test $ac_cv_header_time = yes; then
13649 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13654 ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
13655 if test "x$ac_cv_header_complex_h" = xyes; then :
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing creal" >&5
13660 $as_echo_n "checking for library containing creal... " >&6; }
13661 if ${ac_cv_search_creal+:} false; then :
13662 $as_echo_n "(cached) " >&6
13664 ac_func_search_save_LIBS=$LIBS
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13668 /* Override any GCC internal prototype to avoid an error.
13669 Use char because int might match the return type of a GCC
13670 builtin and then its argument prototype would still apply. */
13683 for ac_lib in '' m; do
13684 if test -z "$ac_lib"; then
13685 ac_res="none required"
13688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13690 if ac_fn_c_try_link "$LINENO"; then :
13691 ac_cv_search_creal=$ac_res
13693 rm -f core conftest.err conftest.$ac_objext \
13695 if ${ac_cv_search_creal+:} false; then :
13699 if ${ac_cv_search_creal+:} false; then :
13702 ac_cv_search_creal=no
13704 rm conftest.$ac_ext
13705 LIBS=$ac_func_search_save_LIBS
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_creal" >&5
13708 $as_echo "$ac_cv_search_creal" >&6; }
13709 ac_res=$ac_cv_search_creal
13710 if test "$ac_res" != no; then :
13711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13715 # needed on Solaris
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether creal, cimag and I can be used" >&5
13717 $as_echo_n "checking whether creal, cimag and I can be used... " >&6; }
13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13721 #include <complex.h>
13725 complex double x = 1.0 + 2.0 * I; return (creal (x) + cimag (x));
13733 if ac_fn_c_try_link "$LINENO"; then :
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13736 $as_echo "yes" >&6; }
13738 $as_echo "#define HAVE_COMPLEX_H 1" >>confdefs.h
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, build without support for C complex numbers" >&5
13744 $as_echo "no, build without support for C complex numbers" >&6; }
13748 rm -f core conftest.err conftest.$ac_objext \
13749 conftest$ac_exeext conftest.$ac_ext
13757 # Checks for typedefs, structures, and compiler characteristics.
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13759 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13760 if ${ac_cv_c_const+:} false; then :
13761 $as_echo_n "(cached) " >&6
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13770 #ifndef __cplusplus
13771 /* Ultrix mips cc rejects this sort of thing. */
13772 typedef int charset[2];
13773 const charset cs = { 0, 0 };
13774 /* SunOS 4.1.1 cc rejects this. */
13775 char const *const *pcpcc;
13777 /* NEC SVR4.0.2 mips cc rejects this. */
13778 struct point {int x, y;};
13779 static struct point const zero = {0,0};
13780 /* AIX XL C 1.02.0.0 rejects this.
13781 It does not let you subtract one const X* pointer from another in
13782 an arm of an if-expression whose if-part is not a constant
13784 const char *g = "string";
13785 pcpcc = &g + (g ? g-g : 0);
13786 /* HPUX 7.0 cc rejects these. */
13788 ppc = (char**) pcpcc;
13789 pcpcc = (char const *const *) ppc;
13790 { /* SCO 3.2v4 cc rejects this sort of thing. */
13793 char const *s = 0 ? (char *) 0 : (char const *) 0;
13798 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13799 int x[] = {25, 17};
13800 const int *foo = &x[0];
13803 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13804 typedef const int *iptr;
13808 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13809 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13810 struct s { int j; const int *ap[3]; } bx;
13811 struct s *b = &bx; b->j = 5;
13813 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13814 const int foo = 10;
13815 if (!foo) return 0;
13817 return !cs[0] && !zero.x;
13824 if ac_fn_c_try_compile "$LINENO"; then :
13829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13832 $as_echo "$ac_cv_c_const" >&6; }
13833 if test $ac_cv_c_const = no; then
13835 $as_echo "#define const /**/" >>confdefs.h
13839 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13840 if test "x$ac_cv_type_size_t" = xyes; then :
13844 cat >>confdefs.h <<_ACEOF
13845 #define size_t unsigned int
13851 # Checks for libraries.
13852 for ac_func in gettimeofday localeconv setlocale
13854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13855 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13856 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13857 cat >>confdefs.h <<_ACEOF
13858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13864 for ac_func in dup dup2
13866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13867 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13868 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13869 cat >>confdefs.h <<_ACEOF
13870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13875 $as_echo "#define MPC_NO_STREAM_REDIRECTION 1" >>confdefs.h
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
13882 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
13883 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
13884 $as_echo_n "(cached) " >&6
13886 ac_check_lib_save_LIBS=$LIBS
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13891 /* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply. */
13897 char __gmpz_init ();
13901 return __gmpz_init ();
13906 if ac_fn_c_try_link "$LINENO"; then :
13907 ac_cv_lib_gmp___gmpz_init=yes
13909 ac_cv_lib_gmp___gmpz_init=no
13911 rm -f core conftest.err conftest.$ac_objext \
13912 conftest$ac_exeext conftest.$ac_ext
13913 LIBS=$ac_check_lib_save_LIBS
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
13916 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
13917 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
13920 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared)." "$LINENO" 5
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPFR" >&5
13925 $as_echo_n "checking for MPFR... " >&6; }
13926 LIBS="-lmpfr $LIBS"
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13933 mpfr_t x; mpfr_init(x) ; mpfr_clear(x);
13939 if ac_fn_c_try_link "$LINENO"; then :
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941 $as_echo "yes" >&6; }
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13945 $as_echo "no" >&6; }
13946 as_fn_error $? "libmpfr not found or uses a different ABI (including static vs shared)." "$LINENO" 5
13949 rm -f core conftest.err conftest.$ac_objext \
13950 conftest$ac_exeext conftest.$ac_ext
13952 # Check for a recent GMP
13953 # We only guarantee that with a *functional* and recent enough GMP version,
13954 # MPC will compile; we do not guarantee that GMP will compile.
13955 # In particular fat builds are broken in GMP 4.3.2 and GMP 5.0.0
13956 # (at least on 64-bit Core 2 under GNU/Linux),
13957 # see http://gmplib.org/list-archives/gmp-bugs/2011-August/002345.html.
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
13959 $as_echo_n "checking for recent GMP... " >&6; }
13960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13961 /* end confdefs.h. */
13964 #if (__GNU_MP_VERSION*100 + __GNU_MP_VERSION_MINOR*10 + __GNU_MP_VERSION_PATCHLEVEL < 432)
13965 # error "Minimal GMP version is 4.3.2"
13970 if ac_fn_c_try_compile "$LINENO"; then :
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13972 $as_echo "yes" >&6; }
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13976 $as_echo "no" >&6; }
13977 as_fn_error $? "GMP version >= 4.3.2 required" "$LINENO" 5
13980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982 # Check for a recent MPFR: we require MPFR 2.4.2 so that the tests
13984 # The same remark as above for GMP applies.
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent MPFR" >&5
13986 $as_echo_n "checking for recent MPFR... " >&6; }
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13991 #if (MPFR_VERSION < MPFR_VERSION_NUM (2,4,2))
13992 # error "Minimal MPFR version is 2.4.2"
13997 if ac_fn_c_try_compile "$LINENO"; then :
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999 $as_echo "yes" >&6; }
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003 $as_echo "no" >&6; }
14004 as_fn_error $? "MPFR version >= 2.4.2 required" "$LINENO" 5
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009 # Check for logging feature
14010 if test "x$enable_logging" = "xyes"; then :
14011 for ac_header in dlfcn.h
14013 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14014 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14015 cat >>confdefs.h <<_ACEOF
14016 #define HAVE_DLFCN_H 1
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
14024 $as_echo_n "checking for dlsym in -ldl... " >&6; }
14025 if ${ac_cv_lib_dl_dlsym+:} false; then :
14026 $as_echo_n "(cached) " >&6
14028 ac_check_lib_save_LIBS=$LIBS
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14033 /* Override any GCC internal prototype to avoid an error.
14034 Use char because int might match the return type of a GCC
14035 builtin and then its argument prototype would still apply. */
14048 if ac_fn_c_try_link "$LINENO"; then :
14049 ac_cv_lib_dl_dlsym=yes
14051 ac_cv_lib_dl_dlsym=no
14053 rm -f core conftest.err conftest.$ac_objext \
14054 conftest$ac_exeext conftest.$ac_ext
14055 LIBS=$ac_check_lib_save_LIBS
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
14058 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
14059 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
14062 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
14066 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14067 if test "x$ac_cv_type_intptr_t" = xyes; then :
14069 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
14072 for ac_type in 'int' 'long int' 'long long int'; do
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14075 $ac_includes_default
14079 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14080 test_array [0] = 0;
14081 return test_array [0];
14087 if ac_fn_c_try_compile "$LINENO"; then :
14089 cat >>confdefs.h <<_ACEOF
14090 #define intptr_t $ac_type
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096 test -z "$ac_type" && break
14101 case " $LIBOBJS " in
14102 *" logging.$ac_objext "* ) ;;
14103 *) LIBOBJS="$LIBOBJS logging.$ac_objext"
14107 MPC_LOG_H=src/mpc-log.h
14111 as_fn_error $? "Library dl not found, logging impossible" "$LINENO" 5
14118 # Configs for Windows DLLs
14120 enable_win32_dll=yes
14123 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
14124 if test -n "$ac_tool_prefix"; then
14125 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14126 set dummy ${ac_tool_prefix}as; ac_word=$2
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14128 $as_echo_n "checking for $ac_word... " >&6; }
14129 if ${ac_cv_prog_AS+:} false; then :
14130 $as_echo_n "(cached) " >&6
14132 if test -n "$AS"; then
14133 ac_cv_prog_AS="$AS" # Let the user override the test.
14135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 for as_dir in $PATH
14139 test -z "$as_dir" && as_dir=.
14140 for ac_exec_ext in '' $ac_executable_extensions; do
14141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14142 ac_cv_prog_AS="${ac_tool_prefix}as"
14143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14153 if test -n "$AS"; then
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14155 $as_echo "$AS" >&6; }
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14158 $as_echo "no" >&6; }
14163 if test -z "$ac_cv_prog_AS"; then
14165 # Extract the first word of "as", so it can be a program name with args.
14166 set dummy as; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168 $as_echo_n "checking for $ac_word... " >&6; }
14169 if ${ac_cv_prog_ac_ct_AS+:} false; then :
14170 $as_echo_n "(cached) " >&6
14172 if test -n "$ac_ct_AS"; then
14173 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
14181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14182 ac_cv_prog_ac_ct_AS="as"
14183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14192 ac_ct_AS=$ac_cv_prog_ac_ct_AS
14193 if test -n "$ac_ct_AS"; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14195 $as_echo "$ac_ct_AS" >&6; }
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14201 if test "x$ac_ct_AS" = x; then
14204 case $cross_compiling:$ac_tool_warned in
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14208 ac_tool_warned=yes ;;
14213 AS="$ac_cv_prog_AS"
14216 if test -n "$ac_tool_prefix"; then
14217 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14218 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14220 $as_echo_n "checking for $ac_word... " >&6; }
14221 if ${ac_cv_prog_DLLTOOL+:} false; then :
14222 $as_echo_n "(cached) " >&6
14224 if test -n "$DLLTOOL"; then
14225 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14228 for as_dir in $PATH
14231 test -z "$as_dir" && as_dir=.
14232 for ac_exec_ext in '' $ac_executable_extensions; do
14233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14234 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14244 DLLTOOL=$ac_cv_prog_DLLTOOL
14245 if test -n "$DLLTOOL"; then
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14247 $as_echo "$DLLTOOL" >&6; }
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14250 $as_echo "no" >&6; }
14255 if test -z "$ac_cv_prog_DLLTOOL"; then
14256 ac_ct_DLLTOOL=$DLLTOOL
14257 # Extract the first word of "dlltool", so it can be a program name with args.
14258 set dummy dlltool; ac_word=$2
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14260 $as_echo_n "checking for $ac_word... " >&6; }
14261 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
14262 $as_echo_n "(cached) " >&6
14264 if test -n "$ac_ct_DLLTOOL"; then
14265 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14271 test -z "$as_dir" && as_dir=.
14272 for ac_exec_ext in '' $ac_executable_extensions; do
14273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14274 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14284 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14285 if test -n "$ac_ct_DLLTOOL"; then
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14287 $as_echo "$ac_ct_DLLTOOL" >&6; }
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14293 if test "x$ac_ct_DLLTOOL" = x; then
14296 case $cross_compiling:$ac_tool_warned in
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14300 ac_tool_warned=yes ;;
14302 DLLTOOL=$ac_ct_DLLTOOL
14305 DLLTOOL="$ac_cv_prog_DLLTOOL"
14308 if test -n "$ac_tool_prefix"; then
14309 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14310 set dummy ${ac_tool_prefix}objdump; ac_word=$2
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14312 $as_echo_n "checking for $ac_word... " >&6; }
14313 if ${ac_cv_prog_OBJDUMP+:} false; then :
14314 $as_echo_n "(cached) " >&6
14316 if test -n "$OBJDUMP"; then
14317 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320 for as_dir in $PATH
14323 test -z "$as_dir" && as_dir=.
14324 for ac_exec_ext in '' $ac_executable_extensions; do
14325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14326 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14336 OBJDUMP=$ac_cv_prog_OBJDUMP
14337 if test -n "$OBJDUMP"; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14339 $as_echo "$OBJDUMP" >&6; }
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14347 if test -z "$ac_cv_prog_OBJDUMP"; then
14348 ac_ct_OBJDUMP=$OBJDUMP
14349 # Extract the first word of "objdump", so it can be a program name with args.
14350 set dummy objdump; ac_word=$2
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14352 $as_echo_n "checking for $ac_word... " >&6; }
14353 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14354 $as_echo_n "(cached) " >&6
14356 if test -n "$ac_ct_OBJDUMP"; then
14357 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
14365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14366 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14377 if test -n "$ac_ct_OBJDUMP"; then
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14379 $as_echo "$ac_ct_OBJDUMP" >&6; }
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14382 $as_echo "no" >&6; }
14385 if test "x$ac_ct_OBJDUMP" = x; then
14388 case $cross_compiling:$ac_tool_warned in
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14392 ac_tool_warned=yes ;;
14394 OBJDUMP=$ac_ct_OBJDUMP
14397 OBJDUMP="$ac_cv_prog_OBJDUMP"
14403 test -z "$AS" && AS=as
14409 test -z "$DLLTOOL" && DLLTOOL=dlltool
14412 test -z "$OBJDUMP" && OBJDUMP=objdump
14418 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
14420 if test "$enable_shared" = yes; then
14421 MPC_LDFLAGS="$MPC_LDFLAGS -no-undefined"
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static gmp" >&5
14423 $as_echo_n "checking for DLL/static gmp... " >&6; }
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14428 #if !__GMP_LIBGMP_DLL
14441 if ac_fn_c_try_compile "$LINENO"; then :
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
14443 $as_echo "DLL" >&6; }
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
14447 $as_echo "static" >&6; }
14448 as_fn_error $? "gmp is not available as a DLL: use --enable-static --disable-shared" "$LINENO" 5
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static mpfr" >&5
14452 $as_echo_n "checking for DLL/static mpfr... " >&6; }
14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14454 /* end confdefs.h. */
14457 #if !__GMP_LIBGMP_DLL
14470 if ac_fn_c_try_compile "$LINENO"; then :
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
14472 $as_echo "DLL" >&6; }
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
14476 $as_echo "static" >&6; }
14477 as_fn_error $? "mpfr is not available as a DLL: use --enable-static --disable-shared" "$LINENO" 5
14479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14485 #if __GMP_LIBGMP_DLL
14498 if ac_fn_c_try_compile "$LINENO"; then :
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
14500 $as_echo "static" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
14504 $as_echo "DLL" >&6; }
14505 as_fn_error $? "gmp is only available as a DLL: use --disable-static --enable-shared" "$LINENO" 5
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513 # Checks for gcc version, result in variables MPC_GCC etc. inside config.log
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -dumpversion option" >&5
14520 $as_echo_n "checking if gcc accepts -dumpversion option... " >&6; }
14522 if test "x$GCC" = "xyes" ; then :
14524 if test -z "" ; then :
14526 ax_gcc_option_test="int main()
14533 ax_gcc_option_test=""
14537 # Dump the test program to file
14538 cat <<EOF > conftest.c
14539 $ax_gcc_option_test
14542 # Dump back the file to the log, useful for debugging purposes
14543 { ac_try='cat conftest.c 1>&5'
14544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14545 (eval $ac_try) 2>&5
14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14548 test $ac_status = 0; }; }
14550 if { ac_try='$CC -dumpversion -c conftest.c 1>&5'
14551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14552 (eval $ac_try) 2>&5
14554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14555 test $ac_status = 0; }; } ; then :
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14558 $as_echo "yes" >&6; }
14560 ax_gcc_version_option=yes
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14568 ax_gcc_version_option=no
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no gcc available" >&5
14576 $as_echo "no gcc available" >&6; }
14580 if test "x$GCC" = "xyes"; then :
14582 if test "x$ax_gcc_version_option" != "xno"; then :
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc version" >&5
14585 $as_echo_n "checking gcc version... " >&6; }
14586 if ${ax_cv_gcc_version+:} false; then :
14587 $as_echo_n "(cached) " >&6
14590 ax_cv_gcc_version="`$CC -dumpversion`"
14591 if test "x$ax_cv_gcc_version" = "x"; then :
14593 ax_cv_gcc_version=""
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_version" >&5
14599 $as_echo "$ax_cv_gcc_version" >&6; }
14600 GCC_VERSION=$ax_cv_gcc_version
14608 cat >>confdefs.h <<_ACEOF
14609 #define MPC_GCC "$GCC"
14613 cat >>confdefs.h <<_ACEOF
14614 #define MPC_CC "$CC"
14618 cat >>confdefs.h <<_ACEOF
14619 #define MPC_GCC_VERSION "$GCC_VERSION"
14623 # Looks for svn version if the version string contains "dev"
14625 if echo $VERSION | grep -c dev >/dev/null 2>&1 ; then
14626 # Extract the first word of "svnversion", so it can be a program name with args.
14627 set dummy svnversion; ac_word=$2
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14629 $as_echo_n "checking for $ac_word... " >&6; }
14630 if ${ac_cv_prog_HASSVNVERSION+:} false; then :
14631 $as_echo_n "(cached) " >&6
14633 if test -n "$HASSVNVERSION"; then
14634 ac_cv_prog_HASSVNVERSION="$HASSVNVERSION" # Let the user override the test.
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $PATH
14640 test -z "$as_dir" && as_dir=.
14641 for ac_exec_ext in '' $ac_executable_extensions; do
14642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14643 ac_cv_prog_HASSVNVERSION="yes"
14644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14651 test -z "$ac_cv_prog_HASSVNVERSION" && ac_cv_prog_HASSVNVERSION="no"
14654 HASSVNVERSION=$ac_cv_prog_HASSVNVERSION
14655 if test -n "$HASSVNVERSION"; then
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASSVNVERSION" >&5
14657 $as_echo "$HASSVNVERSION" >&6; }
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14660 $as_echo "no" >&6; }
14664 if test "x$HASSVNVERSION" = "xyes"; then :
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current svn version" >&5
14667 $as_echo_n "checking for current svn version... " >&6; }
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVNVERSION" >&5
14671 $as_echo "$SVNVERSION" >&6; }
14677 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile doc/Makefile"
14679 cat >confcache <<\_ACEOF
14680 # This file is a shell script that caches the results of configure
14681 # tests run on this system so they can be shared between configure
14682 # scripts and configure runs, see configure's option --config-cache.
14683 # It is not useful on other systems. If it contains results you don't
14684 # want to keep, you may remove or edit it.
14686 # config.status only pays attention to the cache file if you give it
14687 # the --recheck option to rerun configure.
14689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14691 # following values.
14695 # The following way of writing the cache mishandles newlines in values,
14696 # but we know of no workaround that is simple, portable, and efficient.
14697 # So, we kill variables containing newlines.
14698 # Ultrix sh set writes to stderr and can't be redirected directly,
14699 # and sets the high bit in the cache file unless we assign to the vars.
14701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14702 eval ac_val=\$$ac_var
14706 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14710 _ | IFS | as_nl) ;; #(
14711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14712 *) { eval $ac_var=; unset $ac_var;} ;;
14718 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14719 *${as_nl}ac_space=\ *)
14720 # `set' does not quote correctly, so add quotes: double-quote
14721 # substitution turns \\\\ into \\, and sed turns \\ into \.
14724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14727 # `set' quotes correctly as required by POSIX, so do not add quotes.
14728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14739 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14741 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14742 if test -w "$cache_file"; then
14743 if test "x$cache_file" != "x/dev/null"; then
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14745 $as_echo "$as_me: updating cache $cache_file" >&6;}
14746 if test ! -f "$cache_file" || test -h "$cache_file"; then
14747 cat confcache >"$cache_file"
14749 case $cache_file in #(
14751 mv -f confcache "$cache_file"$$ &&
14752 mv -f "$cache_file"$$ "$cache_file" ;; #(
14754 mv -f confcache "$cache_file" ;;
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14766 # Let make expand exec_prefix.
14767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14769 DEFS=-DHAVE_CONFIG_H
14774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14775 # 1. Remove the extension, and $U if already installed.
14776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14779 # will be set to the directory where LIBOBJS objects are built.
14780 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14781 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14783 LIBOBJS=$ac_libobjs
14785 LTLIBOBJS=$ac_ltlibobjs
14788 if test -n "$EXEEXT"; then
14790 am__EXEEXT_FALSE='#'
14792 am__EXEEXT_TRUE='#'
14796 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14797 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14800 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14801 as_fn_error $? "conditional \"AMDEP\" was never defined.
14802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14804 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14805 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14808 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14809 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14813 : "${CONFIG_STATUS=./config.status}"
14815 ac_clean_files_save=$ac_clean_files
14816 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14818 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14820 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14822 # Generated by $as_me.
14823 # Run this file to recreate the current configuration.
14824 # Compiler output produced by configure, useful for debugging
14825 # configure, is in config.log if it exists.
14828 ac_cs_recheck=false
14831 SHELL=\${CONFIG_SHELL-$SHELL}
14834 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14835 ## -------------------- ##
14836 ## M4sh Initialization. ##
14837 ## -------------------- ##
14839 # Be more Bourne compatible
14840 DUALCASE=1; export DUALCASE # for MKS sh
14841 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14845 # is contrary to our usage. Disable this feature.
14846 alias -g '${1+"$@"}'='"$@"'
14847 setopt NO_GLOB_SUBST
14849 case `(set -o) 2>/dev/null` in #(
14861 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14862 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14863 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14865 # Prefer a ksh shell builtin over an external printf program on Solaris,
14866 # but without wasting forks for bash or zsh.
14867 if test -z "$BASH_VERSION$ZSH_VERSION" \
14868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14869 as_echo='print -r --'
14870 as_echo_n='print -rn --'
14871 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14872 as_echo='printf %s\n'
14873 as_echo_n='printf %s'
14875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14877 as_echo_n='/usr/ucb/echo -n'
14879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14880 as_echo_n_body='eval
14884 expr "X$arg" : "X\\(.*\\)$as_nl";
14885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14889 export as_echo_n_body
14890 as_echo_n='sh -c $as_echo_n_body as_echo'
14892 export as_echo_body
14893 as_echo='sh -c $as_echo_body as_echo'
14896 # The user is always right.
14897 if test "${PATH_SEPARATOR+set}" != set; then
14899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14907 # We need space, tab and new line, in precisely that order. Quoting is
14908 # there to prevent editors from complaining about space-tab.
14909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14910 # splitting by setting IFS to empty value.)
14913 # Find who we are. Look in the path if we contain no directory separator.
14916 *[\\/]* ) as_myself=$0 ;;
14917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14918 for as_dir in $PATH
14921 test -z "$as_dir" && as_dir=.
14922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14928 # We did not find ourselves, most probably we were run as `sh COMMAND'
14929 # in which case we are not to be found in the path.
14930 if test "x$as_myself" = x; then
14933 if test ! -f "$as_myself"; then
14934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14938 # Unset variables that we do not need and which cause bugs (e.g. in
14939 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14940 # suppresses any "Segmentation fault" message there. '((' could
14941 # trigger a bug in pdksh 5.2.14.
14942 for as_var in BASH_ENV ENV MAIL MAILPATH
14943 do eval test x\${$as_var+set} = xset \
14944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14960 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14961 # ----------------------------------------
14962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14964 # script with STATUS, using 1 if that was 0.
14967 as_status=$1; test $as_status -eq 0 && as_status=1
14969 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14972 $as_echo "$as_me: error: $2" >&2
14973 as_fn_exit $as_status
14977 # as_fn_set_status STATUS
14978 # -----------------------
14979 # Set $? to STATUS, without forking.
14980 as_fn_set_status ()
14983 } # as_fn_set_status
14985 # as_fn_exit STATUS
14986 # -----------------
14987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14991 as_fn_set_status $1
14997 # Portably unset VAR.
15000 { eval $1=; unset $1;}
15002 as_unset=as_fn_unset
15003 # as_fn_append VAR VALUE
15004 # ----------------------
15005 # Append the text in VALUE to the end of the definition contained in VAR. Take
15006 # advantage of any shell optimizations that allow amortized linear growth over
15007 # repeated appends, instead of the typical quadratic growth present in naive
15009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15010 eval 'as_fn_append ()
15021 # as_fn_arith ARG...
15022 # ------------------
15023 # Perform arithmetic evaluation on the ARGs, and store the result in the
15024 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15025 # must be portable across $(()) and expr.
15026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15027 eval 'as_fn_arith ()
15034 as_val=`expr "$@" || test $? -eq 1`
15039 if expr a : '\(a\)' >/dev/null 2>&1 &&
15040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15046 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15047 as_basename=basename
15052 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15058 as_me=`$as_basename -- "$0" ||
15059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15060 X"$0" : 'X\(//\)$' \| \
15061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15063 sed '/^.*\/\([^/][^/]*\)\/*$/{
15077 # Avoid depending upon Character Ranges.
15078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15081 as_cr_digits='0123456789'
15082 as_cr_alnum=$as_cr_Letters$as_cr_digits
15084 ECHO_C= ECHO_N= ECHO_T=
15085 case `echo -n x` in #(((((
15087 case `echo 'xy\c'` in
15088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15097 rm -f conf$$ conf$$.exe conf$$.file
15098 if test -d conf$$.dir; then
15099 rm -f conf$$.dir/conf$$.file
15102 mkdir conf$$.dir 2>/dev/null
15104 if (echo >conf$$.file) 2>/dev/null; then
15105 if ln -s conf$$.file conf$$ 2>/dev/null; then
15107 # ... but there are two gotchas:
15108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15110 # In both cases, we have to default to `cp -pR'.
15111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15113 elif ln conf$$.file conf$$ 2>/dev/null; then
15121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15122 rmdir conf$$.dir 2>/dev/null
15127 # Create "$as_dir" as a directory, including parents if necessary.
15132 -*) as_dir=./$as_dir;;
15134 test -d "$as_dir" || eval $as_mkdir_p || {
15138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15139 *) as_qdir=$as_dir;;
15141 as_dirs="'$as_qdir' $as_dirs"
15142 as_dir=`$as_dirname -- "$as_dir" ||
15143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15144 X"$as_dir" : 'X\(//\)[^/]' \| \
15145 X"$as_dir" : 'X\(//\)$' \| \
15146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15147 $as_echo X"$as_dir" |
15148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15152 /^X\(\/\/\)[^/].*/{
15165 test -d "$as_dir" && break
15167 test -z "$as_dirs" || eval "mkdir $as_dirs"
15168 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15172 if mkdir -p . 2>/dev/null; then
15173 as_mkdir_p='mkdir -p "$as_dir"'
15175 test -d ./-p && rmdir ./-p
15180 # as_fn_executable_p FILE
15181 # -----------------------
15182 # Test if FILE is an executable regular file.
15183 as_fn_executable_p ()
15185 test -f "$1" && test -x "$1"
15186 } # as_fn_executable_p
15187 as_test_x='test -x'
15188 as_executable_p=as_fn_executable_p
15190 # Sed expression to map a string onto a valid CPP name.
15191 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15193 # Sed expression to map a string onto a valid variable name.
15194 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15198 ## ----------------------------------- ##
15199 ## Main body of $CONFIG_STATUS script. ##
15200 ## ----------------------------------- ##
15202 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15205 # Save the log message, to keep $0 and so on meaningful, and to
15206 # report actual input values of CONFIG_FILES etc. instead of their
15207 # values after options handling.
15209 This file was extended by mpc $as_me 1.0, which was
15210 generated by GNU Autoconf 2.69. Invocation command line was
15212 CONFIG_FILES = $CONFIG_FILES
15213 CONFIG_HEADERS = $CONFIG_HEADERS
15214 CONFIG_LINKS = $CONFIG_LINKS
15215 CONFIG_COMMANDS = $CONFIG_COMMANDS
15218 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15223 case $ac_config_files in *"
15224 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15227 case $ac_config_headers in *"
15228 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15233 # Files that config.status was made for.
15234 config_files="$ac_config_files"
15235 config_headers="$ac_config_headers"
15236 config_commands="$ac_config_commands"
15240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15242 \`$as_me' instantiates files and other configuration actions
15243 from templates according to the current configuration. Unless the files
15244 and actions are specified as TAGs, all are instantiated by default.
15246 Usage: $0 [OPTION]... [TAG]...
15248 -h, --help print this help, then exit
15249 -V, --version print version number and configuration settings, then exit
15250 --config print configuration, then exit
15251 -q, --quiet, --silent
15252 do not print progress messages
15253 -d, --debug don't remove temporary files
15254 --recheck update $as_me by reconfiguring in the same conditions
15255 --file=FILE[:TEMPLATE]
15256 instantiate the configuration file FILE
15257 --header=FILE[:TEMPLATE]
15258 instantiate the configuration header FILE
15260 Configuration files:
15263 Configuration headers:
15266 Configuration commands:
15269 Report bugs to <mpc-discuss@lists.gforge.inria.fr>."
15272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15273 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15275 mpc config.status 1.0
15276 configured by $0, generated by GNU Autoconf 2.69,
15277 with options \\"\$ac_cs_config\\"
15279 Copyright (C) 2012 Free Software Foundation, Inc.
15280 This config.status script is free software; the Free Software Foundation
15281 gives unlimited permission to copy, distribute and modify it."
15288 test -n "\$AWK" || AWK=awk
15291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15292 # The default lists apply if the user does not specify any file.
15298 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15315 # Handling of the options.
15316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15319 $as_echo "$ac_cs_version"; exit ;;
15320 --config | --confi | --conf | --con | --co | --c )
15321 $as_echo "$ac_cs_config"; exit ;;
15322 --debug | --debu | --deb | --de | --d | -d )
15324 --file | --fil | --fi | --f )
15327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15328 '') as_fn_error $? "missing file argument" ;;
15330 as_fn_append CONFIG_FILES " '$ac_optarg'"
15331 ac_need_defaults=false;;
15332 --header | --heade | --head | --hea )
15335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15337 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15338 ac_need_defaults=false;;
15340 # Conflict between --help and --header
15341 as_fn_error $? "ambiguous option: \`$1'
15342 Try \`$0 --help' for more information.";;
15343 --help | --hel | -h )
15344 $as_echo "$ac_cs_usage"; exit ;;
15345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15349 # This is an error.
15350 -*) as_fn_error $? "unrecognized option: \`$1'
15351 Try \`$0 --help' for more information." ;;
15353 *) as_fn_append ac_config_targets " $1"
15354 ac_need_defaults=false ;;
15360 ac_configure_extra_args=
15362 if $ac_cs_silent; then
15364 ac_configure_extra_args="$ac_configure_extra_args --silent"
15368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15369 if \$ac_cs_recheck; then
15370 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15373 CONFIG_SHELL='$SHELL'
15374 export CONFIG_SHELL
15379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15384 ## Running $as_me. ##
15390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15394 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15397 # The HP-UX ksh and POSIX shell print the target directory to stdout
15398 # if CDPATH is set.
15399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15401 sed_quote_subst='$sed_quote_subst'
15402 double_quote_subst='$double_quote_subst'
15403 delay_variable_subst='$delay_variable_subst'
15404 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15405 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15406 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15407 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15408 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15409 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15410 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15411 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15412 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15413 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15414 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15415 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15416 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15417 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15418 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15419 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15420 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15421 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15422 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15423 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15424 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15425 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15426 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15427 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15428 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15429 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15430 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15431 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15432 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15433 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15434 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15435 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15436 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15437 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15438 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15439 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15440 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15441 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15442 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15443 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15444 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15445 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15446 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15447 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15448 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15449 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15450 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15451 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15452 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15453 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15454 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15455 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15456 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15457 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15458 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15459 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"`'
15460 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15461 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15462 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15463 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15464 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15465 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15466 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15467 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15468 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15469 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15470 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15471 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15472 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15473 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15474 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15475 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15476 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15477 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15478 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15479 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15480 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15481 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15482 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15483 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15484 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15485 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15486 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15487 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15488 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15489 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15490 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15491 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15492 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15493 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15494 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15495 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15496 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15497 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15498 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15499 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15500 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15501 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15502 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15503 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15504 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15505 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15506 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15507 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15508 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15509 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15510 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15511 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15512 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15513 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15514 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15515 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15516 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15517 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15518 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15519 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15520 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15521 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15522 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15523 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15524 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15525 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15526 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15527 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15528 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15529 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15530 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15531 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15532 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15533 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15534 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15537 LTCFLAGS='$LTCFLAGS'
15538 compiler='$compiler_DEFAULT'
15540 # A function that is used when there is no print builtin or printf.
15541 func_fallback_echo ()
15543 eval 'cat <<_LTECHO_EOF
15548 # Quote evaled strings.
15562 deplibs_check_method \
15567 sharedlib_from_linklib_cmd \
15570 archiver_list_spec \
15576 lt_cv_sys_global_symbol_pipe \
15577 lt_cv_sys_global_symbol_to_cdecl \
15578 lt_cv_sys_global_symbol_to_c_name_address \
15579 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15580 nm_file_list_spec \
15581 lt_prog_compiler_no_builtin_flag \
15582 lt_prog_compiler_pic \
15583 lt_prog_compiler_wl \
15584 lt_prog_compiler_static \
15585 lt_cv_prog_compiler_c_o \
15594 export_dynamic_flag_spec \
15595 whole_archive_flag_spec \
15596 compiler_needs_object \
15598 allow_undefined_flag \
15599 no_undefined_flag \
15600 hardcode_libdir_flag_spec \
15601 hardcode_libdir_flag_spec_ld \
15602 hardcode_libdir_separator \
15606 variables_saved_for_relink \
15608 library_names_spec \
15610 install_override_mode \
15615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15616 *[\\\\\\\`\\"\\\$]*)
15617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15625 # Double-quote double-evaled strings.
15626 for var in reload_cmds \
15627 old_postinstall_cmds \
15628 old_postuninstall_cmds \
15630 extract_expsyms_cmds \
15631 old_archive_from_new_cmds \
15632 old_archive_from_expsyms_cmds \
15634 archive_expsym_cmds \
15636 module_expsym_cmds \
15637 export_symbols_cmds \
15641 postuninstall_cmds \
15643 sys_lib_search_path_spec \
15644 sys_lib_dlsearch_path_spec; do
15645 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15646 *[\\\\\\\`\\"\\\$]*)
15647 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15650 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15655 ac_aux_dir='$ac_aux_dir'
15656 xsi_shell='$xsi_shell'
15657 lt_shell_append='$lt_shell_append'
15659 # See if we are running on zsh, and set the options which allow our
15660 # commands through without removal of \ escapes INIT.
15661 if test -n "\${ZSH_VERSION+set}" ; then
15662 setopt NO_GLOB_SUBST
15668 TIMESTAMP='$TIMESTAMP'
15677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15679 # Handling of arguments.
15680 for ac_config_target in $ac_config_targets
15682 case $ac_config_target in
15683 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15684 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15685 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15687 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15688 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15689 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15691 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15696 # If the user did not use the arguments to specify the items to instantiate,
15697 # then the envvar interface is used. Set only those that are not.
15698 # We use the long form for the default assignment because of an extremely
15699 # bizarre bug on SunOS 4.1.3.
15700 if $ac_need_defaults; then
15701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15706 # Have a temporary directory for convenience. Make it in the build tree
15707 # simply because there is no reason against having it here, and in addition,
15708 # creating and moving files from /tmp can sometimes cause problems.
15709 # Hook for its removal unless debugging.
15710 # Note that there is a small window in which the directory will not be cleaned:
15711 # after its creation but before its name has been assigned to `$tmp'.
15715 trap 'exit_status=$?
15716 : "${ac_tmp:=$tmp}"
15717 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15719 trap 'as_fn_exit 1' 1 2 13 15
15721 # Create a (secure) tmp directory for tmp files.
15724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15728 tmp=./conf$$-$RANDOM
15729 (umask 077 && mkdir "$tmp")
15730 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15733 # Set up the scripts for CONFIG_FILES section.
15734 # No need to generate them if there are no CONFIG_FILES.
15735 # This happens for instance with `./config.status config.h'.
15736 if test -n "$CONFIG_FILES"; then
15739 ac_cr=`echo X | tr X '\015'`
15740 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15741 # But we know of no other shell where ac_cr would be empty at this
15742 # point, so we can use a bashism as a fallback.
15743 if test "x$ac_cr" = x; then
15744 eval ac_cr=\$\'\\r\'
15746 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15747 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15750 ac_cs_awk_cr=$ac_cr
15753 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15758 echo "cat >conf$$subs.awk <<_ACEOF" &&
15759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15761 } >conf$$subs.sh ||
15762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15763 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15765 for ac_last_try in false false false false false :; do
15766 . ./conf$$subs.sh ||
15767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15770 if test $ac_delim_n = $ac_delim_num; then
15772 elif $ac_last_try; then
15773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15778 rm -f conf$$subs.sh
15780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15781 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15785 s/^/S["/; s/!.*/"]=/
15795 s/\(.\{148\}\)..*/\1/
15797 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15809 s/\(.\{148\}\)..*/\1/
15811 s/["\\]/\\&/g; s/^/"/; s/$/"/
15815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15820 ' <conf$$subs.awk | sed '
15825 ' >>$CONFIG_STATUS || ac_write_fail=1
15826 rm -f conf$$subs.awk
15827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15829 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15830 for (key in S) S_is_set[key] = 1
15836 nfields = split(line, field, "@")
15838 len = length(field[1])
15839 for (i = 2; i < nfields; i++) {
15841 keylen = length(key)
15842 if (S_is_set[key]) {
15844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15845 len += length(value) + length(field[++i])
15856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15857 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15861 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15862 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15865 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15866 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15867 # trailing colons and then remove the whole line if VPATH becomes empty
15868 # (actually we leave an empty line to preserve line numbers).
15869 if test "x$srcdir" = x.; then
15870 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15889 fi # test -n "$CONFIG_FILES"
15891 # Set up the scripts for CONFIG_HEADERS section.
15892 # No need to generate them if there are no CONFIG_HEADERS.
15893 # This happens for instance with `./config.status Makefile'.
15894 if test -n "$CONFIG_HEADERS"; then
15895 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15899 # Transform confdefs.h into an awk script `defines.awk', embedded as
15900 # here-document in config.status, that substitutes the proper values into
15901 # config.h.in to produce config.h.
15903 # Create a delimiter string that does not exist in confdefs.h, to ease
15904 # handling of long lines.
15906 for ac_last_try in false false :; do
15907 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15908 if test -z "$ac_tt"; then
15910 elif $ac_last_try; then
15911 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15917 # For the awk script, D is an array of macro values keyed by name,
15918 # likewise P contains macro parameters if any. Preserve backslash
15919 # newline sequences.
15921 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15923 s/.\{148\}/&'"$ac_delim"'/g
15926 s/^[ ]*#[ ]*define[ ][ ]*/ /
15933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15935 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15939 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15940 D["\1"]=" \3\\\\\\n"\\/p
15942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15947 s/.\{148\}/&'"$ac_delim"'/g
15952 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15955 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15957 ' <confdefs.h | sed '
15958 s/'"$ac_delim"'/"\\\
15959 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15962 for (key in D) D_is_set[key] = 1
15965 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15967 split(line, arg, " ")
15968 if (arg[1] == "#") {
15972 defundef = substr(arg[1], 2)
15975 split(mac1, mac2, "(") #)
15977 prefix = substr(line, 1, index(line, defundef) - 1)
15978 if (D_is_set[macro]) {
15979 # Preserve the white space surrounding the "#".
15980 print prefix "define", macro P[macro] D[macro]
15983 # Replace #undef with comments. This is necessary, for example,
15984 # in the case of _POSIX_SOURCE, which is predefined and required
15985 # on some systems where configure will not decide to define it.
15986 if (defundef == "undef") {
15987 print "/*", prefix defundef, macro, "*/"
15995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15996 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15997 fi # test -n "$CONFIG_HEADERS"
16000 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16005 :[FHLC]) ac_mode=$ac_tag; continue;;
16007 case $ac_mode$ac_tag in
16009 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16010 :[FH]-) ac_tag=-:-;;
16011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16028 -) ac_f="$ac_tmp/stdin";;
16029 *) # Look for the file first in the build tree, then in the source tree
16030 # (if the path is not absolute). The absolute path cannot be DOS-style,
16031 # because $ac_f cannot contain `:'.
16035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16037 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16039 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16040 as_fn_append ac_file_inputs " '$ac_f'"
16043 # Let's still pretend it is `configure' which instantiates (i.e., don't
16044 # use $as_me), people would be surprised to read:
16045 # /* config.h. Generated by config.status. */
16046 configure_input='Generated from '`
16047 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16049 if test x"$ac_file" != x-; then
16050 configure_input="$ac_file. $configure_input"
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16052 $as_echo "$as_me: creating $ac_file" >&6;}
16054 # Neutralize special characters interpreted by sed in replacement strings.
16055 case $configure_input in #(
16056 *\&* | *\|* | *\\* )
16057 ac_sed_conf_input=`$as_echo "$configure_input" |
16058 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16059 *) ac_sed_conf_input=$configure_input;;
16063 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16069 ac_dir=`$as_dirname -- "$ac_file" ||
16070 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16071 X"$ac_file" : 'X\(//\)[^/]' \| \
16072 X"$ac_file" : 'X\(//\)$' \| \
16073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16074 $as_echo X"$ac_file" |
16075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16079 /^X\(\/\/\)[^/].*/{
16092 as_dir="$ac_dir"; as_fn_mkdir_p
16096 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16098 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16099 # A ".." for each directory in $ac_dir_suffix.
16100 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16101 case $ac_top_builddir_sub in
16102 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16103 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16106 ac_abs_top_builddir=$ac_pwd
16107 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16108 # for backward compatibility:
16109 ac_top_builddir=$ac_top_build_prefix
16112 .) # We are building in place.
16114 ac_top_srcdir=$ac_top_builddir_sub
16115 ac_abs_top_srcdir=$ac_pwd ;;
16116 [\\/]* | ?:[\\/]* ) # Absolute name.
16117 ac_srcdir=$srcdir$ac_dir_suffix;
16118 ac_top_srcdir=$srcdir
16119 ac_abs_top_srcdir=$srcdir ;;
16120 *) # Relative name.
16121 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16122 ac_top_srcdir=$ac_top_build_prefix$srcdir
16123 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16125 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16136 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16138 ac_MKDIR_P=$MKDIR_P
16140 [\\/$]* | ?:[\\/]* ) ;;
16141 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16146 # If the template does not know about datarootdir, expand it.
16147 # FIXME: This hack should be removed a few years after 2.60.
16148 ac_datarootdir_hack=; ac_datarootdir_seen=
16159 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16160 *datarootdir*) ac_datarootdir_seen=yes;;
16161 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16163 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16166 ac_datarootdir_hack='
16167 s&@datadir@&$datadir&g
16168 s&@docdir@&$docdir&g
16169 s&@infodir@&$infodir&g
16170 s&@localedir@&$localedir&g
16171 s&@mandir@&$mandir&g
16172 s&\\\${datarootdir}&$datarootdir&g' ;;
16176 # Neutralize VPATH when `$srcdir' = `.'.
16177 # Shell code in configure.ac might set extrasub.
16178 # FIXME: do we really want to maintain this feature?
16179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16180 ac_sed_extra="$ac_vpsub
16183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16186 s|@configure_input@|$ac_sed_conf_input|;t t
16187 s&@top_builddir@&$ac_top_builddir_sub&;t t
16188 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16189 s&@srcdir@&$ac_srcdir&;t t
16190 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16191 s&@top_srcdir@&$ac_top_srcdir&;t t
16192 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16193 s&@builddir@&$ac_builddir&;t t
16194 s&@abs_builddir@&$ac_abs_builddir&;t t
16195 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16196 s&@INSTALL@&$ac_INSTALL&;t t
16197 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16198 $ac_datarootdir_hack
16200 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16201 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16203 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16204 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16206 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16208 which seems to be undefined. Please make sure it is defined" >&5
16209 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16210 which seems to be undefined. Please make sure it is defined" >&2;}
16212 rm -f "$ac_tmp/stdin"
16214 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16215 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16223 if test x"$ac_file" != x-; then
16225 $as_echo "/* $configure_input */" \
16226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16227 } >"$ac_tmp/config.h" \
16228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16229 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16231 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16234 mv "$ac_tmp/config.h" "$ac_file" \
16235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16238 $as_echo "/* $configure_input */" \
16239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16240 || as_fn_error $? "could not create -" "$LINENO" 5
16242 # Compute "$ac_file"'s index in $config_headers.
16245 for _am_header in $config_headers :; do
16246 case $_am_header in
16247 $_am_arg | $_am_arg:* )
16250 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16253 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16254 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16255 X"$_am_arg" : 'X\(//\)[^/]' \| \
16256 X"$_am_arg" : 'X\(//\)$' \| \
16257 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16258 $as_echo X"$_am_arg" |
16259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16263 /^X\(\/\/\)[^/].*/{
16275 s/.*/./; q'`/stamp-h$_am_stamp_count
16278 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16279 $as_echo "$as_me: executing $ac_file commands" >&6;}
16284 case $ac_file$ac_mode in
16285 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16286 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16287 # are listed without --file. Let's play safe and only enable the eval
16288 # if we detect the quoting.
16289 case $CONFIG_FILES in
16290 *\'*) eval set x "$CONFIG_FILES" ;;
16291 *) set x $CONFIG_FILES ;;
16296 # Strip MF so we end up with the name of the file.
16297 mf=`echo "$mf" | sed -e 's/:.*$//'`
16298 # Check whether this is an Automake generated Makefile or not.
16299 # We used to match only the files named `Makefile.in', but
16300 # some people rename them; so instead we look at the file content.
16301 # Grep'ing the first line is not enough: some people post-process
16302 # each Makefile.in and add a new line on top of each file to say so.
16303 # Grep'ing the whole file is not good either: AIX grep has a line
16304 # limit of 2048, but all sed's we know have understand at least 4000.
16305 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16306 dirpart=`$as_dirname -- "$mf" ||
16307 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16308 X"$mf" : 'X\(//\)[^/]' \| \
16309 X"$mf" : 'X\(//\)$' \| \
16310 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16316 /^X\(\/\/\)[^/].*/{
16332 # Extract the definition of DEPDIR, am__include, and am__quote
16333 # from the Makefile without running `make'.
16334 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16335 test -z "$DEPDIR" && continue
16336 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16337 test -z "am__include" && continue
16338 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16339 # When using ansi2knr, U may be empty or an underscore; expand it
16340 U=`sed -n 's/^U = //p' < "$mf"`
16341 # Find all dependency output files, they are included files with
16342 # $(DEPDIR) in their names. We invoke sed twice because it is the
16343 # simplest approach to changing $(DEPDIR) to its actual value in the
16345 for file in `sed -n "
16346 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16347 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16348 # Make sure the directory exists.
16349 test -f "$dirpart/$file" && continue
16350 fdir=`$as_dirname -- "$file" ||
16351 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16352 X"$file" : 'X\(//\)[^/]' \| \
16353 X"$file" : 'X\(//\)$' \| \
16354 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16355 $as_echo X"$file" |
16356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16360 /^X\(\/\/\)[^/].*/{
16373 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16374 # echo "creating $dirpart/$file"
16375 echo '# dummy' > "$dirpart/$file"
16382 # See if we are running on zsh, and set the options which allow our
16383 # commands through without removal of \ escapes.
16384 if test -n "${ZSH_VERSION+set}" ; then
16385 setopt NO_GLOB_SUBST
16388 cfgfile="${ofile}T"
16389 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16392 cat <<_LT_EOF >> "$cfgfile"
16395 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16396 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16397 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16398 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16400 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16401 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16403 # Written by Gordon Matzigkeit, 1996
16405 # This file is part of GNU Libtool.
16407 # GNU Libtool is free software; you can redistribute it and/or
16408 # modify it under the terms of the GNU General Public License as
16409 # published by the Free Software Foundation; either version 2 of
16410 # the License, or (at your option) any later version.
16412 # As a special exception to the GNU General Public License,
16413 # if you distribute this file as part of a program or library that
16414 # is built using GNU Libtool, you may include this file under the
16415 # same distribution terms that you use for the rest of that program.
16417 # GNU Libtool is distributed in the hope that it will be useful,
16418 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16419 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16420 # GNU General Public License for more details.
16422 # You should have received a copy of the GNU General Public License
16423 # along with GNU Libtool; see the file COPYING. If not, a copy
16424 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16425 # obtained by writing to the Free Software Foundation, Inc.,
16426 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16429 # The names of the tagged configurations supported by this script.
16432 # ### BEGIN LIBTOOL CONFIG
16434 # Which release of libtool.m4 was used?
16435 macro_version=$macro_version
16436 macro_revision=$macro_revision
16438 # Whether or not to build shared libraries.
16439 build_libtool_libs=$enable_shared
16441 # Whether or not to build static libraries.
16442 build_old_libs=$enable_static
16444 # What type of objects to build.
16447 # Whether or not to optimize for fast installation.
16448 fast_install=$enable_fast_install
16450 # Shell to use when invoking shell scripts.
16453 # An echo program that protects backslashes.
16457 host_alias=$host_alias
16461 # The build system.
16462 build_alias=$build_alias
16466 # A sed program that does not truncate output.
16469 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16470 Xsed="\$SED -e 1s/^X//"
16472 # A grep program that handles long lines.
16478 # A literal string matcher.
16481 # A BSD- or MS-compatible name lister.
16484 # Whether we need soft or hard links.
16487 # What is the maximum length of a command?
16488 max_cmd_len=$max_cmd_len
16490 # Object file suffix (normally "o").
16493 # Executable file suffix (normally "").
16496 # whether the shell understands "unset".
16499 # turn spaces into newlines.
16502 # turn newlines into spaces.
16505 # convert \$build file names to \$host format.
16506 to_host_file_cmd=$lt_cv_to_host_file_cmd
16508 # convert \$build files to toolchain format.
16509 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16511 # An object symbol dumper.
16512 OBJDUMP=$lt_OBJDUMP
16514 # Method to check whether dependent libraries are shared objects.
16515 deplibs_check_method=$lt_deplibs_check_method
16517 # Command to use when deplibs_check_method = "file_magic".
16518 file_magic_cmd=$lt_file_magic_cmd
16520 # How to find potential files when deplibs_check_method = "file_magic".
16521 file_magic_glob=$lt_file_magic_glob
16523 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16524 want_nocaseglob=$lt_want_nocaseglob
16526 # DLL creation program.
16527 DLLTOOL=$lt_DLLTOOL
16529 # Command to associate shared and link libraries.
16530 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16535 # Flags to create an archive.
16536 AR_FLAGS=$lt_AR_FLAGS
16538 # How to feed a file listing to the archiver.
16539 archiver_list_spec=$lt_archiver_list_spec
16541 # A symbol stripping program.
16544 # Commands used to install an old-style archive.
16546 old_postinstall_cmds=$lt_old_postinstall_cmds
16547 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16549 # Whether to use a lock for old archive extraction.
16550 lock_old_archive_extraction=$lock_old_archive_extraction
16555 # LTCC compiler flags.
16556 LTCFLAGS=$lt_CFLAGS
16558 # Take the output of nm and produce a listing of raw symbols and C names.
16559 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16561 # Transform the output of nm in a proper C declaration.
16562 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16564 # Transform the output of nm in a C name address pair.
16565 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16567 # Transform the output of nm in a C name address pair when lib prefix is needed.
16568 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16570 # Specify filename containing input files for \$NM.
16571 nm_file_list_spec=$lt_nm_file_list_spec
16573 # The root where to search for dependent libraries,and in which our libraries should be installed.
16574 lt_sysroot=$lt_sysroot
16576 # The name of the directory that contains temporary libtool files.
16579 # Used to examine libraries when file_magic_cmd begins with "file".
16580 MAGIC_CMD=$MAGIC_CMD
16582 # Must we lock files when doing compilation?
16583 need_locks=$lt_need_locks
16586 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16588 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16589 DSYMUTIL=$lt_DSYMUTIL
16591 # Tool to change global to local symbols on Mac OS X.
16594 # Tool to manipulate fat objects and archives on Mac OS X.
16597 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16600 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16601 OTOOL64=$lt_OTOOL64
16603 # Old archive suffix (normally "a").
16606 # Shared library suffix (normally ".so").
16607 shrext_cmds=$lt_shrext_cmds
16609 # The commands to extract the exported symbol list from a shared archive.
16610 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16612 # Variables whose values should be saved in libtool wrapper scripts and
16613 # restored at link time.
16614 variables_saved_for_relink=$lt_variables_saved_for_relink
16616 # Do we need the "lib" prefix for modules?
16617 need_lib_prefix=$need_lib_prefix
16619 # Do we need a version for libraries?
16620 need_version=$need_version
16622 # Library versioning type.
16623 version_type=$version_type
16625 # Shared library runtime path variable.
16626 runpath_var=$runpath_var
16628 # Shared library path variable.
16629 shlibpath_var=$shlibpath_var
16631 # Is shlibpath searched before the hard-coded library search path?
16632 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16634 # Format of library name prefix.
16635 libname_spec=$lt_libname_spec
16637 # List of archive names. First name is the real one, the rest are links.
16638 # The last name is the one that the linker finds with -lNAME
16639 library_names_spec=$lt_library_names_spec
16641 # The coded name of the library, if different from the real name.
16642 soname_spec=$lt_soname_spec
16644 # Permission mode override for installation of shared libraries.
16645 install_override_mode=$lt_install_override_mode
16647 # Command to use after installation of a shared archive.
16648 postinstall_cmds=$lt_postinstall_cmds
16650 # Command to use after uninstallation of a shared archive.
16651 postuninstall_cmds=$lt_postuninstall_cmds
16653 # Commands used to finish a libtool library installation in a directory.
16654 finish_cmds=$lt_finish_cmds
16656 # As "finish_cmds", except a single script fragment to be evaled but
16658 finish_eval=$lt_finish_eval
16660 # Whether we should hardcode library paths into libraries.
16661 hardcode_into_libs=$hardcode_into_libs
16663 # Compile-time system search path for libraries.
16664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16666 # Run-time system search path for libraries.
16667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16669 # Whether dlopen is supported.
16670 dlopen_support=$enable_dlopen
16672 # Whether dlopen of programs is supported.
16673 dlopen_self=$enable_dlopen_self
16675 # Whether dlopen of statically linked programs is supported.
16676 dlopen_self_static=$enable_dlopen_self_static
16678 # Commands to strip libraries.
16679 old_striplib=$lt_old_striplib
16680 striplib=$lt_striplib
16682 # Assembler program.
16686 # The linker used to build libraries.
16689 # How to create reloadable object files.
16690 reload_flag=$lt_reload_flag
16691 reload_cmds=$lt_reload_cmds
16693 # Commands used to build an old-style archive.
16694 old_archive_cmds=$lt_old_archive_cmds
16696 # A language specific compiler.
16699 # Is the compiler the GNU compiler?
16702 # Compiler flag to turn off builtin functions.
16703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16705 # Additional compiler flags for building library objects.
16706 pic_flag=$lt_lt_prog_compiler_pic
16708 # How to pass a linker flag through the compiler.
16709 wl=$lt_lt_prog_compiler_wl
16711 # Compiler flag to prevent dynamic linking.
16712 link_static_flag=$lt_lt_prog_compiler_static
16714 # Does compiler simultaneously support -c and -o options?
16715 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16717 # Whether or not to add -lc for building shared libraries.
16718 build_libtool_need_lc=$archive_cmds_need_lc
16720 # Whether or not to disallow shared libs when runtime libs are static.
16721 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16723 # Compiler flag to allow reflexive dlopens.
16724 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16726 # Compiler flag to generate shared objects directly from archives.
16727 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16729 # Whether the compiler copes with passing no objects directly.
16730 compiler_needs_object=$lt_compiler_needs_object
16732 # Create an old-style archive from a shared archive.
16733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16735 # Create a temporary old-style archive to link instead of a shared archive.
16736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16738 # Commands used to build a shared archive.
16739 archive_cmds=$lt_archive_cmds
16740 archive_expsym_cmds=$lt_archive_expsym_cmds
16742 # Commands used to build a loadable module if different from building
16743 # a shared archive.
16744 module_cmds=$lt_module_cmds
16745 module_expsym_cmds=$lt_module_expsym_cmds
16747 # Whether we are building with GNU ld or not.
16748 with_gnu_ld=$lt_with_gnu_ld
16750 # Flag that allows shared libraries with undefined symbols to be built.
16751 allow_undefined_flag=$lt_allow_undefined_flag
16753 # Flag that enforces no undefined symbols.
16754 no_undefined_flag=$lt_no_undefined_flag
16756 # Flag to hardcode \$libdir into a binary during linking.
16757 # This must work even if \$libdir does not exist
16758 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16760 # If ld is used when linking, flag to hardcode \$libdir into a binary
16761 # during linking. This must work even if \$libdir does not exist.
16762 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16764 # Whether we need a single "-rpath" flag with a separated argument.
16765 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16767 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16768 # DIR into the resulting binary.
16769 hardcode_direct=$hardcode_direct
16771 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16772 # DIR into the resulting binary and the resulting library dependency is
16773 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16774 # library is relocated.
16775 hardcode_direct_absolute=$hardcode_direct_absolute
16777 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16778 # into the resulting binary.
16779 hardcode_minus_L=$hardcode_minus_L
16781 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16782 # into the resulting binary.
16783 hardcode_shlibpath_var=$hardcode_shlibpath_var
16785 # Set to "yes" if building a shared library automatically hardcodes DIR
16786 # into the library and all subsequent libraries and executables linked
16788 hardcode_automatic=$hardcode_automatic
16790 # Set to yes if linker adds runtime paths of dependent libraries
16791 # to runtime path list.
16792 inherit_rpath=$inherit_rpath
16794 # Whether libtool must link a program against all its dependency libraries.
16795 link_all_deplibs=$link_all_deplibs
16797 # Set to "yes" if exported symbols are required.
16798 always_export_symbols=$always_export_symbols
16800 # The commands to list exported symbols.
16801 export_symbols_cmds=$lt_export_symbols_cmds
16803 # Symbols that should not be listed in the preloaded symbols.
16804 exclude_expsyms=$lt_exclude_expsyms
16806 # Symbols that must always be exported.
16807 include_expsyms=$lt_include_expsyms
16809 # Commands necessary for linking programs (against libraries) with templates.
16810 prelink_cmds=$lt_prelink_cmds
16812 # Commands necessary for finishing linking programs.
16813 postlink_cmds=$lt_postlink_cmds
16815 # Specify filename containing input files.
16816 file_list_spec=$lt_file_list_spec
16818 # How to hardcode a shared library path into an executable.
16819 hardcode_action=$hardcode_action
16821 # ### END LIBTOOL CONFIG
16827 cat <<\_LT_EOF >> "$cfgfile"
16828 # AIX sometimes has problems with the GCC collect2 program. For some
16829 # reason, if we set the COLLECT_NAMES environment variable, the problems
16830 # vanish in a puff of smoke.
16831 if test "X${COLLECT_NAMES+set}" != Xset; then
16833 export COLLECT_NAMES
16840 ltmain="$ac_aux_dir/ltmain.sh"
16843 # We use sed instead of cat because bash on DJGPP gets confused if
16844 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16845 # text mode, it properly converts lines to CR/LF. This bash problem
16846 # is reportedly fixed, but why not run on old versions too?
16847 sed '$q' "$ltmain" >> "$cfgfile" \
16848 || (rm -f "$cfgfile"; exit 1)
16850 if test x"$xsi_shell" = xyes; then
16851 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16855 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16856 \ * ) func_dirname_result="${3}" ;;\
16858 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16859 && mv -f "$cfgfile.tmp" "$cfgfile" \
16860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16861 test 0 -eq $? || _lt_function_replace_fail=:
16864 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16867 \ func_basename_result="${1##*/}"\
16868 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16869 && mv -f "$cfgfile.tmp" "$cfgfile" \
16870 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16871 test 0 -eq $? || _lt_function_replace_fail=:
16874 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16875 func_dirname_and_basename ()\
16878 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16879 \ * ) func_dirname_result="${3}" ;;\
16881 \ func_basename_result="${1##*/}"\
16882 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16883 && mv -f "$cfgfile.tmp" "$cfgfile" \
16884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16885 test 0 -eq $? || _lt_function_replace_fail=:
16888 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16891 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16892 \ # positional parameters, so assign one to ordinary parameter first.\
16893 \ func_stripname_result=${3}\
16894 \ func_stripname_result=${func_stripname_result#"${1}"}\
16895 \ func_stripname_result=${func_stripname_result%"${2}"}\
16896 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16897 && mv -f "$cfgfile.tmp" "$cfgfile" \
16898 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16899 test 0 -eq $? || _lt_function_replace_fail=:
16902 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16903 func_split_long_opt ()\
16905 \ func_split_long_opt_name=${1%%=*}\
16906 \ func_split_long_opt_arg=${1#*=}\
16907 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16908 && mv -f "$cfgfile.tmp" "$cfgfile" \
16909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16910 test 0 -eq $? || _lt_function_replace_fail=:
16913 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16914 func_split_short_opt ()\
16916 \ func_split_short_opt_arg=${1#??}\
16917 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16918 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16919 && mv -f "$cfgfile.tmp" "$cfgfile" \
16920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16921 test 0 -eq $? || _lt_function_replace_fail=:
16924 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16928 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16929 \ *) func_lo2o_result=${1} ;;\
16931 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16932 && mv -f "$cfgfile.tmp" "$cfgfile" \
16933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16934 test 0 -eq $? || _lt_function_replace_fail=:
16937 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16940 func_xform_result=${1%.*}.lo\
16941 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16942 && mv -f "$cfgfile.tmp" "$cfgfile" \
16943 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16944 test 0 -eq $? || _lt_function_replace_fail=:
16947 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16950 func_arith_result=$(( $* ))\
16951 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16952 && mv -f "$cfgfile.tmp" "$cfgfile" \
16953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16954 test 0 -eq $? || _lt_function_replace_fail=:
16957 sed -e '/^func_len ()$/,/^} # func_len /c\
16960 func_len_result=${#1}\
16961 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16962 && mv -f "$cfgfile.tmp" "$cfgfile" \
16963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16964 test 0 -eq $? || _lt_function_replace_fail=:
16968 if test x"$lt_shell_append" = xyes; then
16969 sed -e '/^func_append ()$/,/^} # func_append /c\
16972 eval "${1}+=\\${2}"\
16973 } # Extended-shell func_append 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_append_quoted ()$/,/^} # func_append_quoted /c\
16980 func_append_quoted ()\
16982 \ func_quote_for_eval "${2}"\
16983 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16984 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16985 && mv -f "$cfgfile.tmp" "$cfgfile" \
16986 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16987 test 0 -eq $? || _lt_function_replace_fail=:
16990 # Save a `func_append' function call where possible by direct use of '+='
16991 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16992 && mv -f "$cfgfile.tmp" "$cfgfile" \
16993 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16994 test 0 -eq $? || _lt_function_replace_fail=:
16996 # Save a `func_append' function call even when '+=' is not available
16997 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $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 if test x"$_lt_function_replace_fail" = x":"; then
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17005 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17009 mv -f "$cfgfile" "$ofile" ||
17010 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17021 ac_clean_files=$ac_clean_files_save
17023 test $ac_write_fail = 0 ||
17024 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17027 # configure is writing to config.log, and then calls config.status.
17028 # config.status does its own redirection, appending to config.log.
17029 # Unfortunately, on DOS this fails, as config.log is still kept open
17030 # by configure, so config.status won't be able to write to it; its
17031 # output is simply discarded. So we exec the FD to /dev/null,
17032 # effectively closing config.log, so it can be properly (re)opened and
17033 # appended to by config.status. When coming back to configure, we
17034 # need to make the FD available again.
17035 if test "$no_create" != yes; then
17037 ac_config_status_args=
17038 test "$silent" = yes &&
17039 ac_config_status_args="$ac_config_status_args --quiet"
17041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17044 # would make configure fail if this is the last instruction.
17045 $ac_cs_success || as_fn_exit 1
17047 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17049 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}