2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for file 5.11.
5 # Report bugs to <christos@astron.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: christos@astron.com about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 # Check that we are running under the correct shell.
542 SHELL=${CONFIG_SHELL-/bin/sh}
546 # Remove one level of quotation (which was required for Make).
547 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
552 if test "X$1" = X--no-reexec; then
553 # Discard the --no-reexec flag, and continue.
555 elif test "X$1" = X--fallback-echo; then
556 # Avoid inline document here, it may be left over
558 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559 # Yippee, $ECHO works!
562 # Restart under the correct shell.
563 exec $SHELL "$0" --no-reexec ${1+"$@"}
566 if test "X$1" = X--fallback-echo; then
567 # used as fallback echo
575 # The HP-UX ksh and POSIX shell print the target directory to stdout
577 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579 if test -z "$lt_ECHO"; then
580 if test "X${echo_test_string+set}" != Xset; then
581 # find a string as large as possible, as long as the shell can cope with it
582 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
592 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594 test "X$echo_testing_string" = "X$echo_test_string"; then
597 # The Solaris, AIX, and Digital Unix default echo programs unquote
598 # backslashes. This makes it impossible to quote backslashes using
599 # echo "$something" | sed 's/\\/\\\\/g'
601 # So, first we look for a working echo in the user's PATH.
603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604 for dir in $PATH /usr/ucb; do
606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
616 if test "X$ECHO" = Xecho; then
617 # We didn't find a better echo, so look for alternatives.
618 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620 test "X$echo_testing_string" = "X$echo_test_string"; then
621 # This shell has a builtin print -r that does the trick.
623 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624 test "X$CONFIG_SHELL" != X/bin/ksh; then
625 # If we have ksh, try running configure again with it.
626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627 export ORIGINAL_CONFIG_SHELL
628 CONFIG_SHELL=/bin/ksh
630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
634 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636 test "X$echo_testing_string" = "X$echo_test_string"; then
639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
645 SHELL="$CONFIG_SHELL"
647 ECHO="$CONFIG_SHELL $0 --fallback-echo"
648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 ECHO="$CONFIG_SHELL $0 --fallback-echo"
654 # maybe with a smaller string...
657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
665 if test "$prev" != 'sed 50q "$0"'; then
666 echo_test_string=`eval $prev`
667 export echo_test_string
668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
670 # Oops. We lost completely, so just stick with echo.
679 # Copy echo and quote the copy suitably for passing to libtool from
680 # the Makefile, instead of quoting the original, which is used later.
682 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
689 test -n "$DJDIR" || exec 7<&0 </dev/null
693 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694 # so uname gets run too.
695 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
700 ac_default_prefix=/usr/local
702 ac_config_libobj_dir=.
709 # Identity of this package.
711 PACKAGE_TARNAME='file'
712 PACKAGE_VERSION='5.11'
713 PACKAGE_STRING='file 5.11'
714 PACKAGE_BUGREPORT='christos@astron.com'
717 # Factoring default headers for most tests.
718 ac_includes_default="\
720 #ifdef HAVE_SYS_TYPES_H
721 # include <sys/types.h>
723 #ifdef HAVE_SYS_STAT_H
724 # include <sys/stat.h>
730 # ifdef HAVE_STDLIB_H
735 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
740 #ifdef HAVE_STRINGS_H
741 # include <strings.h>
743 #ifdef HAVE_INTTYPES_H
744 # include <inttypes.h>
753 ac_subst_vars='am__EXEEXT_FALSE
756 IS_CROSS_COMPILE_FALSE
757 IS_CROSS_COMPILE_TRUE
821 INSTALL_STRIP_PROGRAM
863 program_transform_name
876 enable_option_checking
881 enable_dependency_tracking
891 ac_precious_vars='build_alias
902 # Initialize some variables set by options.
904 ac_init_version=false
905 ac_unrecognized_opts=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
916 program_transform_name=s,x,x,
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\$ac_option
962 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 # Accept the important Cygnus configure options, so we can diagnose typos.
969 case $ac_dashdash$ac_option in
973 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978 -build | --build | --buil | --bui | --bu)
979 ac_prev=build_alias ;;
980 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981 build_alias=$ac_optarg ;;
983 -cache-file | --cache-file | --cache-fil | --cache-fi \
984 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985 ac_prev=cache_file ;;
986 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988 cache_file=$ac_optarg ;;
991 cache_file=config.cache ;;
993 -datadir | --datadir | --datadi | --datad)
995 -datadir=* | --datadir=* | --datadi=* | --datad=*)
996 datadir=$ac_optarg ;;
998 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999 | --dataroo | --dataro | --datar)
1000 ac_prev=datarootdir ;;
1001 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003 datarootdir=$ac_optarg ;;
1005 -disable-* | --disable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_$ac_useropt"
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1019 eval enable_$ac_useropt=no ;;
1021 -docdir | --docdir | --docdi | --doc | --do)
1023 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024 docdir=$ac_optarg ;;
1026 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029 dvidir=$ac_optarg ;;
1031 -enable-* | --enable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid feature name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_$ac_useropt"
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1045 eval enable_$ac_useropt=\$ac_optarg ;;
1047 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049 | --exec | --exe | --ex)
1050 ac_prev=exec_prefix ;;
1051 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053 | --exec=* | --exe=* | --ex=*)
1054 exec_prefix=$ac_optarg ;;
1056 -gas | --gas | --ga | --g)
1057 # Obsolete; use --with-gas.
1060 -help | --help | --hel | --he | -h)
1061 ac_init_help=long ;;
1062 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063 ac_init_help=recursive ;;
1064 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065 ac_init_help=short ;;
1067 -host | --host | --hos | --ho)
1068 ac_prev=host_alias ;;
1069 -host=* | --host=* | --hos=* | --ho=*)
1070 host_alias=$ac_optarg ;;
1072 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 htmldir=$ac_optarg ;;
1078 -includedir | --includedir | --includedi | --included | --include \
1079 | --includ | --inclu | --incl | --inc)
1080 ac_prev=includedir ;;
1081 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082 | --includ=* | --inclu=* | --incl=* | --inc=*)
1083 includedir=$ac_optarg ;;
1085 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088 infodir=$ac_optarg ;;
1090 -libdir | --libdir | --libdi | --libd)
1092 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093 libdir=$ac_optarg ;;
1095 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096 | --libexe | --libex | --libe)
1097 ac_prev=libexecdir ;;
1098 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099 | --libexe=* | --libex=* | --libe=*)
1100 libexecdir=$ac_optarg ;;
1102 -localedir | --localedir | --localedi | --localed | --locale)
1103 ac_prev=localedir ;;
1104 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105 localedir=$ac_optarg ;;
1107 -localstatedir | --localstatedir | --localstatedi | --localstated \
1108 | --localstate | --localstat | --localsta | --localst | --locals)
1109 ac_prev=localstatedir ;;
1110 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112 localstatedir=$ac_optarg ;;
1114 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117 mandir=$ac_optarg ;;
1119 -nfp | --nfp | --nf)
1120 # Obsolete; use --without-fp.
1123 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124 | --no-cr | --no-c | -n)
1127 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133 | --oldin | --oldi | --old | --ol | --o)
1134 ac_prev=oldincludedir ;;
1135 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138 oldincludedir=$ac_optarg ;;
1140 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143 prefix=$ac_optarg ;;
1145 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146 | --program-pre | --program-pr | --program-p)
1147 ac_prev=program_prefix ;;
1148 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150 program_prefix=$ac_optarg ;;
1152 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153 | --program-suf | --program-su | --program-s)
1154 ac_prev=program_suffix ;;
1155 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157 program_suffix=$ac_optarg ;;
1159 -program-transform-name | --program-transform-name \
1160 | --program-transform-nam | --program-transform-na \
1161 | --program-transform-n | --program-transform- \
1162 | --program-transform | --program-transfor \
1163 | --program-transfo | --program-transf \
1164 | --program-trans | --program-tran \
1165 | --progr-tra | --program-tr | --program-t)
1166 ac_prev=program_transform_name ;;
1167 -program-transform-name=* | --program-transform-name=* \
1168 | --program-transform-nam=* | --program-transform-na=* \
1169 | --program-transform-n=* | --program-transform-=* \
1170 | --program-transform=* | --program-transfor=* \
1171 | --program-transfo=* | --program-transf=* \
1172 | --program-trans=* | --program-tran=* \
1173 | --progr-tra=* | --program-tr=* | --program-t=*)
1174 program_transform_name=$ac_optarg ;;
1176 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179 pdfdir=$ac_optarg ;;
1181 -psdir | --psdir | --psdi | --psd | --ps)
1183 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187 | -silent | --silent | --silen | --sile | --sil)
1190 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 sbindir=$ac_optarg ;;
1196 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198 | --sharedst | --shareds | --shared | --share | --shar \
1200 ac_prev=sharedstatedir ;;
1201 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 sharedstatedir=$ac_optarg ;;
1207 -site | --site | --sit)
1209 -site=* | --site=* | --sit=*)
1212 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215 srcdir=$ac_optarg ;;
1217 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218 | --syscon | --sysco | --sysc | --sys | --sy)
1219 ac_prev=sysconfdir ;;
1220 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222 sysconfdir=$ac_optarg ;;
1224 -target | --target | --targe | --targ | --tar | --ta | --t)
1225 ac_prev=target_alias ;;
1226 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227 target_alias=$ac_optarg ;;
1229 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 -version | --version | --versio | --versi | --vers | -V)
1233 ac_init_version=: ;;
1236 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1249 eval with_$ac_useropt=\$ac_optarg ;;
1251 -without-* | --without-*)
1252 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1265 eval with_$ac_useropt=no ;;
1268 # Obsolete; use --with-x.
1271 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272 | --x-incl | --x-inc | --x-in | --x-i)
1273 ac_prev=x_includes ;;
1274 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276 x_includes=$ac_optarg ;;
1278 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280 ac_prev=x_libraries ;;
1281 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283 x_libraries=$ac_optarg ;;
1285 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1290 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 case $ac_envvar in #(
1293 '' | [0-9]* | *[!_$as_cr_alnum]* )
1294 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296 eval $ac_envvar=\$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1310 if test -n "$ac_prev"; then
1311 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312 as_fn_error $? "missing argument to $ac_option"
1315 if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1318 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 # Check all directory arguments for consistency.
1324 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir
1329 eval ac_val=\$$ac_var
1330 # Remove trailing slashes.
1333 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\$ac_val;;
1336 # Be sure to have absolute directory names.
1338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1349 target=$target_alias
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353 if test "x$build_alias" = x; then
1354 cross_compiling=maybe
1355 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1356 If a cross compiler is detected then cross compile mode will be used" >&2
1357 elif test "x$build_alias" != "x$host_alias"; then
1363 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365 test "$silent" = yes && exec 6>/dev/null
1368 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di=`ls -di .` &&
1370 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $? "working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $? "pwd does not report name of working directory"
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1408 ac_srcdir_defaulted=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1414 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1426 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 for ac_var in $ac_precious_vars; do
1429 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_${ac_var}_value=\$${ac_var}
1431 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1442 \`configure' configures file 5.11 to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 if test -n "$ac_init_help"; then
1511 case $ac_init_help in
1512 short | recursive ) echo "Configuration of file 5.11:";;
1517 --disable-option-checking ignore unrecognized --enable/--with options
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1520 --enable-silent-rules less verbose build output (undo: `make V=1')
1521 --disable-silent-rules verbose build output (undo: `make V=0')
1522 --disable-elf disable builtin ELF support
1523 --disable-elf-core disable ELF core file support
1524 --enable-fsect-man5 enable file formats in man section 5
1525 --disable-dependency-tracking speeds up one-time build
1526 --enable-dependency-tracking do not reject slow dependency extractors
1527 --enable-shared[=PKGS] build shared libraries [default=yes]
1528 --enable-static[=PKGS] build static libraries [default=yes]
1529 --enable-fast-install[=PKGS]
1530 optimize for fast installation [default=yes]
1531 --disable-libtool-lock avoid locking (might break parallel builds)
1532 --disable-largefile omit support for large files
1533 --disable-warnings disable compiler warnings
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538 --with-pic try to use only PIC/non-PIC objects [default=use
1540 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1542 Some influential environment variables:
1543 CC C compiler command
1544 CFLAGS C compiler flags
1545 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1546 nonstandard directory <lib dir>
1547 LIBS libraries to pass to the linker, e.g. -l<library>
1548 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1549 you have headers in a nonstandard directory <include dir>
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1555 Report bugs to <christos@astron.com>.
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" ||
1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1585 .) # We are building in place.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for guested configure.
1602 if test -f "$ac_srcdir/configure.gnu"; then
1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605 elif test -f "$ac_srcdir/configure"; then
1607 $SHELL "$ac_srcdir/configure" --help=recursive
1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1611 cd "$ac_pwd" || { ac_status=$?; break; }
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1619 generated by GNU Autoconf 2.68
1621 Copyright (C) 2010 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1628 ## ------------------------ ##
1629 ## Autoconf initialization. ##
1630 ## ------------------------ ##
1632 # ac_fn_c_try_compile LINENO
1633 # --------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_compile ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_c_try_compile
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 if { { ac_try="$ac_cpp conftest.$ac_ext"
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } > conftest.i && {
1692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1707 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1708 # -------------------------------------------------------
1709 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1710 # the include files in INCLUDES and setting the cache variable VAR
1712 ac_fn_c_check_header_mongrel ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if eval \${$3+:} false; then :
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1717 $as_echo_n "checking for $2... " >&6; }
1718 if eval \${$3+:} false; then :
1719 $as_echo_n "(cached) " >&6
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1725 # Is the header compilable?
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1727 $as_echo_n "checking $2 usability... " >&6; }
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734 ac_header_compiler=yes
1736 ac_header_compiler=no
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1740 $as_echo "$ac_header_compiler" >&6; }
1742 # Is the header present?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1744 $as_echo_n "checking $2 presence... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1749 if ac_fn_c_try_cpp "$LINENO"; then :
1750 ac_header_preproc=yes
1752 ac_header_preproc=no
1754 rm -f conftest.err conftest.i conftest.$ac_ext
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1756 $as_echo "$ac_header_preproc" >&6; }
1758 # So? What about this header?
1759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1762 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1768 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1770 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1772 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1774 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1776 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 ( $as_echo "## ---------------------------------- ##
1778 ## Report this to christos@astron.com ##
1779 ## ---------------------------------- ##"
1780 ) | sed "s/^/$as_me: WARNING: /" >&2
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1788 eval "$3=\$ac_header_compiler"
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 } # ac_fn_c_check_header_mongrel
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 ac_retval=$ac_status
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1857 if ac_fn_c_try_compile "$LINENO"; then :
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_try_link LINENO
1872 # -----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 $as_test_x conftest$ac_exeext
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_c_try_link
1917 # ac_fn_c_check_func LINENO FUNC VAR
1918 # ----------------------------------
1919 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1920 ac_fn_c_check_func ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1932 #define $2 innocuous_$2
1934 /* System header to define __stub macros and hopefully few prototypes,
1935 which can conflict with char $2 (); below.
1936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1937 <limits.h> exists even on freestanding compilers. */
1940 # include <limits.h>
1942 # include <assert.h>
1947 /* Override any GCC internal prototype to avoid an error.
1948 Use char because int might match the return type of a GCC
1949 builtin and then its argument prototype would still apply. */
1954 /* The GNU C library defines this for functions which it implements
1955 to always fail with ENOSYS. Some functions are actually named
1956 something starting with __ and the normal name is an alias. */
1957 #if defined __stub_$2 || defined __stub___$2
1969 if ac_fn_c_try_link "$LINENO"; then :
1974 rm -f core conftest.err conftest.$ac_objext \
1975 conftest$ac_exeext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982 } # ac_fn_c_check_func
1984 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1985 # -------------------------------------------
1986 # Tests whether TYPE exists after having included INCLUDES, setting cache
1987 # variable VAR accordingly.
1988 ac_fn_c_check_type ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2022 if ac_fn_c_try_compile "$LINENO"; then :
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 } # ac_fn_c_check_type
2038 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2039 # ----------------------------------------------------
2040 # Tries to find if the field MEMBER exists in type AGGR, after including
2041 # INCLUDES, setting cache variable VAR accordingly.
2042 ac_fn_c_check_member ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2046 $as_echo_n "checking for $2.$3... " >&6; }
2047 if eval \${$4+:} false; then :
2048 $as_echo_n "(cached) " >&6
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2063 if ac_fn_c_try_compile "$LINENO"; then :
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2073 if (sizeof ac_aggr.$3)
2079 if ac_fn_c_try_compile "$LINENO"; then :
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 } # ac_fn_c_check_member
2095 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2096 # ---------------------------------------------
2097 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2099 ac_fn_c_check_decl ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 as_decl_name=`echo $2|sed 's/ *(.*//'`
2103 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2105 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2106 if eval \${$3+:} false; then :
2107 $as_echo_n "(cached) " >&6
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2115 #ifndef $as_decl_name
2117 (void) $as_decl_use;
2119 (void) $as_decl_name;
2127 if ac_fn_c_try_compile "$LINENO"; then :
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139 } # ac_fn_c_check_decl
2141 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2142 # --------------------------------------------
2143 # Tries to find the compile-time value of EXPR in a program that includes
2144 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2146 ac_fn_c_compute_int ()
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 if test "$cross_compiling" = yes; then
2150 # Depending upon the size, compute the lo and hi bounds.
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2157 static int test_array [1 - 2 * !(($2) >= 0)];
2164 if ac_fn_c_try_compile "$LINENO"; then :
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2180 if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_hi=$ac_mid; break
2183 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2184 if test $ac_lo -le $ac_mid; then
2188 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2199 static int test_array [1 - 2 * !(($2) < 0)];
2206 if ac_fn_c_try_compile "$LINENO"; then :
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2215 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_lo=$ac_mid; break
2225 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2226 if test $ac_mid -le $ac_hi; then
2230 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 # Binary search between lo and hi bounds.
2241 while test "x$ac_lo" != "x$ac_hi"; do
2242 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2256 if ac_fn_c_try_compile "$LINENO"; then :
2259 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2271 static long int longval () { return $2; }
2272 static unsigned long int ulongval () { return $2; }
2279 FILE *f = fopen ("conftest.val", "w");
2284 long int i = longval ();
2287 fprintf (f, "%ld", i);
2291 unsigned long int i = ulongval ();
2294 fprintf (f, "%lu", i);
2296 /* Do not output a trailing newline, as this causes \r\n confusion
2297 on some platforms. */
2298 return ferror (f) || fclose (f) != 0;
2304 if ac_fn_c_try_run "$LINENO"; then :
2305 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2310 conftest.$ac_objext conftest.beam conftest.$ac_ext
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 as_fn_set_status $ac_retval
2317 } # ac_fn_c_compute_int
2318 cat >config.log <<_ACEOF
2319 This file contains any messages produced by compilers while
2320 running configure, to aid debugging if configure makes a mistake.
2322 It was created by file $as_me 5.11, which was
2323 generated by GNU Autoconf 2.68. Invocation command line was
2335 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2341 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2344 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2345 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2346 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2348 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2349 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2350 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 $as_echo "PATH: $as_dir"
2375 # Keep a trace of the command line.
2376 # Strip out --no-create and --no-recursion so they do not pile up.
2377 # Strip out --silent because we don't want to record it for future runs.
2378 # Also quote any args containing shell meta-characters.
2379 # Make two passes to allow for proper duplicate-argument suppression.
2383 ac_must_keep_next=false
2389 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391 | -silent | --silent | --silen | --sile | --sil)
2394 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2397 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2399 as_fn_append ac_configure_args1 " '$ac_arg'"
2400 if test $ac_must_keep_next = true; then
2401 ac_must_keep_next=false # Got value, back to normal.
2404 *=* | --config-cache | -C | -disable-* | --disable-* \
2405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407 | -with-* | --with-* | -without-* | --without-* | --x)
2408 case "$ac_configure_args0 " in
2409 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2412 -* ) ac_must_keep_next=true ;;
2415 as_fn_append ac_configure_args " '$ac_arg'"
2420 { ac_configure_args0=; unset ac_configure_args0;}
2421 { ac_configure_args1=; unset ac_configure_args1;}
2423 # When interrupted or exit'd, cleanup temporary files, and complete
2424 # config.log. We remove comments because anyway the quotes in there
2425 # would cause problems or look ugly.
2426 # WARNING: Use '\'' to represent an apostrophe within the trap.
2427 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428 trap 'exit_status=$?
2429 # Save into config.log some information that might help in debugging.
2433 $as_echo "## ---------------- ##
2434 ## Cache variables. ##
2435 ## ---------------- ##"
2437 # The following way of writing the cache mishandles newlines in values,
2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440 eval ac_val=\$$ac_var
2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2448 _ | IFS | as_nl) ;; #(
2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450 *) { eval $ac_var=; unset $ac_var;} ;;
2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456 *${as_nl}ac_space=\ *)
2458 "s/'\''/'\''\\\\'\'''\''/g;
2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2469 $as_echo "## ----------------- ##
2470 ## Output variables. ##
2471 ## ----------------- ##"
2473 for ac_var in $ac_subst_vars
2475 eval ac_val=\$$ac_var
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479 $as_echo "$ac_var='\''$ac_val'\''"
2483 if test -n "$ac_subst_files"; then
2484 $as_echo "## ------------------- ##
2485 ## File substitutions. ##
2486 ## ------------------- ##"
2488 for ac_var in $ac_subst_files
2490 eval ac_val=\$$ac_var
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2494 $as_echo "$ac_var='\''$ac_val'\''"
2499 if test -s confdefs.h; then
2500 $as_echo "## ----------- ##
2507 test "$ac_signal" != 0 &&
2508 $as_echo "$as_me: caught signal $ac_signal"
2509 $as_echo "$as_me: exit $exit_status"
2511 rm -f core *.core core.conftest.* &&
2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2515 for ac_signal in 1 2 13 15; do
2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2521 rm -f -r conftest* confdefs.h
2523 $as_echo "/* confdefs.h */" > confdefs.h
2525 # Predefined preprocessor variables.
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_NAME "$PACKAGE_NAME"
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_STRING "$PACKAGE_STRING"
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_URL "$PACKAGE_URL"
2552 # Let the site file select an alternate cache file if it wants to.
2553 # Prefer an explicitly selected file to automatically selected ones.
2556 if test -n "$CONFIG_SITE"; then
2557 # We do not want a PATH search for config.site.
2558 case $CONFIG_SITE in #((
2559 -*) ac_site_file1=./$CONFIG_SITE;;
2560 */*) ac_site_file1=$CONFIG_SITE;;
2561 *) ac_site_file1=./$CONFIG_SITE;;
2563 elif test "x$prefix" != xNONE; then
2564 ac_site_file1=$prefix/share/config.site
2565 ac_site_file2=$prefix/etc/config.site
2567 ac_site_file1=$ac_default_prefix/share/config.site
2568 ac_site_file2=$ac_default_prefix/etc/config.site
2570 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2572 test "x$ac_site_file" = xNONE && continue
2573 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576 sed 's/^/| /' "$ac_site_file" >&5
2578 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 as_fn_error $? "failed to load site script $ac_site_file
2581 See \`config.log' for more details" "$LINENO" 5; }
2585 if test -r "$cache_file"; then
2586 # Some versions of bash will fail to source /dev/null (special files
2587 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2588 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590 $as_echo "$as_me: loading cache $cache_file" >&6;}
2592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593 *) . "./$cache_file";;
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598 $as_echo "$as_me: creating cache $cache_file" >&6;}
2602 # Check that the precious variables saved in the cache have kept the same
2604 ac_cache_corrupted=false
2605 for ac_var in $ac_precious_vars; do
2606 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2607 eval ac_new_set=\$ac_env_${ac_var}_set
2608 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2609 eval ac_new_val=\$ac_env_${ac_var}_value
2610 case $ac_old_set,$ac_new_set in
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2613 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2614 ac_cache_corrupted=: ;;
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2617 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2618 ac_cache_corrupted=: ;;
2621 if test "x$ac_old_val" != "x$ac_new_val"; then
2622 # differences in whitespace do not lead to failure.
2623 ac_old_val_w=`echo x $ac_old_val`
2624 ac_new_val_w=`echo x $ac_new_val`
2625 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2627 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2628 ac_cache_corrupted=:
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2631 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2632 eval $ac_var=\$ac_old_val
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2635 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2637 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2640 # Pass precious variables to config.status.
2641 if test "$ac_new_set" = set; then
2643 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2644 *) ac_arg=$ac_var=$ac_new_val ;;
2646 case " $ac_configure_args " in
2647 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2648 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2652 if $ac_cache_corrupted; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2656 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2657 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2659 ## -------------------- ##
2660 ## Main body of script. ##
2661 ## -------------------- ##
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 am__api_version='1.11'
2673 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2674 if test -f "$ac_dir/install-sh"; then
2676 ac_install_sh="$ac_aux_dir/install-sh -c"
2678 elif test -f "$ac_dir/install.sh"; then
2680 ac_install_sh="$ac_aux_dir/install.sh -c"
2682 elif test -f "$ac_dir/shtool"; then
2684 ac_install_sh="$ac_aux_dir/shtool install -c"
2688 if test -z "$ac_aux_dir"; then
2689 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2692 # These three variables are undocumented and unsupported,
2693 # and are intended to be withdrawn in a future Autoconf release.
2694 # They can cause serious problems if a builder's source tree is in a directory
2695 # whose full name contains unusual characters.
2696 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2697 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2698 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2701 # Find a good install program. We prefer a C program (faster),
2702 # so one script is as good as another. But avoid the broken or
2703 # incompatible versions:
2704 # SysV /etc/install, /usr/sbin/install
2705 # SunOS /usr/etc/install
2706 # IRIX /sbin/install
2708 # AmigaOS /C/install, which installs bootblocks on floppy discs
2709 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2710 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2711 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2712 # OS/2's system install, which has a completely different semantic
2713 # ./install, which can be erroneously created by make from ./install.sh.
2714 # Reject install programs that cannot install multiple files.
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2716 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2717 if test -z "$INSTALL"; then
2718 if ${ac_cv_path_install+:} false; then :
2719 $as_echo_n "(cached) " >&6
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir=.
2726 # Account for people who put trailing slashes in PATH elements.
2727 case $as_dir/ in #((
2728 ./ | .// | /[cC]/* | \
2729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2730 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2733 # OSF1 and SCO ODT 3.0 have their own names for install.
2734 # Don't use installbsd from OSF since it installs stuff as root
2736 for ac_prog in ginstall scoinst install; do
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2739 if test $ac_prog = install &&
2740 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2741 # AIX install. It has an incompatible calling convention.
2743 elif test $ac_prog = install &&
2744 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2745 # program-specific install script used by HP pwplus--don't use.
2748 rm -rf conftest.one conftest.two conftest.dir
2749 echo one > conftest.one
2750 echo two > conftest.two
2752 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2753 test -s conftest.one && test -s conftest.two &&
2754 test -s conftest.dir/conftest.one &&
2755 test -s conftest.dir/conftest.two
2757 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2770 rm -rf conftest.one conftest.two conftest.dir
2773 if test "${ac_cv_path_install+set}" = set; then
2774 INSTALL=$ac_cv_path_install
2776 # As a last resort, use the slow shell script. Don't cache a
2777 # value for INSTALL within a source directory, because that will
2778 # break other packages using the cache if that directory is
2779 # removed, or if the value is a relative name.
2780 INSTALL=$ac_install_sh
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2784 $as_echo "$INSTALL" >&6; }
2786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2787 # It thinks the first close brace ends the variable substitution.
2788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2795 $as_echo_n "checking whether build environment is sane... " >&6; }
2798 echo timestamp > conftest.file
2799 # Reject unsafe characters in $srcdir or the absolute working directory
2800 # name. Accept space and tab only in the latter.
2804 *[\\\"\#\$\&\'\`$am_lf]*)
2805 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2808 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2809 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2812 # Do `set' in a subshell so we don't clobber the current shell's
2813 # arguments. Must try -L first in case configure is actually a
2814 # symlink; some systems play weird games with the mod time of symlinks
2815 # (eg FreeBSD returns the mod time of the symlink's containing
2818 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2819 if test "$*" = "X"; then
2821 set X `ls -t "$srcdir/configure" conftest.file`
2824 if test "$*" != "X $srcdir/configure conftest.file" \
2825 && test "$*" != "X conftest.file $srcdir/configure"; then
2827 # If neither matched, then we have a broken ls. This can happen
2828 # if, for instance, CONFIG_SHELL is bash and it inherits a
2829 # broken ls alias from the environment. This has actually
2830 # happened. Such a system could not be considered "sane".
2831 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2832 alias in your environment" "$LINENO" 5
2835 test "$2" = conftest.file
2841 as_fn_error $? "newly created file is older than distributed files!
2842 Check your system clock" "$LINENO" 5
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2845 $as_echo "yes" >&6; }
2846 test "$program_prefix" != NONE &&
2847 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2848 # Use a double $ so make ignores it.
2849 test "$program_suffix" != NONE &&
2850 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2851 # Double any \ or $.
2852 # By default was `s,x,x', remove it if useless.
2853 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2854 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2856 # expand $ac_aux_dir to an absolute path
2857 am_aux_dir=`cd $ac_aux_dir && pwd`
2859 if test x"${MISSING+set}" != xset; then
2862 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2864 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2867 # Use eval to expand $SHELL
2868 if eval "$MISSING --run true"; then
2869 am_missing_run="$MISSING --run "
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2873 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2876 if test x"${install_sh}" != xset; then
2879 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2881 install_sh="\${SHELL} $am_aux_dir/install-sh"
2885 # Installed binaries are usually stripped using `strip' when the user
2886 # run `make install-strip'. However `strip' might not be the right
2887 # tool to use in cross-compilation environments, therefore Automake
2888 # will honor the `STRIP' environment variable to overrule this program.
2889 if test "$cross_compiling" != no; then
2890 if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2892 set dummy ${ac_tool_prefix}strip; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_STRIP+:} false; then :
2896 $as_echo_n "(cached) " >&6
2898 if test -n "$STRIP"; then
2899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 STRIP=$ac_cv_prog_STRIP
2919 if test -n "$STRIP"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2921 $as_echo "$STRIP" >&6; }
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2929 if test -z "$ac_cv_prog_STRIP"; then
2931 # Extract the first word of "strip", so it can be a program name with args.
2932 set dummy strip; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2936 $as_echo_n "(cached) " >&6
2938 if test -n "$ac_ct_STRIP"; then
2939 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_ac_ct_STRIP="strip"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2959 if test -n "$ac_ct_STRIP"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2961 $as_echo "$ac_ct_STRIP" >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2967 if test "x$ac_ct_STRIP" = x; then
2970 case $cross_compiling:$ac_tool_warned in
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2974 ac_tool_warned=yes ;;
2979 STRIP="$ac_cv_prog_STRIP"
2983 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2986 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2987 if test -z "$MKDIR_P"; then
2988 if ${ac_cv_path_mkdir+:} false; then :
2989 $as_echo_n "(cached) " >&6
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2995 test -z "$as_dir" && as_dir=.
2996 for ac_prog in mkdir gmkdir; do
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2999 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3000 'mkdir (GNU coreutils) '* | \
3001 'mkdir (coreutils) '* | \
3002 'mkdir (fileutils) '4.1*)
3003 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3013 test -d ./--version && rmdir ./--version
3014 if test "${ac_cv_path_mkdir+set}" = set; then
3015 MKDIR_P="$ac_cv_path_mkdir -p"
3017 # As a last resort, use the slow shell script. Don't cache a
3018 # value for MKDIR_P within a source directory, because that will
3019 # break other packages using the cache if that directory is
3020 # removed, or if the value is a relative name.
3021 MKDIR_P="$ac_install_sh -d"
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3025 $as_echo "$MKDIR_P" >&6; }
3029 [\\/$]* | ?:[\\/]*) ;;
3030 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3033 for ac_prog in gawk mawk nawk awk
3035 # Extract the first word of "$ac_prog", so it can be a program name with args.
3036 set dummy $ac_prog; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_AWK+:} false; then :
3040 $as_echo_n "(cached) " >&6
3042 if test -n "$AWK"; then
3043 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 ac_cv_prog_AWK="$ac_prog"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 if test -n "$AWK"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3065 $as_echo "$AWK" >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3072 test -n "$AWK" && break
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3076 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3078 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3079 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3080 $as_echo_n "(cached) " >&6
3082 cat >conftest.make <<\_ACEOF
3085 @echo '@@@%%%=$(MAKE)=@@@%%%'
3087 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3088 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3090 eval ac_cv_prog_make_${ac_make}_set=yes;;
3092 eval ac_cv_prog_make_${ac_make}_set=no;;
3096 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 $as_echo "yes" >&6; }
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 SET_MAKE="MAKE=${MAKE-make}"
3106 rm -rf .tst 2>/dev/null
3107 mkdir .tst 2>/dev/null
3108 if test -d .tst; then
3113 rmdir .tst 2>/dev/null
3115 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3116 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3117 # is not polluted with repeated "-I."
3118 am__isrc=' -I$(srcdir)'
3119 # test to see if srcdir already configured
3120 if test -f $srcdir/config.status; then
3121 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3125 # test whether we have cygpath
3126 if test -z "$CYGPATH_W"; then
3127 if (cygpath --version) >/dev/null 2>/dev/null; then
3128 CYGPATH_W='cygpath -w'
3135 # Define the identity of the package.
3140 cat >>confdefs.h <<_ACEOF
3141 #define PACKAGE "$PACKAGE"
3145 cat >>confdefs.h <<_ACEOF
3146 #define VERSION "$VERSION"
3149 # Some tools Automake needs.
3151 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3154 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3157 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3160 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3163 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3165 # We need awk for the "check" target. The system "awk" is bad on
3167 # Always define AMTAR for backward compatibility.
3169 AMTAR=${AMTAR-"${am_missing_run}tar"}
3171 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3177 # Check whether --enable-silent-rules was given.
3178 if test "${enable_silent_rules+set}" = set; then :
3179 enableval=$enable_silent_rules;
3182 case $enable_silent_rules in
3183 yes) AM_DEFAULT_VERBOSITY=0;;
3184 no) AM_DEFAULT_VERBOSITY=1;;
3185 *) AM_DEFAULT_VERBOSITY=0;;
3190 ac_config_headers="$ac_config_headers config.h"
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3195 $as_echo_n "checking for builtin ELF support... " >&6; }
3196 # Check whether --enable-elf was given.
3197 if test "${enable_elf+set}" = set; then :
3198 enableval=$enable_elf; if test "${enableval}" = yes; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3202 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3212 $as_echo "yes" >&6; }
3214 $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3221 $as_echo_n "checking for ELF core file support... " >&6; }
3222 # Check whether --enable-elf-core was given.
3223 if test "${enable_elf_core+set}" = set; then :
3224 enableval=$enable_elf_core; if test "${enableval}" = yes; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3228 $as_echo "#define ELFCORE 1" >>confdefs.h
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238 $as_echo "yes" >&6; }
3240 $as_echo "#define ELFCORE 1" >>confdefs.h
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3247 $as_echo_n "checking for file formats in man section 5... " >&6; }
3248 # Check whether --enable-fsect-man5 was given.
3249 if test "${enable_fsect_man5+set}" = set; then :
3250 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3261 # disable by default
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3269 # Make sure we can run config.sub.
3270 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3271 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3274 $as_echo_n "checking build system type... " >&6; }
3275 if ${ac_cv_build+:} false; then :
3276 $as_echo_n "(cached) " >&6
3278 ac_build_alias=$build_alias
3279 test "x$ac_build_alias" = x &&
3280 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3281 test "x$ac_build_alias" = x &&
3282 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3283 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3284 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3288 $as_echo "$ac_cv_build" >&6; }
3289 case $ac_cv_build in
3291 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3294 ac_save_IFS=$IFS; IFS='-'
3300 # Remember, the first character of IFS is used to create $*,
3301 # except with old shells:
3304 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3308 $as_echo_n "checking host system type... " >&6; }
3309 if ${ac_cv_host+:} false; then :
3310 $as_echo_n "(cached) " >&6
3312 if test "x$host_alias" = x; then
3313 ac_cv_host=$ac_cv_build
3315 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3316 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3321 $as_echo "$ac_cv_host" >&6; }
3324 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3327 ac_save_IFS=$IFS; IFS='-'
3333 # Remember, the first character of IFS is used to create $*,
3334 # except with old shells:
3337 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3349 if test "$MINGW" = 1; then
3358 pkgdatadir='$(datadir)/misc'
3361 if test x$fsect = x5; then
3371 DEPDIR="${am__leading_dot}deps"
3373 ac_config_commands="$ac_config_commands depfiles"
3376 am_make=${MAKE-make}
3377 cat > confinc << 'END'
3379 @echo this is the am__doit target
3382 # If we don't find an include directive, just comment out the code.
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3384 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3388 # First try GNU make style include.
3389 echo "include confinc" > confmf
3390 # Ignore all kinds of additional output from `make'.
3391 case `$am_make -s -f confmf 2> /dev/null` in #(
3392 *the\ am__doit\ target*)
3398 # Now try BSD make style include.
3399 if test "$am__include" = "#"; then
3400 echo '.include "confinc"' > confmf
3401 case `$am_make -s -f confmf 2> /dev/null` in #(
3402 *the\ am__doit\ target*)
3403 am__include=.include
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3412 $as_echo "$_am_result" >&6; }
3413 rm -f confinc confmf
3415 # Check whether --enable-dependency-tracking was given.
3416 if test "${enable_dependency_tracking+set}" = set; then :
3417 enableval=$enable_dependency_tracking;
3420 if test "x$enable_dependency_tracking" != xno; then
3421 am_depcomp="$ac_aux_dir/depcomp"
3424 if test "x$enable_dependency_tracking" != xno; then
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 if test -n "$ac_tool_prefix"; then
3439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if ${ac_cv_prog_CC+:} false; then :
3444 $as_echo_n "(cached) " >&6
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 if test -n "$CC"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469 $as_echo "$CC" >&6; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3477 if test -z "$ac_cv_prog_CC"; then
3479 # Extract the first word of "gcc", so it can be a program name with args.
3480 set dummy gcc; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 if test -n "$ac_ct_CC"; then
3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_ac_ct_CC="gcc"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507 if test -n "$ac_ct_CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3509 $as_echo "$ac_ct_CC" >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3515 if test "x$ac_ct_CC" = x; then
3518 case $cross_compiling:$ac_tool_warned in
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3522 ac_tool_warned=yes ;;
3530 if test -z "$CC"; then
3531 if test -n "$ac_tool_prefix"; then
3532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}cc; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_prog_CC+:} false; then :
3537 $as_echo_n "(cached) " >&6
3539 if test -n "$CC"; then
3540 ac_cv_prog_CC="$CC" # Let the user override the test.
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_CC="${ac_tool_prefix}cc"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 if test -n "$CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3562 $as_echo "$CC" >&6; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3571 if test -z "$CC"; then
3572 # Extract the first word of "cc", so it can be a program name with args.
3573 set dummy cc; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if ${ac_cv_prog_CC+:} false; then :
3577 $as_echo_n "(cached) " >&6
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3591 ac_prog_rejected=yes
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 if test $ac_prog_rejected = yes; then
3603 # We found a bogon in the path, so make sure we never use it.
3604 set dummy $ac_cv_prog_CC
3606 if test $# != 0; then
3607 # We chose a different compiler from the bogus one.
3608 # However, it has the same basename, so the bogon will be chosen
3609 # first if we set CC to just the basename; use the full file name.
3611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3617 if test -n "$CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 $as_echo "$CC" >&6; }
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3627 if test -z "$CC"; then
3628 if test -n "$ac_tool_prefix"; then
3629 for ac_prog in cl.exe
3631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_CC+:} false; then :
3636 $as_echo_n "(cached) " >&6
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 if test -n "$CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661 $as_echo "$CC" >&6; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3668 test -n "$CC" && break
3671 if test -z "$CC"; then
3673 for ac_prog in cl.exe
3675 # Extract the first word of "$ac_prog", so it can be a program name with args.
3676 set dummy $ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$ac_ct_CC"; then
3683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_ac_ct_CC="$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3703 if test -n "$ac_ct_CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3705 $as_echo "$ac_ct_CC" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3712 test -n "$ac_ct_CC" && break
3715 if test "x$ac_ct_CC" = x; then
3718 case $cross_compiling:$ac_tool_warned in
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722 ac_tool_warned=yes ;;
3731 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error $? "no acceptable C compiler found in \$PATH
3734 See \`config.log' for more details" "$LINENO" 5; }
3736 # Provide some information about the compiler.
3737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3740 for ac_option in --version -v -V -qversion; do
3741 { { ac_try="$ac_compiler $ac_option >&5"
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3750 if test -s conftest.err; then
3752 ... rest of stderr output deleted ...
3753 10q' conftest.err >conftest.er1
3754 cat conftest.er1 >&5
3756 rm -f conftest.er1 conftest.err
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3772 ac_clean_files_save=$ac_clean_files
3773 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3774 # Try to create an executable without -o first, disregard a.out.
3775 # It will help us diagnose broken compilers, and finding out an intuition
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3778 $as_echo_n "checking whether the C compiler works... " >&6; }
3779 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3781 # The possible output files:
3782 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3785 for ac_file in $ac_files
3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3789 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3794 if { { ac_try="$ac_link_default"
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_link_default") 2>&5
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }; then :
3805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3806 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3807 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3808 # so that the user can short-circuit this test for compilers unknown to
3810 for ac_file in $ac_files ''
3812 test -f "$ac_file" || continue
3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3817 # We found the default executable, but exeext='' is most
3821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3823 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3825 # We set ac_cv_exeext here because the later test for it is not
3826 # safe: cross compilers may not add the suffix if given an `-o'
3827 # argument, so we may need to know it at that point already.
3828 # Even if this section looks crufty: it has the advantage of
3835 test "$ac_cv_exeext" = no && ac_cv_exeext=
3840 if test -z "$ac_file"; then :
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 $as_echo "no" >&6; }
3843 $as_echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error 77 "C compiler cannot create executables
3849 See \`config.log' for more details" "$LINENO" 5; }
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3852 $as_echo "yes" >&6; }
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3855 $as_echo_n "checking for C compiler default output file name... " >&6; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3857 $as_echo "$ac_file" >&6; }
3858 ac_exeext=$ac_cv_exeext
3860 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3861 ac_clean_files=$ac_clean_files_save
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3863 $as_echo_n "checking for suffix of executables... " >&6; }
3864 if { { ac_try="$ac_link"
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_link") 2>&5
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }; then :
3875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3876 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3877 # work properly (i.e., refer to `conftest.exe'), while it won't with
3879 for ac_file in conftest.exe conftest conftest.*; do
3880 test -f "$ac_file" || continue
3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3892 See \`config.log' for more details" "$LINENO" 5; }
3894 rm -f conftest conftest$ac_cv_exeext
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3896 $as_echo "$ac_cv_exeext" >&6; }
3898 rm -f conftest.$ac_ext
3899 EXEEXT=$ac_cv_exeext
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3907 FILE *f = fopen ("conftest.out", "w");
3908 return ferror (f) || fclose (f) != 0;
3914 ac_clean_files="$ac_clean_files conftest.out"
3915 # Check that the compiler produces executables we can run. If not, either
3916 # the compiler is broken, or we cross compile.
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3918 $as_echo_n "checking whether we are cross compiling... " >&6; }
3919 if test "$cross_compiling" != yes; then
3920 { { ac_try="$ac_link"
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927 (eval "$ac_link") 2>&5
3929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930 test $ac_status = 0; }
3931 if { ac_try='./conftest$ac_cv_exeext'
3932 { { case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 $as_echo "$ac_try_echo"; } >&5
3938 (eval "$ac_try") 2>&5
3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }; }; then
3944 if test "$cross_compiling" = maybe; then
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error $? "cannot run C compiled programs.
3950 If you meant to cross compile, use \`--host'.
3951 See \`config.log' for more details" "$LINENO" 5; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3956 $as_echo "$cross_compiling" >&6; }
3958 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3959 ac_clean_files=$ac_clean_files_save
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3961 $as_echo_n "checking for suffix of object files... " >&6; }
3962 if ${ac_cv_objext+:} false; then :
3963 $as_echo_n "(cached) " >&6
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3976 rm -f conftest.o conftest.obj
3977 if { { ac_try="$ac_compile"
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_compile") 2>&5
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }; then :
3988 for ac_file in conftest.o conftest.obj conftest.*; do
3989 test -f "$ac_file" || continue;
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3992 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3997 $as_echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4002 as_fn_error $? "cannot compute suffix of object files: cannot compile
4003 See \`config.log' for more details" "$LINENO" 5; }
4005 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4008 $as_echo "$ac_cv_objext" >&6; }
4009 OBJEXT=$ac_cv_objext
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4012 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4013 if ${ac_cv_c_compiler_gnu+:} false; then :
4014 $as_echo_n "(cached) " >&6
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4030 if ac_fn_c_try_compile "$LINENO"; then :
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4040 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4041 if test $ac_compiler_gnu = yes; then
4046 ac_test_CFLAGS=${CFLAGS+set}
4047 ac_save_CFLAGS=$CFLAGS
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4049 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4050 if ${ac_cv_prog_cc_g+:} false; then :
4051 $as_echo_n "(cached) " >&6
4053 ac_save_c_werror_flag=$ac_c_werror_flag
4054 ac_c_werror_flag=yes
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4068 if ac_fn_c_try_compile "$LINENO"; then :
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4083 if ac_fn_c_try_compile "$LINENO"; then :
4086 ac_c_werror_flag=$ac_save_c_werror_flag
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4099 if ac_fn_c_try_compile "$LINENO"; then :
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_c_werror_flag=$ac_save_c_werror_flag
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4110 $as_echo "$ac_cv_prog_cc_g" >&6; }
4111 if test "$ac_test_CFLAGS" = set; then
4112 CFLAGS=$ac_save_CFLAGS
4113 elif test $ac_cv_prog_cc_g = yes; then
4114 if test "$GCC" = yes; then
4120 if test "$GCC" = yes; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4127 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4128 if ${ac_cv_prog_cc_c89+:} false; then :
4129 $as_echo_n "(cached) " >&6
4131 ac_cv_prog_cc_c89=no
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 #include <sys/types.h>
4138 #include <sys/stat.h>
4139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4140 struct buf { int x; };
4141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4142 static char *e (p, i)
4148 static char *f (char * (*g) (char **, int), char **p, ...)
4153 s = g (p, va_arg (v,int));
4158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4159 function prototypes and stuff, but not '\xHH' hex character constants.
4160 These don't provoke an error unfortunately, instead are silently treated
4161 as 'x'. The following induces an error, until -std is added to get
4162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4163 array size at least. It's necessary to write '\x00'==0 to get something
4164 that's true only with -std. */
4165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4168 inside strings and character constants. */
4170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4172 int test (int i, double x);
4173 struct s1 {int (*f) (int a);};
4174 struct s2 {int (*f) (double a);};
4175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4189 CC="$ac_save_CC $ac_arg"
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_prog_cc_c89=$ac_arg
4193 rm -f core conftest.err conftest.$ac_objext
4194 test "x$ac_cv_prog_cc_c89" != "xno" && break
4196 rm -f conftest.$ac_ext
4201 case "x$ac_cv_prog_cc_c89" in
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4204 $as_echo "none needed" >&6; } ;;
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207 $as_echo "unsupported" >&6; } ;;
4209 CC="$CC $ac_cv_prog_cc_c89"
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4211 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4213 if test "x$ac_cv_prog_cc_c89" != xno; then :
4218 ac_cpp='$CPP $CPPFLAGS'
4219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223 depcc="$CC" am_compiler_list=
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4226 $as_echo_n "checking dependency style of $depcc... " >&6; }
4227 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4228 $as_echo_n "(cached) " >&6
4230 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4231 # We make a subdir and do the tests there. Otherwise we can end up
4232 # making bogus files that we don't know about and never remove. For
4233 # instance it was reported that on HP-UX the gcc test will end up
4234 # making a dummy file named `D' -- because `-MD' means `put the output
4237 # Copy depcomp to subdir because otherwise we won't find it if we're
4238 # using a relative directory.
4239 cp "$am_depcomp" conftest.dir
4241 # We will build objects and dependencies in a subdirectory because
4242 # it helps to detect inapplicable dependency modes. For instance
4243 # both Tru64's cc and ICC support -MD to output dependencies as a
4244 # side effect of compilation, but ICC will put the dependencies in
4245 # the current directory while Tru64 will put them in the object
4249 am_cv_CC_dependencies_compiler_type=none
4250 if test "$am_compiler_list" = ""; then
4251 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4254 case " $depcc " in #(
4255 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4258 for depmode in $am_compiler_list; do
4259 # Setup a source with many dependencies, because some compilers
4260 # like to wrap large dependency lists on column 80 (with \), and
4261 # we should not choose a depcomp mode which is confused by this.
4263 # We need to recreate these files for each test, as the compiler may
4264 # overwrite some of them when testing with obscure command lines.
4265 # This happens at least with the AIX C compiler.
4267 for i in 1 2 3 4 5 6; do
4268 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4269 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4270 # Solaris 8's {/usr,}/bin/sh.
4271 touch sub/conftst$i.h
4273 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4275 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4276 # mode. It turns out that the SunPro C++ compiler does not properly
4277 # handle `-M -o', and we need to detect this. Also, some Intel
4278 # versions had trouble with output in subdirs
4279 am__obj=sub/conftest.${OBJEXT-o}
4280 am__minus_obj="-o $am__obj"
4283 # This depmode causes a compiler race in universal mode.
4284 test "$am__universal" = false || continue
4287 # after this tag, mechanisms are not by side-effect, so they'll
4288 # only be used when explicitly requested
4289 if test "x$enable_dependency_tracking" = xyes; then
4295 msvisualcpp | msvcmsys)
4296 # This compiler won't grok `-c -o', but also, the minuso test has
4297 # not run yet. These depmodes are late enough in the game, and
4298 # so weak that their functioning should not be impacted.
4299 am__obj=conftest.${OBJEXT-o}
4304 if depmode=$depmode \
4305 source=sub/conftest.c object=$am__obj \
4306 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4307 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4308 >/dev/null 2>conftest.err &&
4309 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4310 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4311 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4312 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4313 # icc doesn't choke on unknown options, it will just issue warnings
4314 # or remarks (even with -Werror). So we grep stderr for any message
4315 # that says an option was ignored or not supported.
4316 # When given -MP, icc 7.0 and 7.1 complain thusly:
4317 # icc: Command line warning: ignoring option '-M'; no argument required
4318 # The diagnosis changed in icc 8.0:
4319 # icc: Command line remark: option '-MP' not supported
4320 if (grep 'ignoring option' conftest.err ||
4321 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4322 am_cv_CC_dependencies_compiler_type=$depmode
4331 am_cv_CC_dependencies_compiler_type=none
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4336 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4337 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4340 test "x$enable_dependency_tracking" != xno \
4341 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4343 am__fastdepCC_FALSE='#'
4345 am__fastdepCC_TRUE='#'
4346 am__fastdepCC_FALSE=
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4357 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4358 # On Suns, sometimes $CPP names a directory.
4359 if test -n "$CPP" && test -d "$CPP"; then
4362 if test -z "$CPP"; then
4363 if ${ac_cv_prog_CPP+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 # Double quotes because CPP needs to be expanded
4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4370 for ac_c_preproc_warn_flag in '' yes
4372 # Use a header file that comes with gcc, so configuring glibc
4373 # with a fresh cross-compiler works.
4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375 # <limits.h> exists even on freestanding compilers.
4376 # On the NeXT, cc -E runs the code through the compiler's parser,
4377 # not just through cpp. "Syntax error" is here to catch this case.
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4381 # include <limits.h>
4383 # include <assert.h>
4387 if ac_fn_c_try_cpp "$LINENO"; then :
4390 # Broken: fails on valid input.
4393 rm -f conftest.err conftest.i conftest.$ac_ext
4395 # OK, works on sane cases. Now check whether nonexistent headers
4396 # can be detected and how.
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 #include <ac_nonexistent.h>
4401 if ac_fn_c_try_cpp "$LINENO"; then :
4402 # Broken: success on invalid input.
4405 # Passes both tests.
4409 rm -f conftest.err conftest.i conftest.$ac_ext
4412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413 rm -f conftest.i conftest.err conftest.$ac_ext
4414 if $ac_preproc_ok; then :
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4427 $as_echo "$CPP" >&6; }
4429 for ac_c_preproc_warn_flag in '' yes
4431 # Use a header file that comes with gcc, so configuring glibc
4432 # with a fresh cross-compiler works.
4433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4434 # <limits.h> exists even on freestanding compilers.
4435 # On the NeXT, cc -E runs the code through the compiler's parser,
4436 # not just through cpp. "Syntax error" is here to catch this case.
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4440 # include <limits.h>
4442 # include <assert.h>
4446 if ac_fn_c_try_cpp "$LINENO"; then :
4449 # Broken: fails on valid input.
4452 rm -f conftest.err conftest.i conftest.$ac_ext
4454 # OK, works on sane cases. Now check whether nonexistent headers
4455 # can be detected and how.
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 #include <ac_nonexistent.h>
4460 if ac_fn_c_try_cpp "$LINENO"; then :
4461 # Broken: success on invalid input.
4464 # Passes both tests.
4468 rm -f conftest.err conftest.i conftest.$ac_ext
4471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4472 rm -f conftest.i conftest.err conftest.$ac_ext
4473 if $ac_preproc_ok; then :
4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4479 See \`config.log' for more details" "$LINENO" 5; }
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4490 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4491 if ${ac_cv_path_GREP+:} false; then :
4492 $as_echo_n "(cached) " >&6
4494 if test -z "$GREP"; then
4495 ac_path_GREP_found=false
4496 # Loop through the user's path and test for each of PROGNAME-LIST
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4501 test -z "$as_dir" && as_dir=.
4502 for ac_prog in grep ggrep; do
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4505 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4506 # Check for GNU ac_path_GREP and select it if it is found.
4507 # Check for GNU $ac_path_GREP
4508 case `"$ac_path_GREP" --version 2>&1` in
4510 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4513 $as_echo_n 0123456789 >"conftest.in"
4516 cat "conftest.in" "conftest.in" >"conftest.tmp"
4517 mv "conftest.tmp" "conftest.in"
4518 cp "conftest.in" "conftest.nl"
4519 $as_echo 'GREP' >> "conftest.nl"
4520 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522 as_fn_arith $ac_count + 1 && ac_count=$as_val
4523 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4524 # Best one so far, save it but keep looking for a better one
4525 ac_cv_path_GREP="$ac_path_GREP"
4526 ac_path_GREP_max=$ac_count
4528 # 10*(2^10) chars as input seems more than enough
4529 test $ac_count -gt 10 && break
4531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4534 $ac_path_GREP_found && break 3
4539 if test -z "$ac_cv_path_GREP"; then
4540 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4543 ac_cv_path_GREP=$GREP
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4548 $as_echo "$ac_cv_path_GREP" >&6; }
4549 GREP="$ac_cv_path_GREP"
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4553 $as_echo_n "checking for egrep... " >&6; }
4554 if ${ac_cv_path_EGREP+:} false; then :
4555 $as_echo_n "(cached) " >&6
4557 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4558 then ac_cv_path_EGREP="$GREP -E"
4560 if test -z "$EGREP"; then
4561 ac_path_EGREP_found=false
4562 # Loop through the user's path and test for each of PROGNAME-LIST
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4567 test -z "$as_dir" && as_dir=.
4568 for ac_prog in egrep; do
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4571 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4572 # Check for GNU ac_path_EGREP and select it if it is found.
4573 # Check for GNU $ac_path_EGREP
4574 case `"$ac_path_EGREP" --version 2>&1` in
4576 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4579 $as_echo_n 0123456789 >"conftest.in"
4582 cat "conftest.in" "conftest.in" >"conftest.tmp"
4583 mv "conftest.tmp" "conftest.in"
4584 cp "conftest.in" "conftest.nl"
4585 $as_echo 'EGREP' >> "conftest.nl"
4586 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588 as_fn_arith $ac_count + 1 && ac_count=$as_val
4589 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4590 # Best one so far, save it but keep looking for a better one
4591 ac_cv_path_EGREP="$ac_path_EGREP"
4592 ac_path_EGREP_max=$ac_count
4594 # 10*(2^10) chars as input seems more than enough
4595 test $ac_count -gt 10 && break
4597 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4600 $ac_path_EGREP_found && break 3
4605 if test -z "$ac_cv_path_EGREP"; then
4606 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4609 ac_cv_path_EGREP=$EGREP
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4615 $as_echo "$ac_cv_path_EGREP" >&6; }
4616 EGREP="$ac_cv_path_EGREP"
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4620 $as_echo_n "checking for ANSI C header files... " >&6; }
4621 if ${ac_cv_header_stdc+:} false; then :
4622 $as_echo_n "(cached) " >&6
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640 ac_cv_header_stdc=yes
4642 ac_cv_header_stdc=no
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646 if test $ac_cv_header_stdc = yes; then
4647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654 $EGREP "memchr" >/dev/null 2>&1; then :
4657 ac_cv_header_stdc=no
4663 if test $ac_cv_header_stdc = yes; then
4664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4671 $EGREP "free" >/dev/null 2>&1; then :
4674 ac_cv_header_stdc=no
4680 if test $ac_cv_header_stdc = yes; then
4681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4682 if test "$cross_compiling" = yes; then :
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4689 #if ((' ' & 0x0FF) == 0x020)
4690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4693 # define ISLOWER(c) \
4694 (('a' <= (c) && (c) <= 'i') \
4695 || ('j' <= (c) && (c) <= 'r') \
4696 || ('s' <= (c) && (c) <= 'z'))
4697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4705 for (i = 0; i < 256; i++)
4706 if (XOR (islower (i), ISLOWER (i))
4707 || toupper (i) != TOUPPER (i))
4712 if ac_fn_c_try_run "$LINENO"; then :
4715 ac_cv_header_stdc=no
4717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4718 conftest.$ac_objext conftest.beam conftest.$ac_ext
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4724 $as_echo "$ac_cv_header_stdc" >&6; }
4725 if test $ac_cv_header_stdc = yes; then
4727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4731 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4732 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4733 inttypes.h stdint.h unistd.h
4735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4736 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4739 cat >>confdefs.h <<_ACEOF
4740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4749 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4750 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4757 if test "$MINIX" = yes; then
4759 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4762 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4765 $as_echo "#define _MINIX 1" >>confdefs.h
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4771 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4772 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4773 $as_echo_n "(cached) " >&6
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4778 # define __EXTENSIONS__ 1
4779 $ac_includes_default
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789 ac_cv_safe_to_define___extensions__=yes
4791 ac_cv_safe_to_define___extensions__=no
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4796 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4797 test $ac_cv_safe_to_define___extensions__ = yes &&
4798 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4800 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4802 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4804 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4806 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4812 ac_cpp='$CPP $CPPFLAGS'
4813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4816 if test -n "$ac_tool_prefix"; then
4817 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if ${ac_cv_prog_CC+:} false; then :
4822 $as_echo_n "(cached) " >&6
4824 if test -n "$CC"; then
4825 ac_cv_prog_CC="$CC" # Let the user override the test.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 if test -n "$CC"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4847 $as_echo "$CC" >&6; }
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4850 $as_echo "no" >&6; }
4855 if test -z "$ac_cv_prog_CC"; then
4857 # Extract the first word of "gcc", so it can be a program name with args.
4858 set dummy gcc; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4862 $as_echo_n "(cached) " >&6
4864 if test -n "$ac_ct_CC"; then
4865 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_prog_ac_ct_CC="gcc"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4885 if test -n "$ac_ct_CC"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4887 $as_echo "$ac_ct_CC" >&6; }
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890 $as_echo "no" >&6; }
4893 if test "x$ac_ct_CC" = x; then
4896 case $cross_compiling:$ac_tool_warned in
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4900 ac_tool_warned=yes ;;
4908 if test -z "$CC"; then
4909 if test -n "$ac_tool_prefix"; then
4910 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4911 set dummy ${ac_tool_prefix}cc; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_CC+:} false; then :
4915 $as_echo_n "(cached) " >&6
4917 if test -n "$CC"; then
4918 ac_cv_prog_CC="$CC" # Let the user override the test.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_CC="${ac_tool_prefix}cc"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 if test -n "$CC"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4940 $as_echo "$CC" >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4949 if test -z "$CC"; then
4950 # Extract the first word of "cc", so it can be a program name with args.
4951 set dummy cc; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_CC+:} false; then :
4955 $as_echo_n "(cached) " >&6
4957 if test -n "$CC"; then
4958 ac_cv_prog_CC="$CC" # Let the user override the test.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4969 ac_prog_rejected=yes
4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 if test $ac_prog_rejected = yes; then
4981 # We found a bogon in the path, so make sure we never use it.
4982 set dummy $ac_cv_prog_CC
4984 if test $# != 0; then
4985 # We chose a different compiler from the bogus one.
4986 # However, it has the same basename, so the bogon will be chosen
4987 # first if we set CC to just the basename; use the full file name.
4989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4995 if test -n "$CC"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4997 $as_echo "$CC" >&6; }
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5005 if test -z "$CC"; then
5006 if test -n "$ac_tool_prefix"; then
5007 for ac_prog in cl.exe
5009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_prog_CC+:} false; then :
5014 $as_echo_n "(cached) " >&6
5016 if test -n "$CC"; then
5017 ac_cv_prog_CC="$CC" # Let the user override the test.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 if test -n "$CC"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5039 $as_echo "$CC" >&6; }
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5046 test -n "$CC" && break
5049 if test -z "$CC"; then
5051 for ac_prog in cl.exe
5053 # Extract the first word of "$ac_prog", so it can be a program name with args.
5054 set dummy $ac_prog; ac_word=$2
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056 $as_echo_n "checking for $ac_word... " >&6; }
5057 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5058 $as_echo_n "(cached) " >&6
5060 if test -n "$ac_ct_CC"; then
5061 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070 ac_cv_prog_ac_ct_CC="$ac_prog"
5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5081 if test -n "$ac_ct_CC"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5083 $as_echo "$ac_ct_CC" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5090 test -n "$ac_ct_CC" && break
5093 if test "x$ac_ct_CC" = x; then
5096 case $cross_compiling:$ac_tool_warned in
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5100 ac_tool_warned=yes ;;
5109 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5111 as_fn_error $? "no acceptable C compiler found in \$PATH
5112 See \`config.log' for more details" "$LINENO" 5; }
5114 # Provide some information about the compiler.
5115 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5118 for ac_option in --version -v -V -qversion; do
5119 { { ac_try="$ac_compiler $ac_option >&5"
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5125 $as_echo "$ac_try_echo"; } >&5
5126 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5128 if test -s conftest.err; then
5130 ... rest of stderr output deleted ...
5131 10q' conftest.err >conftest.er1
5132 cat conftest.er1 >&5
5134 rm -f conftest.er1 conftest.err
5135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5136 test $ac_status = 0; }
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5141 if ${ac_cv_c_compiler_gnu+:} false; then :
5142 $as_echo_n "(cached) " >&6
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5158 if ac_fn_c_try_compile "$LINENO"; then :
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5169 if test $ac_compiler_gnu = yes; then
5174 ac_test_CFLAGS=${CFLAGS+set}
5175 ac_save_CFLAGS=$CFLAGS
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5178 if ${ac_cv_prog_cc_g+:} false; then :
5179 $as_echo_n "(cached) " >&6
5181 ac_save_c_werror_flag=$ac_c_werror_flag
5182 ac_c_werror_flag=yes
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186 /* end confdefs.h. */
5196 if ac_fn_c_try_compile "$LINENO"; then :
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5211 if ac_fn_c_try_compile "$LINENO"; then :
5214 ac_c_werror_flag=$ac_save_c_werror_flag
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5227 if ac_fn_c_try_compile "$LINENO"; then :
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5235 ac_c_werror_flag=$ac_save_c_werror_flag
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5238 $as_echo "$ac_cv_prog_cc_g" >&6; }
5239 if test "$ac_test_CFLAGS" = set; then
5240 CFLAGS=$ac_save_CFLAGS
5241 elif test $ac_cv_prog_cc_g = yes; then
5242 if test "$GCC" = yes; then
5248 if test "$GCC" = yes; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5255 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5256 if ${ac_cv_prog_cc_c89+:} false; then :
5257 $as_echo_n "(cached) " >&6
5259 ac_cv_prog_cc_c89=no
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5265 #include <sys/types.h>
5266 #include <sys/stat.h>
5267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5268 struct buf { int x; };
5269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5270 static char *e (p, i)
5276 static char *f (char * (*g) (char **, int), char **p, ...)
5281 s = g (p, va_arg (v,int));
5286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5287 function prototypes and stuff, but not '\xHH' hex character constants.
5288 These don't provoke an error unfortunately, instead are silently treated
5289 as 'x'. The following induces an error, until -std is added to get
5290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5291 array size at least. It's necessary to write '\x00'==0 to get something
5292 that's true only with -std. */
5293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5296 inside strings and character constants. */
5298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5300 int test (int i, double x);
5301 struct s1 {int (*f) (int a);};
5302 struct s2 {int (*f) (double a);};
5303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5317 CC="$ac_save_CC $ac_arg"
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 ac_cv_prog_cc_c89=$ac_arg
5321 rm -f core conftest.err conftest.$ac_objext
5322 test "x$ac_cv_prog_cc_c89" != "xno" && break
5324 rm -f conftest.$ac_ext
5329 case "x$ac_cv_prog_cc_c89" in
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5332 $as_echo "none needed" >&6; } ;;
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5335 $as_echo "unsupported" >&6; } ;;
5337 CC="$CC $ac_cv_prog_cc_c89"
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5339 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5341 if test "x$ac_cv_prog_cc_c89" != xno; then :
5346 ac_cpp='$CPP $CPPFLAGS'
5347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5351 depcc="$CC" am_compiler_list=
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5354 $as_echo_n "checking dependency style of $depcc... " >&6; }
5355 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5359 # We make a subdir and do the tests there. Otherwise we can end up
5360 # making bogus files that we don't know about and never remove. For
5361 # instance it was reported that on HP-UX the gcc test will end up
5362 # making a dummy file named `D' -- because `-MD' means `put the output
5365 # Copy depcomp to subdir because otherwise we won't find it if we're
5366 # using a relative directory.
5367 cp "$am_depcomp" conftest.dir
5369 # We will build objects and dependencies in a subdirectory because
5370 # it helps to detect inapplicable dependency modes. For instance
5371 # both Tru64's cc and ICC support -MD to output dependencies as a
5372 # side effect of compilation, but ICC will put the dependencies in
5373 # the current directory while Tru64 will put them in the object
5377 am_cv_CC_dependencies_compiler_type=none
5378 if test "$am_compiler_list" = ""; then
5379 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5382 case " $depcc " in #(
5383 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5386 for depmode in $am_compiler_list; do
5387 # Setup a source with many dependencies, because some compilers
5388 # like to wrap large dependency lists on column 80 (with \), and
5389 # we should not choose a depcomp mode which is confused by this.
5391 # We need to recreate these files for each test, as the compiler may
5392 # overwrite some of them when testing with obscure command lines.
5393 # This happens at least with the AIX C compiler.
5395 for i in 1 2 3 4 5 6; do
5396 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5397 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5398 # Solaris 8's {/usr,}/bin/sh.
5399 touch sub/conftst$i.h
5401 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5403 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5404 # mode. It turns out that the SunPro C++ compiler does not properly
5405 # handle `-M -o', and we need to detect this. Also, some Intel
5406 # versions had trouble with output in subdirs
5407 am__obj=sub/conftest.${OBJEXT-o}
5408 am__minus_obj="-o $am__obj"
5411 # This depmode causes a compiler race in universal mode.
5412 test "$am__universal" = false || continue
5415 # after this tag, mechanisms are not by side-effect, so they'll
5416 # only be used when explicitly requested
5417 if test "x$enable_dependency_tracking" = xyes; then
5423 msvisualcpp | msvcmsys)
5424 # This compiler won't grok `-c -o', but also, the minuso test has
5425 # not run yet. These depmodes are late enough in the game, and
5426 # so weak that their functioning should not be impacted.
5427 am__obj=conftest.${OBJEXT-o}
5432 if depmode=$depmode \
5433 source=sub/conftest.c object=$am__obj \
5434 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5435 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5436 >/dev/null 2>conftest.err &&
5437 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5438 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5439 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5440 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5441 # icc doesn't choke on unknown options, it will just issue warnings
5442 # or remarks (even with -Werror). So we grep stderr for any message
5443 # that says an option was ignored or not supported.
5444 # When given -MP, icc 7.0 and 7.1 complain thusly:
5445 # icc: Command line warning: ignoring option '-M'; no argument required
5446 # The diagnosis changed in icc 8.0:
5447 # icc: Command line remark: option '-MP' not supported
5448 if (grep 'ignoring option' conftest.err ||
5449 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5450 am_cv_CC_dependencies_compiler_type=$depmode
5459 am_cv_CC_dependencies_compiler_type=none
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5464 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5465 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5468 test "x$enable_dependency_tracking" != xno \
5469 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5471 am__fastdepCC_FALSE='#'
5473 am__fastdepCC_TRUE='#'
5474 am__fastdepCC_FALSE=
5478 if test "x$CC" != xcc; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5480 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5483 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5485 set dummy $CC; ac_cc=`$as_echo "$2" |
5486 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5487 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5488 $as_echo_n "(cached) " >&6
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5501 # Make sure it works both with $CC and with simple cc.
5502 # We do the test twice because some compilers refuse to overwrite an
5503 # existing .o file with -o, though they will create one.
5504 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5506 if { { case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5511 $as_echo "$ac_try_echo"; } >&5
5512 (eval "$ac_try") 2>&5
5514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5515 test $ac_status = 0; } &&
5516 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5521 $as_echo "$ac_try_echo"; } >&5
5522 (eval "$ac_try") 2>&5
5524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5525 test $ac_status = 0; };
5527 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5528 if test "x$CC" != xcc; then
5529 # Test first that cc exists at all.
5530 if { ac_try='cc -c conftest.$ac_ext >&5'
5531 { { case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5536 $as_echo "$ac_try_echo"; } >&5
5537 (eval "$ac_try") 2>&5
5539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5540 test $ac_status = 0; }; }; then
5541 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5543 if { { case "(($ac_try" in
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5547 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5548 $as_echo "$ac_try_echo"; } >&5
5549 (eval "$ac_try") 2>&5
5551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5552 test $ac_status = 0; } &&
5553 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5555 *) ac_try_echo=$ac_try;;
5557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5558 $as_echo "$ac_try_echo"; } >&5
5559 (eval "$ac_try") 2>&5
5561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5562 test $ac_status = 0; };
5567 # cc exists but doesn't like -o.
5568 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5573 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5575 rm -f core conftest*
5578 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580 $as_echo "yes" >&6; }
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5585 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5589 # FIXME: we rely on the cache variable name because
5590 # there is no other way.
5592 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5593 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5594 if test "$am_t" != yes; then
5595 # Losing compiler, so override with the script.
5596 # FIXME: It is wrong to rewrite CC.
5597 # But if we don't then we get into trouble of one sort or another.
5598 # A longer-term fix would be to have automake use am__CC in this case,
5599 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5600 CC="$am_aux_dir/compile $CC"
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5606 $as_echo_n "checking whether ln -s works... " >&6; }
5608 if test "$LN_S" = "ln -s"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610 $as_echo "yes" >&6; }
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5613 $as_echo "no, using $LN_S" >&6; }
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5619 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5624 macro_version='2.2.6b'
5625 macro_revision='1.3017'
5639 ltmain="$ac_aux_dir/ltmain.sh"
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5642 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5643 if ${ac_cv_path_SED+:} false; then :
5644 $as_echo_n "(cached) " >&6
5646 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5647 for ac_i in 1 2 3 4 5 6 7; do
5648 ac_script="$ac_script$as_nl$ac_script"
5650 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5651 { ac_script=; unset ac_script;}
5652 if test -z "$SED"; then
5653 ac_path_SED_found=false
5654 # Loop through the user's path and test for each of PROGNAME-LIST
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 test -z "$as_dir" && as_dir=.
5660 for ac_prog in sed gsed; do
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5663 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5664 # Check for GNU ac_path_SED and select it if it is found.
5665 # Check for GNU $ac_path_SED
5666 case `"$ac_path_SED" --version 2>&1` in
5668 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5671 $as_echo_n 0123456789 >"conftest.in"
5674 cat "conftest.in" "conftest.in" >"conftest.tmp"
5675 mv "conftest.tmp" "conftest.in"
5676 cp "conftest.in" "conftest.nl"
5677 $as_echo '' >> "conftest.nl"
5678 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5680 as_fn_arith $ac_count + 1 && ac_count=$as_val
5681 if test $ac_count -gt ${ac_path_SED_max-0}; then
5682 # Best one so far, save it but keep looking for a better one
5683 ac_cv_path_SED="$ac_path_SED"
5684 ac_path_SED_max=$ac_count
5686 # 10*(2^10) chars as input seems more than enough
5687 test $ac_count -gt 10 && break
5689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5692 $ac_path_SED_found && break 3
5697 if test -z "$ac_cv_path_SED"; then
5698 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5706 $as_echo "$ac_cv_path_SED" >&6; }
5707 SED="$ac_cv_path_SED"
5710 test -z "$SED" && SED=sed
5711 Xsed="$SED -e 1s/^X//"
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5724 $as_echo_n "checking for fgrep... " >&6; }
5725 if ${ac_cv_path_FGREP+:} false; then :
5726 $as_echo_n "(cached) " >&6
5728 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5729 then ac_cv_path_FGREP="$GREP -F"
5731 if test -z "$FGREP"; then
5732 ac_path_FGREP_found=false
5733 # Loop through the user's path and test for each of PROGNAME-LIST
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5738 test -z "$as_dir" && as_dir=.
5739 for ac_prog in fgrep; do
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5742 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5743 # Check for GNU ac_path_FGREP and select it if it is found.
5744 # Check for GNU $ac_path_FGREP
5745 case `"$ac_path_FGREP" --version 2>&1` in
5747 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5750 $as_echo_n 0123456789 >"conftest.in"
5753 cat "conftest.in" "conftest.in" >"conftest.tmp"
5754 mv "conftest.tmp" "conftest.in"
5755 cp "conftest.in" "conftest.nl"
5756 $as_echo 'FGREP' >> "conftest.nl"
5757 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5759 as_fn_arith $ac_count + 1 && ac_count=$as_val
5760 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5761 # Best one so far, save it but keep looking for a better one
5762 ac_cv_path_FGREP="$ac_path_FGREP"
5763 ac_path_FGREP_max=$ac_count
5765 # 10*(2^10) chars as input seems more than enough
5766 test $ac_count -gt 10 && break
5768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5771 $ac_path_FGREP_found && break 3
5776 if test -z "$ac_cv_path_FGREP"; then
5777 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5780 ac_cv_path_FGREP=$FGREP
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5786 $as_echo "$ac_cv_path_FGREP" >&6; }
5787 FGREP="$ac_cv_path_FGREP"
5790 test -z "$GREP" && GREP=grep
5810 # Check whether --with-gnu-ld was given.
5811 if test "${with_gnu_ld+set}" = set; then :
5812 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5818 if test "$GCC" = yes; then
5819 # Check if gcc -print-prog-name=ld gives a path.
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5821 $as_echo_n "checking for ld used by $CC... " >&6; }
5824 # gcc leaves a trailing carriage return which upsets mingw
5825 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5827 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5830 # Accept absolute paths.
5832 re_direlt='/[^/][^/]*/\.\./'
5833 # Canonicalize the pathname of ld
5834 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5835 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5836 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5838 test -z "$LD" && LD="$ac_prog"
5841 # If it fails, then pretend we aren't using GCC.
5845 # If it is relative, then search for the first ld in PATH.
5849 elif test "$with_gnu_ld" = yes; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5851 $as_echo_n "checking for GNU ld... " >&6; }
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5854 $as_echo_n "checking for non-GNU ld... " >&6; }
5856 if ${lt_cv_path_LD+:} false; then :
5857 $as_echo_n "(cached) " >&6
5859 if test -z "$LD"; then
5860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5861 for ac_dir in $PATH; do
5863 test -z "$ac_dir" && ac_dir=.
5864 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5865 lt_cv_path_LD="$ac_dir/$ac_prog"
5866 # Check to see if the program is GNU ld. I'd rather use --version,
5867 # but apparently some variants of GNU ld only accept -v.
5868 # Break only if it was the GNU/non-GNU ld that we prefer.
5869 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5870 *GNU* | *'with BFD'*)
5871 test "$with_gnu_ld" != no && break
5874 test "$with_gnu_ld" != yes && break
5881 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5886 if test -n "$LD"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5888 $as_echo "$LD" >&6; }
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891 $as_echo "no" >&6; }
5893 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5895 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5896 if ${lt_cv_prog_gnu_ld+:} false; then :
5897 $as_echo_n "(cached) " >&6
5899 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5900 case `$LD -v 2>&1 </dev/null` in
5901 *GNU* | *'with BFD'*)
5902 lt_cv_prog_gnu_ld=yes
5905 lt_cv_prog_gnu_ld=no
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5910 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5911 with_gnu_ld=$lt_cv_prog_gnu_ld
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5922 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5923 if ${lt_cv_path_NM+:} false; then :
5924 $as_echo_n "(cached) " >&6
5926 if test -n "$NM"; then
5927 # Let the user override the test.
5930 lt_nm_to_check="${ac_tool_prefix}nm"
5931 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5932 lt_nm_to_check="$lt_nm_to_check nm"
5934 for lt_tmp_nm in $lt_nm_to_check; do
5935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5936 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5938 test -z "$ac_dir" && ac_dir=.
5939 tmp_nm="$ac_dir/$lt_tmp_nm"
5940 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5941 # Check to see if the nm accepts a BSD-compat flag.
5942 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5943 # nm: unknown option "B" ignored
5944 # Tru64's nm complains that /dev/null is an invalid object file
5945 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5946 */dev/null* | *'Invalid file or object type'*)
5947 lt_cv_path_NM="$tmp_nm -B"
5951 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5953 lt_cv_path_NM="$tmp_nm -p"
5957 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5958 continue # so that we can try to find one that supports BSD flags
5967 : ${lt_cv_path_NM=no}
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5971 $as_echo "$lt_cv_path_NM" >&6; }
5972 if test "$lt_cv_path_NM" != "no"; then
5975 # Didn't find any BSD compatible name lister, look for dumpbin.
5976 if test -n "$ac_tool_prefix"; then
5977 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if ${ac_cv_prog_DUMPBIN+:} false; then :
5984 $as_echo_n "(cached) " >&6
5986 if test -n "$DUMPBIN"; then
5987 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 DUMPBIN=$ac_cv_prog_DUMPBIN
6007 if test -n "$DUMPBIN"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6009 $as_echo "$DUMPBIN" >&6; }
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6016 test -n "$DUMPBIN" && break
6019 if test -z "$DUMPBIN"; then
6020 ac_ct_DUMPBIN=$DUMPBIN
6021 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6023 # Extract the first word of "$ac_prog", so it can be a program name with args.
6024 set dummy $ac_prog; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6028 $as_echo_n "(cached) " >&6
6030 if test -n "$ac_ct_DUMPBIN"; then
6031 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6051 if test -n "$ac_ct_DUMPBIN"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6053 $as_echo "$ac_ct_DUMPBIN" >&6; }
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6060 test -n "$ac_ct_DUMPBIN" && break
6063 if test "x$ac_ct_DUMPBIN" = x; then
6066 case $cross_compiling:$ac_tool_warned in
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6070 ac_tool_warned=yes ;;
6072 DUMPBIN=$ac_ct_DUMPBIN
6077 if test "$DUMPBIN" != ":"; then
6081 test -z "$NM" && NM=nm
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6089 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6090 if ${lt_cv_nm_interface+:} false; then :
6091 $as_echo_n "(cached) " >&6
6093 lt_cv_nm_interface="BSD nm"
6094 echo "int some_variable = 0;" > conftest.$ac_ext
6095 (eval echo "\"\$as_me:6095: $ac_compile\"" >&5)
6096 (eval "$ac_compile" 2>conftest.err)
6097 cat conftest.err >&5
6098 (eval echo "\"\$as_me:6098: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6099 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6100 cat conftest.err >&5
6101 (eval echo "\"\$as_me:6101: output\"" >&5)
6102 cat conftest.out >&5
6103 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6104 lt_cv_nm_interface="MS dumpbin"
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6109 $as_echo "$lt_cv_nm_interface" >&6; }
6111 # find the maximum length of command line arguments
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6113 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6114 if ${lt_cv_sys_max_cmd_len+:} false; then :
6115 $as_echo_n "(cached) " >&6
6122 # On DJGPP, this test can blow up pretty badly due to problems in libc
6123 # (any single argument exceeding 2000 bytes causes a buffer overrun
6124 # during glob expansion). Even if it were fixed, the result of this
6125 # check would be larger than it should be.
6126 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6130 # Under GNU Hurd, this test is not required because there is
6131 # no limit to the length of command line arguments.
6132 # Libtool will interpret -1 as no limit whatsoever
6133 lt_cv_sys_max_cmd_len=-1;
6136 cygwin* | mingw* | cegcc*)
6137 # On Win9x/ME, this test blows up -- it succeeds, but takes
6138 # about 5 minutes as the teststring grows exponentially.
6139 # Worse, since 9x/ME are not pre-emptively multitasking,
6140 # you end up with a "frozen" computer, even though with patience
6141 # the test eventually succeeds (with a max line length of 256k).
6142 # Instead, let's just punt: use the minimum linelength reported by
6143 # all of the supported platforms: 8192 (on NT/2K/XP).
6144 lt_cv_sys_max_cmd_len=8192;
6148 # On AmigaOS with pdksh, this test takes hours, literally.
6149 # So we just punt and use a minimum line length of 8192.
6150 lt_cv_sys_max_cmd_len=8192;
6153 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6154 # This has been around since 386BSD, at least. Likely further.
6155 if test -x /sbin/sysctl; then
6156 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6157 elif test -x /usr/sbin/sysctl; then
6158 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6160 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6162 # And add a safety zone
6163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6168 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6169 lt_cv_sys_max_cmd_len=196608
6173 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6174 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6175 # nice to cause kernel panics so lets avoid the loop below.
6176 # First set a reasonable default.
6177 lt_cv_sys_max_cmd_len=16384
6179 if test -x /sbin/sysconfig; then
6180 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6181 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6186 lt_cv_sys_max_cmd_len=102400
6188 sysv5* | sco5v6* | sysv4.2uw2*)
6189 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6190 if test -n "$kargmax"; then
6191 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6193 lt_cv_sys_max_cmd_len=32768
6197 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6198 if test -n "$lt_cv_sys_max_cmd_len"; then
6199 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6200 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6202 # Make teststring a little bigger before we do anything with it.
6203 # a 1K string should be a reasonable start.
6204 for i in 1 2 3 4 5 6 7 8 ; do
6205 teststring=$teststring$teststring
6207 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6208 # If test is not a shell built-in, we'll probably end up computing a
6209 # maximum length that is only half of the actual maximum length, but
6211 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6212 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6213 test $i != 17 # 1/2 MB should be enough
6216 teststring=$teststring$teststring
6218 # Only check the string length outside the loop.
6219 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6221 # Add a significant safety factor because C++ compilers can tack on
6222 # massive amounts of additional arguments before passing them to the
6223 # linker. It appears as though 1/2 is a usable value.
6224 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6231 if test -n $lt_cv_sys_max_cmd_len ; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6233 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6236 $as_echo "none" >&6; }
6238 max_cmd_len=$lt_cv_sys_max_cmd_len
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6250 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6251 # Try some XSI features
6254 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6256 && eval 'test $(( 1 + 1 )) -eq 2 \
6257 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6260 $as_echo "$xsi_shell" >&6; }
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6264 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6266 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6268 && lt_shell_append=yes
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6270 $as_echo "$lt_shell_append" >&6; }
6273 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6283 # test EBCDIC or ASCII
6284 case `echo X|tr X '\101'` in
6285 A) # ASCII based system
6286 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6287 lt_SP2NL='tr \040 \012'
6288 lt_NL2SP='tr \015\012 \040\040'
6290 *) # EBCDIC based system
6291 lt_SP2NL='tr \100 \n'
6292 lt_NL2SP='tr \r\n \100\100'
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6305 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6306 if ${lt_cv_ld_reload_flag+:} false; then :
6307 $as_echo_n "(cached) " >&6
6309 lt_cv_ld_reload_flag='-r'
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6312 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6313 reload_flag=$lt_cv_ld_reload_flag
6314 case $reload_flag in
6316 *) reload_flag=" $reload_flag" ;;
6318 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6321 if test "$GCC" = yes; then
6322 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6337 if test -n "$ac_tool_prefix"; then
6338 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6339 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_prog_OBJDUMP+:} false; then :
6343 $as_echo_n "(cached) " >&6
6345 if test -n "$OBJDUMP"; then
6346 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 OBJDUMP=$ac_cv_prog_OBJDUMP
6366 if test -n "$OBJDUMP"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6368 $as_echo "$OBJDUMP" >&6; }
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6376 if test -z "$ac_cv_prog_OBJDUMP"; then
6377 ac_ct_OBJDUMP=$OBJDUMP
6378 # Extract the first word of "objdump", so it can be a program name with args.
6379 set dummy objdump; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6383 $as_echo_n "(cached) " >&6
6385 if test -n "$ac_ct_OBJDUMP"; then
6386 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6406 if test -n "$ac_ct_OBJDUMP"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6408 $as_echo "$ac_ct_OBJDUMP" >&6; }
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6414 if test "x$ac_ct_OBJDUMP" = x; then
6417 case $cross_compiling:$ac_tool_warned in
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421 ac_tool_warned=yes ;;
6423 OBJDUMP=$ac_ct_OBJDUMP
6426 OBJDUMP="$ac_cv_prog_OBJDUMP"
6429 test -z "$OBJDUMP" && OBJDUMP=objdump
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6440 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6441 if ${lt_cv_deplibs_check_method+:} false; then :
6442 $as_echo_n "(cached) " >&6
6444 lt_cv_file_magic_cmd='$MAGIC_CMD'
6445 lt_cv_file_magic_test_file=
6446 lt_cv_deplibs_check_method='unknown'
6447 # Need to set the preceding variable on all platforms that support
6448 # interlibrary dependencies.
6449 # 'none' -- dependencies not supported.
6450 # `unknown' -- same as none, but documents that we really don't know.
6451 # 'pass_all' -- all dependencies passed with no checks.
6452 # 'test_compile' -- check by making test program.
6453 # 'file_magic [[regex]]' -- check by looking for files in library path
6454 # which responds to the $file_magic_cmd with a given extended regex.
6455 # If you have `file' or equivalent on your system and you're not sure
6456 # whether `pass_all' will *always* work, you probably want this one.
6460 lt_cv_deplibs_check_method=pass_all
6464 lt_cv_deplibs_check_method=pass_all
6468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6469 lt_cv_file_magic_cmd='/usr/bin/file -L'
6470 lt_cv_file_magic_test_file=/shlib/libc.so
6474 # func_win32_libid is a shell function defined in ltmain.sh
6475 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6476 lt_cv_file_magic_cmd='func_win32_libid'
6480 # Base MSYS/MinGW do not provide the 'file' command needed by
6481 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6482 # unless we find 'file', for example because we are cross-compiling.
6483 if ( file / ) >/dev/null 2>&1; then
6484 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6485 lt_cv_file_magic_cmd='func_win32_libid'
6487 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6488 lt_cv_file_magic_cmd='$OBJDUMP -f'
6493 # use the weaker test based on 'objdump'. See mingw*.
6494 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6495 lt_cv_file_magic_cmd='$OBJDUMP -f'
6498 darwin* | rhapsody*)
6499 lt_cv_deplibs_check_method=pass_all
6502 freebsd* | dragonfly*)
6503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6506 # Not sure whether the presence of OpenBSD here was a mistake.
6507 # Let's accept both of them until this is cleared up.
6508 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6509 lt_cv_file_magic_cmd=/usr/bin/file
6510 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6514 lt_cv_deplibs_check_method=pass_all
6519 lt_cv_deplibs_check_method=pass_all
6522 hpux10.20* | hpux11*)
6523 lt_cv_file_magic_cmd=/usr/bin/file
6526 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6527 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6531 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6534 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6535 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6541 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6545 irix5* | irix6* | nonstopux*)
6547 *-32|*"-32 ") libmagic=32-bit;;
6548 *-n32|*"-n32 ") libmagic=N32;;
6549 *-64|*"-64 ") libmagic=64-bit;;
6550 *) libmagic=never-match;;
6552 lt_cv_deplibs_check_method=pass_all
6555 # This must be Linux ELF.
6556 linux* | k*bsd*-gnu)
6557 lt_cv_deplibs_check_method=pass_all
6561 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6564 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6569 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6570 lt_cv_file_magic_cmd=/usr/bin/file
6571 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6575 lt_cv_deplibs_check_method=pass_all
6579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6586 osf3* | osf4* | osf5*)
6587 lt_cv_deplibs_check_method=pass_all
6591 lt_cv_deplibs_check_method=pass_all
6595 lt_cv_deplibs_check_method=pass_all
6598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6599 lt_cv_deplibs_check_method=pass_all
6603 case $host_vendor in
6605 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]'
6606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6609 lt_cv_deplibs_check_method=pass_all
6612 lt_cv_file_magic_cmd='/bin/file'
6613 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6616 lt_cv_file_magic_cmd='/bin/file'
6617 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6618 lt_cv_file_magic_test_file=/lib/libc.so
6621 lt_cv_deplibs_check_method=pass_all
6624 lt_cv_deplibs_check_method=pass_all
6630 lt_cv_deplibs_check_method=pass_all
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6636 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6637 file_magic_cmd=$lt_cv_file_magic_cmd
6638 deplibs_check_method=$lt_cv_deplibs_check_method
6639 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}ar; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_AR+:} false; then :
6658 $as_echo_n "(cached) " >&6
6660 if test -n "$AR"; then
6661 ac_cv_prog_AR="$AR" # Let the user override the test.
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670 ac_cv_prog_AR="${ac_tool_prefix}ar"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 if test -n "$AR"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6683 $as_echo "$AR" >&6; }
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6691 if test -z "$ac_cv_prog_AR"; then
6693 # Extract the first word of "ar", so it can be a program name with args.
6694 set dummy ar; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6698 $as_echo_n "(cached) " >&6
6700 if test -n "$ac_ct_AR"; then
6701 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_ac_ct_AR="ar"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6721 if test -n "$ac_ct_AR"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6723 $as_echo "$ac_ct_AR" >&6; }
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6729 if test "x$ac_ct_AR" = x; then
6732 case $cross_compiling:$ac_tool_warned in
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6744 test -z "$AR" && AR=ar
6745 test -z "$AR_FLAGS" && AR_FLAGS=cru
6757 if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}strip; ac_word=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_STRIP+:} false; then :
6763 $as_echo_n "(cached) " >&6
6765 if test -n "$STRIP"; then
6766 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 STRIP=$ac_cv_prog_STRIP
6786 if test -n "$STRIP"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6788 $as_echo "$STRIP" >&6; }
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6796 if test -z "$ac_cv_prog_STRIP"; then
6798 # Extract the first word of "strip", so it can be a program name with args.
6799 set dummy strip; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6803 $as_echo_n "(cached) " >&6
6805 if test -n "$ac_ct_STRIP"; then
6806 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_prog_ac_ct_STRIP="strip"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6826 if test -n "$ac_ct_STRIP"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6828 $as_echo "$ac_ct_STRIP" >&6; }
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6834 if test "x$ac_ct_STRIP" = x; then
6837 case $cross_compiling:$ac_tool_warned in
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6841 ac_tool_warned=yes ;;
6846 STRIP="$ac_cv_prog_STRIP"
6849 test -z "$STRIP" && STRIP=:
6856 if test -n "$ac_tool_prefix"; then
6857 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6858 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_prog_RANLIB+:} false; then :
6862 $as_echo_n "(cached) " >&6
6864 if test -n "$RANLIB"; then
6865 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 RANLIB=$ac_cv_prog_RANLIB
6885 if test -n "$RANLIB"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6887 $as_echo "$RANLIB" >&6; }
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6895 if test -z "$ac_cv_prog_RANLIB"; then
6896 ac_ct_RANLIB=$RANLIB
6897 # Extract the first word of "ranlib", so it can be a program name with args.
6898 set dummy ranlib; ac_word=$2
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6900 $as_echo_n "checking for $ac_word... " >&6; }
6901 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6902 $as_echo_n "(cached) " >&6
6904 if test -n "$ac_ct_RANLIB"; then
6905 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_prog_ac_ct_RANLIB="ranlib"
6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6925 if test -n "$ac_ct_RANLIB"; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6927 $as_echo "$ac_ct_RANLIB" >&6; }
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6930 $as_echo "no" >&6; }
6933 if test "x$ac_ct_RANLIB" = x; then
6936 case $cross_compiling:$ac_tool_warned in
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6940 ac_tool_warned=yes ;;
6942 RANLIB=$ac_ct_RANLIB
6945 RANLIB="$ac_cv_prog_RANLIB"
6948 test -z "$RANLIB" && RANLIB=:
6955 # Determine commands to create old-style static archives.
6956 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6957 old_postinstall_cmds='chmod 644 $oldlib'
6958 old_postuninstall_cmds=
6960 if test -n "$RANLIB"; then
6963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6966 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6969 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7005 # If no C compiler was specified, use CC.
7008 # If no C compiler flags were specified, use CFLAGS.
7009 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7011 # Allow CC to be a program name with arguments.
7015 # Check for command to grab the raw symbol name followed by C symbol from nm.
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7017 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7018 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7019 $as_echo_n "(cached) " >&6
7022 # These are sane defaults that work on at least a few old systems.
7023 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7025 # Character class describing NM global symbol codes.
7026 symcode='[BCDEGRST]'
7028 # Regexp to match symbols that can be accessed directly from C.
7029 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7031 # Define system-specific variables.
7036 cygwin* | mingw* | pw32* | cegcc*)
7037 symcode='[ABCDGISTW]'
7040 if test "$host_cpu" = ia64; then
7041 symcode='[ABCDEGRST]'
7045 symcode='[BCDEGRST]'
7048 symcode='[BCDEGQRST]'
7059 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7067 # If we're using GNU nm, then use its standard symbol codes.
7068 case `$NM -V 2>&1` in
7069 *GNU* | *'with BFD'*)
7070 symcode='[ABCDGIRSTW]' ;;
7073 # Transform an extracted symbol line into a proper C declaration.
7074 # Some systems (esp. on ia64) link data and code symbols differently,
7075 # so use this general approach.
7076 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7078 # Transform an extracted symbol line into symbol name and symbol address
7079 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7080 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'"
7082 # Handle CRLF in mingw tool chain
7086 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7090 # Try without a prefix underscore, then with it.
7091 for ac_symprfx in "" "_"; do
7093 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7094 symxfrm="\\1 $ac_symprfx\\2 \\2"
7096 # Write the raw and C identifiers.
7097 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7098 # Fake it for dumpbin and say T for any non-static function
7099 # and D for any global variable.
7100 # Also find C++ and __fastcall symbols from MSVC++,
7101 # which start with @ or ?.
7102 lt_cv_sys_global_symbol_pipe="$AWK '"\
7103 " {last_section=section; section=\$ 3};"\
7104 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7105 " \$ 0!~/External *\|/{next};"\
7106 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7107 " {if(hide[section]) next};"\
7108 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7109 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7110 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7111 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7112 " ' prfx=^$ac_symprfx"
7114 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7117 # Check to see that the pipe works correctly.
7121 cat > conftest.$ac_ext <<_LT_EOF
7126 void nm_test_func(void);
7127 void nm_test_func(void){}
7131 int main(){nm_test_var='a';nm_test_func();return(0);}
7134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7135 (eval $ac_compile) 2>&5
7137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7138 test $ac_status = 0; }; then
7139 # Now try to grab the symbols.
7141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7142 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7145 test $ac_status = 0; } && test -s "$nlist"; then
7146 # Try sorting and uniquifying the output.
7147 if sort "$nlist" | uniq > "$nlist"T; then
7148 mv -f "$nlist"T "$nlist"
7153 # Make sure that we snagged all the symbols we need.
7154 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7155 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7156 cat <<_LT_EOF > conftest.$ac_ext
7162 # Now generate the symbol file.
7163 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7165 cat <<_LT_EOF >> conftest.$ac_ext
7167 /* The mapping between symbol names and symbols. */
7172 lt__PROGRAM__LTX_preloaded_symbols[] =
7174 { "@PROGRAM@", (void *) 0 },
7176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7177 cat <<\_LT_EOF >> conftest.$ac_ext
7181 /* This works around a problem in FreeBSD linker */
7182 #ifdef FREEBSD_WORKAROUND
7183 static const void *lt_preloaded_setup() {
7184 return lt__PROGRAM__LTX_preloaded_symbols;
7192 # Now try linking the two files.
7193 mv conftest.$ac_objext conftstm.$ac_objext
7194 lt_save_LIBS="$LIBS"
7195 lt_save_CFLAGS="$CFLAGS"
7196 LIBS="conftstm.$ac_objext"
7197 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7199 (eval $ac_link) 2>&5
7201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7202 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7205 LIBS="$lt_save_LIBS"
7206 CFLAGS="$lt_save_CFLAGS"
7208 echo "cannot find nm_test_func in $nlist" >&5
7211 echo "cannot find nm_test_var in $nlist" >&5
7214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7217 echo "$progname: failed program was:" >&5
7218 cat conftest.$ac_ext >&5
7220 rm -rf conftest* conftst*
7222 # Do not use the global_symbol_pipe unless it works.
7223 if test "$pipe_works" = yes; then
7226 lt_cv_sys_global_symbol_pipe=
7232 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7233 lt_cv_sys_global_symbol_to_cdecl=
7235 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7237 $as_echo "failed" >&6; }
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7240 $as_echo "ok" >&6; }
7264 # Check whether --enable-libtool-lock was given.
7265 if test "${enable_libtool_lock+set}" = set; then :
7266 enableval=$enable_libtool_lock;
7269 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7271 # Some flags need to be propagated to the compiler or linker for good
7275 # Find out which ABI we are using.
7276 echo 'int i;' > conftest.$ac_ext
7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7278 (eval $ac_compile) 2>&5
7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7281 test $ac_status = 0; }; then
7282 case `/usr/bin/file conftest.$ac_objext` in
7294 # Find out which ABI we are using.
7295 echo '#line 7295 "configure"' > conftest.$ac_ext
7296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7297 (eval $ac_compile) 2>&5
7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300 test $ac_status = 0; }; then
7301 if test "$lt_cv_prog_gnu_ld" = yes; then
7302 case `/usr/bin/file conftest.$ac_objext` in
7304 LD="${LD-ld} -melf32bsmip"
7307 LD="${LD-ld} -melf32bmipn32"
7310 LD="${LD-ld} -melf64bmip"
7314 case `/usr/bin/file conftest.$ac_objext` in
7330 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7331 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7332 # Find out which ABI we are using.
7333 echo 'int i;' > conftest.$ac_ext
7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7335 (eval $ac_compile) 2>&5
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; }; then
7339 case `/usr/bin/file conftest.o` in
7342 x86_64-*kfreebsd*-gnu)
7343 LD="${LD-ld} -m elf_i386_fbsd"
7346 LD="${LD-ld} -m elf_i386"
7348 ppc64-*linux*|powerpc64-*linux*)
7349 LD="${LD-ld} -m elf32ppclinux"
7352 LD="${LD-ld} -m elf_s390"
7355 LD="${LD-ld} -m elf32_sparc"
7361 x86_64-*kfreebsd*-gnu)
7362 LD="${LD-ld} -m elf_x86_64_fbsd"
7365 LD="${LD-ld} -m elf_x86_64"
7367 ppc*-*linux*|powerpc*-*linux*)
7368 LD="${LD-ld} -m elf64ppc"
7370 s390*-*linux*|s390*-*tpf*)
7371 LD="${LD-ld} -m elf64_s390"
7374 LD="${LD-ld} -m elf64_sparc"
7384 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7385 SAVE_CFLAGS="$CFLAGS"
7386 CFLAGS="$CFLAGS -belf"
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7388 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7389 if ${lt_cv_cc_needs_belf+:} false; then :
7390 $as_echo_n "(cached) " >&6
7393 ac_cpp='$CPP $CPPFLAGS'
7394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7409 if ac_fn_c_try_link "$LINENO"; then :
7410 lt_cv_cc_needs_belf=yes
7412 lt_cv_cc_needs_belf=no
7414 rm -f core conftest.err conftest.$ac_objext \
7415 conftest$ac_exeext conftest.$ac_ext
7417 ac_cpp='$CPP $CPPFLAGS'
7418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7424 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7425 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7426 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7427 CFLAGS="$SAVE_CFLAGS"
7431 # Find out which ABI we are using.
7432 echo 'int i;' > conftest.$ac_ext
7433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7434 (eval $ac_compile) 2>&5
7436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437 test $ac_status = 0; }; then
7438 case `/usr/bin/file conftest.o` in
7440 case $lt_cv_prog_gnu_ld in
7441 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7443 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7455 need_locks="$enable_libtool_lock"
7459 rhapsody* | darwin*)
7460 if test -n "$ac_tool_prefix"; then
7461 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7462 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7466 $as_echo_n "(cached) " >&6
7468 if test -n "$DSYMUTIL"; then
7469 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7489 if test -n "$DSYMUTIL"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7491 $as_echo "$DSYMUTIL" >&6; }
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7499 if test -z "$ac_cv_prog_DSYMUTIL"; then
7500 ac_ct_DSYMUTIL=$DSYMUTIL
7501 # Extract the first word of "dsymutil", so it can be a program name with args.
7502 set dummy dsymutil; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7506 $as_echo_n "(cached) " >&6
7508 if test -n "$ac_ct_DSYMUTIL"; then
7509 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7529 if test -n "$ac_ct_DSYMUTIL"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7531 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7537 if test "x$ac_ct_DSYMUTIL" = x; then
7540 case $cross_compiling:$ac_tool_warned in
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544 ac_tool_warned=yes ;;
7546 DSYMUTIL=$ac_ct_DSYMUTIL
7549 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7552 if test -n "$ac_tool_prefix"; then
7553 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7554 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if ${ac_cv_prog_NMEDIT+:} false; then :
7558 $as_echo_n "(cached) " >&6
7560 if test -n "$NMEDIT"; then
7561 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 NMEDIT=$ac_cv_prog_NMEDIT
7581 if test -n "$NMEDIT"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7583 $as_echo "$NMEDIT" >&6; }
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7591 if test -z "$ac_cv_prog_NMEDIT"; then
7592 ac_ct_NMEDIT=$NMEDIT
7593 # Extract the first word of "nmedit", so it can be a program name with args.
7594 set dummy nmedit; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7598 $as_echo_n "(cached) " >&6
7600 if test -n "$ac_ct_NMEDIT"; then
7601 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7621 if test -n "$ac_ct_NMEDIT"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7623 $as_echo "$ac_ct_NMEDIT" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7629 if test "x$ac_ct_NMEDIT" = x; then
7632 case $cross_compiling:$ac_tool_warned in
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7638 NMEDIT=$ac_ct_NMEDIT
7641 NMEDIT="$ac_cv_prog_NMEDIT"
7644 if test -n "$ac_tool_prefix"; then
7645 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7646 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648 $as_echo_n "checking for $ac_word... " >&6; }
7649 if ${ac_cv_prog_LIPO+:} false; then :
7650 $as_echo_n "(cached) " >&6
7652 if test -n "$LIPO"; then
7653 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 LIPO=$ac_cv_prog_LIPO
7673 if test -n "$LIPO"; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7675 $as_echo "$LIPO" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7683 if test -z "$ac_cv_prog_LIPO"; then
7685 # Extract the first word of "lipo", so it can be a program name with args.
7686 set dummy lipo; ac_word=$2
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688 $as_echo_n "checking for $ac_word... " >&6; }
7689 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7690 $as_echo_n "(cached) " >&6
7692 if test -n "$ac_ct_LIPO"; then
7693 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702 ac_cv_prog_ac_ct_LIPO="lipo"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7712 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7713 if test -n "$ac_ct_LIPO"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7715 $as_echo "$ac_ct_LIPO" >&6; }
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7721 if test "x$ac_ct_LIPO" = x; then
7724 case $cross_compiling:$ac_tool_warned in
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7728 ac_tool_warned=yes ;;
7733 LIPO="$ac_cv_prog_LIPO"
7736 if test -n "$ac_tool_prefix"; then
7737 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7738 set dummy ${ac_tool_prefix}otool; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if ${ac_cv_prog_OTOOL+:} false; then :
7742 $as_echo_n "(cached) " >&6
7744 if test -n "$OTOOL"; then
7745 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 OTOOL=$ac_cv_prog_OTOOL
7765 if test -n "$OTOOL"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7767 $as_echo "$OTOOL" >&6; }
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7775 if test -z "$ac_cv_prog_OTOOL"; then
7777 # Extract the first word of "otool", so it can be a program name with args.
7778 set dummy otool; ac_word=$2
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7780 $as_echo_n "checking for $ac_word... " >&6; }
7781 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7782 $as_echo_n "(cached) " >&6
7784 if test -n "$ac_ct_OTOOL"; then
7785 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7794 ac_cv_prog_ac_ct_OTOOL="otool"
7795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7805 if test -n "$ac_ct_OTOOL"; then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7807 $as_echo "$ac_ct_OTOOL" >&6; }
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7810 $as_echo "no" >&6; }
7813 if test "x$ac_ct_OTOOL" = x; then
7816 case $cross_compiling:$ac_tool_warned in
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7820 ac_tool_warned=yes ;;
7825 OTOOL="$ac_cv_prog_OTOOL"
7828 if test -n "$ac_tool_prefix"; then
7829 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7830 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_OTOOL64+:} false; then :
7834 $as_echo_n "(cached) " >&6
7836 if test -n "$OTOOL64"; then
7837 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7846 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 OTOOL64=$ac_cv_prog_OTOOL64
7857 if test -n "$OTOOL64"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7859 $as_echo "$OTOOL64" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7867 if test -z "$ac_cv_prog_OTOOL64"; then
7868 ac_ct_OTOOL64=$OTOOL64
7869 # Extract the first word of "otool64", so it can be a program name with args.
7870 set dummy otool64; ac_word=$2
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 $as_echo_n "checking for $ac_word... " >&6; }
7873 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7874 $as_echo_n "(cached) " >&6
7876 if test -n "$ac_ct_OTOOL64"; then
7877 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 test -z "$as_dir" && as_dir=.
7884 for ac_exec_ext in '' $ac_executable_extensions; do
7885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886 ac_cv_prog_ac_ct_OTOOL64="otool64"
7887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7897 if test -n "$ac_ct_OTOOL64"; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7899 $as_echo "$ac_ct_OTOOL64" >&6; }
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7905 if test "x$ac_ct_OTOOL64" = x; then
7908 case $cross_compiling:$ac_tool_warned in
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7912 ac_tool_warned=yes ;;
7914 OTOOL64=$ac_ct_OTOOL64
7917 OTOOL64="$ac_cv_prog_OTOOL64"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7947 $as_echo_n "checking for -single_module linker flag... " >&6; }
7948 if ${lt_cv_apple_cc_single_mod+:} false; then :
7949 $as_echo_n "(cached) " >&6
7951 lt_cv_apple_cc_single_mod=no
7952 if test -z "${LT_MULTI_MODULE}"; then
7953 # By default we will add the -single_module flag. You can override
7954 # by either setting the environment variable LT_MULTI_MODULE
7955 # non-empty at configure time, or by adding -multi_module to the
7957 rm -rf libconftest.dylib*
7958 echo "int foo(void){return 1;}" > conftest.c
7959 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7960 -dynamiclib -Wl,-single_module conftest.c" >&5
7961 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7962 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7964 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7965 lt_cv_apple_cc_single_mod=yes
7967 cat conftest.err >&5
7969 rm -rf libconftest.dylib*
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7974 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7976 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7977 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7978 $as_echo_n "(cached) " >&6
7980 lt_cv_ld_exported_symbols_list=no
7981 save_LDFLAGS=$LDFLAGS
7982 echo "_main" > conftest.sym
7983 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7995 if ac_fn_c_try_link "$LINENO"; then :
7996 lt_cv_ld_exported_symbols_list=yes
7998 lt_cv_ld_exported_symbols_list=no
8000 rm -f core conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
8002 LDFLAGS="$save_LDFLAGS"
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8006 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8008 rhapsody* | darwin1.[012])
8009 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8011 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8012 darwin*) # darwin 5.x on
8013 # if running on 10.5 or later, the deployment target defaults
8014 # to the OS version, if on x86, and 10.4, the deployment
8015 # target defaults to 10.4. Don't you love it?
8016 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8017 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8018 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8020 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8022 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8026 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8027 _lt_dar_single_mod='$single_module'
8029 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8030 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8032 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8034 if test "$DSYMUTIL" != ":"; then
8035 _lt_dsymutil='~$DSYMUTIL $lib || :'
8042 for ac_header in dlfcn.h
8044 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8046 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8047 cat >>confdefs.h <<_ACEOF
8048 #define HAVE_DLFCN_H 1
8067 # Check whether --enable-shared was given.
8068 if test "${enable_shared+set}" = set; then :
8069 enableval=$enable_shared; p=${PACKAGE-default}
8071 yes) enable_shared=yes ;;
8072 no) enable_shared=no ;;
8075 # Look at the argument we got. We use all the common list separators.
8076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8077 for pkg in $enableval; do
8079 if test "X$pkg" = "X$p"; then
8098 # Check whether --enable-static was given.
8099 if test "${enable_static+set}" = set; then :
8100 enableval=$enable_static; p=${PACKAGE-default}
8102 yes) enable_static=yes ;;
8103 no) enable_static=no ;;
8106 # Look at the argument we got. We use all the common list separators.
8107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8108 for pkg in $enableval; do
8110 if test "X$pkg" = "X$p"; then
8130 # Check whether --with-pic was given.
8131 if test "${with_pic+set}" = set; then :
8132 withval=$with_pic; pic_mode="$withval"
8138 test -z "$pic_mode" && pic_mode=default
8146 # Check whether --enable-fast-install was given.
8147 if test "${enable_fast_install+set}" = set; then :
8148 enableval=$enable_fast_install; p=${PACKAGE-default}
8150 yes) enable_fast_install=yes ;;
8151 no) enable_fast_install=no ;;
8153 enable_fast_install=no
8154 # Look at the argument we got. We use all the common list separators.
8155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8156 for pkg in $enableval; do
8158 if test "X$pkg" = "X$p"; then
8159 enable_fast_install=yes
8166 enable_fast_install=yes
8179 # This can be used to rebuild libtool when needed
8180 LIBTOOL_DEPS="$ltmain"
8182 # Always use our own libtool.
8183 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8209 test -z "$LN_S" && LN_S="ln -s"
8224 if test -n "${ZSH_VERSION+set}" ; then
8225 setopt NO_GLOB_SUBST
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8229 $as_echo_n "checking for objdir... " >&6; }
8230 if ${lt_cv_objdir+:} false; then :
8231 $as_echo_n "(cached) " >&6
8233 rm -f .libs 2>/dev/null
8234 mkdir .libs 2>/dev/null
8235 if test -d .libs; then
8238 # MS-DOS does not allow filenames that begin with a dot.
8241 rmdir .libs 2>/dev/null
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8244 $as_echo "$lt_cv_objdir" >&6; }
8245 objdir=$lt_cv_objdir
8251 cat >>confdefs.h <<_ACEOF
8252 #define LT_OBJDIR "$lt_cv_objdir/"
8273 # AIX sometimes has problems with the GCC collect2 program. For some
8274 # reason, if we set the COLLECT_NAMES environment variable, the problems
8275 # vanish in a puff of smoke.
8276 if test "X${COLLECT_NAMES+set}" != Xset; then
8278 export COLLECT_NAMES
8283 # Sed substitution that helps us do robust quoting. It backslashifies
8284 # metacharacters that are still active within double-quoted strings.
8285 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8287 # Same as above, but do not quote variable references.
8288 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8290 # Sed substitution to delay expansion of an escaped shell variable in a
8291 # double_quote_subst'ed string.
8292 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8294 # Sed substitution to delay expansion of an escaped single quote.
8295 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8297 # Sed substitution to avoid accidental globbing in evaled expressions
8298 no_glob_subst='s/\*/\\\*/g'
8302 can_build_shared=yes
8304 # All known linkers require a `.a' archive for static linking (except MSVC,
8305 # which needs '.lib').
8308 with_gnu_ld="$lt_cv_prog_gnu_ld"
8311 old_CFLAGS="$CFLAGS"
8313 # Set sane defaults for various variables
8314 test -z "$CC" && CC=cc
8315 test -z "$LTCC" && LTCC=$CC
8316 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8317 test -z "$LD" && LD=ld
8318 test -z "$ac_objext" && ac_objext=o
8320 for cc_temp in $compiler""; do
8322 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8323 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8328 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8331 # Only perform the check for file, if the check method requires it
8332 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8333 case $deplibs_check_method in
8335 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8337 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8338 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8339 $as_echo_n "(cached) " >&6
8343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8346 lt_save_MAGIC_CMD="$MAGIC_CMD"
8347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8349 for ac_dir in $ac_dummy; do
8351 test -z "$ac_dir" && ac_dir=.
8352 if test -f $ac_dir/${ac_tool_prefix}file; then
8353 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8354 if test -n "$file_magic_test_file"; then
8355 case $deplibs_check_method in
8357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8360 $EGREP "$file_magic_regex" > /dev/null; then
8365 *** Warning: the command libtool uses to detect shared libraries,
8366 *** $file_magic_cmd, produces output that libtool cannot recognize.
8367 *** The result is that libtool may fail to recognize shared libraries
8368 *** as such. This will affect the creation of libtool libraries that
8369 *** depend on shared libraries, but programs linked with such libtool
8370 *** libraries will work regardless of this problem. Nevertheless, you
8371 *** may want to report the problem to your system manager and/or to
8372 *** bug-libtool@gnu.org
8382 MAGIC_CMD="$lt_save_MAGIC_CMD"
8387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8388 if test -n "$MAGIC_CMD"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8390 $as_echo "$MAGIC_CMD" >&6; }
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8400 if test -z "$lt_cv_path_MAGIC_CMD"; then
8401 if test -n "$ac_tool_prefix"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8403 $as_echo_n "checking for file... " >&6; }
8404 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8405 $as_echo_n "(cached) " >&6
8409 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8412 lt_save_MAGIC_CMD="$MAGIC_CMD"
8413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8414 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8415 for ac_dir in $ac_dummy; do
8417 test -z "$ac_dir" && ac_dir=.
8418 if test -f $ac_dir/file; then
8419 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8420 if test -n "$file_magic_test_file"; then
8421 case $deplibs_check_method in
8423 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8426 $EGREP "$file_magic_regex" > /dev/null; then
8431 *** Warning: the command libtool uses to detect shared libraries,
8432 *** $file_magic_cmd, produces output that libtool cannot recognize.
8433 *** The result is that libtool may fail to recognize shared libraries
8434 *** as such. This will affect the creation of libtool libraries that
8435 *** depend on shared libraries, but programs linked with such libtool
8436 *** libraries will work regardless of this problem. Nevertheless, you
8437 *** may want to report the problem to your system manager and/or to
8438 *** bug-libtool@gnu.org
8448 MAGIC_CMD="$lt_save_MAGIC_CMD"
8453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454 if test -n "$MAGIC_CMD"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8456 $as_echo "$MAGIC_CMD" >&6; }
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8472 # Use C for the default configuration in the libtool script
8476 ac_cpp='$CPP $CPPFLAGS'
8477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8482 # Source file extension for C test sources.
8485 # Object file extension for compiled C test sources.
8489 # Code to be used in simple compile tests
8490 lt_simple_compile_test_code="int some_variable = 0;"
8492 # Code to be used in simple link tests
8493 lt_simple_link_test_code='int main(){return(0);}'
8501 # If no C compiler was specified, use CC.
8504 # If no C compiler flags were specified, use CFLAGS.
8505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8507 # Allow CC to be a program name with arguments.
8510 # Save the default compiler, since it gets overwritten when the other
8511 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8512 compiler_DEFAULT=$CC
8514 # save warnings/boilerplate of simple test code
8515 ac_outfile=conftest.$ac_objext
8516 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8517 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8518 _lt_compiler_boilerplate=`cat conftest.err`
8521 ac_outfile=conftest.$ac_objext
8522 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8523 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8524 _lt_linker_boilerplate=`cat conftest.err`
8529 ## There is no encapsulation within the following macros, do not change
8530 ## the running order or otherwise move them around unless you know exactly
8531 ## what you are doing...
8532 if test -n "$compiler"; then
8534 lt_prog_compiler_no_builtin_flag=
8536 if test "$GCC" = yes; then
8537 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8540 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8541 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8542 $as_echo_n "(cached) " >&6
8544 lt_cv_prog_compiler_rtti_exceptions=no
8545 ac_outfile=conftest.$ac_objext
8546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547 lt_compiler_flag="-fno-rtti -fno-exceptions"
8548 # Insert the option either (1) after the last *FLAGS variable, or
8549 # (2) before a word containing "conftest.", or (3) at the end.
8550 # Note that $ac_compile itself does not contain backslashes and begins
8551 # with a dollar sign (not a hyphen), so the echo should work correctly.
8552 # The option is referenced via a variable to avoid confusing sed.
8553 lt_compile=`echo "$ac_compile" | $SED \
8554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556 -e 's:$: $lt_compiler_flag:'`
8557 (eval echo "\"\$as_me:8557: $lt_compile\"" >&5)
8558 (eval "$lt_compile" 2>conftest.err)
8560 cat conftest.err >&5
8561 echo "$as_me:8561: \$? = $ac_status" >&5
8562 if (exit $ac_status) && test -s "$ac_outfile"; then
8563 # The compiler can only warn and ignore the option if not recognized
8564 # So say no if there are warnings other than the usual output.
8565 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8567 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8568 lt_cv_prog_compiler_rtti_exceptions=yes
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8575 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8577 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8578 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8590 lt_prog_compiler_wl=
8591 lt_prog_compiler_pic=
8592 lt_prog_compiler_static=
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8595 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8597 if test "$GCC" = yes; then
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_static='-static'
8603 # All AIX code is PIC.
8604 if test "$host_cpu" = ia64; then
8605 # AIX 5 now supports IA64 processor
8606 lt_prog_compiler_static='-Bstatic'
8613 # see comment about AmigaOS4 .so support
8614 lt_prog_compiler_pic='-fPIC'
8617 # FIXME: we need at least 68020 code to build shared libraries, but
8618 # adding the `-m68020' flag to GCC prevents building anything better,
8620 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8625 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8626 # PIC is the default for these OSes.
8629 mingw* | cygwin* | pw32* | os2* | cegcc*)
8630 # This hack is so that the source file can tell whether it is being
8631 # built for inclusion in a dll (and should export symbols for example).
8632 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8633 # (--disable-auto-import) libraries
8634 lt_prog_compiler_pic='-DDLL_EXPORT'
8637 darwin* | rhapsody*)
8638 # PIC is the default on this platform
8639 # Common symbols not allowed in MH_DYLIB files
8640 lt_prog_compiler_pic='-fno-common'
8644 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8645 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8646 # sets the default TLS model and affects inlining.
8652 lt_prog_compiler_pic='-fPIC'
8658 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8659 # Instead, we relocate shared libraries at runtime.
8663 # Just because we use GCC doesn't mean we suddenly get shared libraries
8664 # on systems that don't support them.
8665 lt_prog_compiler_can_build_shared=no
8670 # QNX uses GNU C++, but need to define -shared option too, otherwise
8672 lt_prog_compiler_pic='-fPIC -shared'
8676 if test -d /usr/nec; then
8677 lt_prog_compiler_pic=-Kconform_pic
8682 lt_prog_compiler_pic='-fPIC'
8686 # PORTME Check for flag to pass linker flags through the system compiler.
8689 lt_prog_compiler_wl='-Wl,'
8690 if test "$host_cpu" = ia64; then
8691 # AIX 5 now supports IA64 processor
8692 lt_prog_compiler_static='-Bstatic'
8694 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8698 mingw* | cygwin* | pw32* | os2* | cegcc*)
8699 # This hack is so that the source file can tell whether it is being
8700 # built for inclusion in a dll (and should export symbols for example).
8701 lt_prog_compiler_pic='-DDLL_EXPORT'
8704 hpux9* | hpux10* | hpux11*)
8705 lt_prog_compiler_wl='-Wl,'
8706 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8713 lt_prog_compiler_pic='+Z'
8716 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8717 lt_prog_compiler_static='${wl}-a ${wl}archive'
8720 irix5* | irix6* | nonstopux*)
8721 lt_prog_compiler_wl='-Wl,'
8722 # PIC (with -KPIC) is the default.
8723 lt_prog_compiler_static='-non_shared'
8726 linux* | k*bsd*-gnu)
8727 case $cc_basename in
8728 # old Intel for x86_64 which still supported -KPIC.
8730 lt_prog_compiler_wl='-Wl,'
8731 lt_prog_compiler_pic='-KPIC'
8732 lt_prog_compiler_static='-static'
8734 # icc used to be incompatible with GCC.
8735 # ICC 10 doesn't accept -KPIC any more.
8737 lt_prog_compiler_wl='-Wl,'
8738 lt_prog_compiler_pic='-fPIC'
8739 lt_prog_compiler_static='-static'
8741 # Lahey Fortran 8.1.
8743 lt_prog_compiler_wl='-Wl,'
8744 lt_prog_compiler_pic='--shared'
8745 lt_prog_compiler_static='--static'
8747 pgcc* | pgf77* | pgf90* | pgf95*)
8748 # Portland Group compilers (*not* the Pentium gcc compiler,
8749 # which looks to be a dead project)
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-fpic'
8752 lt_prog_compiler_static='-Bstatic'
8755 lt_prog_compiler_wl='-Wl,'
8756 # All Alpha code is PIC.
8757 lt_prog_compiler_static='-non_shared'
8760 # IBM XL C 8.0/Fortran 10.1 on PPC
8761 lt_prog_compiler_wl='-Wl,'
8762 lt_prog_compiler_pic='-qpic'
8763 lt_prog_compiler_static='-qstaticlink'
8766 case `$CC -V 2>&1 | sed 5q` in
8769 lt_prog_compiler_pic='-KPIC'
8770 lt_prog_compiler_static='-Bstatic'
8771 lt_prog_compiler_wl='-Wl,'
8774 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8775 lt_prog_compiler_pic='-KPIC'
8776 lt_prog_compiler_static='-Bstatic'
8777 lt_prog_compiler_wl=''
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8790 # QNX uses GNU C++, but need to define -shared option too, otherwise
8792 lt_prog_compiler_pic='-fPIC -shared'
8795 osf3* | osf4* | osf5*)
8796 lt_prog_compiler_wl='-Wl,'
8797 # All OSF/1 code is PIC.
8798 lt_prog_compiler_static='-non_shared'
8802 lt_prog_compiler_static='-non_shared'
8806 lt_prog_compiler_pic='-KPIC'
8807 lt_prog_compiler_static='-Bstatic'
8808 case $cc_basename in
8810 lt_prog_compiler_wl='-Qoption ld ';;
8812 lt_prog_compiler_wl='-Wl,';;
8817 lt_prog_compiler_wl='-Qoption ld '
8818 lt_prog_compiler_pic='-PIC'
8819 lt_prog_compiler_static='-Bstatic'
8822 sysv4 | sysv4.2uw2* | sysv4.3*)
8823 lt_prog_compiler_wl='-Wl,'
8824 lt_prog_compiler_pic='-KPIC'
8825 lt_prog_compiler_static='-Bstatic'
8829 if test -d /usr/nec ;then
8830 lt_prog_compiler_pic='-Kconform_pic'
8831 lt_prog_compiler_static='-Bstatic'
8835 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8836 lt_prog_compiler_wl='-Wl,'
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_can_build_shared=no
8847 lt_prog_compiler_pic='-pic'
8848 lt_prog_compiler_static='-Bstatic'
8852 lt_prog_compiler_can_build_shared=no
8858 # For platforms which do not support PIC, -DPIC is meaningless:
8860 lt_prog_compiler_pic=
8863 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8867 $as_echo "$lt_prog_compiler_pic" >&6; }
8875 # Check to make sure the PIC flag actually works.
8877 if test -n "$lt_prog_compiler_pic"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8879 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8880 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8881 $as_echo_n "(cached) " >&6
8883 lt_cv_prog_compiler_pic_works=no
8884 ac_outfile=conftest.$ac_objext
8885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8886 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8887 # Insert the option either (1) after the last *FLAGS variable, or
8888 # (2) before a word containing "conftest.", or (3) at the end.
8889 # Note that $ac_compile itself does not contain backslashes and begins
8890 # with a dollar sign (not a hyphen), so the echo should work correctly.
8891 # The option is referenced via a variable to avoid confusing sed.
8892 lt_compile=`echo "$ac_compile" | $SED \
8893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8895 -e 's:$: $lt_compiler_flag:'`
8896 (eval echo "\"\$as_me:8896: $lt_compile\"" >&5)
8897 (eval "$lt_compile" 2>conftest.err)
8899 cat conftest.err >&5
8900 echo "$as_me:8900: \$? = $ac_status" >&5
8901 if (exit $ac_status) && test -s "$ac_outfile"; then
8902 # The compiler can only warn and ignore the option if not recognized
8903 # So say no if there are warnings other than the usual output.
8904 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8907 lt_cv_prog_compiler_pic_works=yes
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8914 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8916 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8917 case $lt_prog_compiler_pic in
8919 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8922 lt_prog_compiler_pic=
8923 lt_prog_compiler_can_build_shared=no
8934 # Check to make sure the static flag actually works.
8936 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8938 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8939 if ${lt_cv_prog_compiler_static_works+:} false; then :
8940 $as_echo_n "(cached) " >&6
8942 lt_cv_prog_compiler_static_works=no
8943 save_LDFLAGS="$LDFLAGS"
8944 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8945 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8946 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8947 # The linker can only warn and ignore the option if not recognized
8948 # So say no if there are warnings
8949 if test -s conftest.err; then
8950 # Append any errors to the config.log.
8951 cat conftest.err 1>&5
8952 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8954 if diff conftest.exp conftest.er2 >/dev/null; then
8955 lt_cv_prog_compiler_static_works=yes
8958 lt_cv_prog_compiler_static_works=yes
8962 LDFLAGS="$save_LDFLAGS"
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8966 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8968 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8971 lt_prog_compiler_static=
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8981 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8982 if ${lt_cv_prog_compiler_c_o+:} false; then :
8983 $as_echo_n "(cached) " >&6
8985 lt_cv_prog_compiler_c_o=no
8986 $RM -r conftest 2>/dev/null
8990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8992 lt_compiler_flag="-o out/conftest2.$ac_objext"
8993 # Insert the option either (1) after the last *FLAGS variable, or
8994 # (2) before a word containing "conftest.", or (3) at the end.
8995 # Note that $ac_compile itself does not contain backslashes and begins
8996 # with a dollar sign (not a hyphen), so the echo should work correctly.
8997 lt_compile=`echo "$ac_compile" | $SED \
8998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9000 -e 's:$: $lt_compiler_flag:'`
9001 (eval echo "\"\$as_me:9001: $lt_compile\"" >&5)
9002 (eval "$lt_compile" 2>out/conftest.err)
9004 cat out/conftest.err >&5
9005 echo "$as_me:9005: \$? = $ac_status" >&5
9006 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9008 # The compiler can only warn and ignore the option if not recognized
9009 # So say no if there are warnings
9010 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9011 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9012 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9013 lt_cv_prog_compiler_c_o=yes
9018 # SGI C++ compiler will create directory out/ii_files/ for
9019 # template instantiation
9020 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9021 $RM out/* && rmdir out
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9028 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9036 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9037 if ${lt_cv_prog_compiler_c_o+:} false; then :
9038 $as_echo_n "(cached) " >&6
9040 lt_cv_prog_compiler_c_o=no
9041 $RM -r conftest 2>/dev/null
9045 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9047 lt_compiler_flag="-o out/conftest2.$ac_objext"
9048 # Insert the option either (1) after the last *FLAGS variable, or
9049 # (2) before a word containing "conftest.", or (3) at the end.
9050 # Note that $ac_compile itself does not contain backslashes and begins
9051 # with a dollar sign (not a hyphen), so the echo should work correctly.
9052 lt_compile=`echo "$ac_compile" | $SED \
9053 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9055 -e 's:$: $lt_compiler_flag:'`
9056 (eval echo "\"\$as_me:9056: $lt_compile\"" >&5)
9057 (eval "$lt_compile" 2>out/conftest.err)
9059 cat out/conftest.err >&5
9060 echo "$as_me:9060: \$? = $ac_status" >&5
9061 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9063 # The compiler can only warn and ignore the option if not recognized
9064 # So say no if there are warnings
9065 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9066 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9067 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9068 lt_cv_prog_compiler_c_o=yes
9073 # SGI C++ compiler will create directory out/ii_files/ for
9074 # template instantiation
9075 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9076 $RM out/* && rmdir out
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9083 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9088 hard_links="nottested"
9089 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9090 # do not overwrite the value of need_locks provided by the user
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9092 $as_echo_n "checking if we can lock with hard links... " >&6; }
9095 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9097 ln conftest.a conftest.b 2>&5 || hard_links=no
9098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9100 $as_echo "$hard_links" >&6; }
9101 if test "$hard_links" = no; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9103 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9116 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9119 allow_undefined_flag=
9120 always_export_symbols=no
9122 archive_expsym_cmds=
9123 compiler_needs_object=no
9124 enable_shared_with_static_runtimes=no
9125 export_dynamic_flag_spec=
9126 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9127 hardcode_automatic=no
9129 hardcode_direct_absolute=no
9130 hardcode_libdir_flag_spec=
9131 hardcode_libdir_flag_spec_ld=
9132 hardcode_libdir_separator=
9134 hardcode_shlibpath_var=unsupported
9136 link_all_deplibs=unknown
9139 old_archive_from_new_cmds=
9140 old_archive_from_expsyms_cmds=
9141 thread_safe_flag_spec=
9142 whole_archive_flag_spec=
9143 # include_expsyms should be a list of space-separated symbols to be *always*
9144 # included in the symbol list
9146 # exclude_expsyms can be an extended regexp of symbols to exclude
9147 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9148 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9149 # as well as any symbol that contains `d'.
9150 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9151 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9152 # platforms (ab)use it in PIC code, but their linkers get confused if
9153 # the symbol is explicitly referenced. Since portable code cannot
9154 # rely on this symbol name, it's probably fine to never include it in
9155 # preloaded symbol tables.
9156 # Exclude shared library initialization/finalization symbols.
9157 extract_expsyms_cmds=
9160 cygwin* | mingw* | pw32* | cegcc*)
9161 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9162 # When not using gcc, we currently assume that we are using
9163 # Microsoft Visual C++.
9164 if test "$GCC" != yes; then
9169 # we just hope/assume this is gcc and not c89 (= MSVC++)
9178 if test "$with_gnu_ld" = yes; then
9179 # If archive_cmds runs LD, not CC, wlarc should be empty
9182 # Set some defaults for GNU ld with shared library support. These
9183 # are reset later if shared libraries are not supported. Putting them
9184 # here allows them to be overridden if necessary.
9185 runpath_var=LD_RUN_PATH
9186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9187 export_dynamic_flag_spec='${wl}--export-dynamic'
9188 # ancient GNU ld didn't support --whole-archive et. al.
9189 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9190 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9192 whole_archive_flag_spec=
9194 supports_anon_versioning=no
9195 case `$LD -v 2>&1` in
9196 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9197 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9198 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9199 *\ 2.11.*) ;; # other 2.11 versions
9200 *) supports_anon_versioning=yes ;;
9203 # See if GNU ld supports shared libraries.
9206 # On AIX/PPC, the GNU linker is very broken
9207 if test "$host_cpu" != ia64; then
9211 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9212 *** to be unable to reliably create shared libraries on AIX.
9213 *** Therefore, libtool is disabling shared libraries support. If you
9214 *** really care for shared libraries, you may want to modify your PATH
9215 *** so that a non-GNU linker is found, and then restart.
9224 # see comment about AmigaOS4 .so support
9225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226 archive_expsym_cmds=''
9229 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)'
9230 hardcode_libdir_flag_spec='-L$libdir'
9231 hardcode_minus_L=yes
9237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9238 allow_undefined_flag=unsupported
9239 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9240 # support --undefined. This deserves some investigation. FIXME
9241 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247 cygwin* | mingw* | pw32* | cegcc*)
9248 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9249 # as there is no search path for DLLs.
9250 hardcode_libdir_flag_spec='-L$libdir'
9251 allow_undefined_flag=unsupported
9252 always_export_symbols=no
9253 enable_shared_with_static_runtimes=yes
9254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9256 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9258 # If the export-symbols file already is a .def file (1st line
9259 # is EXPORTS), use it as is; otherwise, prepend...
9260 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9261 cp $export_symbols $output_objdir/$soname.def;
9263 echo EXPORTS > $output_objdir/$soname.def;
9264 cat $export_symbols >> $output_objdir/$soname.def;
9266 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9274 hardcode_shlibpath_var=no
9275 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9276 export_dynamic_flag_spec='${wl}-E'
9277 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9278 # Instead, shared libraries are loaded at an image base (0x10000000 by
9279 # default) and relocated if they conflict, which is a slow very memory
9280 # consuming and fragmenting process. To avoid this, we pick a random,
9281 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9282 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9284 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'
9287 gnu* | linux* | tpf* | k*bsd*-gnu)
9289 if test "$host_os" = linux-dietlibc; then
9290 case $cc_basename in
9291 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9294 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9295 && test "$tmp_diet" = no
9298 tmp_sharedflag='-shared'
9299 case $cc_basename,$host_cpu in
9300 pgcc*) # Portland Group C compiler
9301 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9302 tmp_addflag=' $pic_flag'
9304 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9305 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9306 tmp_addflag=' $pic_flag -Mnomain' ;;
9307 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9308 tmp_addflag=' -i_dynamic' ;;
9309 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9310 tmp_addflag=' -i_dynamic -nofor_main' ;;
9311 ifc* | ifort*) # Intel Fortran compiler
9312 tmp_addflag=' -nofor_main' ;;
9313 lf95*) # Lahey Fortran 8.1
9314 whole_archive_flag_spec=
9315 tmp_sharedflag='--shared' ;;
9316 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9317 tmp_sharedflag='-qmkshrobj'
9320 case `$CC -V 2>&1 | sed 5q` in
9321 *Sun\ C*) # Sun C 5.9
9322 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9323 compiler_needs_object=yes
9324 tmp_sharedflag='-G' ;;
9325 *Sun\ F*) # Sun Fortran 8.3
9326 tmp_sharedflag='-G' ;;
9328 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330 if test "x$supports_anon_versioning" = xyes; then
9331 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9333 echo "local: *; };" >> $output_objdir/$libname.ver~
9334 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9337 case $cc_basename in
9339 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9340 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9341 hardcode_libdir_flag_spec=
9342 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9343 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9344 if test "x$supports_anon_versioning" = xyes; then
9345 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9347 echo "local: *; };" >> $output_objdir/$libname.ver~
9348 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9359 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9368 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9372 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9373 *** create shared libraries on Solaris systems. Therefore, libtool
9374 *** is disabling shared libraries support. We urge you to upgrade GNU
9375 *** binutils to release 2.9.1 or newer. Another option is to modify
9376 *** your PATH or compiler configuration so that the native linker is
9377 *** used, and then restart.
9380 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9388 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9389 case `$LD -v 2>&1` in
9390 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9394 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9395 *** reliably create shared libraries on SCO systems. Therefore, libtool
9396 *** is disabling shared libraries support. We urge you to upgrade GNU
9397 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9398 *** your PATH or compiler configuration so that the native linker is
9399 *** used, and then restart.
9404 # For security reasons, it is highly recommended that you always
9405 # use absolute paths for naming shared libraries, and exclude the
9406 # DT_RUNPATH tag from executables and libraries. But doing so
9407 # requires that you compile everything twice, which is a pain.
9408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9420 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9423 hardcode_shlibpath_var=no
9427 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9429 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9436 if test "$ld_shlibs" = no; then
9438 hardcode_libdir_flag_spec=
9439 export_dynamic_flag_spec=
9440 whole_archive_flag_spec=
9443 # PORTME fill in a description of your system's linker (not GNU ld)
9446 allow_undefined_flag=unsupported
9447 always_export_symbols=yes
9448 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'
9449 # Note: this linker hardcodes the directories in LIBPATH if there
9450 # are no directories specified by -L.
9451 hardcode_minus_L=yes
9452 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9453 # Neither direct hardcoding nor static linking is supported with a
9455 hardcode_direct=unsupported
9460 if test "$host_cpu" = ia64; then
9461 # On IA64, the linker does run time linking by default, so we don't
9462 # have to do anything special.
9463 aix_use_runtimelinking=no
9464 exp_sym_flag='-Bexport'
9467 # If we're using GNU nm, then we don't want the "-C" option.
9468 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9469 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9470 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9472 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'
9474 aix_use_runtimelinking=no
9476 # Test if we are trying to use run time linking or normal
9477 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9478 # need to do runtime linking.
9479 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9480 for ld_flag in $LDFLAGS; do
9481 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9482 aix_use_runtimelinking=yes
9489 exp_sym_flag='-bexport'
9490 no_entry_flag='-bnoentry'
9493 # When large executables or shared objects are built, AIX ld can
9494 # have problems creating the table of contents. If linking a library
9495 # or program results in "error TOC overflow" add -mminimal-toc to
9496 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9497 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9501 hardcode_direct_absolute=yes
9502 hardcode_libdir_separator=':'
9503 link_all_deplibs=yes
9504 file_list_spec='${wl}-f,'
9506 if test "$GCC" = yes; then
9507 case $host_os in aix4.[012]|aix4.[012].*)
9508 # We only want to do this on AIX 4.2 and lower, the check
9509 # below for broken collect2 doesn't work under 4.3+
9510 collect2name=`${CC} -print-prog-name=collect2`
9511 if test -f "$collect2name" &&
9512 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9514 # We have reworked collect2
9517 # We have old collect2
9518 hardcode_direct=unsupported
9519 # It fails to find uninstalled libraries when the uninstalled
9520 # path is not listed in the libpath. Setting hardcode_minus_L
9521 # to unsupported forces relinking
9522 hardcode_minus_L=yes
9523 hardcode_libdir_flag_spec='-L$libdir'
9524 hardcode_libdir_separator=
9528 shared_flag='-shared'
9529 if test "$aix_use_runtimelinking" = yes; then
9530 shared_flag="$shared_flag "'${wl}-G'
9534 if test "$host_cpu" = ia64; then
9535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9536 # chokes on -Wl,-G. The following line is correct:
9539 if test "$aix_use_runtimelinking" = yes; then
9540 shared_flag='${wl}-G'
9542 shared_flag='${wl}-bM:SRE'
9547 export_dynamic_flag_spec='${wl}-bexpall'
9548 # It seems that -bexpall does not export symbols beginning with
9549 # underscore (_), so it is better to generate a list of symbols to export.
9550 always_export_symbols=yes
9551 if test "$aix_use_runtimelinking" = yes; then
9552 # Warning - without using the other runtime loading flags (-brtl),
9553 # -berok will link without error, but may produce a broken library.
9554 allow_undefined_flag='-berok'
9555 # Determine the default libpath from the value encoded in an
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558 /* end confdefs.h. */
9568 if ac_fn_c_try_link "$LINENO"; then :
9570 lt_aix_libpath_sed='
9571 /Import File Strings/,/^$/ {
9577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9578 # Check for a 64-bit object if we didn't find anything.
9579 if test -z "$aix_libpath"; then
9580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9583 rm -f core conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9588 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9590 if test "$host_cpu" = ia64; then
9591 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9592 allow_undefined_flag="-z nodefs"
9593 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"
9595 # Determine the default libpath from the value encoded in an
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9608 if ac_fn_c_try_link "$LINENO"; then :
9610 lt_aix_libpath_sed='
9611 /Import File Strings/,/^$/ {
9617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618 # Check for a 64-bit object if we didn't find anything.
9619 if test -z "$aix_libpath"; then
9620 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9623 rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9627 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9628 # Warning - without using the other run time loading flags,
9629 # -berok will link without error, but may produce a broken library.
9630 no_undefined_flag=' ${wl}-bernotok'
9631 allow_undefined_flag=' ${wl}-berok'
9632 # Exported symbols can be pulled into shared objects from archives
9633 whole_archive_flag_spec='$convenience'
9634 archive_cmds_need_lc=yes
9635 # This is similar to how AIX traditionally builds its shared libraries.
9636 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'
9644 # see comment about AmigaOS4 .so support
9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9646 archive_expsym_cmds=''
9649 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)'
9650 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_minus_L=yes
9657 export_dynamic_flag_spec=-rdynamic
9660 cygwin* | mingw* | pw32* | cegcc*)
9661 # When not using gcc, we currently assume that we are using
9662 # Microsoft Visual C++.
9663 # hardcode_libdir_flag_spec is actually meaningless, as there is
9664 # no search path for DLLs.
9665 hardcode_libdir_flag_spec=' '
9666 allow_undefined_flag=unsupported
9667 # Tell ltmain to make .lib files, not .a files.
9669 # Tell ltmain to make .dll files, not .so files.
9671 # FIXME: Setting linknames here is a bad hack.
9672 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9673 # The linker will automatically build a .lib file if we build a DLL.
9674 old_archive_from_new_cmds='true'
9675 # FIXME: Should let the user specify the lib program.
9676 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9677 fix_srcfile_path='`cygpath -w "$srcfile"`'
9678 enable_shared_with_static_runtimes=yes
9681 darwin* | rhapsody*)
9684 archive_cmds_need_lc=no
9686 hardcode_automatic=yes
9687 hardcode_shlibpath_var=unsupported
9688 whole_archive_flag_spec=''
9689 link_all_deplibs=yes
9690 allow_undefined_flag="$_lt_dar_allow_undefined"
9691 case $cc_basename in
9692 ifort*) _lt_dar_can_shared=yes ;;
9693 *) _lt_dar_can_shared=$GCC ;;
9695 if test "$_lt_dar_can_shared" = "yes"; then
9696 output_verbose_link_cmd=echo
9697 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9698 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9699 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}"
9700 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}"
9709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710 hardcode_libdir_flag_spec='-L$libdir'
9711 hardcode_shlibpath_var=no
9718 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9719 # support. Future versions do this automatically, but an explicit c++rt0.o
9720 # does not break anything, and helps significantly (at the cost of a little
9723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9724 hardcode_libdir_flag_spec='-R$libdir'
9726 hardcode_shlibpath_var=no
9729 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9733 hardcode_minus_L=yes
9734 hardcode_shlibpath_var=no
9737 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9738 freebsd* | dragonfly*)
9739 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9740 hardcode_libdir_flag_spec='-R$libdir'
9742 hardcode_shlibpath_var=no
9746 if test "$GCC" = yes; then
9747 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9749 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'
9751 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9752 hardcode_libdir_separator=:
9755 # hardcode_minus_L: Not really in the search PATH,
9756 # but as the default location of the library.
9757 hardcode_minus_L=yes
9758 export_dynamic_flag_spec='${wl}-E'
9762 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9767 if test "$with_gnu_ld" = no; then
9768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9769 hardcode_libdir_flag_spec_ld='+b $libdir'
9770 hardcode_libdir_separator=:
9772 hardcode_direct_absolute=yes
9773 export_dynamic_flag_spec='${wl}-E'
9774 # hardcode_minus_L: Not really in the search PATH,
9775 # but as the default location of the library.
9776 hardcode_minus_L=yes
9781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9784 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9787 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9790 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9796 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9806 if test "$with_gnu_ld" = no; then
9807 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9808 hardcode_libdir_separator=:
9813 hardcode_shlibpath_var=no
9817 hardcode_direct_absolute=yes
9818 export_dynamic_flag_spec='${wl}-E'
9820 # hardcode_minus_L: Not really in the search PATH,
9821 # but as the default location of the library.
9822 hardcode_minus_L=yes
9828 irix5* | irix6* | nonstopux*)
9829 if test "$GCC" = yes; then
9830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9831 # Try to use the -exported_symbol ld option, if it does not
9832 # work, assume that -exports_file does not work either and
9833 # implicitly export all symbols.
9834 save_LDFLAGS="$LDFLAGS"
9835 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9840 if ac_fn_c_try_link "$LINENO"; then :
9841 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9844 rm -f core conftest.err conftest.$ac_objext \
9845 conftest$ac_exeext conftest.$ac_ext
9846 LDFLAGS="$save_LDFLAGS"
9848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9851 archive_cmds_need_lc='no'
9852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9853 hardcode_libdir_separator=:
9855 link_all_deplibs=yes
9859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9862 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9864 hardcode_libdir_flag_spec='-R$libdir'
9866 hardcode_shlibpath_var=no
9870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9872 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9873 hardcode_libdir_separator=:
9874 hardcode_shlibpath_var=no
9881 if test -f /usr/libexec/ld.so; then
9883 hardcode_shlibpath_var=no
9884 hardcode_direct_absolute=yes
9885 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9887 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9888 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9889 export_dynamic_flag_spec='${wl}-E'
9892 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9894 hardcode_libdir_flag_spec='-R$libdir'
9897 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9898 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9908 hardcode_libdir_flag_spec='-L$libdir'
9909 hardcode_minus_L=yes
9910 allow_undefined_flag=unsupported
9911 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'
9912 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9916 if test "$GCC" = yes; then
9917 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9918 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9920 allow_undefined_flag=' -expect_unresolved \*'
9921 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9923 archive_cmds_need_lc='no'
9924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9925 hardcode_libdir_separator=:
9928 osf4* | osf5*) # as osf3* with the addition of -msym flag
9929 if test "$GCC" = yes; then
9930 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9931 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9934 allow_undefined_flag=' -expect_unresolved \*'
9935 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9936 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~
9937 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9939 # Both c and cxx compiler support -rpath directly
9940 hardcode_libdir_flag_spec='-rpath $libdir'
9942 archive_cmds_need_lc='no'
9943 hardcode_libdir_separator=:
9947 no_undefined_flag=' -z defs'
9948 if test "$GCC" = yes; then
9950 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9952 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9954 case `$CC -V 2>&1` in
9957 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9958 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9959 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9963 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9965 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9969 hardcode_libdir_flag_spec='-R$libdir'
9970 hardcode_shlibpath_var=no
9972 solaris2.[0-5] | solaris2.[0-5].*) ;;
9974 # The compiler driver will combine and reorder linker options,
9975 # but understands `-z linker_flag'. GCC discards it without `$wl',
9976 # but is careful enough not to reorder.
9977 # Supported since Solaris 2.6 (maybe 2.5.1?)
9978 if test "$GCC" = yes; then
9979 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9981 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9985 link_all_deplibs=yes
9989 if test "x$host_vendor" = xsequent; then
9990 # Use $CC to link under sequent, because it throws in some extra .o
9991 # files that make .init and .fini sections work.
9992 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9994 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9996 hardcode_libdir_flag_spec='-L$libdir'
9998 hardcode_minus_L=yes
9999 hardcode_shlibpath_var=no
10003 case $host_vendor in
10005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_direct=yes # is this really true???
10009 ## LD is ld it makes a PLAMLIB
10010 ## CC just makes a GrossModule.
10011 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10012 reload_cmds='$CC -r -o $output$reload_objs'
10016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10017 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10020 runpath_var='LD_RUN_PATH'
10021 hardcode_shlibpath_var=no
10025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026 hardcode_shlibpath_var=no
10027 export_dynamic_flag_spec='-Bexport'
10031 if test -d /usr/nec; then
10032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033 hardcode_shlibpath_var=no
10034 runpath_var=LD_RUN_PATH
10035 hardcode_runpath_var=yes
10040 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10041 no_undefined_flag='${wl}-z,text'
10042 archive_cmds_need_lc=no
10043 hardcode_shlibpath_var=no
10044 runpath_var='LD_RUN_PATH'
10046 if test "$GCC" = yes; then
10047 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055 sysv5* | sco3.2v5* | sco5v6*)
10056 # Note: We can NOT use -z defs as we might desire, because we do not
10057 # link with -lc, and that would cause any symbols used from libc to
10058 # always be unresolved, which means just about no library would
10059 # ever link correctly. If we're not using GNU ld we use -z text
10060 # though, which does catch some bad symbols but isn't as heavy-handed
10062 no_undefined_flag='${wl}-z,text'
10063 allow_undefined_flag='${wl}-z,nodefs'
10064 archive_cmds_need_lc=no
10065 hardcode_shlibpath_var=no
10066 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10067 hardcode_libdir_separator=':'
10068 link_all_deplibs=yes
10069 export_dynamic_flag_spec='${wl}-Bexport'
10070 runpath_var='LD_RUN_PATH'
10072 if test "$GCC" = yes; then
10073 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10077 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083 hardcode_libdir_flag_spec='-L$libdir'
10084 hardcode_shlibpath_var=no
10092 if test x$host_vendor = xsni; then
10094 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10095 export_dynamic_flag_spec='${wl}-Blargedynsym'
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10102 $as_echo "$ld_shlibs" >&6; }
10103 test "$ld_shlibs" = no && can_build_shared=no
10105 with_gnu_ld=$with_gnu_ld
10122 # Do we need to explicitly link libc?
10124 case "x$archive_cmds_need_lc" in
10126 # Assume -lc should be added
10127 archive_cmds_need_lc=yes
10129 if test "$enable_shared" = yes && test "$GCC" = yes; then
10130 case $archive_cmds in
10132 # FIXME: we may have to deal with multi-command sequences.
10135 # Test whether the compiler implicitly links with -lc since on some
10136 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10137 # to ld, don't add -lc before -lgcc.
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10139 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10144 (eval $ac_compile) 2>&5
10146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10147 test $ac_status = 0; } 2>conftest.err; then
10150 libobjs=conftest.$ac_objext
10152 wl=$lt_prog_compiler_wl
10153 pic_flag=$lt_prog_compiler_pic
10159 lt_save_allow_undefined_flag=$allow_undefined_flag
10160 allow_undefined_flag=
10161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10162 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10165 test $ac_status = 0; }
10167 archive_cmds_need_lc=no
10169 archive_cmds_need_lc=yes
10171 allow_undefined_flag=$lt_save_allow_undefined_flag
10173 cat conftest.err 1>&5
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10177 $as_echo "$archive_cmds_need_lc" >&6; }
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10341 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10343 if test "$GCC" = yes; then
10345 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10346 *) lt_awk_arg="/^libraries:/" ;;
10348 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10349 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10350 # if the path contains ";" then we assume it to be the separator
10351 # otherwise default to the standard path separator (i.e. ":") - it is
10352 # assumed that no part of a normal pathname contains ";" but that should
10353 # okay in the real world where ";" in dirpaths is itself problematic.
10354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10356 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10358 # Ok, now we have the path, separated by spaces, we can step through it
10359 # and add multilib dir if necessary.
10360 lt_tmp_lt_search_path_spec=
10361 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10362 for lt_sys_path in $lt_search_path_spec; do
10363 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10366 test -d "$lt_sys_path" && \
10367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10370 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10371 BEGIN {RS=" "; FS="/|\n";} {
10374 for (lt_i = NF; lt_i > 0; lt_i--) {
10375 if ($lt_i != "" && $lt_i != ".") {
10376 if ($lt_i == "..") {
10379 if (lt_count == 0) {
10380 lt_foo="/" $lt_i lt_foo;
10387 if (lt_foo != "") { lt_freq[lt_foo]++; }
10388 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10390 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10394 library_names_spec=
10395 libname_spec='lib$name'
10399 postuninstall_cmds=
10403 shlibpath_overrides_runpath=unknown
10405 dynamic_linker="$host_os ld.so"
10406 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10407 need_lib_prefix=unknown
10408 hardcode_into_libs=no
10410 # when you set need_version to no, make sure it does not cause -set_version
10411 # flags to be left without arguments
10412 need_version=unknown
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10418 shlibpath_var=LIBPATH
10420 # AIX 3 has no versioning support, so we append a major version to the name.
10421 soname_spec='${libname}${release}${shared_ext}$major'
10428 hardcode_into_libs=yes
10429 if test "$host_cpu" = ia64; then
10430 # AIX 5 supports IA64
10431 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10432 shlibpath_var=LD_LIBRARY_PATH
10434 # With GCC up to 2.95.x, collect2 would create an import file
10435 # for dependence libraries. The import file would start with
10436 # the line `#! .'. This would cause the generated library to
10437 # depend on `.', always an invalid library. This was fixed in
10438 # development snapshots of GCC prior to 3.0.
10440 aix4 | aix4.[01] | aix4.[01].*)
10441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10443 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10446 can_build_shared=no
10450 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10451 # soname into executable. Probably we can add versioning support to
10452 # collect2, so additional links can be useful in future.
10453 if test "$aix_use_runtimelinking" = yes; then
10454 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10455 # instead of lib<name>.a to let people know that these are not
10456 # typical AIX shared libraries.
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 # We preserve .a as extension for shared libraries through AIX4.2
10460 # and later when we are not doing run time linking.
10461 library_names_spec='${libname}${release}.a $libname.a'
10462 soname_spec='${libname}${release}${shared_ext}$major'
10464 shlibpath_var=LIBPATH
10471 # Since July 2007 AmigaOS4 officially supports .so libraries.
10472 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476 library_names_spec='$libname.ixlibrary $libname.a'
10477 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10478 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10484 library_names_spec='${libname}${shared_ext}'
10485 dynamic_linker="$host_os ld.so"
10486 shlibpath_var=LIBRARY_PATH
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10494 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10495 shlibpath_var=LD_LIBRARY_PATH
10496 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10497 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10498 # the default ld.so.conf also contains /usr/contrib/lib and
10499 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10500 # libtool to hard-code these into programs
10503 cygwin* | mingw* | pw32* | cegcc*)
10504 version_type=windows
10509 case $GCC,$host_os in
10510 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10511 library_names_spec='$libname.dll.a'
10512 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10513 postinstall_cmds='base_file=`basename \${file}`~
10514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10515 dldir=$destdir/`dirname \$dlpath`~
10516 test -d \$dldir || mkdir -p \$dldir~
10517 $install_prog $dir/$dlname \$dldir/$dlname~
10518 chmod a+x \$dldir/$dlname~
10519 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10520 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10522 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10523 dlpath=$dir/\$dldll~
10525 shlibpath_overrides_runpath=yes
10529 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10530 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10531 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10534 # MinGW DLLs use traditional 'lib' prefix
10535 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10536 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10537 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10538 # It is most probably a Windows format PATH printed by
10539 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10540 # path with ; separators, and with drive letters. We can handle the
10541 # drive letters (cygwin fileutils understands them), so leave them,
10542 # especially as we might pass files found there to a mingw objdump,
10543 # which wouldn't understand a cygwinified path. Ahh.
10544 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10546 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10550 # pw32 DLLs use 'pw' prefix rather than 'lib'
10551 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10557 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10560 dynamic_linker='Win32 ld.exe'
10561 # FIXME: first we should search . and the directory the executable is in
10565 darwin* | rhapsody*)
10566 dynamic_linker="$host_os dyld"
10567 version_type=darwin
10570 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10571 soname_spec='${libname}${release}${major}$shared_ext'
10572 shlibpath_overrides_runpath=yes
10573 shlibpath_var=DYLD_LIBRARY_PATH
10574 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10576 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10577 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10585 soname_spec='${libname}${release}${shared_ext}$major'
10586 shlibpath_var=LD_LIBRARY_PATH
10593 freebsd* | dragonfly*)
10594 # DragonFly does not have aout. When/if they implement a new
10595 # versioning mechanism, adjust this.
10596 if test -x /usr/bin/objformat; then
10597 objformat=`/usr/bin/objformat`
10600 freebsd[123]*) objformat=aout ;;
10601 *) objformat=elf ;;
10604 version_type=freebsd-$objformat
10605 case $version_type in
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10616 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes
10621 freebsd3.[01]* | freebsdelf3.[01]*)
10622 shlibpath_overrides_runpath=yes
10623 hardcode_into_libs=yes
10625 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10626 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10627 shlibpath_overrides_runpath=no
10628 hardcode_into_libs=yes
10630 *) # from 4.6 on, and DragonFly
10631 shlibpath_overrides_runpath=yes
10632 hardcode_into_libs=yes
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 hardcode_into_libs=yes
10647 hpux9* | hpux10* | hpux11*)
10648 # Give a soname corresponding to the major version so that dld.sl refuses to
10649 # link against other versions.
10656 hardcode_into_libs=yes
10657 dynamic_linker="$host_os dld.so"
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 if test "X$HPUX_IA64_MODE" = X32; then
10663 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10665 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10671 hardcode_into_libs=yes
10672 dynamic_linker="$host_os dld.sl"
10673 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10678 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10682 dynamic_linker="$host_os dld.sl"
10683 shlibpath_var=SHLIB_PATH
10684 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 soname_spec='${libname}${release}${shared_ext}$major'
10689 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10690 postinstall_cmds='chmod 555 $lib'
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 shlibpath_overrides_runpath=no
10702 hardcode_into_libs=yes
10705 irix5* | irix6* | nonstopux*)
10707 nonstopux*) version_type=nonstopux ;;
10709 if test "$lt_cv_prog_gnu_ld" = yes; then
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10720 irix5* | nonstopux*)
10721 libsuff= shlibsuff=
10724 case $LD in # libtool.m4 will add one of these switches to LD
10725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10726 libsuff= shlibsuff= libmagic=32-bit;;
10727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10728 libsuff=32 shlibsuff=N32 libmagic=N32;;
10729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10731 *) libsuff= shlibsuff= libmagic=never-match;;
10735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10736 shlibpath_overrides_runpath=no
10737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10739 hardcode_into_libs=yes
10742 # No shared lib support for Linux oldld, aout, or coff.
10743 linux*oldld* | linux*aout* | linux*coff*)
10747 # This must be Linux ELF.
10748 linux* | k*bsd*-gnu)
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753 soname_spec='${libname}${release}${shared_ext}$major'
10754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10755 shlibpath_var=LD_LIBRARY_PATH
10756 shlibpath_overrides_runpath=no
10757 # Some binutils ld are patched to set DT_RUNPATH
10758 save_LDFLAGS=$LDFLAGS
10759 save_libdir=$libdir
10760 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10761 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10773 if ac_fn_c_try_link "$LINENO"; then :
10774 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10775 shlibpath_overrides_runpath=yes
10778 rm -f core conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10780 LDFLAGS=$save_LDFLAGS
10781 libdir=$save_libdir
10783 # This implies no fast_install, which is unacceptable.
10784 # Some rework will be needed to allow for fast_install
10785 # before this can be enabled.
10786 hardcode_into_libs=yes
10788 # Append ld.so.conf contents to the search path
10789 if test -f /etc/ld.so.conf; then
10790 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;/^$/d' | tr '\n' ' '`
10791 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10794 # We used to test for /lib/ld.so.1 and disable shared libraries on
10795 # powerpc, because MkLinux only supported shared libraries with the
10796 # GNU dynamic linker. Since this was broken with cross compilers,
10797 # most powerpc-linux boxes support dynamic linking these days and
10798 # people can always --disable-shared, the test was removed, and we
10799 # assume the GNU/Linux dynamic linker is in use.
10800 dynamic_linker='GNU/Linux ld.so'
10807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10810 dynamic_linker='NetBSD (a.out) ld.so'
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 dynamic_linker='NetBSD ld.elf_so'
10816 shlibpath_var=LD_LIBRARY_PATH
10817 shlibpath_overrides_runpath=yes
10818 hardcode_into_libs=yes
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 shlibpath_overrides_runpath=yes
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833 soname_spec='${libname}${release}${shared_ext}$major'
10834 shlibpath_var=LD_LIBRARY_PATH
10835 shlibpath_overrides_runpath=no
10836 hardcode_into_libs=yes
10837 dynamic_linker='ldqnx.so'
10842 sys_lib_dlsearch_path_spec="/usr/lib"
10844 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10846 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10847 *) need_version=no ;;
10849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10851 shlibpath_var=LD_LIBRARY_PATH
10852 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10854 openbsd2.[89] | openbsd2.[89].*)
10855 shlibpath_overrides_runpath=no
10858 shlibpath_overrides_runpath=yes
10862 shlibpath_overrides_runpath=yes
10867 libname_spec='$name'
10870 library_names_spec='$libname${shared_ext} $libname.a'
10871 dynamic_linker='OS/2 ld.exe'
10872 shlibpath_var=LIBPATH
10875 osf3* | osf4* | osf5*)
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881 shlibpath_var=LD_LIBRARY_PATH
10882 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10883 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=yes
10898 hardcode_into_libs=yes
10899 # ldd complains unless libraries are executable
10900 postinstall_cmds='chmod +x $lib'
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10907 shlibpath_var=LD_LIBRARY_PATH
10908 shlibpath_overrides_runpath=yes
10909 if test "$with_gnu_ld" = yes; then
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 shlibpath_var=LD_LIBRARY_PATH
10920 case $host_vendor in
10922 shlibpath_overrides_runpath=no
10924 runpath_var=LD_RUN_PATH
10932 shlibpath_overrides_runpath=no
10933 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10939 if test -d /usr/nec ;then
10941 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10942 soname_spec='$libname${shared_ext}.$major'
10943 shlibpath_var=LD_LIBRARY_PATH
10947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10948 version_type=freebsd-elf
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 shlibpath_overrides_runpath=yes
10955 hardcode_into_libs=yes
10956 if test "$with_gnu_ld" = yes; then
10957 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10959 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10962 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10966 sys_lib_dlsearch_path_spec='/usr/lib'
10970 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath=no
10977 hardcode_into_libs=yes
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 shlibpath_var=LD_LIBRARY_PATH
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10992 $as_echo "$dynamic_linker" >&6; }
10993 test "$dynamic_linker" = no && can_build_shared=no
10995 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10996 if test "$GCC" = yes; then
10997 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11000 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11001 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11003 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11004 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11094 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11096 if test -n "$hardcode_libdir_flag_spec" ||
11097 test -n "$runpath_var" ||
11098 test "X$hardcode_automatic" = "Xyes" ; then
11100 # We can hardcode non-existent directories.
11101 if test "$hardcode_direct" != no &&
11102 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11103 # have to relink, otherwise we might link with an installed library
11104 # when we should be linking with a yet-to-be-installed one
11105 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11106 test "$hardcode_minus_L" != no; then
11107 # Linking always hardcodes the temporary library directory.
11108 hardcode_action=relink
11110 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11111 hardcode_action=immediate
11114 # We cannot hardcode anything, or else we can only hardcode existing
11116 hardcode_action=unsupported
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11119 $as_echo "$hardcode_action" >&6; }
11121 if test "$hardcode_action" = relink ||
11122 test "$inherit_rpath" = yes; then
11123 # Fast installation is not supported
11124 enable_fast_install=no
11125 elif test "$shlibpath_overrides_runpath" = yes ||
11126 test "$enable_shared" = no; then
11127 # Fast installation is not necessary
11128 enable_fast_install=needless
11136 if test "x$enable_dlopen" != xyes; then
11137 enable_dlopen=unknown
11138 enable_dlopen_self=unknown
11139 enable_dlopen_self_static=unknown
11146 lt_cv_dlopen="load_add_on"
11148 lt_cv_dlopen_self=yes
11151 mingw* | pw32* | cegcc*)
11152 lt_cv_dlopen="LoadLibrary"
11157 lt_cv_dlopen="dlopen"
11162 # if libdl is installed we need to link against it
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11164 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11165 if ${ac_cv_lib_dl_dlopen+:} false; then :
11166 $as_echo_n "(cached) " >&6
11168 ac_check_lib_save_LIBS=$LIBS
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11173 /* Override any GCC internal prototype to avoid an error.
11174 Use char because int might match the return type of a GCC
11175 builtin and then its argument prototype would still apply. */
11188 if ac_fn_c_try_link "$LINENO"; then :
11189 ac_cv_lib_dl_dlopen=yes
11191 ac_cv_lib_dl_dlopen=no
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11198 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11199 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11203 lt_cv_dlopen="dyld"
11205 lt_cv_dlopen_self=yes
11212 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11213 if test "x$ac_cv_func_shl_load" = xyes; then :
11214 lt_cv_dlopen="shl_load"
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11217 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11218 if ${ac_cv_lib_dld_shl_load+:} false; then :
11219 $as_echo_n "(cached) " >&6
11221 ac_check_lib_save_LIBS=$LIBS
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11226 /* Override any GCC internal prototype to avoid an error.
11227 Use char because int might match the return type of a GCC
11228 builtin and then its argument prototype would still apply. */
11236 return shl_load ();
11241 if ac_fn_c_try_link "$LINENO"; then :
11242 ac_cv_lib_dld_shl_load=yes
11244 ac_cv_lib_dld_shl_load=no
11246 rm -f core conftest.err conftest.$ac_objext \
11247 conftest$ac_exeext conftest.$ac_ext
11248 LIBS=$ac_check_lib_save_LIBS
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11251 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11252 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11253 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11255 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11256 if test "x$ac_cv_func_dlopen" = xyes; then :
11257 lt_cv_dlopen="dlopen"
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11260 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11261 if ${ac_cv_lib_dl_dlopen+:} false; then :
11262 $as_echo_n "(cached) " >&6
11264 ac_check_lib_save_LIBS=$LIBS
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11269 /* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11284 if ac_fn_c_try_link "$LINENO"; then :
11285 ac_cv_lib_dl_dlopen=yes
11287 ac_cv_lib_dl_dlopen=no
11289 rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11291 LIBS=$ac_check_lib_save_LIBS
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11294 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11295 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11296 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11299 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11300 if ${ac_cv_lib_svld_dlopen+:} false; then :
11301 $as_echo_n "(cached) " >&6
11303 ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-lsvld $LIBS"
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_lib_svld_dlopen=yes
11326 ac_cv_lib_svld_dlopen=no
11328 rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11333 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11334 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11338 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11339 if ${ac_cv_lib_dld_dld_link+:} false; then :
11340 $as_echo_n "(cached) " >&6
11342 ac_check_lib_save_LIBS=$LIBS
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11347 /* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11357 return dld_link ();
11362 if ac_fn_c_try_link "$LINENO"; then :
11363 ac_cv_lib_dld_dld_link=yes
11365 ac_cv_lib_dld_dld_link=no
11367 rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369 LIBS=$ac_check_lib_save_LIBS
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11372 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11373 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11374 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11395 if test "x$lt_cv_dlopen" != xno; then
11401 case $lt_cv_dlopen in
11403 save_CPPFLAGS="$CPPFLAGS"
11404 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11406 save_LDFLAGS="$LDFLAGS"
11407 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11410 LIBS="$lt_cv_dlopen_libs $LIBS"
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11413 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11414 if ${lt_cv_dlopen_self+:} false; then :
11415 $as_echo_n "(cached) " >&6
11417 if test "$cross_compiling" = yes; then :
11418 lt_cv_dlopen_self=cross
11420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11421 lt_status=$lt_dlunknown
11422 cat > conftest.$ac_ext <<_LT_EOF
11423 #line 11423 "configure"
11424 #include "confdefs.h"
11433 # define LT_DLGLOBAL RTLD_GLOBAL
11436 # define LT_DLGLOBAL DL_GLOBAL
11438 # define LT_DLGLOBAL 0
11442 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11443 find out it does not work in some platform. */
11444 #ifndef LT_DLLAZY_OR_NOW
11446 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11449 # define LT_DLLAZY_OR_NOW DL_LAZY
11452 # define LT_DLLAZY_OR_NOW RTLD_NOW
11455 # define LT_DLLAZY_OR_NOW DL_NOW
11457 # define LT_DLLAZY_OR_NOW 0
11464 void fnord() { int i=42;}
11467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11468 int status = $lt_dlunknown;
11472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11473 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11474 /* dlclose (self); */
11482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11483 (eval $ac_link) 2>&5
11485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11487 (./conftest; exit; ) >&5 2>/dev/null
11489 case x$lt_status in
11490 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11491 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11492 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11495 # compilation failed
11496 lt_cv_dlopen_self=no
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11504 $as_echo "$lt_cv_dlopen_self" >&6; }
11506 if test "x$lt_cv_dlopen_self" = xyes; then
11507 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11509 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11510 if ${lt_cv_dlopen_self_static+:} false; then :
11511 $as_echo_n "(cached) " >&6
11513 if test "$cross_compiling" = yes; then :
11514 lt_cv_dlopen_self_static=cross
11516 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11517 lt_status=$lt_dlunknown
11518 cat > conftest.$ac_ext <<_LT_EOF
11519 #line 11519 "configure"
11520 #include "confdefs.h"
11529 # define LT_DLGLOBAL RTLD_GLOBAL
11532 # define LT_DLGLOBAL DL_GLOBAL
11534 # define LT_DLGLOBAL 0
11538 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11539 find out it does not work in some platform. */
11540 #ifndef LT_DLLAZY_OR_NOW
11542 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11545 # define LT_DLLAZY_OR_NOW DL_LAZY
11548 # define LT_DLLAZY_OR_NOW RTLD_NOW
11551 # define LT_DLLAZY_OR_NOW DL_NOW
11553 # define LT_DLLAZY_OR_NOW 0
11560 void fnord() { int i=42;}
11563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11564 int status = $lt_dlunknown;
11568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11569 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11570 /* dlclose (self); */
11578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11579 (eval $ac_link) 2>&5
11581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11582 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11583 (./conftest; exit; ) >&5 2>/dev/null
11585 case x$lt_status in
11586 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11587 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11588 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11591 # compilation failed
11592 lt_cv_dlopen_self_static=no
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11600 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11603 CPPFLAGS="$save_CPPFLAGS"
11604 LDFLAGS="$save_LDFLAGS"
11609 case $lt_cv_dlopen_self in
11610 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11611 *) enable_dlopen_self=unknown ;;
11614 case $lt_cv_dlopen_self_static in
11615 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11616 *) enable_dlopen_self_static=unknown ;;
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11639 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11640 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11641 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11642 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11644 $as_echo "yes" >&6; }
11646 # FIXME - insert some real tests, host_os isn't really good enough
11649 if test -n "$STRIP" ; then
11650 striplib="$STRIP -x"
11651 old_striplib="$STRIP -S"
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11653 $as_echo "yes" >&6; }
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 $as_echo "no" >&6; }
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11677 # Report which library types will actually be built
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11679 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11681 $as_echo "$can_build_shared" >&6; }
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11684 $as_echo_n "checking whether to build shared libraries... " >&6; }
11685 test "$can_build_shared" = "no" && enable_shared=no
11687 # On AIX, shared libraries and static libraries use the same namespace, and
11688 # are all built from PIC.
11691 test "$enable_shared" = yes && enable_static=no
11692 if test -n "$RANLIB"; then
11693 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11694 postinstall_cmds='$RANLIB $lib'
11699 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11700 test "$enable_shared" = yes && enable_static=no
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11705 $as_echo "$enable_shared" >&6; }
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11708 $as_echo_n "checking whether to build static libraries... " >&6; }
11709 # Make sure either enable_shared or enable_static is yes.
11710 test "$enable_shared" = yes || enable_static=yes
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11712 $as_echo "$enable_static" >&6; }
11719 ac_cpp='$CPP $CPPFLAGS'
11720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11738 ac_config_commands="$ac_config_commands libtool"
11743 # Only expand once:
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11748 $as_echo_n "checking for ANSI C header files... " >&6; }
11749 if ${ac_cv_header_stdc+:} false; then :
11750 $as_echo_n "(cached) " >&6
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11754 #include <stdlib.h>
11755 #include <stdarg.h>
11756 #include <string.h>
11767 if ac_fn_c_try_compile "$LINENO"; then :
11768 ac_cv_header_stdc=yes
11770 ac_cv_header_stdc=no
11772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11774 if test $ac_cv_header_stdc = yes; then
11775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11778 #include <string.h>
11781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11782 $EGREP "memchr" >/dev/null 2>&1; then :
11785 ac_cv_header_stdc=no
11791 if test $ac_cv_header_stdc = yes; then
11792 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11795 #include <stdlib.h>
11798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11799 $EGREP "free" >/dev/null 2>&1; then :
11802 ac_cv_header_stdc=no
11808 if test $ac_cv_header_stdc = yes; then
11809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11810 if test "$cross_compiling" = yes; then :
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h. */
11816 #include <stdlib.h>
11817 #if ((' ' & 0x0FF) == 0x020)
11818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11821 # define ISLOWER(c) \
11822 (('a' <= (c) && (c) <= 'i') \
11823 || ('j' <= (c) && (c) <= 'r') \
11824 || ('s' <= (c) && (c) <= 'z'))
11825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11833 for (i = 0; i < 256; i++)
11834 if (XOR (islower (i), ISLOWER (i))
11835 || toupper (i) != TOUPPER (i))
11840 if ac_fn_c_try_run "$LINENO"; then :
11843 ac_cv_header_stdc=no
11845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11846 conftest.$ac_objext conftest.beam conftest.$ac_ext
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11852 $as_echo "$ac_cv_header_stdc" >&6; }
11853 if test $ac_cv_header_stdc = yes; then
11855 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
11860 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
11861 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
11862 $as_echo_n "(cached) " >&6
11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h. */
11866 #include <sys/types.h>
11870 return makedev(0, 0);
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 ac_cv_header_sys_types_h_makedev=yes
11878 ac_cv_header_sys_types_h_makedev=no
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
11885 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
11887 if test $ac_cv_header_sys_types_h_makedev = no; then
11888 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
11889 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
11891 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
11897 if test $ac_cv_header_sys_mkdev_h = no; then
11898 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
11899 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
11901 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11910 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11911 if ${ac_cv_header_sys_wait_h+:} false; then :
11912 $as_echo_n "(cached) " >&6
11914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915 /* end confdefs.h. */
11916 #include <sys/types.h>
11917 #include <sys/wait.h>
11918 #ifndef WEXITSTATUS
11919 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11922 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11930 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11935 if ac_fn_c_try_compile "$LINENO"; then :
11936 ac_cv_header_sys_wait_h=yes
11938 ac_cv_header_sys_wait_h=no
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11943 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11944 if test $ac_cv_header_sys_wait_h = yes; then
11946 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11950 for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
11952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11953 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11955 cat >>confdefs.h <<_ACEOF
11956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11963 for ac_header in utime.h wchar.h wctype.h limits.h
11965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11966 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11967 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11968 cat >>confdefs.h <<_ACEOF
11969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11976 for ac_header in getopt.h err.h
11978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11979 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11981 cat >>confdefs.h <<_ACEOF
11982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11989 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
11991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11992 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11994 cat >>confdefs.h <<_ACEOF
11995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12002 for ac_header in zlib.h
12004 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12005 if test "x$ac_cv_header_zlib_h" = xyes; then :
12006 cat >>confdefs.h <<_ACEOF
12007 #define HAVE_ZLIB_H 1
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12016 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12017 if ${ac_cv_c_const+:} false; then :
12018 $as_echo_n "(cached) " >&6
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12026 /* FIXME: Include the comments suggested by Paul. */
12027 #ifndef __cplusplus
12028 /* Ultrix mips cc rejects this. */
12029 typedef int charset[2];
12031 /* SunOS 4.1.1 cc rejects this. */
12032 char const *const *pcpcc;
12034 /* NEC SVR4.0.2 mips cc rejects this. */
12035 struct point {int x, y;};
12036 static struct point const zero = {0,0};
12037 /* AIX XL C 1.02.0.0 rejects this.
12038 It does not let you subtract one const X* pointer from another in
12039 an arm of an if-expression whose if-part is not a constant
12041 const char *g = "string";
12042 pcpcc = &g + (g ? g-g : 0);
12043 /* HPUX 7.0 cc rejects these. */
12045 ppc = (char**) pcpcc;
12046 pcpcc = (char const *const *) ppc;
12047 { /* SCO 3.2v4 cc rejects this. */
12049 char const *s = 0 ? (char *) 0 : (char const *) 0;
12054 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12055 int x[] = {25, 17};
12056 const int *foo = &x[0];
12059 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12060 typedef const int *iptr;
12064 { /* AIX XL C 1.02.0.0 rejects this saying
12065 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12066 struct s { int j; const int *ap[3]; };
12067 struct s *b; b->j = 5;
12069 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12070 const int foo = 10;
12071 if (!foo) return 0;
12073 return !cs[0] && !zero.x;
12080 if ac_fn_c_try_compile "$LINENO"; then :
12085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12088 $as_echo "$ac_cv_c_const" >&6; }
12089 if test $ac_cv_c_const = no; then
12091 $as_echo "#define const /**/" >>confdefs.h
12095 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12096 if test "x$ac_cv_type_off_t" = xyes; then :
12100 cat >>confdefs.h <<_ACEOF
12101 #define off_t long int
12106 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12107 if test "x$ac_cv_type_size_t" = xyes; then :
12111 cat >>confdefs.h <<_ACEOF
12112 #define size_t unsigned int
12117 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12118 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
12120 cat >>confdefs.h <<_ACEOF
12121 #define HAVE_STRUCT_STAT_ST_RDEV 1
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12129 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12130 if ${ac_cv_struct_tm+:} false; then :
12131 $as_echo_n "(cached) " >&6
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 #include <sys/types.h>
12142 int *p = &tm.tm_sec;
12148 if ac_fn_c_try_compile "$LINENO"; then :
12149 ac_cv_struct_tm=time.h
12151 ac_cv_struct_tm=sys/time.h
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12156 $as_echo "$ac_cv_struct_tm" >&6; }
12157 if test $ac_cv_struct_tm = sys/time.h; then
12159 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12163 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
12164 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
12166 cat >>confdefs.h <<_ACEOF
12167 #define HAVE_STRUCT_TM_TM_GMTOFF 1
12172 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "$ac_includes_default"
12173 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
12175 cat >>confdefs.h <<_ACEOF
12176 #define HAVE_STRUCT_TM_TM_ZONE 1
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
12183 $as_echo_n "checking for tm_zone in struct tm... " >&6; }
12184 if ${ac_cv_struct_tm_zone+:} false; then :
12185 $as_echo_n "(cached) " >&6
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12189 #include <sys/types.h>
12190 #include <$ac_cv_struct_tm>
12194 struct tm tm; tm.tm_zone;
12199 if ac_fn_c_try_compile "$LINENO"; then :
12200 ac_cv_struct_tm_zone=yes
12202 ac_cv_struct_tm_zone=no
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
12207 $as_echo "$ac_cv_struct_tm_zone" >&6; }
12208 if test "$ac_cv_struct_tm_zone" = yes; then
12210 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
12214 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
12215 # consider it declared and we won't give our own extern.
12216 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12218 if test "x$ac_cv_have_decl_tzname" = xyes; then :
12224 cat >>confdefs.h <<_ACEOF
12225 #define HAVE_DECL_TZNAME $ac_have_decl
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12229 $as_echo_n "checking for tzname... " >&6; }
12230 if ${ac_cv_var_tzname+:} false; then :
12231 $as_echo_n "(cached) " >&6
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12236 #if !HAVE_DECL_TZNAME
12237 extern char *tzname[];
12242 return tzname[0][0];
12247 if ac_fn_c_try_link "$LINENO"; then :
12248 ac_cv_var_tzname=yes
12250 ac_cv_var_tzname=no
12252 rm -f core conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
12256 $as_echo "$ac_cv_var_tzname" >&6; }
12257 if test $ac_cv_var_tzname = yes; then
12259 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
12264 $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
12265 if ${ac_cv_struct_tm_isdst+:} false; then :
12266 $as_echo_n "(cached) " >&6
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12270 #include <sys/types.h>
12271 #include <$ac_cv_struct_tm>
12275 struct tm tm; tm.tm_isdst;
12280 if ac_fn_c_try_compile "$LINENO"; then :
12281 ac_cv_struct_tm_isdst=yes
12283 ac_cv_struct_tm_isdst=no
12285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
12288 $as_echo "$ac_cv_struct_tm_isdst" >&6; }
12289 if test "$ac_cv_struct_tm_isdst" = yes; then
12291 $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
12296 ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
12298 if test "x$ac_cv_have_decl_daylight" = xyes; then :
12304 cat >>confdefs.h <<_ACEOF
12305 #define HAVE_DECL_DAYLIGHT $ac_have_decl
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
12309 $as_echo_n "checking for daylight... " >&6; }
12310 if ${ac_cv_var_daylight+:} false; then :
12311 $as_echo_n "(cached) " >&6
12313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12314 /* end confdefs.h. */
12316 #if !HAVE_DECL_DAYLIGHT
12317 extern int daylight;
12327 if ac_fn_c_try_link "$LINENO"; then :
12328 ac_cv_var_daylight=yes
12330 ac_cv_var_daylight=no
12332 rm -f core conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
12336 $as_echo "$ac_cv_var_daylight" >&6; }
12337 if test $ac_cv_var_daylight = yes; then
12339 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
12343 # Check whether --enable-largefile was given.
12344 if test "${enable_largefile+set}" = set; then :
12345 enableval=$enable_largefile;
12348 if test "$enable_largefile" != no; then
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12351 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12352 if ${ac_cv_sys_largefile_CC+:} false; then :
12353 $as_echo_n "(cached) " >&6
12355 ac_cv_sys_largefile_CC=no
12356 if test "$GCC" != yes; then
12359 # IRIX 6.2 and later do not support large files by default,
12360 # so use the C compiler's -n32 option if that helps.
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12363 #include <sys/types.h>
12364 /* Check that off_t can represent 2**63 - 1 correctly.
12365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12366 since some C++ compilers masquerading as C compilers
12367 incorrectly reject 9223372036854775807. */
12368 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12370 && LARGE_OFF_T % 2147483647 == 1)
12380 if ac_fn_c_try_compile "$LINENO"; then :
12383 rm -f core conftest.err conftest.$ac_objext
12385 if ac_fn_c_try_compile "$LINENO"; then :
12386 ac_cv_sys_largefile_CC=' -n32'; break
12388 rm -f core conftest.err conftest.$ac_objext
12392 rm -f conftest.$ac_ext
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12396 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12397 if test "$ac_cv_sys_largefile_CC" != no; then
12398 CC=$CC$ac_cv_sys_largefile_CC
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12402 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12403 if ${ac_cv_sys_file_offset_bits+:} false; then :
12404 $as_echo_n "(cached) " >&6
12407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409 #include <sys/types.h>
12410 /* Check that off_t can represent 2**63 - 1 correctly.
12411 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12412 since some C++ compilers masquerading as C compilers
12413 incorrectly reject 9223372036854775807. */
12414 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12415 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12416 && LARGE_OFF_T % 2147483647 == 1)
12426 if ac_fn_c_try_compile "$LINENO"; then :
12427 ac_cv_sys_file_offset_bits=no; break
12429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432 #define _FILE_OFFSET_BITS 64
12433 #include <sys/types.h>
12434 /* Check that off_t can represent 2**63 - 1 correctly.
12435 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12436 since some C++ compilers masquerading as C compilers
12437 incorrectly reject 9223372036854775807. */
12438 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12439 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12440 && LARGE_OFF_T % 2147483647 == 1)
12450 if ac_fn_c_try_compile "$LINENO"; then :
12451 ac_cv_sys_file_offset_bits=64; break
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 ac_cv_sys_file_offset_bits=unknown
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12459 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12460 case $ac_cv_sys_file_offset_bits in #(
12463 cat >>confdefs.h <<_ACEOF
12464 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12469 if test $ac_cv_sys_file_offset_bits = unknown; then
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12471 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12472 if ${ac_cv_sys_large_files+:} false; then :
12473 $as_echo_n "(cached) " >&6
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478 #include <sys/types.h>
12479 /* Check that off_t can represent 2**63 - 1 correctly.
12480 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12481 since some C++ compilers masquerading as C compilers
12482 incorrectly reject 9223372036854775807. */
12483 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12484 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12485 && LARGE_OFF_T % 2147483647 == 1)
12495 if ac_fn_c_try_compile "$LINENO"; then :
12496 ac_cv_sys_large_files=no; break
12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 #define _LARGE_FILES 1
12502 #include <sys/types.h>
12503 /* Check that off_t can represent 2**63 - 1 correctly.
12504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12505 since some C++ compilers masquerading as C compilers
12506 incorrectly reject 9223372036854775807. */
12507 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12509 && LARGE_OFF_T % 2147483647 == 1)
12519 if ac_fn_c_try_compile "$LINENO"; then :
12520 ac_cv_sys_large_files=1; break
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523 ac_cv_sys_large_files=unknown
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12528 $as_echo "$ac_cv_sys_large_files" >&6; }
12529 case $ac_cv_sys_large_files in #(
12532 cat >>confdefs.h <<_ACEOF
12533 #define _LARGE_FILES $ac_cv_sys_large_files
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12542 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12543 if ${ac_cv_sys_largefile_source+:} false; then :
12544 $as_echo_n "(cached) " >&6
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12549 #include <sys/types.h> /* for off_t */
12554 int (*fp) (FILE *, off_t, int) = fseeko;
12555 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12560 if ac_fn_c_try_link "$LINENO"; then :
12561 ac_cv_sys_largefile_source=no; break
12563 rm -f core conftest.err conftest.$ac_objext \
12564 conftest$ac_exeext conftest.$ac_ext
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12567 #define _LARGEFILE_SOURCE 1
12568 #include <sys/types.h> /* for off_t */
12573 int (*fp) (FILE *, off_t, int) = fseeko;
12574 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12579 if ac_fn_c_try_link "$LINENO"; then :
12580 ac_cv_sys_largefile_source=1; break
12582 rm -f core conftest.err conftest.$ac_objext \
12583 conftest$ac_exeext conftest.$ac_ext
12584 ac_cv_sys_largefile_source=unknown
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12589 $as_echo "$ac_cv_sys_largefile_source" >&6; }
12590 case $ac_cv_sys_largefile_source in #(
12593 cat >>confdefs.h <<_ACEOF
12594 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12600 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12601 # in glibc 2.1.3, but that breaks too many other things.
12602 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12603 if test $ac_cv_sys_largefile_source != unknown; then
12605 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
12610 $as_echo_n "checking for mbstate_t... " >&6; }
12611 if ${ac_cv_type_mbstate_t+:} false; then :
12612 $as_echo_n "(cached) " >&6
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616 $ac_includes_default
12617 # include <wchar.h>
12621 mbstate_t x; return sizeof x;
12626 if ac_fn_c_try_compile "$LINENO"; then :
12627 ac_cv_type_mbstate_t=yes
12629 ac_cv_type_mbstate_t=no
12631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
12634 $as_echo "$ac_cv_type_mbstate_t" >&6; }
12635 if test $ac_cv_type_mbstate_t = yes; then
12637 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
12641 $as_echo "#define mbstate_t int" >>confdefs.h
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
12646 $as_echo_n "checking for struct option in getopt... " >&6; }
12647 if ${ac_cv_struct_option_getopt_h+:} false; then :
12648 $as_echo_n "(cached) " >&6
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652 #include <getopt.h>
12656 struct option op; op.name;
12661 if ac_fn_c_try_compile "$LINENO"; then :
12662 ac_cv_struct_option_getopt_h=yes
12664 ac_cv_struct_option_getopt_h=no
12666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
12669 $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
12670 if test "$ac_cv_struct_option_getopt_h" = yes; then
12672 $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
12677 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12678 if test "x$ac_cv_type_pid_t" = xyes; then :
12680 cat >>confdefs.h <<_ACEOF
12681 #define HAVE_PID_T 1
12686 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
12687 if test "x$ac_cv_type_uint8_t" = xyes; then :
12689 cat >>confdefs.h <<_ACEOF
12690 #define HAVE_UINT8_T 1
12695 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
12696 if test "x$ac_cv_type_uint16_t" = xyes; then :
12698 cat >>confdefs.h <<_ACEOF
12699 #define HAVE_UINT16_T 1
12704 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
12705 if test "x$ac_cv_type_uint32_t" = xyes; then :
12707 cat >>confdefs.h <<_ACEOF
12708 #define HAVE_UINT32_T 1
12713 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
12714 if test "x$ac_cv_type_int32_t" = xyes; then :
12716 cat >>confdefs.h <<_ACEOF
12717 #define HAVE_INT32_T 1
12722 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12723 if test "x$ac_cv_type_uint64_t" = xyes; then :
12725 cat >>confdefs.h <<_ACEOF
12726 #define HAVE_UINT64_T 1
12731 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12732 if test "x$ac_cv_type_int64_t" = xyes; then :
12734 cat >>confdefs.h <<_ACEOF
12735 #define HAVE_INT64_T 1
12741 # The cast to long int works around a bug in the HP C Compiler
12742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12744 # This bug is HP SR number 8606223364.
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12746 $as_echo_n "checking size of long long... " >&6; }
12747 if ${ac_cv_sizeof_long_long+:} false; then :
12748 $as_echo_n "(cached) " >&6
12750 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12753 if test "$ac_cv_type_long_long" = yes; then
12754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12756 as_fn_error 77 "cannot compute sizeof (long long)
12757 See \`config.log' for more details" "$LINENO" 5; }
12759 ac_cv_sizeof_long_long=0
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12765 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12769 cat >>confdefs.h <<_ACEOF
12770 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
12777 $as_echo_n "checking for gcc compiler warnings... " >&6; }
12778 # Check whether --enable-warnings was given.
12779 if test "${enable_warnings+set}" = set; then :
12780 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 $as_echo "no" >&6; }
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786 $as_echo "yes" >&6; }
12787 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
12788 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
12789 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
12790 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
12794 if test "$GCC" = yes; then
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12796 $as_echo "yes" >&6; }
12797 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
12798 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
12799 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
12800 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12809 for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp utimes utime wcwidth strtof fork
12811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12812 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12813 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12814 cat >>confdefs.h <<_ACEOF
12815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12822 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
12823 if test "x$ac_cv_func_getopt_long" = xyes; then :
12824 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
12827 case " $LIBOBJS " in
12828 *" getopt_long.$ac_objext "* ) ;;
12829 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
12835 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
12836 if test "x$ac_cv_func_asprintf" = xyes; then :
12837 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
12840 case " $LIBOBJS " in
12841 *" asprintf.$ac_objext "* ) ;;
12842 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
12848 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
12849 if test "x$ac_cv_func_vasprintf" = xyes; then :
12850 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
12853 case " $LIBOBJS " in
12854 *" vasprintf.$ac_objext "* ) ;;
12855 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
12861 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
12862 if test "x$ac_cv_func_strlcpy" = xyes; then :
12863 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
12866 case " $LIBOBJS " in
12867 *" strlcpy.$ac_objext "* ) ;;
12868 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
12874 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
12875 if test "x$ac_cv_func_strlcat" = xyes; then :
12876 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
12879 case " $LIBOBJS " in
12880 *" strlcat.$ac_objext "* ) ;;
12881 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
12887 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
12888 if test "x$ac_cv_func_getline" = xyes; then :
12889 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
12892 case " $LIBOBJS " in
12893 *" getline.$ac_objext "* ) ;;
12894 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
12903 $as_echo_n "checking for gzopen in -lz... " >&6; }
12904 if ${ac_cv_lib_z_gzopen+:} false; then :
12905 $as_echo_n "(cached) " >&6
12907 ac_check_lib_save_LIBS=$LIBS
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12927 if ac_fn_c_try_link "$LINENO"; then :
12928 ac_cv_lib_z_gzopen=yes
12930 ac_cv_lib_z_gzopen=no
12932 rm -f core conftest.err conftest.$ac_objext \
12933 conftest$ac_exeext conftest.$ac_ext
12934 LIBS=$ac_check_lib_save_LIBS
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
12937 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
12938 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
12939 cat >>confdefs.h <<_ACEOF
12940 #define HAVE_LIBZ 1
12947 if test "$MINGW" = 1; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
12949 $as_echo_n "checking for regexec in -lgnurx... " >&6; }
12950 if ${ac_cv_lib_gnurx_regexec+:} false; then :
12951 $as_echo_n "(cached) " >&6
12953 ac_check_lib_save_LIBS=$LIBS
12954 LIBS="-lgnurx $LIBS"
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12958 /* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 ac_cv_lib_gnurx_regexec=yes
12976 ac_cv_lib_gnurx_regexec=no
12978 rm -f core conftest.err conftest.$ac_objext \
12979 conftest$ac_exeext conftest.$ac_ext
12980 LIBS=$ac_check_lib_save_LIBS
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
12983 $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
12984 if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
12985 cat >>confdefs.h <<_ACEOF
12986 #define HAVE_LIBGNURX 1
12989 LIBS="-lgnurx $LIBS"
12992 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
12997 if test "$cross_compiling" = yes; then
12998 IS_CROSS_COMPILE_TRUE=
12999 IS_CROSS_COMPILE_FALSE='#'
13001 IS_CROSS_COMPILE_TRUE='#'
13002 IS_CROSS_COMPILE_FALSE=
13006 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
13008 cat >confcache <<\_ACEOF
13009 # This file is a shell script that caches the results of configure
13010 # tests run on this system so they can be shared between configure
13011 # scripts and configure runs, see configure's option --config-cache.
13012 # It is not useful on other systems. If it contains results you don't
13013 # want to keep, you may remove or edit it.
13015 # config.status only pays attention to the cache file if you give it
13016 # the --recheck option to rerun configure.
13018 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13019 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13020 # following values.
13024 # The following way of writing the cache mishandles newlines in values,
13025 # but we know of no workaround that is simple, portable, and efficient.
13026 # So, we kill variables containing newlines.
13027 # Ultrix sh set writes to stderr and can't be redirected directly,
13028 # and sets the high bit in the cache file unless we assign to the vars.
13030 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13031 eval ac_val=\$$ac_var
13035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13039 _ | IFS | as_nl) ;; #(
13040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13041 *) { eval $ac_var=; unset $ac_var;} ;;
13047 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13048 *${as_nl}ac_space=\ *)
13049 # `set' does not quote correctly, so add quotes: double-quote
13050 # substitution turns \\\\ into \\, and sed turns \\ into \.
13053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13056 # `set' quotes correctly as required by POSIX, so do not add quotes.
13057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13070 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13071 if test -w "$cache_file"; then
13072 if test "x$cache_file" != "x/dev/null"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13074 $as_echo "$as_me: updating cache $cache_file" >&6;}
13075 if test ! -f "$cache_file" || test -h "$cache_file"; then
13076 cat confcache >"$cache_file"
13078 case $cache_file in #(
13080 mv -f confcache "$cache_file"$$ &&
13081 mv -f "$cache_file"$$ "$cache_file" ;; #(
13083 mv -f confcache "$cache_file" ;;
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13089 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13094 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13095 # Let make expand exec_prefix.
13096 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13098 DEFS=-DHAVE_CONFIG_H
13103 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13104 # 1. Remove the extension, and $U if already installed.
13105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13106 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13108 # will be set to the directory where LIBOBJS objects are built.
13109 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13110 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13112 LIBOBJS=$ac_libobjs
13114 LTLIBOBJS=$ac_ltlibobjs
13117 if test -n "$EXEEXT"; then
13119 am__EXEEXT_FALSE='#'
13121 am__EXEEXT_TRUE='#'
13125 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
13126 as_fn_error $? "conditional \"MINGW\" was never defined.
13127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13129 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
13130 as_fn_error $? "conditional \"FSECT5\" was never defined.
13131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13133 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13134 as_fn_error $? "conditional \"AMDEP\" was never defined.
13135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13137 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13138 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13141 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13142 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13145 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
13146 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
13147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13150 : "${CONFIG_STATUS=./config.status}"
13152 ac_clean_files_save=$ac_clean_files
13153 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13155 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13157 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13159 # Generated by $as_me.
13160 # Run this file to recreate the current configuration.
13161 # Compiler output produced by configure, useful for debugging
13162 # configure, is in config.log if it exists.
13165 ac_cs_recheck=false
13168 SHELL=\${CONFIG_SHELL-$SHELL}
13171 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13172 ## -------------------- ##
13173 ## M4sh Initialization. ##
13174 ## -------------------- ##
13176 # Be more Bourne compatible
13177 DUALCASE=1; export DUALCASE # for MKS sh
13178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13181 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13182 # is contrary to our usage. Disable this feature.
13183 alias -g '${1+"$@"}'='"$@"'
13184 setopt NO_GLOB_SUBST
13186 case `(set -o) 2>/dev/null` in #(
13198 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13199 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13200 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13201 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13202 # Prefer a ksh shell builtin over an external printf program on Solaris,
13203 # but without wasting forks for bash or zsh.
13204 if test -z "$BASH_VERSION$ZSH_VERSION" \
13205 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13206 as_echo='print -r --'
13207 as_echo_n='print -rn --'
13208 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13209 as_echo='printf %s\n'
13210 as_echo_n='printf %s'
13212 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13213 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13214 as_echo_n='/usr/ucb/echo -n'
13216 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13217 as_echo_n_body='eval
13221 expr "X$arg" : "X\\(.*\\)$as_nl";
13222 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13224 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13226 export as_echo_n_body
13227 as_echo_n='sh -c $as_echo_n_body as_echo'
13229 export as_echo_body
13230 as_echo='sh -c $as_echo_body as_echo'
13233 # The user is always right.
13234 if test "${PATH_SEPARATOR+set}" != set; then
13236 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13237 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13244 # We need space, tab and new line, in precisely that order. Quoting is
13245 # there to prevent editors from complaining about space-tab.
13246 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13247 # splitting by setting IFS to empty value.)
13250 # Find who we are. Look in the path if we contain no directory separator.
13253 *[\\/]* ) as_myself=$0 ;;
13254 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255 for as_dir in $PATH
13258 test -z "$as_dir" && as_dir=.
13259 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13265 # We did not find ourselves, most probably we were run as `sh COMMAND'
13266 # in which case we are not to be found in the path.
13267 if test "x$as_myself" = x; then
13270 if test ! -f "$as_myself"; then
13271 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13275 # Unset variables that we do not need and which cause bugs (e.g. in
13276 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13277 # suppresses any "Segmentation fault" message there. '((' could
13278 # trigger a bug in pdksh 5.2.14.
13279 for as_var in BASH_ENV ENV MAIL MAILPATH
13280 do eval test x\${$as_var+set} = xset \
13281 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13294 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13297 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13298 # ----------------------------------------
13299 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13300 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13301 # script with STATUS, using 1 if that was 0.
13304 as_status=$1; test $as_status -eq 0 && as_status=1
13306 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13307 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13309 $as_echo "$as_me: error: $2" >&2
13310 as_fn_exit $as_status
13314 # as_fn_set_status STATUS
13315 # -----------------------
13316 # Set $? to STATUS, without forking.
13317 as_fn_set_status ()
13320 } # as_fn_set_status
13322 # as_fn_exit STATUS
13323 # -----------------
13324 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13328 as_fn_set_status $1
13334 # Portably unset VAR.
13337 { eval $1=; unset $1;}
13339 as_unset=as_fn_unset
13340 # as_fn_append VAR VALUE
13341 # ----------------------
13342 # Append the text in VALUE to the end of the definition contained in VAR. Take
13343 # advantage of any shell optimizations that allow amortized linear growth over
13344 # repeated appends, instead of the typical quadratic growth present in naive
13346 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13347 eval 'as_fn_append ()
13358 # as_fn_arith ARG...
13359 # ------------------
13360 # Perform arithmetic evaluation on the ARGs, and store the result in the
13361 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13362 # must be portable across $(()) and expr.
13363 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13364 eval 'as_fn_arith ()
13371 as_val=`expr "$@" || test $? -eq 1`
13376 if expr a : '\(a\)' >/dev/null 2>&1 &&
13377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13384 as_basename=basename
13389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13395 as_me=`$as_basename -- "$0" ||
13396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13397 X"$0" : 'X\(//\)$' \| \
13398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13400 sed '/^.*\/\([^/][^/]*\)\/*$/{
13414 # Avoid depending upon Character Ranges.
13415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13418 as_cr_digits='0123456789'
13419 as_cr_alnum=$as_cr_Letters$as_cr_digits
13421 ECHO_C= ECHO_N= ECHO_T=
13422 case `echo -n x` in #(((((
13424 case `echo 'xy\c'` in
13425 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13427 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13434 rm -f conf$$ conf$$.exe conf$$.file
13435 if test -d conf$$.dir; then
13436 rm -f conf$$.dir/conf$$.file
13439 mkdir conf$$.dir 2>/dev/null
13441 if (echo >conf$$.file) 2>/dev/null; then
13442 if ln -s conf$$.file conf$$ 2>/dev/null; then
13444 # ... but there are two gotchas:
13445 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13446 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13447 # In both cases, we have to default to `cp -p'.
13448 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13450 elif ln conf$$.file conf$$ 2>/dev/null; then
13458 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13459 rmdir conf$$.dir 2>/dev/null
13464 # Create "$as_dir" as a directory, including parents if necessary.
13469 -*) as_dir=./$as_dir;;
13471 test -d "$as_dir" || eval $as_mkdir_p || {
13475 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13476 *) as_qdir=$as_dir;;
13478 as_dirs="'$as_qdir' $as_dirs"
13479 as_dir=`$as_dirname -- "$as_dir" ||
13480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13481 X"$as_dir" : 'X\(//\)[^/]' \| \
13482 X"$as_dir" : 'X\(//\)$' \| \
13483 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13484 $as_echo X"$as_dir" |
13485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13489 /^X\(\/\/\)[^/].*/{
13502 test -d "$as_dir" && break
13504 test -z "$as_dirs" || eval "mkdir $as_dirs"
13505 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13509 if mkdir -p . 2>/dev/null; then
13510 as_mkdir_p='mkdir -p "$as_dir"'
13512 test -d ./-p && rmdir ./-p
13516 if test -x / >/dev/null 2>&1; then
13517 as_test_x='test -x'
13519 if ls -dL / >/dev/null 2>&1; then
13526 if test -d "$1"; then
13532 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13533 ???[sx]*):;;*)false;;esac;fi
13537 as_executable_p=$as_test_x
13539 # Sed expression to map a string onto a valid CPP name.
13540 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13542 # Sed expression to map a string onto a valid variable name.
13543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13547 ## ----------------------------------- ##
13548 ## Main body of $CONFIG_STATUS script. ##
13549 ## ----------------------------------- ##
13551 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13554 # Save the log message, to keep $0 and so on meaningful, and to
13555 # report actual input values of CONFIG_FILES etc. instead of their
13556 # values after options handling.
13558 This file was extended by file $as_me 5.11, which was
13559 generated by GNU Autoconf 2.68. Invocation command line was
13561 CONFIG_FILES = $CONFIG_FILES
13562 CONFIG_HEADERS = $CONFIG_HEADERS
13563 CONFIG_LINKS = $CONFIG_LINKS
13564 CONFIG_COMMANDS = $CONFIG_COMMANDS
13567 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13572 case $ac_config_files in *"
13573 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13576 case $ac_config_headers in *"
13577 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13582 # Files that config.status was made for.
13583 config_files="$ac_config_files"
13584 config_headers="$ac_config_headers"
13585 config_commands="$ac_config_commands"
13589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13591 \`$as_me' instantiates files and other configuration actions
13592 from templates according to the current configuration. Unless the files
13593 and actions are specified as TAGs, all are instantiated by default.
13595 Usage: $0 [OPTION]... [TAG]...
13597 -h, --help print this help, then exit
13598 -V, --version print version number and configuration settings, then exit
13599 --config print configuration, then exit
13600 -q, --quiet, --silent
13601 do not print progress messages
13602 -d, --debug don't remove temporary files
13603 --recheck update $as_me by reconfiguring in the same conditions
13604 --file=FILE[:TEMPLATE]
13605 instantiate the configuration file FILE
13606 --header=FILE[:TEMPLATE]
13607 instantiate the configuration header FILE
13609 Configuration files:
13612 Configuration headers:
13615 Configuration commands:
13618 Report bugs to <christos@astron.com>."
13621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13622 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13624 file config.status 5.11
13625 configured by $0, generated by GNU Autoconf 2.68,
13626 with options \\"\$ac_cs_config\\"
13628 Copyright (C) 2010 Free Software Foundation, Inc.
13629 This config.status script is free software; the Free Software Foundation
13630 gives unlimited permission to copy, distribute and modify it."
13637 test -n "\$AWK" || AWK=awk
13640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13641 # The default lists apply if the user does not specify any file.
13647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13664 # Handling of the options.
13665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13668 $as_echo "$ac_cs_version"; exit ;;
13669 --config | --confi | --conf | --con | --co | --c )
13670 $as_echo "$ac_cs_config"; exit ;;
13671 --debug | --debu | --deb | --de | --d | -d )
13673 --file | --fil | --fi | --f )
13676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13677 '') as_fn_error $? "missing file argument" ;;
13679 as_fn_append CONFIG_FILES " '$ac_optarg'"
13680 ac_need_defaults=false;;
13681 --header | --heade | --head | --hea )
13684 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13686 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13687 ac_need_defaults=false;;
13689 # Conflict between --help and --header
13690 as_fn_error $? "ambiguous option: \`$1'
13691 Try \`$0 --help' for more information.";;
13692 --help | --hel | -h )
13693 $as_echo "$ac_cs_usage"; exit ;;
13694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13695 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13698 # This is an error.
13699 -*) as_fn_error $? "unrecognized option: \`$1'
13700 Try \`$0 --help' for more information." ;;
13702 *) as_fn_append ac_config_targets " $1"
13703 ac_need_defaults=false ;;
13709 ac_configure_extra_args=
13711 if $ac_cs_silent; then
13713 ac_configure_extra_args="$ac_configure_extra_args --silent"
13717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13718 if \$ac_cs_recheck; then
13719 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13721 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13722 CONFIG_SHELL='$SHELL'
13723 export CONFIG_SHELL
13728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13733 ## Running $as_me. ##
13739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13743 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13746 # The HP-UX ksh and POSIX shell print the target directory to stdout
13747 # if CDPATH is set.
13748 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13750 sed_quote_subst='$sed_quote_subst'
13751 double_quote_subst='$double_quote_subst'
13752 delay_variable_subst='$delay_variable_subst'
13753 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13754 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13755 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13756 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13757 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13758 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13759 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13760 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13761 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13762 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13763 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13764 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13765 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13766 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13767 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13768 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13769 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13770 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13771 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13772 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13773 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13774 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13775 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13776 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13777 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13778 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13779 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13780 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13781 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13782 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13783 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13784 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13785 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13786 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13787 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13788 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13789 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13790 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13791 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13792 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13793 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13794 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13795 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13796 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13797 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13798 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13799 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13800 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13801 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13802 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13803 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13804 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13805 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13806 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13807 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13808 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13809 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13810 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13811 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13812 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13813 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13814 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13815 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13816 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13817 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13818 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13819 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13820 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13821 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13822 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13823 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13824 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13825 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13826 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13827 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13828 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13829 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13830 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13831 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13832 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13833 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13834 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13835 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13836 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13837 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13838 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13839 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13840 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13841 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13842 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13843 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13844 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13845 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13846 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13847 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13848 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13849 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13850 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13851 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13852 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13853 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13854 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13855 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13856 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13857 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13858 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13859 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13860 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13861 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13862 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13863 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13864 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13865 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13866 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13867 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13868 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13869 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13870 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13873 LTCFLAGS='$LTCFLAGS'
13874 compiler='$compiler_DEFAULT'
13876 # Quote evaled strings.
13888 deplibs_check_method \
13897 lt_cv_sys_global_symbol_pipe \
13898 lt_cv_sys_global_symbol_to_cdecl \
13899 lt_cv_sys_global_symbol_to_c_name_address \
13900 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13903 lt_prog_compiler_no_builtin_flag \
13904 lt_prog_compiler_wl \
13905 lt_prog_compiler_pic \
13906 lt_prog_compiler_static \
13907 lt_cv_prog_compiler_c_o \
13915 export_dynamic_flag_spec \
13916 whole_archive_flag_spec \
13917 compiler_needs_object \
13919 allow_undefined_flag \
13920 no_undefined_flag \
13921 hardcode_libdir_flag_spec \
13922 hardcode_libdir_flag_spec_ld \
13923 hardcode_libdir_separator \
13928 variables_saved_for_relink \
13930 library_names_spec \
13935 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13936 *[\\\\\\\`\\"\\\$]*)
13937 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13940 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13945 # Double-quote double-evaled strings.
13946 for var in reload_cmds \
13947 old_postinstall_cmds \
13948 old_postuninstall_cmds \
13950 extract_expsyms_cmds \
13951 old_archive_from_new_cmds \
13952 old_archive_from_expsyms_cmds \
13954 archive_expsym_cmds \
13956 module_expsym_cmds \
13957 export_symbols_cmds \
13960 postuninstall_cmds \
13962 sys_lib_search_path_spec \
13963 sys_lib_dlsearch_path_spec; do
13964 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13965 *[\\\\\\\`\\"\\\$]*)
13966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13974 # Fix-up fallback echo if it was mangled by the above quoting rules.
13976 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13980 ac_aux_dir='$ac_aux_dir'
13981 xsi_shell='$xsi_shell'
13982 lt_shell_append='$lt_shell_append'
13984 # See if we are running on zsh, and set the options which allow our
13985 # commands through without removal of \ escapes INIT.
13986 if test -n "\${ZSH_VERSION+set}" ; then
13987 setopt NO_GLOB_SUBST
13993 TIMESTAMP='$TIMESTAMP'
14002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14004 # Handling of arguments.
14005 for ac_config_target in $ac_config_targets
14007 case $ac_config_target in
14008 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14009 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14010 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14011 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14012 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14013 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
14014 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14015 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14016 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
14018 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14023 # If the user did not use the arguments to specify the items to instantiate,
14024 # then the envvar interface is used. Set only those that are not.
14025 # We use the long form for the default assignment because of an extremely
14026 # bizarre bug on SunOS 4.1.3.
14027 if $ac_need_defaults; then
14028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14033 # Have a temporary directory for convenience. Make it in the build tree
14034 # simply because there is no reason against having it here, and in addition,
14035 # creating and moving files from /tmp can sometimes cause problems.
14036 # Hook for its removal unless debugging.
14037 # Note that there is a small window in which the directory will not be cleaned:
14038 # after its creation but before its name has been assigned to `$tmp'.
14042 trap 'exit_status=$?
14043 : "${ac_tmp:=$tmp}"
14044 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14046 trap 'as_fn_exit 1' 1 2 13 15
14048 # Create a (secure) tmp directory for tmp files.
14051 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14055 tmp=./conf$$-$RANDOM
14056 (umask 077 && mkdir "$tmp")
14057 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14060 # Set up the scripts for CONFIG_FILES section.
14061 # No need to generate them if there are no CONFIG_FILES.
14062 # This happens for instance with `./config.status config.h'.
14063 if test -n "$CONFIG_FILES"; then
14066 ac_cr=`echo X | tr X '\015'`
14067 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14068 # But we know of no other shell where ac_cr would be empty at this
14069 # point, so we can use a bashism as a fallback.
14070 if test "x$ac_cr" = x; then
14071 eval ac_cr=\$\'\\r\'
14073 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14074 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14077 ac_cs_awk_cr=$ac_cr
14080 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14085 echo "cat >conf$$subs.awk <<_ACEOF" &&
14086 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14088 } >conf$$subs.sh ||
14089 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14090 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14092 for ac_last_try in false false false false false :; do
14093 . ./conf$$subs.sh ||
14094 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14096 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14097 if test $ac_delim_n = $ac_delim_num; then
14099 elif $ac_last_try; then
14100 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14102 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14105 rm -f conf$$subs.sh
14107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14108 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14112 s/^/S["/; s/!.*/"]=/
14122 s/\(.\{148\}\)..*/\1/
14124 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14129 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14136 s/\(.\{148\}\)..*/\1/
14138 s/["\\]/\\&/g; s/^/"/; s/$/"/
14142 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14147 ' <conf$$subs.awk | sed '
14152 ' >>$CONFIG_STATUS || ac_write_fail=1
14153 rm -f conf$$subs.awk
14154 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14156 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14157 for (key in S) S_is_set[key] = 1
14163 nfields = split(line, field, "@")
14165 len = length(field[1])
14166 for (i = 2; i < nfields; i++) {
14168 keylen = length(key)
14169 if (S_is_set[key]) {
14171 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14172 len += length(value) + length(field[++i])
14183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14184 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14185 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14188 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14189 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14192 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14193 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14194 # trailing colons and then remove the whole line if VPATH becomes empty
14195 # (actually we leave an empty line to preserve line numbers).
14196 if test "x$srcdir" = x.; then
14197 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14216 fi # test -n "$CONFIG_FILES"
14218 # Set up the scripts for CONFIG_HEADERS section.
14219 # No need to generate them if there are no CONFIG_HEADERS.
14220 # This happens for instance with `./config.status Makefile'.
14221 if test -n "$CONFIG_HEADERS"; then
14222 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14226 # Transform confdefs.h into an awk script `defines.awk', embedded as
14227 # here-document in config.status, that substitutes the proper values into
14228 # config.h.in to produce config.h.
14230 # Create a delimiter string that does not exist in confdefs.h, to ease
14231 # handling of long lines.
14233 for ac_last_try in false false :; do
14234 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14235 if test -z "$ac_tt"; then
14237 elif $ac_last_try; then
14238 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14244 # For the awk script, D is an array of macro values keyed by name,
14245 # likewise P contains macro parameters if any. Preserve backslash
14246 # newline sequences.
14248 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14250 s/.\{148\}/&'"$ac_delim"'/g
14253 s/^[ ]*#[ ]*define[ ][ ]*/ /
14260 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14262 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14266 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14267 D["\1"]=" \3\\\\\\n"\\/p
14269 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14274 s/.\{148\}/&'"$ac_delim"'/g
14279 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14282 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14284 ' <confdefs.h | sed '
14285 s/'"$ac_delim"'/"\\\
14286 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14289 for (key in D) D_is_set[key] = 1
14292 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14294 split(line, arg, " ")
14295 if (arg[1] == "#") {
14299 defundef = substr(arg[1], 2)
14302 split(mac1, mac2, "(") #)
14304 prefix = substr(line, 1, index(line, defundef) - 1)
14305 if (D_is_set[macro]) {
14306 # Preserve the white space surrounding the "#".
14307 print prefix "define", macro P[macro] D[macro]
14310 # Replace #undef with comments. This is necessary, for example,
14311 # in the case of _POSIX_SOURCE, which is predefined and required
14312 # on some systems where configure will not decide to define it.
14313 if (defundef == "undef") {
14314 print "/*", prefix defundef, macro, "*/"
14322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14323 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14324 fi # test -n "$CONFIG_HEADERS"
14327 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14332 :[FHLC]) ac_mode=$ac_tag; continue;;
14334 case $ac_mode$ac_tag in
14336 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14337 :[FH]-) ac_tag=-:-;;
14338 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14355 -) ac_f="$ac_tmp/stdin";;
14356 *) # Look for the file first in the build tree, then in the source tree
14357 # (if the path is not absolute). The absolute path cannot be DOS-style,
14358 # because $ac_f cannot contain `:'.
14362 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14364 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14366 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14367 as_fn_append ac_file_inputs " '$ac_f'"
14370 # Let's still pretend it is `configure' which instantiates (i.e., don't
14371 # use $as_me), people would be surprised to read:
14372 # /* config.h. Generated by config.status. */
14373 configure_input='Generated from '`
14374 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14376 if test x"$ac_file" != x-; then
14377 configure_input="$ac_file. $configure_input"
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14379 $as_echo "$as_me: creating $ac_file" >&6;}
14381 # Neutralize special characters interpreted by sed in replacement strings.
14382 case $configure_input in #(
14383 *\&* | *\|* | *\\* )
14384 ac_sed_conf_input=`$as_echo "$configure_input" |
14385 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14386 *) ac_sed_conf_input=$configure_input;;
14390 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14396 ac_dir=`$as_dirname -- "$ac_file" ||
14397 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14398 X"$ac_file" : 'X\(//\)[^/]' \| \
14399 X"$ac_file" : 'X\(//\)$' \| \
14400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14401 $as_echo X"$ac_file" |
14402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14406 /^X\(\/\/\)[^/].*/{
14419 as_dir="$ac_dir"; as_fn_mkdir_p
14423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14426 # A ".." for each directory in $ac_dir_suffix.
14427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14428 case $ac_top_builddir_sub in
14429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14433 ac_abs_top_builddir=$ac_pwd
14434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14435 # for backward compatibility:
14436 ac_top_builddir=$ac_top_build_prefix
14439 .) # We are building in place.
14441 ac_top_srcdir=$ac_top_builddir_sub
14442 ac_abs_top_srcdir=$ac_pwd ;;
14443 [\\/]* | ?:[\\/]* ) # Absolute name.
14444 ac_srcdir=$srcdir$ac_dir_suffix;
14445 ac_top_srcdir=$srcdir
14446 ac_abs_top_srcdir=$srcdir ;;
14447 *) # Relative name.
14448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14449 ac_top_srcdir=$ac_top_build_prefix$srcdir
14450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14462 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14463 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14465 ac_MKDIR_P=$MKDIR_P
14467 [\\/$]* | ?:[\\/]* ) ;;
14468 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14473 # If the template does not know about datarootdir, expand it.
14474 # FIXME: This hack should be removed a few years after 2.60.
14475 ac_datarootdir_hack=; ac_datarootdir_seen=
14486 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14487 *datarootdir*) ac_datarootdir_seen=yes;;
14488 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14490 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14493 ac_datarootdir_hack='
14494 s&@datadir@&$datadir&g
14495 s&@docdir@&$docdir&g
14496 s&@infodir@&$infodir&g
14497 s&@localedir@&$localedir&g
14498 s&@mandir@&$mandir&g
14499 s&\\\${datarootdir}&$datarootdir&g' ;;
14503 # Neutralize VPATH when `$srcdir' = `.'.
14504 # Shell code in configure.ac might set extrasub.
14505 # FIXME: do we really want to maintain this feature?
14506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14507 ac_sed_extra="$ac_vpsub
14510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14513 s|@configure_input@|$ac_sed_conf_input|;t t
14514 s&@top_builddir@&$ac_top_builddir_sub&;t t
14515 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14516 s&@srcdir@&$ac_srcdir&;t t
14517 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14518 s&@top_srcdir@&$ac_top_srcdir&;t t
14519 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14520 s&@builddir@&$ac_builddir&;t t
14521 s&@abs_builddir@&$ac_abs_builddir&;t t
14522 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14523 s&@INSTALL@&$ac_INSTALL&;t t
14524 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14525 $ac_datarootdir_hack
14527 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14528 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14530 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14531 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14532 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14533 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14535 which seems to be undefined. Please make sure it is defined" >&5
14536 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14537 which seems to be undefined. Please make sure it is defined" >&2;}
14539 rm -f "$ac_tmp/stdin"
14541 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14542 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14550 if test x"$ac_file" != x-; then
14552 $as_echo "/* $configure_input */" \
14553 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14554 } >"$ac_tmp/config.h" \
14555 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14556 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14558 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14561 mv "$ac_tmp/config.h" "$ac_file" \
14562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14565 $as_echo "/* $configure_input */" \
14566 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14567 || as_fn_error $? "could not create -" "$LINENO" 5
14569 # Compute "$ac_file"'s index in $config_headers.
14572 for _am_header in $config_headers :; do
14573 case $_am_header in
14574 $_am_arg | $_am_arg:* )
14577 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14580 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14581 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14582 X"$_am_arg" : 'X\(//\)[^/]' \| \
14583 X"$_am_arg" : 'X\(//\)$' \| \
14584 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14585 $as_echo X"$_am_arg" |
14586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14590 /^X\(\/\/\)[^/].*/{
14602 s/.*/./; q'`/stamp-h$_am_stamp_count
14605 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14606 $as_echo "$as_me: executing $ac_file commands" >&6;}
14611 case $ac_file$ac_mode in
14612 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14613 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14614 # are listed without --file. Let's play safe and only enable the eval
14615 # if we detect the quoting.
14616 case $CONFIG_FILES in
14617 *\'*) eval set x "$CONFIG_FILES" ;;
14618 *) set x $CONFIG_FILES ;;
14623 # Strip MF so we end up with the name of the file.
14624 mf=`echo "$mf" | sed -e 's/:.*$//'`
14625 # Check whether this is an Automake generated Makefile or not.
14626 # We used to match only the files named `Makefile.in', but
14627 # some people rename them; so instead we look at the file content.
14628 # Grep'ing the first line is not enough: some people post-process
14629 # each Makefile.in and add a new line on top of each file to say so.
14630 # Grep'ing the whole file is not good either: AIX grep has a line
14631 # limit of 2048, but all sed's we know have understand at least 4000.
14632 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14633 dirpart=`$as_dirname -- "$mf" ||
14634 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14635 X"$mf" : 'X\(//\)[^/]' \| \
14636 X"$mf" : 'X\(//\)$' \| \
14637 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14643 /^X\(\/\/\)[^/].*/{
14659 # Extract the definition of DEPDIR, am__include, and am__quote
14660 # from the Makefile without running `make'.
14661 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14662 test -z "$DEPDIR" && continue
14663 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14664 test -z "am__include" && continue
14665 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14666 # When using ansi2knr, U may be empty or an underscore; expand it
14667 U=`sed -n 's/^U = //p' < "$mf"`
14668 # Find all dependency output files, they are included files with
14669 # $(DEPDIR) in their names. We invoke sed twice because it is the
14670 # simplest approach to changing $(DEPDIR) to its actual value in the
14672 for file in `sed -n "
14673 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14674 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14675 # Make sure the directory exists.
14676 test -f "$dirpart/$file" && continue
14677 fdir=`$as_dirname -- "$file" ||
14678 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14679 X"$file" : 'X\(//\)[^/]' \| \
14680 X"$file" : 'X\(//\)$' \| \
14681 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14682 $as_echo X"$file" |
14683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14687 /^X\(\/\/\)[^/].*/{
14700 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14701 # echo "creating $dirpart/$file"
14702 echo '# dummy' > "$dirpart/$file"
14709 # See if we are running on zsh, and set the options which allow our
14710 # commands through without removal of \ escapes.
14711 if test -n "${ZSH_VERSION+set}" ; then
14712 setopt NO_GLOB_SUBST
14715 cfgfile="${ofile}T"
14716 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14719 cat <<_LT_EOF >> "$cfgfile"
14722 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14723 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14725 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14727 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14728 # 2006, 2007, 2008 Free Software Foundation, Inc.
14729 # Written by Gordon Matzigkeit, 1996
14731 # This file is part of GNU Libtool.
14733 # GNU Libtool is free software; you can redistribute it and/or
14734 # modify it under the terms of the GNU General Public License as
14735 # published by the Free Software Foundation; either version 2 of
14736 # the License, or (at your option) any later version.
14738 # As a special exception to the GNU General Public License,
14739 # if you distribute this file as part of a program or library that
14740 # is built using GNU Libtool, you may include this file under the
14741 # same distribution terms that you use for the rest of that program.
14743 # GNU Libtool is distributed in the hope that it will be useful,
14744 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14745 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14746 # GNU General Public License for more details.
14748 # You should have received a copy of the GNU General Public License
14749 # along with GNU Libtool; see the file COPYING. If not, a copy
14750 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14751 # obtained by writing to the Free Software Foundation, Inc.,
14752 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14755 # The names of the tagged configurations supported by this script.
14758 # ### BEGIN LIBTOOL CONFIG
14760 # Which release of libtool.m4 was used?
14761 macro_version=$macro_version
14762 macro_revision=$macro_revision
14764 # Whether or not to build shared libraries.
14765 build_libtool_libs=$enable_shared
14767 # Whether or not to build static libraries.
14768 build_old_libs=$enable_static
14770 # What type of objects to build.
14773 # Whether or not to optimize for fast installation.
14774 fast_install=$enable_fast_install
14777 host_alias=$host_alias
14781 # The build system.
14782 build_alias=$build_alias
14786 # A sed program that does not truncate output.
14789 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14790 Xsed="\$SED -e 1s/^X//"
14792 # A grep program that handles long lines.
14798 # A literal string matcher.
14801 # A BSD- or MS-compatible name lister.
14804 # Whether we need soft or hard links.
14807 # What is the maximum length of a command?
14808 max_cmd_len=$max_cmd_len
14810 # Object file suffix (normally "o").
14813 # Executable file suffix (normally "").
14816 # whether the shell understands "unset".
14819 # turn spaces into newlines.
14822 # turn newlines into spaces.
14825 # How to create reloadable object files.
14826 reload_flag=$lt_reload_flag
14827 reload_cmds=$lt_reload_cmds
14829 # An object symbol dumper.
14830 OBJDUMP=$lt_OBJDUMP
14832 # Method to check whether dependent libraries are shared objects.
14833 deplibs_check_method=$lt_deplibs_check_method
14835 # Command to use when deplibs_check_method == "file_magic".
14836 file_magic_cmd=$lt_file_magic_cmd
14840 AR_FLAGS=$lt_AR_FLAGS
14842 # A symbol stripping program.
14845 # Commands used to install an old-style archive.
14847 old_postinstall_cmds=$lt_old_postinstall_cmds
14848 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14853 # LTCC compiler flags.
14854 LTCFLAGS=$lt_CFLAGS
14856 # Take the output of nm and produce a listing of raw symbols and C names.
14857 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14859 # Transform the output of nm in a proper C declaration.
14860 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14862 # Transform the output of nm in a C name address pair.
14863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14865 # Transform the output of nm in a C name address pair when lib prefix is needed.
14866 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14868 # The name of the directory that contains temporary libtool files.
14871 # Shell to use when invoking shell scripts.
14874 # An echo program that does not interpret backslashes.
14877 # Used to examine libraries when file_magic_cmd begins with "file".
14878 MAGIC_CMD=$MAGIC_CMD
14880 # Must we lock files when doing compilation?
14881 need_locks=$lt_need_locks
14883 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14884 DSYMUTIL=$lt_DSYMUTIL
14886 # Tool to change global to local symbols on Mac OS X.
14889 # Tool to manipulate fat objects and archives on Mac OS X.
14892 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14895 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14896 OTOOL64=$lt_OTOOL64
14898 # Old archive suffix (normally "a").
14901 # Shared library suffix (normally ".so").
14902 shrext_cmds=$lt_shrext_cmds
14904 # The commands to extract the exported symbol list from a shared archive.
14905 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14907 # Variables whose values should be saved in libtool wrapper scripts and
14908 # restored at link time.
14909 variables_saved_for_relink=$lt_variables_saved_for_relink
14911 # Do we need the "lib" prefix for modules?
14912 need_lib_prefix=$need_lib_prefix
14914 # Do we need a version for libraries?
14915 need_version=$need_version
14917 # Library versioning type.
14918 version_type=$version_type
14920 # Shared library runtime path variable.
14921 runpath_var=$runpath_var
14923 # Shared library path variable.
14924 shlibpath_var=$shlibpath_var
14926 # Is shlibpath searched before the hard-coded library search path?
14927 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14929 # Format of library name prefix.
14930 libname_spec=$lt_libname_spec
14932 # List of archive names. First name is the real one, the rest are links.
14933 # The last name is the one that the linker finds with -lNAME
14934 library_names_spec=$lt_library_names_spec
14936 # The coded name of the library, if different from the real name.
14937 soname_spec=$lt_soname_spec
14939 # Command to use after installation of a shared archive.
14940 postinstall_cmds=$lt_postinstall_cmds
14942 # Command to use after uninstallation of a shared archive.
14943 postuninstall_cmds=$lt_postuninstall_cmds
14945 # Commands used to finish a libtool library installation in a directory.
14946 finish_cmds=$lt_finish_cmds
14948 # As "finish_cmds", except a single script fragment to be evaled but
14950 finish_eval=$lt_finish_eval
14952 # Whether we should hardcode library paths into libraries.
14953 hardcode_into_libs=$hardcode_into_libs
14955 # Compile-time system search path for libraries.
14956 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14958 # Run-time system search path for libraries.
14959 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14961 # Whether dlopen is supported.
14962 dlopen_support=$enable_dlopen
14964 # Whether dlopen of programs is supported.
14965 dlopen_self=$enable_dlopen_self
14967 # Whether dlopen of statically linked programs is supported.
14968 dlopen_self_static=$enable_dlopen_self_static
14970 # Commands to strip libraries.
14971 old_striplib=$lt_old_striplib
14972 striplib=$lt_striplib
14975 # The linker used to build libraries.
14978 # Commands used to build an old-style archive.
14979 old_archive_cmds=$lt_old_archive_cmds
14981 # A language specific compiler.
14984 # Is the compiler the GNU compiler?
14987 # Compiler flag to turn off builtin functions.
14988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14990 # How to pass a linker flag through the compiler.
14991 wl=$lt_lt_prog_compiler_wl
14993 # Additional compiler flags for building library objects.
14994 pic_flag=$lt_lt_prog_compiler_pic
14996 # Compiler flag to prevent dynamic linking.
14997 link_static_flag=$lt_lt_prog_compiler_static
14999 # Does compiler simultaneously support -c and -o options?
15000 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15002 # Whether or not to add -lc for building shared libraries.
15003 build_libtool_need_lc=$archive_cmds_need_lc
15005 # Whether or not to disallow shared libs when runtime libs are static.
15006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15008 # Compiler flag to allow reflexive dlopens.
15009 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15011 # Compiler flag to generate shared objects directly from archives.
15012 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15014 # Whether the compiler copes with passing no objects directly.
15015 compiler_needs_object=$lt_compiler_needs_object
15017 # Create an old-style archive from a shared archive.
15018 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15020 # Create a temporary old-style archive to link instead of a shared archive.
15021 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15023 # Commands used to build a shared archive.
15024 archive_cmds=$lt_archive_cmds
15025 archive_expsym_cmds=$lt_archive_expsym_cmds
15027 # Commands used to build a loadable module if different from building
15028 # a shared archive.
15029 module_cmds=$lt_module_cmds
15030 module_expsym_cmds=$lt_module_expsym_cmds
15032 # Whether we are building with GNU ld or not.
15033 with_gnu_ld=$lt_with_gnu_ld
15035 # Flag that allows shared libraries with undefined symbols to be built.
15036 allow_undefined_flag=$lt_allow_undefined_flag
15038 # Flag that enforces no undefined symbols.
15039 no_undefined_flag=$lt_no_undefined_flag
15041 # Flag to hardcode \$libdir into a binary during linking.
15042 # This must work even if \$libdir does not exist
15043 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15045 # If ld is used when linking, flag to hardcode \$libdir into a binary
15046 # during linking. This must work even if \$libdir does not exist.
15047 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15049 # Whether we need a single "-rpath" flag with a separated argument.
15050 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15052 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15053 # DIR into the resulting binary.
15054 hardcode_direct=$hardcode_direct
15056 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15057 # DIR into the resulting binary and the resulting library dependency is
15058 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15059 # library is relocated.
15060 hardcode_direct_absolute=$hardcode_direct_absolute
15062 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15063 # into the resulting binary.
15064 hardcode_minus_L=$hardcode_minus_L
15066 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15067 # into the resulting binary.
15068 hardcode_shlibpath_var=$hardcode_shlibpath_var
15070 # Set to "yes" if building a shared library automatically hardcodes DIR
15071 # into the library and all subsequent libraries and executables linked
15073 hardcode_automatic=$hardcode_automatic
15075 # Set to yes if linker adds runtime paths of dependent libraries
15076 # to runtime path list.
15077 inherit_rpath=$inherit_rpath
15079 # Whether libtool must link a program against all its dependency libraries.
15080 link_all_deplibs=$link_all_deplibs
15082 # Fix the shell variable \$srcfile for the compiler.
15083 fix_srcfile_path=$lt_fix_srcfile_path
15085 # Set to "yes" if exported symbols are required.
15086 always_export_symbols=$always_export_symbols
15088 # The commands to list exported symbols.
15089 export_symbols_cmds=$lt_export_symbols_cmds
15091 # Symbols that should not be listed in the preloaded symbols.
15092 exclude_expsyms=$lt_exclude_expsyms
15094 # Symbols that must always be exported.
15095 include_expsyms=$lt_include_expsyms
15097 # Commands necessary for linking programs (against libraries) with templates.
15098 prelink_cmds=$lt_prelink_cmds
15100 # Specify filename containing input files.
15101 file_list_spec=$lt_file_list_spec
15103 # How to hardcode a shared library path into an executable.
15104 hardcode_action=$hardcode_action
15106 # ### END LIBTOOL CONFIG
15112 cat <<\_LT_EOF >> "$cfgfile"
15113 # AIX sometimes has problems with the GCC collect2 program. For some
15114 # reason, if we set the COLLECT_NAMES environment variable, the problems
15115 # vanish in a puff of smoke.
15116 if test "X${COLLECT_NAMES+set}" != Xset; then
15118 export COLLECT_NAMES
15125 ltmain="$ac_aux_dir/ltmain.sh"
15128 # We use sed instead of cat because bash on DJGPP gets confused if
15129 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15130 # text mode, it properly converts lines to CR/LF. This bash problem
15131 # is reportedly fixed, but why not run on old versions too?
15132 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15133 || (rm -f "$cfgfile"; exit 1)
15137 cat << \_LT_EOF >> "$cfgfile"
15139 # func_dirname file append nondir_replacement
15140 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15141 # otherwise set result to NONDIR_REPLACEMENT.
15145 */*) func_dirname_result="${1%/*}${2}" ;;
15146 * ) func_dirname_result="${3}" ;;
15150 # func_basename file
15153 func_basename_result="${1##*/}"
15156 # func_dirname_and_basename file append nondir_replacement
15157 # perform func_basename and func_dirname in a single function
15159 # dirname: Compute the dirname of FILE. If nonempty,
15160 # add APPEND to the result, otherwise set result
15161 # to NONDIR_REPLACEMENT.
15162 # value returned in "$func_dirname_result"
15163 # basename: Compute filename of FILE.
15164 # value retuned in "$func_basename_result"
15165 # Implementation must be kept synchronized with func_dirname
15166 # and func_basename. For efficiency, we do not delegate to
15167 # those functions but instead duplicate the functionality here.
15168 func_dirname_and_basename ()
15171 */*) func_dirname_result="${1%/*}${2}" ;;
15172 * ) func_dirname_result="${3}" ;;
15174 func_basename_result="${1##*/}"
15177 # func_stripname prefix suffix name
15178 # strip PREFIX and SUFFIX off of NAME.
15179 # PREFIX and SUFFIX must not contain globbing or regex special
15180 # characters, hashes, percent signs, but SUFFIX may contain a leading
15181 # dot (in which case that matches only a dot).
15184 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15185 # positional parameters, so assign one to ordinary parameter first.
15186 func_stripname_result=${3}
15187 func_stripname_result=${func_stripname_result#"${1}"}
15188 func_stripname_result=${func_stripname_result%"${2}"}
15194 func_opt_split_opt=${1%%=*}
15195 func_opt_split_arg=${1#*=}
15202 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15203 *) func_lo2o_result=${1} ;;
15207 # func_xform libobj-or-source
15210 func_xform_result=${1%.*}.lo
15213 # func_arith arithmetic-term...
15216 func_arith_result=$(( $* ))
15220 # STRING may not start with a hyphen.
15223 func_len_result=${#1}
15228 *) # Bourne compatible functions.
15229 cat << \_LT_EOF >> "$cfgfile"
15231 # func_dirname file append nondir_replacement
15232 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15233 # otherwise set result to NONDIR_REPLACEMENT.
15236 # Extract subdirectory from the argument.
15237 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15238 if test "X$func_dirname_result" = "X${1}"; then
15239 func_dirname_result="${3}"
15241 func_dirname_result="$func_dirname_result${2}"
15245 # func_basename file
15248 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15252 # func_stripname prefix suffix name
15253 # strip PREFIX and SUFFIX off of NAME.
15254 # PREFIX and SUFFIX must not contain globbing or regex special
15255 # characters, hashes, percent signs, but SUFFIX may contain a leading
15256 # dot (in which case that matches only a dot).
15257 # func_strip_suffix prefix name
15261 .*) func_stripname_result=`$ECHO "X${3}" \
15262 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15263 *) func_stripname_result=`$ECHO "X${3}" \
15264 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15269 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15270 my_sed_long_arg='1s/^-[^=]*=//'
15275 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15276 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15282 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15285 # func_xform libobj-or-source
15288 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15291 # func_arith arithmetic-term...
15294 func_arith_result=`expr "$@"`
15298 # STRING may not start with a hyphen.
15301 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15307 case $lt_shell_append in
15309 cat << \_LT_EOF >> "$cfgfile"
15311 # func_append var value
15312 # Append VALUE to the end of shell variable VAR.
15320 cat << \_LT_EOF >> "$cfgfile"
15322 # func_append var value
15323 # Append VALUE to the end of shell variable VAR.
15334 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15335 || (rm -f "$cfgfile"; exit 1)
15337 mv -f "$cfgfile" "$ofile" ||
15338 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15349 ac_clean_files=$ac_clean_files_save
15351 test $ac_write_fail = 0 ||
15352 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15355 # configure is writing to config.log, and then calls config.status.
15356 # config.status does its own redirection, appending to config.log.
15357 # Unfortunately, on DOS this fails, as config.log is still kept open
15358 # by configure, so config.status won't be able to write to it; its
15359 # output is simply discarded. So we exec the FD to /dev/null,
15360 # effectively closing config.log, so it can be properly (re)opened and
15361 # appended to by config.status. When coming back to configure, we
15362 # need to make the FD available again.
15363 if test "$no_create" != yes; then
15365 ac_config_status_args=
15366 test "$silent" = yes &&
15367 ac_config_status_args="$ac_config_status_args --quiet"
15369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15372 # would make configure fail if this is the last instruction.
15373 $ac_cs_success || as_fn_exit 1
15375 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15377 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}