2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libratbox devel.
5 # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
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 about your system,
242 $0: including any error possibly output before this
243 $0: message. Then install a modern shell, or manually run
244 $0: the script under such a shell if you do have one."
250 SHELL
=${CONFIG_SHELL-/bin/sh}
252 # Unset more variables known to interfere with behavior of common tools.
253 CLICOLOR_FORCE
= GREP_OPTIONS
=
254 unset CLICOLOR_FORCE GREP_OPTIONS
256 ## --------------------- ##
257 ## M4sh Shell Functions. ##
258 ## --------------------- ##
261 # Portably unset VAR.
264 { eval $1=; unset $1;}
268 # as_fn_set_status STATUS
269 # -----------------------
270 # Set $? to STATUS, without forking.
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 # Create "$as_dir" as a directory, including parents if necessary.
293 -*) as_dir
=.
/$as_dir;;
295 test -d "$as_dir" || eval $as_mkdir_p || {
299 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 as_dirs
="'$as_qdir' $as_dirs"
303 as_dir
=`$as_dirname -- "$as_dir" ||
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308 $as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
326 test -d "$as_dir" && break
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
333 # as_fn_append VAR VALUE
334 # ----------------------
335 # Append the text in VALUE to the end of the definition contained in VAR. Take
336 # advantage of any shell optimizations that allow amortized linear growth over
337 # repeated appends, instead of the typical quadratic growth present in naive
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
340 eval 'as_fn_append ()
353 # Perform arithmetic evaluation on the ARGs, and store the result in the
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
355 # must be portable across $(()) and expr.
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
364 as_val
=`expr "$@" || test $? -eq 1`
369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
370 # ----------------------------------------
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373 # script with STATUS, using 1 if that was 0.
376 as_status
=$1; test $as_status -eq 0 && as_status
=1
378 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 $as_echo "$as_me: error: $2" >&2
382 as_fn_exit
$as_status
385 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
392 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
398 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
404 as_me
=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
423 # Avoid depending upon Character Ranges.
424 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
425 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
427 as_cr_digits
='0123456789'
428 as_cr_alnum
=$as_cr_Letters$as_cr_digits
431 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
432 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
462 ECHO_C
= ECHO_N
= ECHO_T
=
463 case `echo -n x` in #(((((
465 case `echo 'xy\c'` in
466 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
475 rm -f conf$$ conf$$.exe conf$$.
file
476 if test -d conf$$.dir
; then
477 rm -f conf$$.dir
/conf$$.
file
480 mkdir conf$$.dir
2>/dev
/null
482 if (echo >conf$$.
file) 2>/dev
/null
; then
483 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
491 elif ln conf$$.
file conf$$
2>/dev
/null
; then
499 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
500 rmdir conf$$.dir
2>/dev
/null
502 if mkdir -p .
2>/dev
/null
; then
503 as_mkdir_p
='mkdir -p "$as_dir"'
505 test -d .
/-p && rmdir .
/-p
509 if test -x / >/dev
/null
2>&1; then
512 if ls -dL / >/dev
/null
2>&1; then
519 if test -d "$1"; then
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
530 as_executable_p
=$as_test_x
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 # Check that we are running under the correct shell.
541 SHELL
=${CONFIG_SHELL-/bin/sh}
545 # Remove one level of quotation (which was required for Make).
546 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
551 if test "X$1" = X
--no-reexec; then
552 # Discard the --no-reexec flag, and continue.
554 elif test "X$1" = X
--fallback-echo; then
555 # Avoid inline document here, it may be left over
557 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
558 # Yippee, $ECHO works!
561 # Restart under the correct shell.
562 exec $SHELL "$0" --no-reexec ${1+"$@"}
565 if test "X$1" = X
--fallback-echo; then
566 # used as fallback echo
574 # The HP-UX ksh and POSIX shell print the target directory to stdout
576 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
578 if test -z "$lt_ECHO"; then
579 if test "X${echo_test_string+set}" != Xset
; then
580 # find a string as large as possible, as long as the shell can cope with it
581 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
584 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
591 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
592 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
593 test "X$echo_testing_string" = "X$echo_test_string"; then
596 # The Solaris, AIX, and Digital Unix default echo programs unquote
597 # backslashes. This makes it impossible to quote backslashes using
598 # echo "$something" | sed 's/\\/\\\\/g'
600 # So, first we look for a working echo in the user's PATH.
602 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
603 for dir
in $PATH /usr
/ucb
; do
605 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
615 if test "X$ECHO" = Xecho
; then
616 # We didn't find a better echo, so look for alternatives.
617 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
618 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
619 test "X$echo_testing_string" = "X$echo_test_string"; then
620 # This shell has a builtin print -r that does the trick.
622 elif { test -f /bin
/ksh
|| test -f /bin
/ksh
$ac_exeext; } &&
623 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
624 # If we have ksh, try running configure again with it.
625 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
626 export ORIGINAL_CONFIG_SHELL
627 CONFIG_SHELL
=/bin
/ksh
629 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
634 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
638 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
644 SHELL
="$CONFIG_SHELL"
646 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
647 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648 test "X$echo_testing_string" = 'X\t' &&
649 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
653 # maybe with a smaller string...
656 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
664 if test "$prev" != 'sed 50q "$0"'; then
665 echo_test_string
=`eval $prev`
666 export echo_test_string
667 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669 # Oops. We lost completely, so just stick with echo.
678 # Copy echo and quote the copy suitably for passing to libtool from
679 # the Makefile, instead of quoting the original, which is used later.
681 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
688 test -n "$DJDIR" || exec 7<&0 </dev
/null
692 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
693 # so uname gets run too.
694 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
699 ac_default_prefix
=/usr
/local
701 ac_config_libobj_dir
=.
708 # Identity of this package.
709 PACKAGE_NAME
='libratbox'
710 PACKAGE_TARNAME
='libratbox'
711 PACKAGE_VERSION
='devel'
712 PACKAGE_STRING
='libratbox devel'
716 ac_default_prefix
=/usr
/local
/libratbox
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>
754 ac_subst_vars
='am__EXEEXT_FALSE
800 MAINTAINER_MODE_FALSE
830 INSTALL_STRIP_PROGRAM
872 program_transform_name
885 enable_option_checking
886 enable_dependency_tracking
889 enable_maintainer_mode
902 ac_precious_vars
='build_alias
916 # Initialize some variables set by options.
918 ac_init_version
=false
919 ac_unrecognized_opts
=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
930 program_transform_name
=s
,x
,x
,
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir
='${exec_prefix}/bin'
945 sbindir
='${exec_prefix}/sbin'
946 libexecdir
='${exec_prefix}/libexec'
947 datarootdir
='${prefix}/share'
948 datadir
='${datarootdir}'
949 sysconfdir
='${prefix}/etc'
950 sharedstatedir
='${prefix}/com'
951 localstatedir
='${prefix}/var'
952 includedir
='${prefix}/include'
953 oldincludedir
='/usr/include'
954 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
955 infodir
='${datarootdir}/info'
960 libdir
='${exec_prefix}/lib'
961 localedir
='${datarootdir}/locale'
962 mandir
='${datarootdir}/man'
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\
$ac_option
976 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 # Accept the important Cygnus configure options, so we can diagnose typos.
983 case $ac_dashdash$ac_option in
987 -bindir | --bindir | --bindi | --bind | --bin | --bi)
989 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 -build | --build | --buil | --bui | --bu)
993 ac_prev
=build_alias
;;
994 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995 build_alias
=$ac_optarg ;;
997 -cache-file | --cache-file | --cache-fil | --cache-fi \
998 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999 ac_prev
=cache_file
;;
1000 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002 cache_file
=$ac_optarg ;;
1004 --config-cache | -C)
1005 cache_file
=config.cache
;;
1007 -datadir | --datadir | --datadi | --datad)
1009 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010 datadir
=$ac_optarg ;;
1012 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013 | --dataroo | --dataro | --datar)
1014 ac_prev
=datarootdir
;;
1015 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017 datarootdir
=$ac_optarg ;;
1019 -disable-* | --disable-*)
1020 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1023 as_fn_error $?
"invalid feature name: $ac_useropt"
1024 ac_useropt_orig
=$ac_useropt
1025 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_
$ac_useropt"
1030 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep
=', ';;
1033 eval enable_
$ac_useropt=no
;;
1035 -docdir | --docdir | --docdi | --doc | --do)
1037 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1038 docdir
=$ac_optarg ;;
1040 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1043 dvidir
=$ac_optarg ;;
1045 -enable-* | --enable-*)
1046 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1049 as_fn_error $?
"invalid feature name: $ac_useropt"
1050 ac_useropt_orig
=$ac_useropt
1051 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_
$ac_useropt"
1056 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep
=', ';;
1059 eval enable_
$ac_useropt=\
$ac_optarg ;;
1061 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063 | --exec | --exe | --ex)
1064 ac_prev
=exec_prefix
;;
1065 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067 | --exec=* | --exe=* | --ex=*)
1068 exec_prefix
=$ac_optarg ;;
1070 -gas | --gas | --ga | --g)
1071 # Obsolete; use --with-gas.
1074 -help | --help | --hel | --he | -h)
1075 ac_init_help
=long
;;
1076 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
1077 ac_init_help
=recursive
;;
1078 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
1079 ac_init_help
=short
;;
1081 -host | --host | --hos | --ho)
1082 ac_prev
=host_alias
;;
1083 -host=* | --host=* | --hos=* | --ho=*)
1084 host_alias
=$ac_optarg ;;
1086 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090 htmldir
=$ac_optarg ;;
1092 -includedir | --includedir | --includedi | --included | --include \
1093 | --includ | --inclu | --incl | --inc)
1094 ac_prev
=includedir
;;
1095 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096 | --includ=* | --inclu=* | --incl=* | --inc=*)
1097 includedir
=$ac_optarg ;;
1099 -infodir | --infodir | --infodi | --infod | --info | --inf)
1101 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102 infodir
=$ac_optarg ;;
1104 -libdir | --libdir | --libdi | --libd)
1106 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107 libdir
=$ac_optarg ;;
1109 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110 | --libexe | --libex | --libe)
1111 ac_prev
=libexecdir
;;
1112 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113 | --libexe=* | --libex=* | --libe=*)
1114 libexecdir
=$ac_optarg ;;
1116 -localedir | --localedir | --localedi | --localed | --locale)
1117 ac_prev
=localedir
;;
1118 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119 localedir
=$ac_optarg ;;
1121 -localstatedir | --localstatedir | --localstatedi | --localstated \
1122 | --localstate | --localstat | --localsta | --localst | --locals)
1123 ac_prev
=localstatedir
;;
1124 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126 localstatedir
=$ac_optarg ;;
1128 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131 mandir
=$ac_optarg ;;
1133 -nfp | --nfp | --nf)
1134 # Obsolete; use --without-fp.
1137 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138 | --no-cr | --no-c | -n)
1141 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147 | --oldin | --oldi | --old | --ol | --o)
1148 ac_prev
=oldincludedir
;;
1149 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152 oldincludedir
=$ac_optarg ;;
1154 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157 prefix
=$ac_optarg ;;
1159 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160 | --program-pre | --program-pr | --program-p)
1161 ac_prev
=program_prefix
;;
1162 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164 program_prefix
=$ac_optarg ;;
1166 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167 | --program-suf | --program-su | --program-s)
1168 ac_prev
=program_suffix
;;
1169 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171 program_suffix
=$ac_optarg ;;
1173 -program-transform-name | --program-transform-name \
1174 | --program-transform-nam | --program-transform-na \
1175 | --program-transform-n | --program-transform- \
1176 | --program-transform | --program-transfor \
1177 | --program-transfo | --program-transf \
1178 | --program-trans | --program-tran \
1179 | --progr-tra | --program-tr | --program-t)
1180 ac_prev
=program_transform_name
;;
1181 -program-transform-name=* | --program-transform-name=* \
1182 | --program-transform-nam=* | --program-transform-na=* \
1183 | --program-transform-n=* | --program-transform-=* \
1184 | --program-transform=* | --program-transfor=* \
1185 | --program-transfo=* | --program-transf=* \
1186 | --program-trans=* | --program-tran=* \
1187 | --progr-tra=* | --program-tr=* | --program-t=*)
1188 program_transform_name
=$ac_optarg ;;
1190 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193 pdfdir
=$ac_optarg ;;
1195 -psdir | --psdir | --psdi | --psd | --ps)
1197 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201 | -silent | --silent | --silen | --sile | --sil)
1204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 sbindir
=$ac_optarg ;;
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1214 ac_prev
=sharedstatedir
;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 sharedstatedir
=$ac_optarg ;;
1221 -site | --site | --sit)
1223 -site=* | --site=* | --sit=*)
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229 srcdir
=$ac_optarg ;;
1231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev
=sysconfdir
;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236 sysconfdir
=$ac_optarg ;;
1238 -target | --target | --targe | --targ | --tar | --ta | --t)
1239 ac_prev
=target_alias
;;
1240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241 target_alias
=$ac_optarg ;;
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version
=: ;;
1250 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1253 as_fn_error $?
"invalid package name: $ac_useropt"
1254 ac_useropt_orig
=$ac_useropt
1255 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1260 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep
=', ';;
1263 eval with_
$ac_useropt=\
$ac_optarg ;;
1265 -without-* | --without-*)
1266 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1269 as_fn_error $?
"invalid package name: $ac_useropt"
1270 ac_useropt_orig
=$ac_useropt
1271 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1276 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep
=', ';;
1279 eval with_
$ac_useropt=no
;;
1282 # Obsolete; use --with-x.
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev
=x_includes
;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes
=$ac_optarg ;;
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev
=x_libraries
;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries
=$ac_optarg ;;
1299 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1300 Try \`$0 --help' for more information"
1304 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
1308 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1310 eval $ac_envvar=\
$ac_optarg
1311 export $ac_envvar ;;
1314 # FIXME: should be removed in autoconf 3.0.
1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1324 if test -n "$ac_prev"; then
1325 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1326 as_fn_error $?
"missing argument to $ac_option"
1329 if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1332 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337 # Check all directory arguments for consistency.
1338 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1343 eval ac_val
=\$
$ac_var
1344 # Remove trailing slashes.
1347 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\
$ac_val;;
1350 # Be sure to have absolute directory names.
1352 [\\/$
]* | ?
:[\\/]* ) continue;;
1353 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1355 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1363 target
=$target_alias
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x
; then
1367 if test "x$build_alias" = x
; then
1368 cross_compiling
=maybe
1369 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used" >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1377 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1379 test "$silent" = yes && exec 6>/dev
/null
1382 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di
=`ls -di .` &&
1384 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error $?
"working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error $?
"pwd does not report name of working directory"
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted
=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir
=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1422 ac_srcdir_defaulted
=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1426 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1428 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1440 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 for ac_var
in $ac_precious_vars; do
1443 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1444 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1445 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1446 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1450 # Report the --help message.
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1456 \`configure' configures libratbox devel to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking ...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1519 --build=BUILD configure
for building on BUILD
[guessed
]
1520 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1524 if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short
| recursive
) echo "Configuration of libratbox devel:";;
1531 --disable-option-checking ignore unrecognized
--enable/--with options
1532 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1533 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1534 --disable-dependency-tracking speeds up one
-time build
1535 --enable-dependency-tracking do not reject slow dependency extractors
1536 --enable-static[=PKGS
] build static libraries
[default
=no
]
1537 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1538 --enable-maintainer-mode enable make rules and dependencies not useful
1539 (and sometimes confusing
) to the casual installer
1540 --enable-fast-install[=PKGS
]
1541 optimize
for fast installation
[default
=yes]
1542 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1543 --disable-ipv6 Disable IPv6 support
1544 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1545 --disable-openssl Disable OpenSSL support.
1546 --enable-gnutls Enable GnuTLS support.
1547 --disable-gnutls Disable GnuTLS support.
1548 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1549 hard
(aborts the daemon
)
1550 --enable-profile Enable profiling
1551 --disable-balloc Disable the block allocator.
1552 --enable-warnings Enable all sorts of warnings
for debugging.
1555 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1556 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1557 --with-pic try to use only PIC
/non
-PIC objects
[default
=use
1559 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1561 Some influential environment variables
:
1562 CC C compiler
command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1565 nonstandard directory
<lib dir
>
1566 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1567 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1568 you have headers
in a nonstandard directory
<include dir
>
1570 PKG_CONFIG path to pkg
-config utility
1572 C compiler flags
for GNUTLS
, overriding pkg
-config
1573 GNUTLS_LIBS linker flags
for GNUTLS
, overriding pkg
-config
1575 Use these variables to override the choices made by
`configure' or to help
1576 it to find libraries and programs with nonstandard names/locations.
1578 Report bugs to the package provider.
1583 if test "$ac_init_help" = "recursive"; then
1584 # If there are subdirs, report their specific --help.
1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586 test -d "$ac_dir" ||
1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 ac_abs_top_builddir=$ac_pwd
1603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604 # for backward compatibility:
1605 ac_top_builddir=$ac_top_build_prefix
1608 .) # We are building in place.
1610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
1613 ac_srcdir=$srcdir$ac_dir_suffix;
1614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1630 $SHELL "$ac_srcdir/configure" --help=recursive
1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 cd "$ac_pwd" || { ac_status=$?; break; }
1638 test -n "$ac_init_help" && exit $ac_status
1639 if $ac_init_version; then
1641 libratbox configure devel
1642 generated by GNU Autoconf 2.68
1644 Copyright (C) 2010 Free Software Foundation, Inc.
1645 This configure script is free software; the Free Software Foundation
1646 gives unlimited permission to copy, distribute and modify it.
1648 $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
1653 ## ------------------------ ##
1654 ## Autoconf initialization. ##
1655 ## ------------------------ ##
1657 # ac_fn_c_try_compile LINENO
1658 # --------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_compile ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1666 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1667 *) ac_try_echo
=$ac_try;;
1669 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1673 if test -s conftest.err
; then
1674 grep -v '^ *+' conftest.err
>conftest.er1
1675 cat conftest.er1
>&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.
$ac_objext; then :
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.
$ac_ext >&5
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status
$ac_retval
1693 } # ac_fn_c_try_compile
1695 # ac_fn_c_try_cpp LINENO
1696 # ----------------------
1697 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1700 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1701 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1703 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } > conftest.i && {
1717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1732 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1735 # the include files in INCLUDES and setting the cache variable VAR
1737 ac_fn_c_check_header_mongrel ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if eval \${$3+:} false; then :
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1742 $as_echo_n "checking for $2... " >&6; }
1743 if eval \${$3+:} false; then :
1744 $as_echo_n "(cached) " >&6
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 $as_echo "$ac_res" >&6; }
1750 # Is the header compilable?
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1752 $as_echo_n "checking $2 usability... " >&6; }
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1758 if ac_fn_c_try_compile "$LINENO"; then :
1759 ac_header_compiler=yes
1761 ac_header_compiler=no
1763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1765 $as_echo "$ac_header_compiler" >&6; }
1767 # Is the header present?
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1769 $as_echo_n "checking $2 presence... " >&6; }
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1774 if ac_fn_c_try_cpp "$LINENO"; then :
1775 ac_header_preproc=yes
1777 ac_header_preproc=no
1779 rm -f conftest.err conftest.i conftest.$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1781 $as_echo "$ac_header_preproc" >&6; }
1783 # So? What about this header?
1784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1787 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1793 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1795 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1797 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1799 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1801 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1809 eval "$3=\$ac_header_compiler"
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 } # ac_fn_c_check_header_mongrel
1819 # ac_fn_c_try_run LINENO
1820 # ----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822 # that executables *can* be run.
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_link"
1828 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1829 *) ac_try_echo
=$ac_try;;
1831 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>&5
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1837 { { case "(($ac_try" in
1838 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_try") 2>&5
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; }; }; then :
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1853 ac_retval=$ac_status
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1861 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1862 # -------------------------------------------------------
1863 # Tests whether HEADER exists and can be compiled using the include files in
1864 # INCLUDES, setting the cache variable VAR accordingly.
1865 ac_fn_c_check_header_compile ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1878 if ac_fn_c_try_compile "$LINENO"; then :
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 } # ac_fn_c_check_header_compile
1892 # ac_fn_c_try_link LINENO
1893 # -----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext conftest$ac_exeext
1899 if { { ac_try="$ac_link"
1901 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1902 *) ac_try_echo
=$ac_try;;
1904 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_link") 2>conftest.err
1908 if test -s conftest.err
; then
1909 grep -v '^ *+' conftest.err
>conftest.er1
1910 cat conftest.er1
>&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_c_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest
$ac_exeext && {
1918 test "$cross_compiling" = yes ||
1919 $as_test_x conftest
$ac_exeext
1923 $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.
$ac_ext >&5
1928 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930 # interfere with the next link command; also delete a directory that is
1931 # left behind by Apple's compiler. We do this before executing the actions.
1932 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status
$ac_retval
1936 } # ac_fn_c_try_link
1938 # ac_fn_c_check_func LINENO FUNC VAR
1939 # ----------------------------------
1940 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1941 ac_fn_c_check_func
()
1943 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \
${$3+:} false
; then :
1947 $as_echo_n "(cached) " >&6
1949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953 #define $2 innocuous_$2
1955 /* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1961 # include <limits.h>
1963 # include <assert.h>
1968 /* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1975 /* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978 #if defined __stub_$2 || defined __stub___$2
1990 if ac_fn_c_try_link
"$LINENO"; then :
1995 rm -f core conftest.err conftest.
$ac_objext \
1996 conftest
$ac_exeext conftest.
$ac_ext
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_func
2005 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2006 # -------------------------------------------
2007 # Tests whether TYPE exists after having included INCLUDES, setting cache
2008 # variable VAR accordingly.
2009 ac_fn_c_check_type
()
2011 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \
${$3+:} false
; then :
2015 $as_echo_n "(cached) " >&6
2018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2030 if ac_fn_c_try_compile
"$LINENO"; then :
2031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2043 if ac_fn_c_try_compile
"$LINENO"; then :
2048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_type
2059 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2060 # ----------------------------------------------------
2061 # Tries to find if the field MEMBER exists in type AGGR, after including
2062 # INCLUDES, setting cache variable VAR accordingly.
2063 ac_fn_c_check_member
()
2065 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2067 $as_echo_n "checking for $2.$3... " >&6; }
2068 if eval \
${$4+:} false
; then :
2069 $as_echo_n "(cached) " >&6
2071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2084 if ac_fn_c_try_compile
"$LINENO"; then :
2087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2094 if (sizeof ac_aggr.$3)
2100 if ac_fn_c_try_compile
"$LINENO"; then :
2105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_check_member
2115 cat >config.log
<<_ACEOF
2116 This file contains any messages produced by compilers while
2117 running configure, to aid debugging if configure makes a mistake.
2119 It was created by libratbox $as_me devel, which was
2120 generated by GNU Autoconf 2.68. Invocation command line was
2132 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2138 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2141 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2142 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2143 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2144 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2145 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2146 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2147 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2155 test -z "$as_dir" && as_dir
=.
2156 $as_echo "PATH: $as_dir"
2172 # Keep a trace of the command line.
2173 # Strip out --no-create and --no-recursion so they do not pile up.
2174 # Strip out --silent because we don't want to record it for future runs.
2175 # Also quote any args containing shell meta-characters.
2176 # Make two passes to allow for proper duplicate-argument suppression.
2180 ac_must_keep_next
=false
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2191 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2196 as_fn_append ac_configure_args1
" '$ac_arg'"
2197 if test $ac_must_keep_next = true
; then
2198 ac_must_keep_next
=false
# Got value, back to normal.
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2209 -* ) ac_must_keep_next
=true
;;
2212 as_fn_append ac_configure_args
" '$ac_arg'"
2217 { ac_configure_args0
=; unset ac_configure_args0
;}
2218 { ac_configure_args1
=; unset ac_configure_args1
;}
2220 # When interrupted or exit'd, cleanup temporary files, and complete
2221 # config.log. We remove comments because anyway the quotes in there
2222 # would cause problems or look ugly.
2223 # WARNING: Use '\'' to represent an apostrophe within the trap.
2224 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2225 trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
2230 $as_echo "## ---------------- ##
2231 ## Cache variables. ##
2232 ## ---------------- ##"
2234 # The following way of writing the cache mishandles newlines in values,
2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237 eval ac_val=\$$ac_var
2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2245 _ | IFS | as_nl) ;; #(
2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2247 *) { eval $ac_var=; unset $ac_var;} ;;
2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253 *${as_nl}ac_space=\ *)
2255 "s/'\''/'\''\\\\'\'''\''/g;
2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2266 $as_echo "## ----------------- ##
2267 ## Output variables. ##
2268 ## ----------------- ##"
2270 for ac_var in $ac_subst_vars
2272 eval ac_val=\$$ac_var
2274 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 $as_echo "$ac_var='\''$ac_val'\''"
2280 if test -n "$ac_subst_files"; then
2281 $as_echo "## ------------------- ##
2282 ## File substitutions. ##
2283 ## ------------------- ##"
2285 for ac_var
in $ac_subst_files
2287 eval ac_val
=\$
$ac_var
2289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2291 $as_echo "$ac_var='\''$ac_val'\''"
2296 if test -s confdefs.h; then
2297 $as_echo "## ----------- ##
2304 test "$ac_signal" != 0 &&
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2312 for ac_signal
in 1 2 13 15; do
2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2318 rm -f -r conftest
* confdefs.h
2320 $as_echo "/* confdefs.h */" > confdefs.h
2322 # Predefined preprocessor variables.
2324 cat >>confdefs.h
<<_ACEOF
2325 #define PACKAGE_NAME "$PACKAGE_NAME"
2328 cat >>confdefs.h
<<_ACEOF
2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2332 cat >>confdefs.h
<<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2336 cat >>confdefs.h
<<_ACEOF
2337 #define PACKAGE_STRING "$PACKAGE_STRING"
2340 cat >>confdefs.h
<<_ACEOF
2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2344 cat >>confdefs.h
<<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
2353 if test -n "$CONFIG_SITE"; then
2354 # We do not want a PATH search for config.site.
2355 case $CONFIG_SITE in #((
2356 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2357 */*) ac_site_file1
=$CONFIG_SITE;;
2358 *) ac_site_file1
=.
/$CONFIG_SITE;;
2360 elif test "x$prefix" != xNONE
; then
2361 ac_site_file1
=$prefix/share
/config.site
2362 ac_site_file2
=$prefix/etc
/config.site
2364 ac_site_file1
=$ac_default_prefix/share
/config.site
2365 ac_site_file2
=$ac_default_prefix/etc
/config.site
2367 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2369 test "x$ac_site_file" = xNONE
&& continue
2370 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2372 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2373 sed 's/^/| /' "$ac_site_file" >&5
2375 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 as_fn_error $?
"failed to load site script $ac_site_file
2378 See \`config.log' for more details" "$LINENO" 5; }
2382 if test -r "$cache_file"; then
2383 # Some versions of bash will fail to source /dev/null (special files
2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2385 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2387 $as_echo "$as_me: loading cache $cache_file" >&6;}
2389 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2390 *) .
"./$cache_file";;
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2395 $as_echo "$as_me: creating cache $cache_file" >&6;}
2399 as_fn_append ac_header_list
" stdlib.h"
2400 as_fn_append ac_header_list
" unistd.h"
2401 as_fn_append ac_header_list
" sys/param.h"
2402 # Check that the precious variables saved in the cache have kept the same
2404 ac_cache_corrupted
=false
2405 for ac_var
in $ac_precious_vars; do
2406 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2407 eval ac_new_set
=\
$ac_env_${ac_var}_set
2408 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2409 eval ac_new_val
=\
$ac_env_${ac_var}_value
2410 case $ac_old_set,$ac_new_set in
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2413 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2414 ac_cache_corrupted
=: ;;
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2417 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2418 ac_cache_corrupted
=: ;;
2421 if test "x$ac_old_val" != "x$ac_new_val"; then
2422 # differences in whitespace do not lead to failure.
2423 ac_old_val_w
=`echo x $ac_old_val`
2424 ac_new_val_w
=`echo x $ac_new_val`
2425 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2427 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2428 ac_cache_corrupted
=:
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2431 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2432 eval $ac_var=\
$ac_old_val
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2435 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2437 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2440 # Pass precious variables to config.status.
2441 if test "$ac_new_set" = set; then
2443 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2444 *) ac_arg
=$ac_var=$ac_new_val ;;
2446 case " $ac_configure_args " in
2447 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2448 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2452 if $ac_cache_corrupted; then
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2456 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2457 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2459 ## -------------------- ##
2460 ## Main body of script. ##
2461 ## -------------------- ##
2464 ac_cpp
='$CPP $CPPFLAGS'
2465 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2470 am__api_version
='1.11'
2473 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 if test -f "$ac_dir/install-sh"; then
2476 ac_install_sh
="$ac_aux_dir/install-sh -c"
2478 elif test -f "$ac_dir/install.sh"; then
2480 ac_install_sh
="$ac_aux_dir/install.sh -c"
2482 elif test -f "$ac_dir/shtool"; then
2484 ac_install_sh
="$ac_aux_dir/shtool install -c"
2488 if test -z "$ac_aux_dir"; then
2489 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2497 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2498 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2501 # Find a good install program. We prefer a C program (faster),
2502 # so one script is as good as another. But avoid the broken or
2503 # incompatible versions:
2504 # SysV /etc/install, /usr/sbin/install
2505 # SunOS /usr/etc/install
2506 # IRIX /sbin/install
2508 # AmigaOS /C/install, which installs bootblocks on floppy discs
2509 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2510 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2511 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2512 # OS/2's system install, which has a completely different semantic
2513 # ./install, which can be erroneously created by make from ./install.sh.
2514 # Reject install programs that cannot install multiple files.
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2516 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2517 if test -z "$INSTALL"; then
2518 if ${ac_cv_path_install+:} false
; then :
2519 $as_echo_n "(cached) " >&6
2521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir
=.
2526 # Account for people who put trailing slashes in PATH elements.
2527 case $as_dir/ in #((
2528 .
/ | .
// | /[cC
]/* | \
2529 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
2530 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2533 # OSF1 and SCO ODT 3.0 have their own names for install.
2534 # Don't use installbsd from OSF since it installs stuff as root
2536 for ac_prog
in ginstall scoinst
install; do
2537 for ac_exec_ext
in '' $ac_executable_extensions; do
2538 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2539 if test $ac_prog = install &&
2540 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2541 # AIX install. It has an incompatible calling convention.
2543 elif test $ac_prog = install &&
2544 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2545 # program-specific install script used by HP pwplus--don't use.
2548 rm -rf conftest.one conftest.two conftest.dir
2549 echo one
> conftest.one
2550 echo two
> conftest.two
2552 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2553 test -s conftest.one
&& test -s conftest.two
&&
2554 test -s conftest.dir
/conftest.one
&&
2555 test -s conftest.dir
/conftest.two
2557 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2570 rm -rf conftest.one conftest.two conftest.dir
2573 if test "${ac_cv_path_install+set}" = set; then
2574 INSTALL
=$ac_cv_path_install
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for INSTALL within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 INSTALL
=$ac_install_sh
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2584 $as_echo "$INSTALL" >&6; }
2586 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2587 # It thinks the first close brace ends the variable substitution.
2588 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2590 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2592 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2595 $as_echo_n "checking whether build environment is sane... " >&6; }
2598 echo timestamp
> conftest.
file
2599 # Reject unsafe characters in $srcdir or the absolute working directory
2600 # name. Accept space and tab only in the latter.
2604 *[\\\"\#\$\&\'\`$am_lf]*)
2605 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2609 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2612 # Do `set' in a subshell so we don't clobber the current shell's
2613 # arguments. Must try -L first in case configure is actually a
2614 # symlink; some systems play weird games with the mod time of symlinks
2615 # (eg FreeBSD returns the mod time of the symlink's containing
2618 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2619 if test "$*" = "X"; then
2621 set X
`ls -t "$srcdir/configure" conftest.file`
2624 if test "$*" != "X $srcdir/configure conftest.file" \
2625 && test "$*" != "X conftest.file $srcdir/configure"; then
2627 # If neither matched, then we have a broken ls. This can happen
2628 # if, for instance, CONFIG_SHELL is bash and it inherits a
2629 # broken ls alias from the environment. This has actually
2630 # happened. Such a system could not be considered "sane".
2631 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2632 alias in your environment" "$LINENO" 5
2635 test "$2" = conftest.
file
2641 as_fn_error $?
"newly created file is older than distributed files!
2642 Check your system clock" "$LINENO" 5
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645 $as_echo "yes" >&6; }
2646 test "$program_prefix" != NONE
&&
2647 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2648 # Use a double $ so make ignores it.
2649 test "$program_suffix" != NONE
&&
2650 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2651 # Double any \ or $.
2652 # By default was `s,x,x', remove it if useless.
2653 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2654 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2656 # expand $ac_aux_dir to an absolute path
2657 am_aux_dir
=`cd $ac_aux_dir && pwd`
2659 if test x
"${MISSING+set}" != xset
; then
2662 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2664 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2667 # Use eval to expand $SHELL
2668 if eval "$MISSING --run true"; then
2669 am_missing_run
="$MISSING --run "
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2673 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2676 if test x
"${install_sh}" != xset
; then
2679 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2681 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2685 # Installed binaries are usually stripped using `strip' when the user
2686 # run `make install-strip'. However `strip' might not be the right
2687 # tool to use in cross-compilation environments, therefore Automake
2688 # will honor the `STRIP' environment variable to overrule this program.
2689 if test "$cross_compiling" != no
; then
2690 if test -n "$ac_tool_prefix"; then
2691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2692 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_STRIP+:} false
; then :
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$STRIP"; then
2699 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir
=.
2706 for ac_exec_ext
in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 STRIP
=$ac_cv_prog_STRIP
2719 if test -n "$STRIP"; then
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2721 $as_echo "$STRIP" >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2729 if test -z "$ac_cv_prog_STRIP"; then
2731 # Extract the first word of "strip", so it can be a program name with args.
2732 set dummy strip
; ac_word
=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2736 $as_echo_n "(cached) " >&6
2738 if test -n "$ac_ct_STRIP"; then
2739 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2741 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir
=.
2746 for ac_exec_ext
in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_ac_ct_STRIP
="strip"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2759 if test -n "$ac_ct_STRIP"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2761 $as_echo "$ac_ct_STRIP" >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2767 if test "x$ac_ct_STRIP" = x
; then
2770 case $cross_compiling:$ac_tool_warned in
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2774 ac_tool_warned
=yes ;;
2779 STRIP
="$ac_cv_prog_STRIP"
2783 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2786 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2787 if test -z "$MKDIR_P"; then
2788 if ${ac_cv_path_mkdir+:} false
; then :
2789 $as_echo_n "(cached) " >&6
2791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2792 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2795 test -z "$as_dir" && as_dir
=.
2796 for ac_prog
in mkdir gmkdir
; do
2797 for ac_exec_ext
in '' $ac_executable_extensions; do
2798 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2800 'mkdir (GNU coreutils) '* | \
2801 'mkdir (coreutils) '* | \
2802 'mkdir (fileutils) '4.1*)
2803 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2813 test -d .
/--version && rmdir .
/--version
2814 if test "${ac_cv_path_mkdir+set}" = set; then
2815 MKDIR_P
="$ac_cv_path_mkdir -p"
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for MKDIR_P within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
2821 MKDIR_P
="$ac_install_sh -d"
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2825 $as_echo "$MKDIR_P" >&6; }
2829 [\\/$
]* | ?
:[\\/]*) ;;
2830 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2833 for ac_prog
in gawk mawk nawk
awk
2835 # Extract the first word of "$ac_prog", so it can be a program name with args.
2836 set dummy
$ac_prog; ac_word
=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_AWK+:} false
; then :
2840 $as_echo_n "(cached) " >&6
2842 if test -n "$AWK"; then
2843 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir
=.
2850 for ac_exec_ext
in '' $ac_executable_extensions; do
2851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2852 ac_cv_prog_AWK
="$ac_prog"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 if test -n "$AWK"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2865 $as_echo "$AWK" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2872 test -n "$AWK" && break
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2876 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2878 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2879 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2880 $as_echo_n "(cached) " >&6
2882 cat >conftest.
make <<\_ACEOF
2885 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2887 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2888 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2890 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2892 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2896 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2898 $as_echo "yes" >&6; }
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 SET_MAKE
="MAKE=${MAKE-make}"
2906 rm -rf .tst
2>/dev
/null
2907 mkdir .tst
2>/dev
/null
2908 if test -d .tst
; then
2913 rmdir .tst
2>/dev
/null
2915 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2916 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2917 # is not polluted with repeated "-I."
2918 am__isrc
=' -I$(srcdir)'
2919 # test to see if srcdir already configured
2920 if test -f $srcdir/config.status
; then
2921 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2925 # test whether we have cygpath
2926 if test -z "$CYGPATH_W"; then
2927 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2928 CYGPATH_W
='cygpath -w'
2935 # Define the identity of the package.
2940 # Some tools Automake needs.
2942 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2951 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2954 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2956 # We need awk for the "check" target. The system "awk" is bad on
2958 # Always define AMTAR for backward compatibility.
2960 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2962 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2969 ac_config_headers
="$ac_config_headers include/libratbox_config.h"
2973 DEPDIR
="${am__leading_dot}deps"
2975 ac_config_commands
="$ac_config_commands depfiles"
2978 am_make
=${MAKE-make}
2979 cat > confinc
<< 'END'
2981 @echo this is the am__doit target
2984 # If we don't find an include directive, just comment out the code.
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2986 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2990 # First try GNU make style include.
2991 echo "include confinc" > confmf
2992 # Ignore all kinds of additional output from `make'.
2993 case `$am_make -s -f confmf 2> /dev/null` in #(
2994 *the\ am__doit\ target
*)
3000 # Now try BSD make style include.
3001 if test "$am__include" = "#"; then
3002 echo '.include "confinc"' > confmf
3003 case `$am_make -s -f confmf 2> /dev/null` in #(
3004 *the\ am__doit\ target
*)
3005 am__include
=.include
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3014 $as_echo "$_am_result" >&6; }
3015 rm -f confinc confmf
3017 # Check whether --enable-dependency-tracking was given.
3018 if test "${enable_dependency_tracking+set}" = set; then :
3019 enableval
=$enable_dependency_tracking;
3022 if test "x$enable_dependency_tracking" != xno
; then
3023 am_depcomp
="$ac_aux_dir/depcomp"
3026 if test "x$enable_dependency_tracking" != xno; then
3036 ac_cpp
='$CPP $CPPFLAGS'
3037 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3040 if test -n "$ac_tool_prefix"; then
3041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3042 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_CC+:} false
; then :
3046 $as_echo_n "(cached) " >&6
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC
="$CC" # Let the user override the test.
3051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir
=.
3056 for ac_exec_ext
in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3079 if test -z "$ac_cv_prog_CC"; then
3081 # Extract the first word of "gcc", so it can be a program name with args.
3082 set dummy gcc
; ac_word
=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3086 $as_echo_n "(cached) " >&6
3088 if test -n "$ac_ct_CC"; then
3089 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir
=.
3096 for ac_exec_ext
in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_ac_ct_CC
="gcc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3117 if test "x$ac_ct_CC" = x
; then
3120 case $cross_compiling:$ac_tool_warned in
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124 ac_tool_warned
=yes ;;
3132 if test -z "$CC"; then
3133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3135 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_CC+:} false
; then :
3139 $as_echo_n "(cached) " >&6
3141 if test -n "$CC"; then
3142 ac_cv_prog_CC
="$CC" # Let the user override the test.
3144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3148 test -z "$as_dir" && as_dir
=.
3149 for ac_exec_ext
in '' $ac_executable_extensions; do
3150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3151 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 if test -n "$CC"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3173 if test -z "$CC"; then
3174 # Extract the first word of "cc", so it can be a program name with args.
3175 set dummy cc
; ac_word
=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_CC+:} false
; then :
3179 $as_echo_n "(cached) " >&6
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC
="$CC" # Let the user override the test.
3185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir
=.
3190 for ac_exec_ext
in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193 ac_prog_rejected
=yes
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 if test $ac_prog_rejected = yes; then
3205 # We found a bogon in the path, so make sure we never use it.
3206 set dummy
$ac_cv_prog_CC
3208 if test $# != 0; then
3209 # We chose a different compiler from the bogus one.
3210 # However, it has the same basename, so the bogon will be chosen
3211 # first if we set CC to just the basename; use the full file name.
3213 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3219 if test -n "$CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3221 $as_echo "$CC" >&6; }
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 for ac_prog
in cl.exe
3233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3234 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false
; then :
3238 $as_echo_n "(cached) " >&6
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC
="$CC" # Let the user override the test.
3243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir
=.
3248 for ac_exec_ext
in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261 if test -n "$CC"; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263 $as_echo "$CC" >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3270 test -n "$CC" && break
3273 if test -z "$CC"; then
3275 for ac_prog
in cl.exe
3277 # Extract the first word of "$ac_prog", so it can be a program name with args.
3278 set dummy
$ac_prog; ac_word
=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3282 $as_echo_n "(cached) " >&6
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3291 test -z "$as_dir" && as_dir
=.
3292 for ac_exec_ext
in '' $ac_executable_extensions; do
3293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294 ac_cv_prog_ac_ct_CC
="$ac_prog"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3305 if test -n "$ac_ct_CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307 $as_echo "$ac_ct_CC" >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3314 test -n "$ac_ct_CC" && break
3317 if test "x$ac_ct_CC" = x
; then
3320 case $cross_compiling:$ac_tool_warned in
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324 ac_tool_warned
=yes ;;
3333 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error $?
"no acceptable C compiler found in \$PATH
3336 See \`config.log' for more details" "$LINENO" 5; }
3338 # Provide some information about the compiler.
3339 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3342 for ac_option
in --version -v -V -qversion; do
3343 { { ac_try
="$ac_compiler $ac_option >&5"
3345 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3352 if test -s conftest.err; then
3354 ... rest of stderr output deleted ...
3355 10q' conftest.err >conftest.er1
3356 cat conftest.er1 >&5
3358 rm -f conftest.er1 conftest.err
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3374 ac_clean_files_save=$ac_clean_files
3375 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3376 # Try to create an executable without -o first, disregard a.out.
3377 # It will help us diagnose broken compilers, and finding out an intuition
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380 $as_echo_n "checking whether the C compiler works... " >&6; }
3381 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3383 # The possible output files:
3384 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3387 for ac_file in $ac_files
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3396 if { { ac_try="$ac_link_default"
3398 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3399 *) ac_try_echo
=$ac_try;;
3401 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link_default") 2>&5
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
3407 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3408 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3409 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3410 # so that the user can short-circuit this test for compilers unknown to
3412 for ac_file
in $ac_files ''
3414 test -f "$ac_file" || continue
3416 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
3419 # We found the default executable, but exeext='' is most
3423 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3425 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427 # We set ac_cv_exeext here because the later test for it is not
3428 # safe: cross compilers may not add the suffix if given an `-o'
3429 # argument, so we may need to know it at that point already.
3430 # Even if this section looks crufty: it has the advantage of
3437 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3442 if test -z "$ac_file"; then :
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 $as_echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.
$ac_ext >&5
3448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error
77 "C compiler cannot create executables
3451 See \`config.log' for more details" "$LINENO" 5; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454 $as_echo "yes" >&6; }
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3457 $as_echo_n "checking for C compiler default output file name... " >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3459 $as_echo "$ac_file" >&6; }
3460 ac_exeext
=$ac_cv_exeext
3462 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3463 ac_clean_files
=$ac_clean_files_save
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3465 $as_echo_n "checking for suffix of executables... " >&6; }
3466 if { { ac_try
="$ac_link"
3468 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_link") 2>&5
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }; then :
3477 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3478 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3479 # work properly (i.e., refer to `conftest.exe'), while it won't with
3481 for ac_file
in conftest.exe conftest conftest.
*; do
3482 test -f "$ac_file" || continue
3484 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3485 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3494 See \`config.log' for more details" "$LINENO" 5; }
3496 rm -f conftest conftest
$ac_cv_exeext
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3498 $as_echo "$ac_cv_exeext" >&6; }
3500 rm -f conftest.
$ac_ext
3501 EXEEXT
=$ac_cv_exeext
3503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3509 FILE *f = fopen ("conftest.out", "w");
3510 return ferror (f) || fclose (f) != 0;
3516 ac_clean_files
="$ac_clean_files conftest.out"
3517 # Check that the compiler produces executables we can run. If not, either
3518 # the compiler is broken, or we cross compile.
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3520 $as_echo_n "checking whether we are cross compiling... " >&6; }
3521 if test "$cross_compiling" != yes; then
3522 { { ac_try
="$ac_link"
3524 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_link") 2>&5
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }
3533 if { ac_try='./conftest$ac_cv_exeext'
3534 { { case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3536 *) ac_try_echo
=$ac_try;;
3538 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_try") 2>&5
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; }; then
3546 if test "$cross_compiling" = maybe
; then
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error $?
"cannot run C compiled programs.
3552 If you meant to cross compile, use \`--host'.
3553 See \`config.log' for more details" "$LINENO" 5; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3558 $as_echo "$cross_compiling" >&6; }
3560 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3561 ac_clean_files
=$ac_clean_files_save
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3563 $as_echo_n "checking for suffix of object files... " >&6; }
3564 if ${ac_cv_objext+:} false
; then :
3565 $as_echo_n "(cached) " >&6
3567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3578 rm -f conftest.o conftest.obj
3579 if { { ac_try
="$ac_compile"
3581 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_compile") 2>&5
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
3590 for ac_file in conftest.o conftest.obj conftest.*; do
3591 test -f "$ac_file" || continue;
3593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3594 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3599 $as_echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3605 See \
`config.log' for more details" "$LINENO" 5; }
3607 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3610 $as_echo "$ac_cv_objext" >&6; }
3611 OBJEXT=$ac_cv_objext
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3614 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3615 if ${ac_cv_c_compiler_gnu+:} false; then :
3616 $as_echo_n "(cached) " >&6
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3632 if ac_fn_c_try_compile "$LINENO"; then :
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3642 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3643 if test $ac_compiler_gnu = yes; then
3648 ac_test_CFLAGS=${CFLAGS+set}
3649 ac_save_CFLAGS=$CFLAGS
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3651 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3652 if ${ac_cv_prog_cc_g+:} false; then :
3653 $as_echo_n "(cached) " >&6
3655 ac_save_c_werror_flag=$ac_c_werror_flag
3656 ac_c_werror_flag=yes
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3670 if ac_fn_c_try_compile "$LINENO"; then :
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3685 if ac_fn_c_try_compile "$LINENO"; then :
3688 ac_c_werror_flag=$ac_save_c_werror_flag
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3701 if ac_fn_c_try_compile "$LINENO"; then :
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709 ac_c_werror_flag=$ac_save_c_werror_flag
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3712 $as_echo "$ac_cv_prog_cc_g" >&6; }
3713 if test "$ac_test_CFLAGS" = set; then
3714 CFLAGS=$ac_save_CFLAGS
3715 elif test $ac_cv_prog_cc_g = yes; then
3716 if test "$GCC" = yes; then
3722 if test "$GCC" = yes; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3729 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3730 if ${ac_cv_prog_cc_c89+:} false; then :
3731 $as_echo_n "(cached) " >&6
3733 ac_cv_prog_cc_c89=no
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3739 #include <sys/types.h>
3740 #include <sys/stat.h>
3741 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3742 struct buf { int x; };
3743 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3744 static char *e (p, i)
3750 static char *f (char * (*g) (char **, int), char **p, ...)
3755 s = g (p, va_arg (v,int));
3760 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3761 function prototypes and stuff, but not '\xHH' hex character constants.
3762 These don't provoke an error unfortunately, instead are silently treated
3763 as 'x'. The following induces an error, until -std is added to get
3764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3765 array size at least. It's necessary to write '\x00'==0 to get something
3766 that's true only with -std. */
3767 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3769 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3770 inside strings and character constants. */
3772 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3774 int test (int i, double x);
3775 struct s1 {int (*f) (int a);};
3776 struct s2 {int (*f) (double a);};
3777 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3783 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3788 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3789 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3791 CC="$ac_save_CC $ac_arg"
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793 ac_cv_prog_cc_c89=$ac_arg
3795 rm -f core conftest.err conftest.$ac_objext
3796 test "x$ac_cv_prog_cc_c89" != "xno" && break
3798 rm -f conftest.$ac_ext
3803 case "x$ac_cv_prog_cc_c89" in
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3806 $as_echo "none needed" >&6; } ;;
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3809 $as_echo "unsupported" >&6; } ;;
3811 CC="$CC $ac_cv_prog_cc_c89"
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3813 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3815 if test "x$ac_cv_prog_cc_c89" != xno; then :
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3825 depcc="$CC" am_compiler_list=
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3828 $as_echo_n "checking dependency style of $depcc... " >&6; }
3829 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3830 $as_echo_n "(cached) " >&6
3832 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3833 # We make a subdir and do the tests there. Otherwise we can end up
3834 # making bogus files that we don't know about and never remove. For
3835 # instance it was reported that on HP-UX the gcc test will end up
3836 # making a dummy file named `D
' -- because `-MD' means
`put the output
3839 # Copy depcomp to subdir because otherwise we won't find it if we're
3840 # using a relative directory.
3841 cp "$am_depcomp" conftest.dir
3843 # We will build objects and dependencies in a subdirectory because
3844 # it helps to detect inapplicable dependency modes. For instance
3845 # both Tru64's cc and ICC support -MD to output dependencies as a
3846 # side effect of compilation, but ICC will put the dependencies in
3847 # the current directory while Tru64 will put them in the object
3851 am_cv_CC_dependencies_compiler_type=none
3852 if test "$am_compiler_list" = ""; then
3853 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
3856 case " $depcc " in #(
3857 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3860 for depmode in $am_compiler_list; do
3861 # Setup a source with many dependencies, because some compilers
3862 # like to wrap large dependency lists on column 80 (with \), and
3863 # we should not choose a depcomp mode which is confused by this.
3865 # We need to recreate these files for each test, as the compiler may
3866 # overwrite some of them when testing with obscure command lines.
3867 # This happens at least with the AIX C compiler.
3869 for i in 1 2 3 4 5 6; do
3870 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3871 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
3872 # Solaris 8's
{/usr
,}/bin
/sh.
3873 touch sub
/conftst
$i.h
3875 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3877 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3878 # mode. It turns out that the SunPro C++ compiler does not properly
3879 # handle `-M -o', and we need to detect this. Also, some Intel
3880 # versions had trouble with output in subdirs
3881 am__obj
=sub
/conftest.
${OBJEXT-o}
3882 am__minus_obj
="-o $am__obj"
3885 # This depmode causes a compiler race in universal mode.
3886 test "$am__universal" = false
|| continue
3889 # after this tag, mechanisms are not by side-effect, so they'll
3890 # only be used when explicitly requested
3891 if test "x$enable_dependency_tracking" = xyes
; then
3897 msvisualcpp
| msvcmsys
)
3898 # This compiler won't grok `-c -o', but also, the minuso test has
3899 # not run yet. These depmodes are late enough in the game, and
3900 # so weak that their functioning should not be impacted.
3901 am__obj
=conftest.
${OBJEXT-o}
3906 if depmode
=$depmode \
3907 source=sub
/conftest.c object
=$am__obj \
3908 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3909 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
3910 >/dev
/null
2>conftest.err
&&
3911 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3912 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3913 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
3914 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3915 # icc doesn't choke on unknown options, it will just issue warnings
3916 # or remarks (even with -Werror). So we grep stderr for any message
3917 # that says an option was ignored or not supported.
3918 # When given -MP, icc 7.0 and 7.1 complain thusly:
3919 # icc: Command line warning: ignoring option '-M'; no argument required
3920 # The diagnosis changed in icc 8.0:
3921 # icc: Command line remark: option '-MP' not supported
3922 if (grep 'ignoring option' conftest.err
||
3923 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3924 am_cv_CC_dependencies_compiler_type
=$depmode
3933 am_cv_CC_dependencies_compiler_type
=none
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3938 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3939 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3942 test "x$enable_dependency_tracking" != xno \
3943 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3945 am__fastdepCC_FALSE
='#'
3947 am__fastdepCC_TRUE
='#'
3948 am__fastdepCC_FALSE
=
3954 ac_cpp
='$CPP $CPPFLAGS'
3955 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3959 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3960 # On Suns, sometimes $CPP names a directory.
3961 if test -n "$CPP" && test -d "$CPP"; then
3964 if test -z "$CPP"; then
3965 if ${ac_cv_prog_CPP+:} false
; then :
3966 $as_echo_n "(cached) " >&6
3968 # Double quotes because CPP needs to be expanded
3969 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3972 for ac_c_preproc_warn_flag
in '' yes
3974 # Use a header file that comes with gcc, so configuring glibc
3975 # with a fresh cross-compiler works.
3976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3977 # <limits.h> exists even on freestanding compilers.
3978 # On the NeXT, cc -E runs the code through the compiler's parser,
3979 # not just through cpp. "Syntax error" is here to catch this case.
3980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3983 # include <limits.h>
3985 # include <assert.h>
3989 if ac_fn_c_try_cpp
"$LINENO"; then :
3992 # Broken: fails on valid input.
3995 rm -f conftest.err conftest.i conftest.
$ac_ext
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 #include <ac_nonexistent.h>
4003 if ac_fn_c_try_cpp
"$LINENO"; then :
4004 # Broken: success on invalid input.
4007 # Passes both tests.
4011 rm -f conftest.err conftest.i conftest.
$ac_ext
4014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4015 rm -f conftest.i conftest.err conftest.
$ac_ext
4016 if $ac_preproc_ok; then :
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4029 $as_echo "$CPP" >&6; }
4031 for ac_c_preproc_warn_flag
in '' yes
4033 # Use a header file that comes with gcc, so configuring glibc
4034 # with a fresh cross-compiler works.
4035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4036 # <limits.h> exists even on freestanding compilers.
4037 # On the NeXT, cc -E runs the code through the compiler's parser,
4038 # not just through cpp. "Syntax error" is here to catch this case.
4039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4042 # include <limits.h>
4044 # include <assert.h>
4048 if ac_fn_c_try_cpp
"$LINENO"; then :
4051 # Broken: fails on valid input.
4054 rm -f conftest.err conftest.i conftest.
$ac_ext
4056 # OK, works on sane cases. Now check whether nonexistent headers
4057 # can be detected and how.
4058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 #include <ac_nonexistent.h>
4062 if ac_fn_c_try_cpp
"$LINENO"; then :
4063 # Broken: success on invalid input.
4066 # Passes both tests.
4070 rm -f conftest.err conftest.i conftest.
$ac_ext
4073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4074 rm -f conftest.i conftest.err conftest.
$ac_ext
4075 if $ac_preproc_ok; then :
4078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4081 See \`config.log' for more details" "$LINENO" 5; }
4085 ac_cpp
='$CPP $CPPFLAGS'
4086 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4092 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4093 if ${ac_cv_path_GREP+:} false
; then :
4094 $as_echo_n "(cached) " >&6
4096 if test -z "$GREP"; then
4097 ac_path_GREP_found
=false
4098 # Loop through the user's path and test for each of PROGNAME-LIST
4099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4100 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4103 test -z "$as_dir" && as_dir
=.
4104 for ac_prog
in grep ggrep
; do
4105 for ac_exec_ext
in '' $ac_executable_extensions; do
4106 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4107 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4108 # Check for GNU ac_path_GREP and select it if it is found.
4109 # Check for GNU $ac_path_GREP
4110 case `"$ac_path_GREP" --version 2>&1` in
4112 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4115 $as_echo_n 0123456789 >"conftest.in"
4118 cat "conftest.in" "conftest.in" >"conftest.tmp"
4119 mv "conftest.tmp" "conftest.in"
4120 cp "conftest.in" "conftest.nl"
4121 $as_echo 'GREP' >> "conftest.nl"
4122 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4123 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4124 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4125 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4126 # Best one so far, save it but keep looking for a better one
4127 ac_cv_path_GREP
="$ac_path_GREP"
4128 ac_path_GREP_max
=$ac_count
4130 # 10*(2^10) chars as input seems more than enough
4131 test $ac_count -gt 10 && break
4133 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4136 $ac_path_GREP_found && break 3
4141 if test -z "$ac_cv_path_GREP"; then
4142 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145 ac_cv_path_GREP
=$GREP
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4150 $as_echo "$ac_cv_path_GREP" >&6; }
4151 GREP
="$ac_cv_path_GREP"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4155 $as_echo_n "checking for egrep... " >&6; }
4156 if ${ac_cv_path_EGREP+:} false
; then :
4157 $as_echo_n "(cached) " >&6
4159 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4160 then ac_cv_path_EGREP
="$GREP -E"
4162 if test -z "$EGREP"; then
4163 ac_path_EGREP_found
=false
4164 # Loop through the user's path and test for each of PROGNAME-LIST
4165 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4166 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4169 test -z "$as_dir" && as_dir
=.
4170 for ac_prog
in egrep; do
4171 for ac_exec_ext
in '' $ac_executable_extensions; do
4172 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4173 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4174 # Check for GNU ac_path_EGREP and select it if it is found.
4175 # Check for GNU $ac_path_EGREP
4176 case `"$ac_path_EGREP" --version 2>&1` in
4178 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4181 $as_echo_n 0123456789 >"conftest.in"
4184 cat "conftest.in" "conftest.in" >"conftest.tmp"
4185 mv "conftest.tmp" "conftest.in"
4186 cp "conftest.in" "conftest.nl"
4187 $as_echo 'EGREP' >> "conftest.nl"
4188 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4189 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4190 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4191 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4192 # Best one so far, save it but keep looking for a better one
4193 ac_cv_path_EGREP
="$ac_path_EGREP"
4194 ac_path_EGREP_max
=$ac_count
4196 # 10*(2^10) chars as input seems more than enough
4197 test $ac_count -gt 10 && break
4199 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4202 $ac_path_EGREP_found && break 3
4207 if test -z "$ac_cv_path_EGREP"; then
4208 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4211 ac_cv_path_EGREP
=$EGREP
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4217 $as_echo "$ac_cv_path_EGREP" >&6; }
4218 EGREP
="$ac_cv_path_EGREP"
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4222 $as_echo_n "checking for ANSI C header files... " >&6; }
4223 if ${ac_cv_header_stdc+:} false
; then :
4224 $as_echo_n "(cached) " >&6
4226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4241 if ac_fn_c_try_compile
"$LINENO"; then :
4242 ac_cv_header_stdc
=yes
4244 ac_cv_header_stdc
=no
4246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4248 if test $ac_cv_header_stdc = yes; then
4249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4256 $EGREP "memchr" >/dev
/null
2>&1; then :
4259 ac_cv_header_stdc
=no
4265 if test $ac_cv_header_stdc = yes; then
4266 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4273 $EGREP "free" >/dev
/null
2>&1; then :
4276 ac_cv_header_stdc
=no
4282 if test $ac_cv_header_stdc = yes; then
4283 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4284 if test "$cross_compiling" = yes; then :
4287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4291 #if ((' ' & 0x0FF) == 0x020)
4292 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4293 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4295 # define ISLOWER(c) \
4296 (('a' <= (c) && (c) <= 'i') \
4297 || ('j' <= (c) && (c) <= 'r') \
4298 || ('s' <= (c) && (c) <= 'z'))
4299 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4307 for (i = 0; i < 256; i++)
4308 if (XOR (islower (i), ISLOWER (i))
4309 || toupper (i) != TOUPPER (i))
4314 if ac_fn_c_try_run
"$LINENO"; then :
4317 ac_cv_header_stdc
=no
4319 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4320 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4326 $as_echo "$ac_cv_header_stdc" >&6; }
4327 if test $ac_cv_header_stdc = yes; then
4329 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4333 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4334 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4335 inttypes.h stdint.h unistd.h
4337 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4338 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4340 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4341 cat >>confdefs.h
<<_ACEOF
4342 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4351 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4352 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4359 if test "$MINIX" = yes; then
4361 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4364 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4367 $as_echo "#define _MINIX 1" >>confdefs.h
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4373 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4374 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4375 $as_echo_n "(cached) " >&6
4377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4380 # define __EXTENSIONS__ 1
4381 $ac_includes_default
4390 if ac_fn_c_try_compile
"$LINENO"; then :
4391 ac_cv_safe_to_define___extensions__
=yes
4393 ac_cv_safe_to_define___extensions__
=no
4395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4398 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4399 test $ac_cv_safe_to_define___extensions__ = yes &&
4400 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4402 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4404 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4406 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4408 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4414 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4415 if ${ac_cv_prog_cc_c99+:} false
; then :
4416 $as_echo_n "(cached) " >&6
4418 ac_cv_prog_cc_c99
=no
4420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4423 #include <stdbool.h>
4428 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4429 #define debug(...) fprintf (stderr, __VA_ARGS__)
4430 #define showlist(...) puts (#__VA_ARGS__)
4431 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4433 test_varargs_macros (void)
4438 debug ("X = %d\n", x);
4439 showlist (The first, second, and third items.);
4440 report (x>y, "x is %d but y is %d", x, y);
4443 // Check long long types.
4444 #define BIG64 18446744073709551615ull
4445 #define BIG32 4294967295ul
4446 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4448 your preprocessor is broken;
4452 your preprocessor is broken;
4454 static long long int bignum = -9223372036854775807LL;
4455 static unsigned long long int ubignum = BIG64;
4457 struct incomplete_array
4465 const wchar_t *name;
4469 typedef const char *ccp;
4472 test_restrict (ccp restrict text)
4474 // See if C++-style comments work.
4475 // Iterate through items via the restricted pointer.
4476 // Also check for declarations in for loops.
4477 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4482 // Check varargs and va_copy.
4484 test_varargs (const char *format, ...)
4487 va_start (args, format);
4489 va_copy (args_copy, args);
4500 str = va_arg (args_copy, const char *);
4503 number = va_arg (args_copy, int);
4506 fnumber = va_arg (args_copy, double);
4521 _Bool success = false;
4524 if (test_restrict ("String literal") == 0)
4526 char *restrict newvar = "Another string";
4529 test_varargs ("s, d' f .", "string", 65, 34.234);
4530 test_varargs_macros ();
4532 // Check flexible array members.
4533 struct incomplete_array *ia =
4534 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4536 for (int i = 0; i < ia->datasize; ++i)
4537 ia->data[i] = i * 1.234;
4539 // Check named initializers.
4540 struct named_init ni = {
4542 .name = L"Test wide string",
4543 .average = 543.34343,
4548 int dynamic_array[ni.number];
4549 dynamic_array[ni.number - 1] = 543;
4551 // work around unused variable warnings
4552 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4553 || dynamic_array[ni.number - 1] != 543);
4559 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
4561 CC
="$ac_save_CC $ac_arg"
4562 if ac_fn_c_try_compile
"$LINENO"; then :
4563 ac_cv_prog_cc_c99
=$ac_arg
4565 rm -f core conftest.err conftest.
$ac_objext
4566 test "x$ac_cv_prog_cc_c99" != "xno" && break
4568 rm -f conftest.
$ac_ext
4573 case "x$ac_cv_prog_cc_c99" in
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4576 $as_echo "none needed" >&6; } ;;
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4579 $as_echo "unsupported" >&6; } ;;
4581 CC
="$CC $ac_cv_prog_cc_c99"
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4583 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4585 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4591 if test x
"$ac_cv_prog_cc_c99" = "xno"; then
4592 as_fn_error $?
"ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4598 $as_echo_n "checking for egrep... " >&6; }
4599 if ${ac_cv_path_EGREP+:} false
; then :
4600 $as_echo_n "(cached) " >&6
4602 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4603 then ac_cv_path_EGREP
="$GREP -E"
4605 if test -z "$EGREP"; then
4606 ac_path_EGREP_found
=false
4607 # Loop through the user's path and test for each of PROGNAME-LIST
4608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4609 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4612 test -z "$as_dir" && as_dir
=.
4613 for ac_prog
in egrep; do
4614 for ac_exec_ext
in '' $ac_executable_extensions; do
4615 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4616 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4617 # Check for GNU ac_path_EGREP and select it if it is found.
4618 # Check for GNU $ac_path_EGREP
4619 case `"$ac_path_EGREP" --version 2>&1` in
4621 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4624 $as_echo_n 0123456789 >"conftest.in"
4627 cat "conftest.in" "conftest.in" >"conftest.tmp"
4628 mv "conftest.tmp" "conftest.in"
4629 cp "conftest.in" "conftest.nl"
4630 $as_echo 'EGREP' >> "conftest.nl"
4631 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4632 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4633 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4634 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4635 # Best one so far, save it but keep looking for a better one
4636 ac_cv_path_EGREP
="$ac_path_EGREP"
4637 ac_path_EGREP_max
=$ac_count
4639 # 10*(2^10) chars as input seems more than enough
4640 test $ac_count -gt 10 && break
4642 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4645 $ac_path_EGREP_found && break 3
4650 if test -z "$ac_cv_path_EGREP"; then
4651 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4654 ac_cv_path_EGREP
=$EGREP
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4660 $as_echo "$ac_cv_path_EGREP" >&6; }
4661 EGREP
="$ac_cv_path_EGREP"
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4666 if ${ac_cv_path_SED+:} false
; then :
4667 $as_echo_n "(cached) " >&6
4669 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4670 for ac_i
in 1 2 3 4 5 6 7; do
4671 ac_script
="$ac_script$as_nl$ac_script"
4673 echo "$ac_script" 2>/dev
/null
| sed 99q
>conftest.
sed
4674 { ac_script
=; unset ac_script
;}
4675 if test -z "$SED"; then
4676 ac_path_SED_found
=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4682 test -z "$as_dir" && as_dir
=.
4683 for ac_prog
in sed gsed
; do
4684 for ac_exec_ext
in '' $ac_executable_extensions; do
4685 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4686 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4687 # Check for GNU ac_path_SED and select it if it is found.
4688 # Check for GNU $ac_path_SED
4689 case `"$ac_path_SED" --version 2>&1` in
4691 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4694 $as_echo_n 0123456789 >"conftest.in"
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo '' >> "conftest.nl"
4701 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4702 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4703 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4704 if test $ac_count -gt ${ac_path_SED_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_SED
="$ac_path_SED"
4707 ac_path_SED_max
=$ac_count
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4712 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4715 $ac_path_SED_found && break 3
4720 if test -z "$ac_cv_path_SED"; then
4721 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4729 $as_echo "$ac_cv_path_SED" >&6; }
4730 SED
="$ac_cv_path_SED"
4738 # Check whether --enable-static was given.
4739 if test "${enable_static+set}" = set; then :
4740 enableval
=$enable_static; p
=${PACKAGE-default}
4742 yes) enable_static
=yes ;;
4743 no
) enable_static
=no
;;
4746 # Look at the argument we got. We use all the common list separators.
4747 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4748 for pkg
in $enableval; do
4750 if test "X$pkg" = "X$p"; then
4769 # Check whether --enable-shared was given.
4770 if test "${enable_shared+set}" = set; then :
4771 enableval
=$enable_shared; p
=${PACKAGE-default}
4773 yes) enable_shared
=yes ;;
4774 no
) enable_shared
=no
;;
4777 # Look at the argument we got. We use all the common list separators.
4778 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4779 for pkg
in $enableval; do
4781 if test "X$pkg" = "X$p"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4802 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4803 # Check whether --enable-maintainer-mode was given.
4804 if test "${enable_maintainer_mode+set}" = set; then :
4805 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4807 USE_MAINTAINER_MODE
=no
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4811 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4812 if test $USE_MAINTAINER_MODE = yes; then
4813 MAINTAINER_MODE_TRUE
=
4814 MAINTAINER_MODE_FALSE
='#'
4816 MAINTAINER_MODE_TRUE
='#'
4817 MAINTAINER_MODE_FALSE
=
4820 MAINT
=$MAINTAINER_MODE_TRUE
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4825 $as_echo_n "checking for library containing strerror... " >&6; }
4826 if ${ac_cv_search_strerror+:} false
; then :
4827 $as_echo_n "(cached) " >&6
4829 ac_func_search_save_LIBS
=$LIBS
4830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4833 /* Override any GCC internal prototype to avoid an error.
4834 Use char because int might match the return type of a GCC
4835 builtin and then its argument prototype would still apply. */
4848 for ac_lib
in '' cposix
; do
4849 if test -z "$ac_lib"; then
4850 ac_res
="none required"
4853 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4855 if ac_fn_c_try_link
"$LINENO"; then :
4856 ac_cv_search_strerror
=$ac_res
4858 rm -f core conftest.err conftest.
$ac_objext \
4860 if ${ac_cv_search_strerror+:} false
; then :
4864 if ${ac_cv_search_strerror+:} false
; then :
4867 ac_cv_search_strerror
=no
4870 LIBS
=$ac_func_search_save_LIBS
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4873 $as_echo "$ac_cv_search_strerror" >&6; }
4874 ac_res
=$ac_cv_search_strerror
4875 if test "$ac_res" != no
; then :
4876 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4881 $as_echo_n "checking for inline... " >&6; }
4882 if ${ac_cv_c_inline+:} false
; then :
4883 $as_echo_n "(cached) " >&6
4886 for ac_kw
in inline __inline__ __inline
; do
4887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4891 static $ac_kw foo_t static_foo () {return 0; }
4892 $ac_kw foo_t foo () {return 0; }
4896 if ac_fn_c_try_compile
"$LINENO"; then :
4897 ac_cv_c_inline
=$ac_kw
4899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4900 test "$ac_cv_c_inline" != no
&& break
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4905 $as_echo "$ac_cv_c_inline" >&6; }
4907 case $ac_cv_c_inline in
4910 case $ac_cv_c_inline in
4912 *) ac_val
=$ac_cv_c_inline;;
4914 cat >>confdefs.h
<<_ACEOF
4916 #define inline $ac_val
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4923 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4924 if ${ac_cv_c_const+:} false
; then :
4925 $as_echo_n "(cached) " >&6
4927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4933 /* FIXME: Include the comments suggested by Paul. */
4935 /* Ultrix mips cc rejects this. */
4936 typedef int charset[2];
4938 /* SunOS 4.1.1 cc rejects this. */
4939 char const *const *pcpcc;
4941 /* NEC SVR4.0.2 mips cc rejects this. */
4942 struct point {int x, y;};
4943 static struct point const zero = {0,0};
4944 /* AIX XL C 1.02.0.0 rejects this.
4945 It does not let you subtract one const X* pointer from another in
4946 an arm of an if-expression whose if-part is not a constant
4948 const char *g = "string";
4949 pcpcc = &g + (g ? g-g : 0);
4950 /* HPUX 7.0 cc rejects these. */
4952 ppc = (char**) pcpcc;
4953 pcpcc = (char const *const *) ppc;
4954 { /* SCO 3.2v4 cc rejects this. */
4956 char const *s = 0 ? (char *) 0 : (char const *) 0;
4961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4963 const int *foo = &x[0];
4966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4967 typedef const int *iptr;
4971 { /* AIX XL C 1.02.0.0 rejects this saying
4972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4973 struct s { int j; const int *ap[3]; };
4974 struct s *b; b->j = 5;
4976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4980 return !cs[0] && !zero.x;
4987 if ac_fn_c_try_compile
"$LINENO"; then :
4992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4995 $as_echo "$ac_cv_c_const" >&6; }
4996 if test $ac_cv_c_const = no
; then
4998 $as_echo "#define const /**/" >>confdefs.h
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5003 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5005 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5006 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5007 $as_echo_n "(cached) " >&6
5009 cat >conftest.
make <<\_ACEOF
5012 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5014 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5015 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5017 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5019 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5023 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025 $as_echo "yes" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5030 SET_MAKE
="MAKE=${MAKE-make}"
5034 # Extract the first word of "automake", so it can be a program name with args.
5035 set dummy automake
; ac_word
=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if ${ac_cv_path_AUTOMAKE+:} false
; then :
5039 $as_echo_n "(cached) " >&6
5043 ac_cv_path_AUTOMAKE
="$AUTOMAKE" # Let the user override the test with a path.
5046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5050 test -z "$as_dir" && as_dir
=.
5051 for ac_exec_ext
in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_path_AUTOMAKE
="$as_dir/$ac_word$ac_exec_ext"
5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 AUTOMAKE
=$ac_cv_path_AUTOMAKE
5065 if test -n "$AUTOMAKE"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
5067 $as_echo "$AUTOMAKE" >&6; }
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5074 # Extract the first word of "aclocal", so it can be a program name with args.
5075 set dummy aclocal
; ac_word
=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if ${ac_cv_path_ACLOCAL+:} false
; then :
5079 $as_echo_n "(cached) " >&6
5083 ac_cv_path_ACLOCAL
="$ACLOCAL" # Let the user override the test with a path.
5086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir
=.
5091 for ac_exec_ext
in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_ACLOCAL
="$as_dir/$ac_word$ac_exec_ext"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 ACLOCAL
=$ac_cv_path_ACLOCAL
5105 if test -n "$ACLOCAL"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5107 $as_echo "$ACLOCAL" >&6; }
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5114 # Extract the first word of "autoheader", so it can be a program name with args.
5115 set dummy autoheader
; ac_word
=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_path_AUTOHEADER+:} false
; then :
5119 $as_echo_n "(cached) " >&6
5123 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a path.
5126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5130 test -z "$as_dir" && as_dir
=.
5131 for ac_exec_ext
in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_path_AUTOHEADER
="$as_dir/$ac_word$ac_exec_ext"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 AUTOHEADER
=$ac_cv_path_AUTOHEADER
5145 if test -n "$AUTOHEADER"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5147 $as_echo "$AUTOHEADER" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5154 # Extract the first word of "as", so it can be a program name with args.
5155 set dummy as
; ac_word
=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_path_AS+:} false
; then :
5159 $as_echo_n "(cached) " >&6
5163 ac_cv_path_AS
="$AS" # Let the user override the test with a path.
5166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir
=.
5171 for ac_exec_ext
in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_path_AS
="$as_dir/$ac_word$ac_exec_ext"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 if test -n "$AS"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5187 $as_echo "$AS" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5194 # Extract the first word of "rm", so it can be a program name with args.
5195 set dummy
rm; ac_word
=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_path_RM+:} false
; then :
5199 $as_echo_n "(cached) " >&6
5203 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
5206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir
=.
5211 for ac_exec_ext
in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
5214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 if test -n "$RM"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5227 $as_echo "$RM" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5234 # Extract the first word of "cp", so it can be a program name with args.
5235 set dummy
cp; ac_word
=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_path_CP+:} false
; then :
5239 $as_echo_n "(cached) " >&6
5243 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
5246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5250 test -z "$as_dir" && as_dir
=.
5251 for ac_exec_ext
in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 if test -n "$CP"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5267 $as_echo "$CP" >&6; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5274 # Extract the first word of "mv", so it can be a program name with args.
5275 set dummy
mv; ac_word
=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if ${ac_cv_path_MV+:} false
; then :
5279 $as_echo_n "(cached) " >&6
5283 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
5286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5290 test -z "$as_dir" && as_dir
=.
5291 for ac_exec_ext
in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 if test -n "$MV"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5307 $as_echo "$MV" >&6; }
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310 $as_echo "no" >&6; }
5314 # Extract the first word of "ln", so it can be a program name with args.
5315 set dummy
ln; ac_word
=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if ${ac_cv_path_LN+:} false
; then :
5319 $as_echo_n "(cached) " >&6
5323 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
5326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5330 test -z "$as_dir" && as_dir
=.
5331 for ac_exec_ext
in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 if test -n "$LN"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5347 $as_echo "$LN" >&6; }
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350 $as_echo "no" >&6; }
5354 # Extract the first word of "touch", so it can be a program name with args.
5355 set dummy
touch; ac_word
=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if ${ac_cv_path_TOUCH+:} false
; then :
5359 $as_echo_n "(cached) " >&6
5363 ac_cv_path_TOUCH
="$TOUCH" # Let the user override the test with a path.
5366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5370 test -z "$as_dir" && as_dir
=.
5371 for ac_exec_ext
in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_path_TOUCH
="$as_dir/$ac_word$ac_exec_ext"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 TOUCH
=$ac_cv_path_TOUCH
5385 if test -n "$TOUCH"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5387 $as_echo "$TOUCH" >&6; }
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5395 ac_cpp
='$CPP $CPPFLAGS'
5396 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5404 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5409 macro_version
='2.2.6b'
5410 macro_revision
='1.3017'
5424 ltmain
="$ac_aux_dir/ltmain.sh"
5426 # Make sure we can run config.sub.
5427 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5428 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5431 $as_echo_n "checking build system type... " >&6; }
5432 if ${ac_cv_build+:} false
; then :
5433 $as_echo_n "(cached) " >&6
5435 ac_build_alias
=$build_alias
5436 test "x$ac_build_alias" = x
&&
5437 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5438 test "x$ac_build_alias" = x
&&
5439 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5440 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5441 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5445 $as_echo "$ac_cv_build" >&6; }
5446 case $ac_cv_build in
5448 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5451 ac_save_IFS
=$IFS; IFS
='-'
5457 # Remember, the first character of IFS is used to create $*,
5458 # except with old shells:
5461 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5465 $as_echo_n "checking host system type... " >&6; }
5466 if ${ac_cv_host+:} false
; then :
5467 $as_echo_n "(cached) " >&6
5469 if test "x$host_alias" = x
; then
5470 ac_cv_host
=$ac_cv_build
5472 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5473 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5478 $as_echo "$ac_cv_host" >&6; }
5481 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5484 ac_save_IFS
=$IFS; IFS
='-'
5490 # Remember, the first character of IFS is used to create $*,
5491 # except with old shells:
5494 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5498 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5499 if ${ac_cv_path_SED+:} false
; then :
5500 $as_echo_n "(cached) " >&6
5502 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
5503 for ac_i
in 1 2 3 4 5 6 7; do
5504 ac_script
="$ac_script$as_nl$ac_script"
5506 echo "$ac_script" 2>/dev
/null
| sed 99q
>conftest.
sed
5507 { ac_script
=; unset ac_script
;}
5508 if test -z "$SED"; then
5509 ac_path_SED_found
=false
5510 # Loop through the user's path and test for each of PROGNAME-LIST
5511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5515 test -z "$as_dir" && as_dir
=.
5516 for ac_prog
in sed gsed
; do
5517 for ac_exec_ext
in '' $ac_executable_extensions; do
5518 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5519 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5520 # Check for GNU ac_path_SED and select it if it is found.
5521 # Check for GNU $ac_path_SED
5522 case `"$ac_path_SED" --version 2>&1` in
5524 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5527 $as_echo_n 0123456789 >"conftest.in"
5530 cat "conftest.in" "conftest.in" >"conftest.tmp"
5531 mv "conftest.tmp" "conftest.in"
5532 cp "conftest.in" "conftest.nl"
5533 $as_echo '' >> "conftest.nl"
5534 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
5535 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
5536 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5537 if test $ac_count -gt ${ac_path_SED_max-0}; then
5538 # Best one so far, save it but keep looking for a better one
5539 ac_cv_path_SED
="$ac_path_SED"
5540 ac_path_SED_max
=$ac_count
5542 # 10*(2^10) chars as input seems more than enough
5543 test $ac_count -gt 10 && break
5545 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5548 $ac_path_SED_found && break 3
5553 if test -z "$ac_cv_path_SED"; then
5554 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5562 $as_echo "$ac_cv_path_SED" >&6; }
5563 SED
="$ac_cv_path_SED"
5566 test -z "$SED" && SED
=sed
5567 Xsed
="$SED -e 1s/^X//"
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5580 $as_echo_n "checking for fgrep... " >&6; }
5581 if ${ac_cv_path_FGREP+:} false
; then :
5582 $as_echo_n "(cached) " >&6
5584 if echo 'ab*c' | $GREP -F 'ab*c' >/dev
/null
2>&1
5585 then ac_cv_path_FGREP
="$GREP -F"
5587 if test -z "$FGREP"; then
5588 ac_path_FGREP_found
=false
5589 # Loop through the user's path and test for each of PROGNAME-LIST
5590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5591 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5594 test -z "$as_dir" && as_dir
=.
5595 for ac_prog
in fgrep
; do
5596 for ac_exec_ext
in '' $ac_executable_extensions; do
5597 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5598 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5599 # Check for GNU ac_path_FGREP and select it if it is found.
5600 # Check for GNU $ac_path_FGREP
5601 case `"$ac_path_FGREP" --version 2>&1` in
5603 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5606 $as_echo_n 0123456789 >"conftest.in"
5609 cat "conftest.in" "conftest.in" >"conftest.tmp"
5610 mv "conftest.tmp" "conftest.in"
5611 cp "conftest.in" "conftest.nl"
5612 $as_echo 'FGREP' >> "conftest.nl"
5613 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
5614 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
5615 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5616 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5617 # Best one so far, save it but keep looking for a better one
5618 ac_cv_path_FGREP
="$ac_path_FGREP"
5619 ac_path_FGREP_max
=$ac_count
5621 # 10*(2^10) chars as input seems more than enough
5622 test $ac_count -gt 10 && break
5624 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5627 $ac_path_FGREP_found && break 3
5632 if test -z "$ac_cv_path_FGREP"; then
5633 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5636 ac_cv_path_FGREP
=$FGREP
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5642 $as_echo "$ac_cv_path_FGREP" >&6; }
5643 FGREP
="$ac_cv_path_FGREP"
5646 test -z "$GREP" && GREP
=grep
5666 # Check whether --with-gnu-ld was given.
5667 if test "${with_gnu_ld+set}" = set; then :
5668 withval
=$with_gnu_ld; test "$withval" = no
|| with_gnu_ld
=yes
5674 if test "$GCC" = yes; then
5675 # Check if gcc -print-prog-name=ld gives a path.
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5677 $as_echo_n "checking for ld used by $CC... " >&6; }
5680 # gcc leaves a trailing carriage return which upsets mingw
5681 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5683 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5686 # Accept absolute paths.
5688 re_direlt
='/[^/][^/]*/\.\./'
5689 # Canonicalize the pathname of ld
5690 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5691 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev
/null
2>&1; do
5692 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5694 test -z "$LD" && LD
="$ac_prog"
5697 # If it fails, then pretend we aren't using GCC.
5701 # If it is relative, then search for the first ld in PATH.
5705 elif test "$with_gnu_ld" = yes; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5707 $as_echo_n "checking for GNU ld... " >&6; }
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5710 $as_echo_n "checking for non-GNU ld... " >&6; }
5712 if ${lt_cv_path_LD+:} false
; then :
5713 $as_echo_n "(cached) " >&6
5715 if test -z "$LD"; then
5716 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5717 for ac_dir
in $PATH; do
5719 test -z "$ac_dir" && ac_dir
=.
5720 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5721 lt_cv_path_LD
="$ac_dir/$ac_prog"
5722 # Check to see if the program is GNU ld. I'd rather use --version,
5723 # but apparently some variants of GNU ld only accept -v.
5724 # Break only if it was the GNU/non-GNU ld that we prefer.
5725 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5726 *GNU
* | *'with BFD'*)
5727 test "$with_gnu_ld" != no
&& break
5730 test "$with_gnu_ld" != yes && break
5737 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5742 if test -n "$LD"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5744 $as_echo "$LD" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5749 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5751 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5752 if ${lt_cv_prog_gnu_ld+:} false
; then :
5753 $as_echo_n "(cached) " >&6
5755 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5756 case `$LD -v 2>&1 </dev/null` in
5757 *GNU
* | *'with BFD'*)
5758 lt_cv_prog_gnu_ld
=yes
5761 lt_cv_prog_gnu_ld
=no
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5766 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5767 with_gnu_ld
=$lt_cv_prog_gnu_ld
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5778 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5779 if ${lt_cv_path_NM+:} false
; then :
5780 $as_echo_n "(cached) " >&6
5782 if test -n "$NM"; then
5783 # Let the user override the test.
5786 lt_nm_to_check
="${ac_tool_prefix}nm"
5787 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5788 lt_nm_to_check
="$lt_nm_to_check nm"
5790 for lt_tmp_nm
in $lt_nm_to_check; do
5791 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5792 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5794 test -z "$ac_dir" && ac_dir
=.
5795 tmp_nm
="$ac_dir/$lt_tmp_nm"
5796 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5797 # Check to see if the nm accepts a BSD-compat flag.
5798 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5799 # nm: unknown option "B" ignored
5800 # Tru64's nm complains that /dev/null is an invalid object file
5801 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5802 */dev
/null
* | *'Invalid file or object type'*)
5803 lt_cv_path_NM
="$tmp_nm -B"
5807 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5809 lt_cv_path_NM
="$tmp_nm -p"
5813 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5814 continue # so that we can try to find one that supports BSD flags
5823 : ${lt_cv_path_NM=no}
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5827 $as_echo "$lt_cv_path_NM" >&6; }
5828 if test "$lt_cv_path_NM" != "no"; then
5831 # Didn't find any BSD compatible name lister, look for dumpbin.
5832 if test -n "$ac_tool_prefix"; then
5833 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
5835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5836 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5840 $as_echo_n "(cached) " >&6
5842 if test -n "$DUMPBIN"; then
5843 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5849 test -z "$as_dir" && as_dir
=.
5850 for ac_exec_ext
in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 DUMPBIN
=$ac_cv_prog_DUMPBIN
5863 if test -n "$DUMPBIN"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5865 $as_echo "$DUMPBIN" >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5872 test -n "$DUMPBIN" && break
5875 if test -z "$DUMPBIN"; then
5876 ac_ct_DUMPBIN
=$DUMPBIN
5877 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
5879 # Extract the first word of "$ac_prog", so it can be a program name with args.
5880 set dummy
$ac_prog; ac_word
=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5884 $as_echo_n "(cached) " >&6
5886 if test -n "$ac_ct_DUMPBIN"; then
5887 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5893 test -z "$as_dir" && as_dir
=.
5894 for ac_exec_ext
in '' $ac_executable_extensions; do
5895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5896 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5907 if test -n "$ac_ct_DUMPBIN"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5909 $as_echo "$ac_ct_DUMPBIN" >&6; }
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5912 $as_echo "no" >&6; }
5916 test -n "$ac_ct_DUMPBIN" && break
5919 if test "x$ac_ct_DUMPBIN" = x
; then
5922 case $cross_compiling:$ac_tool_warned in
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5926 ac_tool_warned
=yes ;;
5928 DUMPBIN
=$ac_ct_DUMPBIN
5933 if test "$DUMPBIN" != ":"; then
5937 test -z "$NM" && NM
=nm
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5946 if ${lt_cv_nm_interface+:} false
; then :
5947 $as_echo_n "(cached) " >&6
5949 lt_cv_nm_interface
="BSD nm"
5950 echo "int some_variable = 0;" > conftest.
$ac_ext
5951 (eval echo "\"\$as_me:5951: $ac_compile\"" >&5)
5952 (eval "$ac_compile" 2>conftest.err
)
5953 cat conftest.err
>&5
5954 (eval echo "\"\$as_me:5954: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5955 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5956 cat conftest.err
>&5
5957 (eval echo "\"\$as_me:5957: output\"" >&5)
5958 cat conftest.out
>&5
5959 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5960 lt_cv_nm_interface
="MS dumpbin"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5965 $as_echo "$lt_cv_nm_interface" >&6; }
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5968 $as_echo_n "checking whether ln -s works... " >&6; }
5970 if test "$LN_S" = "ln -s"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5972 $as_echo "yes" >&6; }
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5975 $as_echo "no, using $LN_S" >&6; }
5978 # find the maximum length of command line arguments
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5980 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5981 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5982 $as_echo_n "(cached) " >&6
5989 # On DJGPP, this test can blow up pretty badly due to problems in libc
5990 # (any single argument exceeding 2000 bytes causes a buffer overrun
5991 # during glob expansion). Even if it were fixed, the result of this
5992 # check would be larger than it should be.
5993 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
5997 # Under GNU Hurd, this test is not required because there is
5998 # no limit to the length of command line arguments.
5999 # Libtool will interpret -1 as no limit whatsoever
6000 lt_cv_sys_max_cmd_len
=-1;
6003 cygwin
* | mingw
* | cegcc
*)
6004 # On Win9x/ME, this test blows up -- it succeeds, but takes
6005 # about 5 minutes as the teststring grows exponentially.
6006 # Worse, since 9x/ME are not pre-emptively multitasking,
6007 # you end up with a "frozen" computer, even though with patience
6008 # the test eventually succeeds (with a max line length of 256k).
6009 # Instead, let's just punt: use the minimum linelength reported by
6010 # all of the supported platforms: 8192 (on NT/2K/XP).
6011 lt_cv_sys_max_cmd_len
=8192;
6015 # On AmigaOS with pdksh, this test takes hours, literally.
6016 # So we just punt and use a minimum line length of 8192.
6017 lt_cv_sys_max_cmd_len
=8192;
6020 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6021 # This has been around since 386BSD, at least. Likely further.
6022 if test -x /sbin
/sysctl
; then
6023 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6024 elif test -x /usr
/sbin
/sysctl
; then
6025 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6027 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6029 # And add a safety zone
6030 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6031 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6035 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6036 lt_cv_sys_max_cmd_len
=196608
6040 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6041 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6042 # nice to cause kernel panics so lets avoid the loop below.
6043 # First set a reasonable default.
6044 lt_cv_sys_max_cmd_len
=16384
6046 if test -x /sbin
/sysconfig
; then
6047 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6048 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6053 lt_cv_sys_max_cmd_len
=102400
6055 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6056 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6057 if test -n "$kargmax"; then
6058 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6060 lt_cv_sys_max_cmd_len
=32768
6064 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6065 if test -n "$lt_cv_sys_max_cmd_len"; then
6066 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6067 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6069 # Make teststring a little bigger before we do anything with it.
6070 # a 1K string should be a reasonable start.
6071 for i
in 1 2 3 4 5 6 7 8 ; do
6072 teststring
=$teststring$teststring
6074 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6075 # If test is not a shell built-in, we'll probably end up computing a
6076 # maximum length that is only half of the actual maximum length, but
6078 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6079 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
6080 test $i != 17 # 1/2 MB should be enough
6083 teststring
=$teststring$teststring
6085 # Only check the string length outside the loop.
6086 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6088 # Add a significant safety factor because C++ compilers can tack on
6089 # massive amounts of additional arguments before passing them to the
6090 # linker. It appears as though 1/2 is a usable value.
6091 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6098 if test -n $lt_cv_sys_max_cmd_len ; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6100 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6103 $as_echo "none" >&6; }
6105 max_cmd_len
=$lt_cv_sys_max_cmd_len
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6117 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6118 # Try some XSI features
6121 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6123 && eval 'test $(( 1 + 1 )) -eq 2 \
6124 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6127 $as_echo "$xsi_shell" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6131 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6133 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
6135 && lt_shell_append
=yes
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6137 $as_echo "$lt_shell_append" >&6; }
6140 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
6150 # test EBCDIC or ASCII
6151 case `echo X|tr X '\101'` in
6152 A
) # ASCII based system
6153 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6154 lt_SP2NL
='tr \040 \012'
6155 lt_NL2SP
='tr \015\012 \040\040'
6157 *) # EBCDIC based system
6158 lt_SP2NL
='tr \100 \n'
6159 lt_NL2SP
='tr \r\n \100\100'
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6172 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6173 if ${lt_cv_ld_reload_flag+:} false
; then :
6174 $as_echo_n "(cached) " >&6
6176 lt_cv_ld_reload_flag
='-r'
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6179 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6180 reload_flag
=$lt_cv_ld_reload_flag
6181 case $reload_flag in
6183 *) reload_flag
=" $reload_flag" ;;
6185 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6188 if test "$GCC" = yes; then
6189 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6191 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6204 if test -n "$ac_tool_prefix"; then
6205 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6206 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if ${ac_cv_prog_OBJDUMP+:} false
; then :
6210 $as_echo_n "(cached) " >&6
6212 if test -n "$OBJDUMP"; then
6213 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
6215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6219 test -z "$as_dir" && as_dir
=.
6220 for ac_exec_ext
in '' $ac_executable_extensions; do
6221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
6223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 OBJDUMP
=$ac_cv_prog_OBJDUMP
6233 if test -n "$OBJDUMP"; then
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6235 $as_echo "$OBJDUMP" >&6; }
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238 $as_echo "no" >&6; }
6243 if test -z "$ac_cv_prog_OBJDUMP"; then
6244 ac_ct_OBJDUMP
=$OBJDUMP
6245 # Extract the first word of "objdump", so it can be a program name with args.
6246 set dummy objdump
; ac_word
=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
6250 $as_echo_n "(cached) " >&6
6252 if test -n "$ac_ct_OBJDUMP"; then
6253 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
6255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6259 test -z "$as_dir" && as_dir
=.
6260 for ac_exec_ext
in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
6273 if test -n "$ac_ct_OBJDUMP"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6275 $as_echo "$ac_ct_OBJDUMP" >&6; }
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6281 if test "x$ac_ct_OBJDUMP" = x
; then
6284 case $cross_compiling:$ac_tool_warned in
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned
=yes ;;
6290 OBJDUMP
=$ac_ct_OBJDUMP
6293 OBJDUMP
="$ac_cv_prog_OBJDUMP"
6296 test -z "$OBJDUMP" && OBJDUMP
=objdump
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6307 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6308 if ${lt_cv_deplibs_check_method+:} false
; then :
6309 $as_echo_n "(cached) " >&6
6311 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6312 lt_cv_file_magic_test_file
=
6313 lt_cv_deplibs_check_method
='unknown'
6314 # Need to set the preceding variable on all platforms that support
6315 # interlibrary dependencies.
6316 # 'none' -- dependencies not supported.
6317 # `unknown' -- same as none, but documents that we really don't know.
6318 # 'pass_all' -- all dependencies passed with no checks.
6319 # 'test_compile' -- check by making test program.
6320 # 'file_magic [[regex]]' -- check by looking for files in library path
6321 # which responds to the $file_magic_cmd with a given extended regex.
6322 # If you have `file' or equivalent on your system and you're not sure
6323 # whether `pass_all' will *always* work, you probably want this one.
6327 lt_cv_deplibs_check_method
=pass_all
6331 lt_cv_deplibs_check_method
=pass_all
6335 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6336 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6337 lt_cv_file_magic_test_file
=/shlib
/libc.so
6341 # func_win32_libid is a shell function defined in ltmain.sh
6342 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6343 lt_cv_file_magic_cmd
='func_win32_libid'
6347 # Base MSYS/MinGW do not provide the 'file' command needed by
6348 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6349 # unless we find 'file', for example because we are cross-compiling.
6350 if ( file / ) >/dev
/null
2>&1; then
6351 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6352 lt_cv_file_magic_cmd
='func_win32_libid'
6354 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
6355 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6360 # use the weaker test based on 'objdump'. See mingw*.
6361 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6362 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6365 darwin
* | rhapsody
*)
6366 lt_cv_deplibs_check_method
=pass_all
6369 freebsd
* | dragonfly
*)
6370 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
6373 # Not sure whether the presence of OpenBSD here was a mistake.
6374 # Let's accept both of them until this is cleared up.
6375 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6376 lt_cv_file_magic_cmd
=/usr
/bin
/file
6377 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6381 lt_cv_deplibs_check_method
=pass_all
6386 lt_cv_deplibs_check_method
=pass_all
6389 hpux10.20
* | hpux11
*)
6390 lt_cv_file_magic_cmd
=/usr
/bin
/file
6393 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6394 lt_cv_file_magic_test_file
=/usr
/lib
/hpux
32/libc.so
6397 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]'
6398 lt_cv_file_magic_test_file
=/usr
/lib
/pa
20_
64/libc.sl
6401 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6402 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6408 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6409 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6412 irix5
* | irix6
* | nonstopux
*)
6414 *-32|*"-32 ") libmagic
=32-bit;;
6415 *-n32|*"-n32 ") libmagic
=N32
;;
6416 *-64|*"-64 ") libmagic
=64-bit;;
6417 *) libmagic
=never
-match;;
6419 lt_cv_deplibs_check_method
=pass_all
6422 # This must be Linux ELF.
6423 linux
* | k
*bsd
*-gnu)
6424 lt_cv_deplibs_check_method
=pass_all
6428 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
6429 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6431 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6436 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6437 lt_cv_file_magic_cmd
=/usr
/bin
/file
6438 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6442 lt_cv_deplibs_check_method
=pass_all
6446 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6447 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6449 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6453 osf3
* | osf4
* | osf5
*)
6454 lt_cv_deplibs_check_method
=pass_all
6458 lt_cv_deplibs_check_method
=pass_all
6462 lt_cv_deplibs_check_method
=pass_all
6465 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6466 lt_cv_deplibs_check_method
=pass_all
6470 case $host_vendor in
6472 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]'
6473 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6476 lt_cv_deplibs_check_method
=pass_all
6479 lt_cv_file_magic_cmd
='/bin/file'
6480 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6483 lt_cv_file_magic_cmd
='/bin/file'
6484 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6485 lt_cv_file_magic_test_file
=/lib
/libc.so
6488 lt_cv_deplibs_check_method
=pass_all
6491 lt_cv_deplibs_check_method
=pass_all
6497 lt_cv_deplibs_check_method
=pass_all
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6503 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6504 file_magic_cmd
=$lt_cv_file_magic_cmd
6505 deplibs_check_method
=$lt_cv_deplibs_check_method
6506 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6519 if test -n "$ac_tool_prefix"; then
6520 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6521 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if ${ac_cv_prog_AR+:} false
; then :
6525 $as_echo_n "(cached) " >&6
6527 if test -n "$AR"; then
6528 ac_cv_prog_AR
="$AR" # Let the user override the test.
6530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6534 test -z "$as_dir" && as_dir
=.
6535 for ac_exec_ext
in '' $ac_executable_extensions; do
6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 if test -n "$AR"; then
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6550 $as_echo "$AR" >&6; }
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 $as_echo "no" >&6; }
6558 if test -z "$ac_cv_prog_AR"; then
6560 # Extract the first word of "ar", so it can be a program name with args.
6561 set dummy
ar; ac_word
=$2
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6563 $as_echo_n "checking for $ac_word... " >&6; }
6564 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6565 $as_echo_n "(cached) " >&6
6567 if test -n "$ac_ct_AR"; then
6568 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6574 test -z "$as_dir" && as_dir
=.
6575 for ac_exec_ext
in '' $ac_executable_extensions; do
6576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6577 ac_cv_prog_ac_ct_AR
="ar"
6578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6588 if test -n "$ac_ct_AR"; then
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6590 $as_echo "$ac_ct_AR" >&6; }
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593 $as_echo "no" >&6; }
6596 if test "x$ac_ct_AR" = x
; then
6599 case $cross_compiling:$ac_tool_warned in
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6603 ac_tool_warned
=yes ;;
6611 test -z "$AR" && AR
=ar
6612 test -z "$AR_FLAGS" && AR_FLAGS
=cru
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6626 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_STRIP+:} false
; then :
6630 $as_echo_n "(cached) " >&6
6632 if test -n "$STRIP"; then
6633 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
6635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir
=.
6640 for ac_exec_ext
in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 STRIP
=$ac_cv_prog_STRIP
6653 if test -n "$STRIP"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6655 $as_echo "$STRIP" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6663 if test -z "$ac_cv_prog_STRIP"; then
6665 # Extract the first word of "strip", so it can be a program name with args.
6666 set dummy strip
; ac_word
=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
6670 $as_echo_n "(cached) " >&6
6672 if test -n "$ac_ct_STRIP"; then
6673 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
6675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir
=.
6680 for ac_exec_ext
in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_STRIP
="strip"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
6693 if test -n "$ac_ct_STRIP"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6695 $as_echo "$ac_ct_STRIP" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6701 if test "x$ac_ct_STRIP" = x
; then
6704 case $cross_compiling:$ac_tool_warned in
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned
=yes ;;
6713 STRIP
="$ac_cv_prog_STRIP"
6716 test -z "$STRIP" && STRIP
=:
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6725 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_RANLIB+:} false
; then :
6729 $as_echo_n "(cached) " >&6
6731 if test -n "$RANLIB"; then
6732 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir
=.
6739 for ac_exec_ext
in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 RANLIB
=$ac_cv_prog_RANLIB
6752 if test -n "$RANLIB"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6754 $as_echo "$RANLIB" >&6; }
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6762 if test -z "$ac_cv_prog_RANLIB"; then
6763 ac_ct_RANLIB
=$RANLIB
6764 # Extract the first word of "ranlib", so it can be a program name with args.
6765 set dummy ranlib
; ac_word
=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6769 $as_echo_n "(cached) " >&6
6771 if test -n "$ac_ct_RANLIB"; then
6772 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir
=.
6779 for ac_exec_ext
in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6792 if test -n "$ac_ct_RANLIB"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6794 $as_echo "$ac_ct_RANLIB" >&6; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6800 if test "x$ac_ct_RANLIB" = x
; then
6803 case $cross_compiling:$ac_tool_warned in
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned
=yes ;;
6809 RANLIB
=$ac_ct_RANLIB
6812 RANLIB
="$ac_cv_prog_RANLIB"
6815 test -z "$RANLIB" && RANLIB
=:
6822 # Determine commands to create old-style static archives.
6823 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
6824 old_postinstall_cmds
='chmod 644 $oldlib'
6825 old_postuninstall_cmds
=
6827 if test -n "$RANLIB"; then
6830 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6833 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
6836 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
6872 # If no C compiler was specified, use CC.
6875 # If no C compiler flags were specified, use CFLAGS.
6876 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
6878 # Allow CC to be a program name with arguments.
6882 # Check for command to grab the raw symbol name followed by C symbol from nm.
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6884 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6885 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
6886 $as_echo_n "(cached) " >&6
6889 # These are sane defaults that work on at least a few old systems.
6890 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6892 # Character class describing NM global symbol codes.
6893 symcode
='[BCDEGRST]'
6895 # Regexp to match symbols that can be accessed directly from C.
6896 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6898 # Define system-specific variables.
6903 cygwin
* | mingw
* | pw32
* | cegcc
*)
6904 symcode
='[ABCDGISTW]'
6907 if test "$host_cpu" = ia64
; then
6908 symcode
='[ABCDEGRST]'
6912 symcode
='[BCDEGRST]'
6915 symcode
='[BCDEGQRST]'
6926 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6934 # If we're using GNU nm, then use its standard symbol codes.
6935 case `$NM -V 2>&1` in
6936 *GNU
* | *'with BFD'*)
6937 symcode
='[ABCDGIRSTW]' ;;
6940 # Transform an extracted symbol line into a proper C declaration.
6941 # Some systems (esp. on ia64) link data and code symbols differently,
6942 # so use this general approach.
6943 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6945 # Transform an extracted symbol line into symbol name and symbol address
6946 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6947 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'"
6949 # Handle CRLF in mingw tool chain
6953 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6957 # Try without a prefix underscore, then with it.
6958 for ac_symprfx
in "" "_"; do
6960 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6961 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6963 # Write the raw and C identifiers.
6964 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6965 # Fake it for dumpbin and say T for any non-static function
6966 # and D for any global variable.
6967 # Also find C++ and __fastcall symbols from MSVC++,
6968 # which start with @ or ?.
6969 lt_cv_sys_global_symbol_pipe
="$AWK '"\
6970 " {last_section=section; section=\$ 3};"\
6971 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6972 " \$ 0!~/External *\|/{next};"\
6973 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6974 " {if(hide[section]) next};"\
6975 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6976 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6977 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6978 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6979 " ' prfx=^$ac_symprfx"
6981 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6984 # Check to see that the pipe works correctly.
6988 cat > conftest.
$ac_ext <<_LT_EOF
6993 void nm_test_func(void);
6994 void nm_test_func(void){}
6998 int main(){nm_test_var='a';nm_test_func();return(0);}
7001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7002 (eval $ac_compile) 2>&5
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }; then
7006 # Now try to grab the symbols.
7008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7009 (eval $NM conftest.
$ac_objext \
| $lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
7011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7012 test $ac_status = 0; } && test -s "$nlist"; then
7013 # Try sorting and uniquifying the output.
7014 if sort "$nlist" | uniq > "$nlist"T
; then
7015 mv -f "$nlist"T
"$nlist"
7020 # Make sure that we snagged all the symbols we need.
7021 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
7022 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
7023 cat <<_LT_EOF > conftest.$ac_ext
7029 # Now generate the symbol file.
7030 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7032 cat <<_LT_EOF >> conftest.$ac_ext
7034 /* The mapping between symbol names and symbols. */
7039 lt__PROGRAM__LTX_preloaded_symbols[] =
7041 { "@PROGRAM@", (void *) 0 },
7043 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main
>> conftest.
$ac_ext
7044 cat <<\_LT_EOF
>> conftest.
$ac_ext
7048 /* This works around a problem
in FreeBSD linker
*/
7049 #ifdef FREEBSD_WORKAROUND
7050 static const void
*lt_preloaded_setup
() {
7051 return lt__PROGRAM__LTX_preloaded_symbols
;
7059 # Now try linking the two files.
7060 mv conftest.
$ac_objext conftstm.
$ac_objext
7061 lt_save_LIBS
="$LIBS"
7062 lt_save_CFLAGS
="$CFLAGS"
7063 LIBS
="conftstm.$ac_objext"
7064 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7066 (eval $ac_link) 2>&5
7068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7069 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
7072 LIBS
="$lt_save_LIBS"
7073 CFLAGS
="$lt_save_CFLAGS"
7075 echo "cannot find nm_test_func in $nlist" >&5
7078 echo "cannot find nm_test_var in $nlist" >&5
7081 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7084 echo "$progname: failed program was:" >&5
7085 cat conftest.
$ac_ext >&5
7087 rm -rf conftest
* conftst
*
7089 # Do not use the global_symbol_pipe unless it works.
7090 if test "$pipe_works" = yes; then
7093 lt_cv_sys_global_symbol_pipe
=
7099 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7100 lt_cv_sys_global_symbol_to_cdecl
=
7102 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7104 $as_echo "failed" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7107 $as_echo "ok" >&6; }
7131 # Check whether --enable-libtool-lock was given.
7132 if test "${enable_libtool_lock+set}" = set; then :
7133 enableval
=$enable_libtool_lock;
7136 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7138 # Some flags need to be propagated to the compiler or linker for good
7142 # Find out which ABI we are using.
7143 echo 'int i;' > conftest.
$ac_ext
7144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7145 (eval $ac_compile) 2>&5
7147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7148 test $ac_status = 0; }; then
7149 case `/usr/bin/file conftest.$ac_objext` in
7161 # Find out which ABI we are using.
7162 echo '#line 7162 "configure"' > conftest.
$ac_ext
7163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7164 (eval $ac_compile) 2>&5
7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167 test $ac_status = 0; }; then
7168 if test "$lt_cv_prog_gnu_ld" = yes; then
7169 case `/usr/bin/file conftest.$ac_objext` in
7171 LD
="${LD-ld} -melf32bsmip"
7174 LD
="${LD-ld} -melf32bmipn32"
7177 LD
="${LD-ld} -melf64bmip"
7181 case `/usr/bin/file conftest.$ac_objext` in
7197 x86_64
-*kfreebsd
*-gnu|x86_64
-*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
7198 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
7199 # Find out which ABI we are using.
7200 echo 'int i;' > conftest.
$ac_ext
7201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7202 (eval $ac_compile) 2>&5
7204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7205 test $ac_status = 0; }; then
7206 case `/usr/bin/file conftest.o` in
7209 x86_64
-*kfreebsd
*-gnu)
7210 LD
="${LD-ld} -m elf_i386_fbsd"
7213 LD
="${LD-ld} -m elf_i386"
7215 ppc64
-*linux
*|powerpc64
-*linux
*)
7216 LD
="${LD-ld} -m elf32ppclinux"
7219 LD
="${LD-ld} -m elf_s390"
7222 LD
="${LD-ld} -m elf32_sparc"
7228 x86_64
-*kfreebsd
*-gnu)
7229 LD
="${LD-ld} -m elf_x86_64_fbsd"
7232 LD
="${LD-ld} -m elf_x86_64"
7234 ppc
*-*linux
*|powerpc
*-*linux
*)
7235 LD
="${LD-ld} -m elf64ppc"
7237 s390
*-*linux
*|s390
*-*tpf
*)
7238 LD
="${LD-ld} -m elf64_s390"
7241 LD
="${LD-ld} -m elf64_sparc"
7251 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7252 SAVE_CFLAGS
="$CFLAGS"
7253 CFLAGS
="$CFLAGS -belf"
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7255 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7256 if ${lt_cv_cc_needs_belf+:} false
; then :
7257 $as_echo_n "(cached) " >&6
7260 ac_cpp
='$CPP $CPPFLAGS'
7261 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7262 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7263 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7276 if ac_fn_c_try_link
"$LINENO"; then :
7277 lt_cv_cc_needs_belf
=yes
7279 lt_cv_cc_needs_belf
=no
7281 rm -f core conftest.err conftest.
$ac_objext \
7282 conftest
$ac_exeext conftest.
$ac_ext
7284 ac_cpp
='$CPP $CPPFLAGS'
7285 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7286 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7291 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7292 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
7293 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7294 CFLAGS
="$SAVE_CFLAGS"
7298 # Find out which ABI we are using.
7299 echo 'int i;' > conftest.
$ac_ext
7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7301 (eval $ac_compile) 2>&5
7303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304 test $ac_status = 0; }; then
7305 case `/usr/bin/file conftest.o` in
7307 case $lt_cv_prog_gnu_ld in
7308 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7310 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7322 need_locks
="$enable_libtool_lock"
7326 rhapsody
* | darwin
*)
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7329 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$DSYMUTIL"; then
7336 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
7338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir
=.
7343 for ac_exec_ext
in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
7356 if test -n "$DSYMUTIL"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7358 $as_echo "$DSYMUTIL" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7366 if test -z "$ac_cv_prog_DSYMUTIL"; then
7367 ac_ct_DSYMUTIL
=$DSYMUTIL
7368 # Extract the first word of "dsymutil", so it can be a program name with args.
7369 set dummy dsymutil
; ac_word
=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
7373 $as_echo_n "(cached) " >&6
7375 if test -n "$ac_ct_DSYMUTIL"; then
7376 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
7378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir
=.
7383 for ac_exec_ext
in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
7396 if test -n "$ac_ct_DSYMUTIL"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7398 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7404 if test "x$ac_ct_DSYMUTIL" = x
; then
7407 case $cross_compiling:$ac_tool_warned in
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned
=yes ;;
7413 DSYMUTIL
=$ac_ct_DSYMUTIL
7416 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
7419 if test -n "$ac_tool_prefix"; then
7420 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7421 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_NMEDIT+:} false
; then :
7425 $as_echo_n "(cached) " >&6
7427 if test -n "$NMEDIT"; then
7428 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
7430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7434 test -z "$as_dir" && as_dir
=.
7435 for ac_exec_ext
in '' $ac_executable_extensions; do
7436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447 NMEDIT
=$ac_cv_prog_NMEDIT
7448 if test -n "$NMEDIT"; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7450 $as_echo "$NMEDIT" >&6; }
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7458 if test -z "$ac_cv_prog_NMEDIT"; then
7459 ac_ct_NMEDIT
=$NMEDIT
7460 # Extract the first word of "nmedit", so it can be a program name with args.
7461 set dummy nmedit
; ac_word
=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
7465 $as_echo_n "(cached) " >&6
7467 if test -n "$ac_ct_NMEDIT"; then
7468 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
7470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7474 test -z "$as_dir" && as_dir
=.
7475 for ac_exec_ext
in '' $ac_executable_extensions; do
7476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7477 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
7488 if test -n "$ac_ct_NMEDIT"; then
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7490 $as_echo "$ac_ct_NMEDIT" >&6; }
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 $as_echo "no" >&6; }
7496 if test "x$ac_ct_NMEDIT" = x
; then
7499 case $cross_compiling:$ac_tool_warned in
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503 ac_tool_warned
=yes ;;
7505 NMEDIT
=$ac_ct_NMEDIT
7508 NMEDIT
="$ac_cv_prog_NMEDIT"
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7513 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_LIPO+:} false
; then :
7517 $as_echo_n "(cached) " >&6
7519 if test -n "$LIPO"; then
7520 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
7522 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir
=.
7527 for ac_exec_ext
in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 LIPO
=$ac_cv_prog_LIPO
7540 if test -n "$LIPO"; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7542 $as_echo "$LIPO" >&6; }
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7550 if test -z "$ac_cv_prog_LIPO"; then
7552 # Extract the first word of "lipo", so it can be a program name with args.
7553 set dummy lipo
; ac_word
=$2
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7555 $as_echo_n "checking for $ac_word... " >&6; }
7556 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
7557 $as_echo_n "(cached) " >&6
7559 if test -n "$ac_ct_LIPO"; then
7560 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
7562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir
=.
7567 for ac_exec_ext
in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_ac_ct_LIPO
="lipo"
7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
7580 if test -n "$ac_ct_LIPO"; then
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7582 $as_echo "$ac_ct_LIPO" >&6; }
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7588 if test "x$ac_ct_LIPO" = x
; then
7591 case $cross_compiling:$ac_tool_warned in
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7595 ac_tool_warned
=yes ;;
7600 LIPO
="$ac_cv_prog_LIPO"
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7605 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if ${ac_cv_prog_OTOOL+:} false
; then :
7609 $as_echo_n "(cached) " >&6
7611 if test -n "$OTOOL"; then
7612 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
7614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir
=.
7619 for ac_exec_ext
in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 OTOOL
=$ac_cv_prog_OTOOL
7632 if test -n "$OTOOL"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7634 $as_echo "$OTOOL" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7642 if test -z "$ac_cv_prog_OTOOL"; then
7644 # Extract the first word of "otool", so it can be a program name with args.
7645 set dummy otool
; ac_word
=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
7649 $as_echo_n "(cached) " >&6
7651 if test -n "$ac_ct_OTOOL"; then
7652 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
7654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir
=.
7659 for ac_exec_ext
in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_prog_ac_ct_OTOOL
="otool"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
7672 if test -n "$ac_ct_OTOOL"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7674 $as_echo "$ac_ct_OTOOL" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7680 if test "x$ac_ct_OTOOL" = x
; then
7683 case $cross_compiling:$ac_tool_warned in
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7687 ac_tool_warned
=yes ;;
7692 OTOOL
="$ac_cv_prog_OTOOL"
7695 if test -n "$ac_tool_prefix"; then
7696 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7697 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699 $as_echo_n "checking for $ac_word... " >&6; }
7700 if ${ac_cv_prog_OTOOL64+:} false
; then :
7701 $as_echo_n "(cached) " >&6
7703 if test -n "$OTOOL64"; then
7704 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
7706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7710 test -z "$as_dir" && as_dir
=.
7711 for ac_exec_ext
in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 OTOOL64
=$ac_cv_prog_OTOOL64
7724 if test -n "$OTOOL64"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7726 $as_echo "$OTOOL64" >&6; }
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7734 if test -z "$ac_cv_prog_OTOOL64"; then
7735 ac_ct_OTOOL64
=$OTOOL64
7736 # Extract the first word of "otool64", so it can be a program name with args.
7737 set dummy otool64
; ac_word
=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
7741 $as_echo_n "(cached) " >&6
7743 if test -n "$ac_ct_OTOOL64"; then
7744 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
7746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7750 test -z "$as_dir" && as_dir
=.
7751 for ac_exec_ext
in '' $ac_executable_extensions; do
7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7753 ac_cv_prog_ac_ct_OTOOL64
="otool64"
7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
7764 if test -n "$ac_ct_OTOOL64"; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7766 $as_echo "$ac_ct_OTOOL64" >&6; }
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7772 if test "x$ac_ct_OTOOL64" = x
; then
7775 case $cross_compiling:$ac_tool_warned in
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7779 ac_tool_warned
=yes ;;
7781 OTOOL64
=$ac_ct_OTOOL64
7784 OTOOL64
="$ac_cv_prog_OTOOL64"
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7814 $as_echo_n "checking for -single_module linker flag... " >&6; }
7815 if ${lt_cv_apple_cc_single_mod+:} false
; then :
7816 $as_echo_n "(cached) " >&6
7818 lt_cv_apple_cc_single_mod
=no
7819 if test -z "${LT_MULTI_MODULE}"; then
7820 # By default we will add the -single_module flag. You can override
7821 # by either setting the environment variable LT_MULTI_MODULE
7822 # non-empty at configure time, or by adding -multi_module to the
7824 rm -rf libconftest.dylib
*
7825 echo "int foo(void){return 1;}" > conftest.c
7826 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7827 -dynamiclib -Wl,-single_module conftest.c" >&5
7828 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7829 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
7831 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
7832 lt_cv_apple_cc_single_mod
=yes
7834 cat conftest.err
>&5
7836 rm -rf libconftest.dylib
*
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7841 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7843 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7844 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
7845 $as_echo_n "(cached) " >&6
7847 lt_cv_ld_exported_symbols_list
=no
7848 save_LDFLAGS
=$LDFLAGS
7849 echo "_main" > conftest.sym
7850 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7862 if ac_fn_c_try_link
"$LINENO"; then :
7863 lt_cv_ld_exported_symbols_list
=yes
7865 lt_cv_ld_exported_symbols_list
=no
7867 rm -f core conftest.err conftest.
$ac_objext \
7868 conftest
$ac_exeext conftest.
$ac_ext
7869 LDFLAGS
="$save_LDFLAGS"
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7873 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7875 rhapsody
* | darwin1.
[012])
7876 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
7878 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7879 darwin
*) # darwin 5.x on
7880 # if running on 10.5 or later, the deployment target defaults
7881 # to the OS version, if on x86, and 10.4, the deployment
7882 # target defaults to 10.4. Don't you love it?
7883 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7884 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7885 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7887 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7889 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
7893 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7894 _lt_dar_single_mod
='$single_module'
7896 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7897 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7899 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7901 if test "$DSYMUTIL" != ":"; then
7902 _lt_dsymutil
='~$DSYMUTIL $lib || :'
7909 for ac_header
in dlfcn.h
7911 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7913 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7914 cat >>confdefs.h
<<_ACEOF
7915 #define HAVE_DLFCN_H 1
7937 # Check whether --with-pic was given.
7938 if test "${with_pic+set}" = set; then :
7939 withval
=$with_pic; pic_mode
="$withval"
7945 test -z "$pic_mode" && pic_mode
=default
7953 # Check whether --enable-fast-install was given.
7954 if test "${enable_fast_install+set}" = set; then :
7955 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7957 yes) enable_fast_install
=yes ;;
7958 no
) enable_fast_install
=no
;;
7960 enable_fast_install
=no
7961 # Look at the argument we got. We use all the common list separators.
7962 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7963 for pkg
in $enableval; do
7965 if test "X$pkg" = "X$p"; then
7966 enable_fast_install
=yes
7973 enable_fast_install
=yes
7986 # This can be used to rebuild libtool when needed
7987 LIBTOOL_DEPS
="$ltmain"
7989 # Always use our own libtool.
7990 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8016 test -z "$LN_S" && LN_S
="ln -s"
8031 if test -n "${ZSH_VERSION+set}" ; then
8032 setopt NO_GLOB_SUBST
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8036 $as_echo_n "checking for objdir... " >&6; }
8037 if ${lt_cv_objdir+:} false
; then :
8038 $as_echo_n "(cached) " >&6
8040 rm -f .libs
2>/dev
/null
8041 mkdir .libs
2>/dev
/null
8042 if test -d .libs
; then
8045 # MS-DOS does not allow filenames that begin with a dot.
8048 rmdir .libs
2>/dev
/null
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8051 $as_echo "$lt_cv_objdir" >&6; }
8052 objdir
=$lt_cv_objdir
8058 cat >>confdefs.h
<<_ACEOF
8059 #define LT_OBJDIR "$lt_cv_objdir/"
8080 # AIX sometimes has problems with the GCC collect2 program. For some
8081 # reason, if we set the COLLECT_NAMES environment variable, the problems
8082 # vanish in a puff of smoke.
8083 if test "X${COLLECT_NAMES+set}" != Xset
; then
8085 export COLLECT_NAMES
8090 # Sed substitution that helps us do robust quoting. It backslashifies
8091 # metacharacters that are still active within double-quoted strings.
8092 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
8094 # Same as above, but do not quote variable references.
8095 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
8097 # Sed substitution to delay expansion of an escaped shell variable in a
8098 # double_quote_subst'ed string.
8099 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
8101 # Sed substitution to delay expansion of an escaped single quote.
8102 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
8104 # Sed substitution to avoid accidental globbing in evaled expressions
8105 no_glob_subst
='s/\*/\\\*/g'
8109 can_build_shared
=yes
8111 # All known linkers require a `.a' archive for static linking (except MSVC,
8112 # which needs '.lib').
8115 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8118 old_CFLAGS
="$CFLAGS"
8120 # Set sane defaults for various variables
8121 test -z "$CC" && CC
=cc
8122 test -z "$LTCC" && LTCC
=$CC
8123 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8124 test -z "$LD" && LD
=ld
8125 test -z "$ac_objext" && ac_objext
=o
8127 for cc_temp
in $compiler""; do
8129 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
8130 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
8135 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8138 # Only perform the check for file, if the check method requires it
8139 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8140 case $deplibs_check_method in
8142 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8144 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8145 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8146 $as_echo_n "(cached) " >&6
8150 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8153 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8154 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8155 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8156 for ac_dir
in $ac_dummy; do
8158 test -z "$ac_dir" && ac_dir
=.
8159 if test -f $ac_dir/${ac_tool_prefix}file; then
8160 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8161 if test -n "$file_magic_test_file"; then
8162 case $deplibs_check_method in
8164 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8165 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8166 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8167 $EGREP "$file_magic_regex" > /dev
/null
; then
8172 *** Warning: the command libtool uses to detect shared libraries,
8173 *** $file_magic_cmd, produces output that libtool cannot recognize.
8174 *** The result is that libtool may fail to recognize shared libraries
8175 *** as such. This will affect the creation of libtool libraries that
8176 *** depend on shared libraries, but programs linked with such libtool
8177 *** libraries will work regardless of this problem. Nevertheless, you
8178 *** may want to report the problem to your system manager and/or to
8179 *** bug-libtool@gnu.org
8189 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8194 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8195 if test -n "$MAGIC_CMD"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8197 $as_echo "$MAGIC_CMD" >&6; }
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8207 if test -z "$lt_cv_path_MAGIC_CMD"; then
8208 if test -n "$ac_tool_prefix"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8210 $as_echo_n "checking for file... " >&6; }
8211 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8212 $as_echo_n "(cached) " >&6
8216 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8219 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8220 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8221 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir
in $ac_dummy; do
8224 test -z "$ac_dir" && ac_dir
=.
8225 if test -f $ac_dir/file; then
8226 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8230 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8233 $EGREP "$file_magic_regex" > /dev
/null
; then
8238 *** Warning: the command libtool uses to detect shared libraries,
8239 *** $file_magic_cmd, produces output that libtool cannot recognize.
8240 *** The result is that libtool may fail to recognize shared libraries
8241 *** as such. This will affect the creation of libtool libraries that
8242 *** depend on shared libraries, but programs linked with such libtool
8243 *** libraries will work regardless of this problem. Nevertheless, you
8244 *** may want to report the problem to your system manager and/or to
8245 *** bug-libtool@gnu.org
8255 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8260 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8261 if test -n "$MAGIC_CMD"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263 $as_echo "$MAGIC_CMD" >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8279 # Use C for the default configuration in the libtool script
8283 ac_cpp
='$CPP $CPPFLAGS'
8284 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8289 # Source file extension for C test sources.
8292 # Object file extension for compiled C test sources.
8296 # Code to be used in simple compile tests
8297 lt_simple_compile_test_code
="int some_variable = 0;"
8299 # Code to be used in simple link tests
8300 lt_simple_link_test_code
='int main(){return(0);}'
8308 # If no C compiler was specified, use CC.
8311 # If no C compiler flags were specified, use CFLAGS.
8312 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8314 # Allow CC to be a program name with arguments.
8317 # Save the default compiler, since it gets overwritten when the other
8318 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8319 compiler_DEFAULT
=$CC
8321 # save warnings/boilerplate of simple test code
8322 ac_outfile
=conftest.
$ac_objext
8323 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8324 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
8325 _lt_compiler_boilerplate
=`cat conftest.err`
8328 ac_outfile
=conftest.
$ac_objext
8329 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8330 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
8331 _lt_linker_boilerplate
=`cat conftest.err`
8335 if test -n "$compiler"; then
8337 lt_prog_compiler_no_builtin_flag
=
8339 if test "$GCC" = yes; then
8340 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8343 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8344 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8345 $as_echo_n "(cached) " >&6
8347 lt_cv_prog_compiler_rtti_exceptions
=no
8348 ac_outfile
=conftest.
$ac_objext
8349 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8350 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8351 # Insert the option either (1) after the last *FLAGS variable, or
8352 # (2) before a word containing "conftest.", or (3) at the end.
8353 # Note that $ac_compile itself does not contain backslashes and begins
8354 # with a dollar sign (not a hyphen), so the echo should work correctly.
8355 # The option is referenced via a variable to avoid confusing sed.
8356 lt_compile
=`echo "$ac_compile" | $SED \
8357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8359 -e 's:$: $lt_compiler_flag:'`
8360 (eval echo "\"\$as_me:8360: $lt_compile\"" >&5)
8361 (eval "$lt_compile" 2>conftest.err
)
8363 cat conftest.err
>&5
8364 echo "$as_me:8364: \$? = $ac_status" >&5
8365 if (exit $ac_status) && test -s "$ac_outfile"; then
8366 # The compiler can only warn and ignore the option if not recognized
8367 # So say no if there are warnings other than the usual output.
8368 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8369 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8370 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
8371 lt_cv_prog_compiler_rtti_exceptions
=yes
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8378 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8380 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8381 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8393 lt_prog_compiler_wl
=
8394 lt_prog_compiler_pic
=
8395 lt_prog_compiler_static
=
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8398 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8400 if test "$GCC" = yes; then
8401 lt_prog_compiler_wl
='-Wl,'
8402 lt_prog_compiler_static
='-static'
8406 # All AIX code is PIC.
8407 if test "$host_cpu" = ia64
; then
8408 # AIX 5 now supports IA64 processor
8409 lt_prog_compiler_static
='-Bstatic'
8416 # see comment about AmigaOS4 .so support
8417 lt_prog_compiler_pic
='-fPIC'
8420 # FIXME: we need at least 68020 code to build shared libraries, but
8421 # adding the `-m68020' flag to GCC prevents building anything better,
8423 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8428 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8429 # PIC is the default for these OSes.
8432 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8433 # This hack is so that the source file can tell whether it is being
8434 # built for inclusion in a dll (and should export symbols for example).
8435 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8436 # (--disable-auto-import) libraries
8437 lt_prog_compiler_pic
='-DDLL_EXPORT'
8440 darwin
* | rhapsody
*)
8441 # PIC is the default on this platform
8442 # Common symbols not allowed in MH_DYLIB files
8443 lt_prog_compiler_pic
='-fno-common'
8447 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8448 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8449 # sets the default TLS model and affects inlining.
8455 lt_prog_compiler_pic
='-fPIC'
8461 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8462 # Instead, we relocate shared libraries at runtime.
8466 # Just because we use GCC doesn't mean we suddenly get shared libraries
8467 # on systems that don't support them.
8468 lt_prog_compiler_can_build_shared
=no
8473 # QNX uses GNU C++, but need to define -shared option too, otherwise
8475 lt_prog_compiler_pic
='-fPIC -shared'
8479 if test -d /usr
/nec
; then
8480 lt_prog_compiler_pic
=-Kconform_pic
8485 lt_prog_compiler_pic
='-fPIC'
8489 # PORTME Check for flag to pass linker flags through the system compiler.
8492 lt_prog_compiler_wl
='-Wl,'
8493 if test "$host_cpu" = ia64
; then
8494 # AIX 5 now supports IA64 processor
8495 lt_prog_compiler_static
='-Bstatic'
8497 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8501 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8502 # This hack is so that the source file can tell whether it is being
8503 # built for inclusion in a dll (and should export symbols for example).
8504 lt_prog_compiler_pic
='-DDLL_EXPORT'
8507 hpux9
* | hpux10
* | hpux11
*)
8508 lt_prog_compiler_wl
='-Wl,'
8509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8516 lt_prog_compiler_pic
='+Z'
8519 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8520 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8523 irix5
* | irix6
* | nonstopux
*)
8524 lt_prog_compiler_wl
='-Wl,'
8525 # PIC (with -KPIC) is the default.
8526 lt_prog_compiler_static
='-non_shared'
8529 linux
* | k
*bsd
*-gnu)
8530 case $cc_basename in
8531 # old Intel for x86_64 which still supported -KPIC.
8533 lt_prog_compiler_wl
='-Wl,'
8534 lt_prog_compiler_pic
='-KPIC'
8535 lt_prog_compiler_static
='-static'
8537 # icc used to be incompatible with GCC.
8538 # ICC 10 doesn't accept -KPIC any more.
8540 lt_prog_compiler_wl
='-Wl,'
8541 lt_prog_compiler_pic
='-fPIC'
8542 lt_prog_compiler_static
='-static'
8544 # Lahey Fortran 8.1.
8546 lt_prog_compiler_wl
='-Wl,'
8547 lt_prog_compiler_pic
='--shared'
8548 lt_prog_compiler_static
='--static'
8550 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8551 # Portland Group compilers (*not* the Pentium gcc compiler,
8552 # which looks to be a dead project)
8553 lt_prog_compiler_wl
='-Wl,'
8554 lt_prog_compiler_pic
='-fpic'
8555 lt_prog_compiler_static
='-Bstatic'
8558 lt_prog_compiler_wl
='-Wl,'
8559 # All Alpha code is PIC.
8560 lt_prog_compiler_static
='-non_shared'
8563 # IBM XL C 8.0/Fortran 10.1 on PPC
8564 lt_prog_compiler_wl
='-Wl,'
8565 lt_prog_compiler_pic
='-qpic'
8566 lt_prog_compiler_static
='-qstaticlink'
8569 case `$CC -V 2>&1 | sed 5q` in
8572 lt_prog_compiler_pic
='-KPIC'
8573 lt_prog_compiler_static
='-Bstatic'
8574 lt_prog_compiler_wl
='-Wl,'
8577 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8578 lt_prog_compiler_pic
='-KPIC'
8579 lt_prog_compiler_static
='-Bstatic'
8580 lt_prog_compiler_wl
=''
8588 lt_prog_compiler_pic
='-KPIC'
8589 lt_prog_compiler_static
='-Bstatic'
8593 # QNX uses GNU C++, but need to define -shared option too, otherwise
8595 lt_prog_compiler_pic
='-fPIC -shared'
8598 osf3
* | osf4
* | osf5
*)
8599 lt_prog_compiler_wl
='-Wl,'
8600 # All OSF/1 code is PIC.
8601 lt_prog_compiler_static
='-non_shared'
8605 lt_prog_compiler_static
='-non_shared'
8609 lt_prog_compiler_pic
='-KPIC'
8610 lt_prog_compiler_static
='-Bstatic'
8611 case $cc_basename in
8613 lt_prog_compiler_wl
='-Qoption ld ';;
8615 lt_prog_compiler_wl
='-Wl,';;
8620 lt_prog_compiler_wl
='-Qoption ld '
8621 lt_prog_compiler_pic
='-PIC'
8622 lt_prog_compiler_static
='-Bstatic'
8625 sysv4
| sysv4.2uw2
* | sysv4.3
*)
8626 lt_prog_compiler_wl
='-Wl,'
8627 lt_prog_compiler_pic
='-KPIC'
8628 lt_prog_compiler_static
='-Bstatic'
8632 if test -d /usr
/nec
;then
8633 lt_prog_compiler_pic
='-Kconform_pic'
8634 lt_prog_compiler_static
='-Bstatic'
8638 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8639 lt_prog_compiler_wl
='-Wl,'
8640 lt_prog_compiler_pic
='-KPIC'
8641 lt_prog_compiler_static
='-Bstatic'
8645 lt_prog_compiler_wl
='-Wl,'
8646 lt_prog_compiler_can_build_shared
=no
8650 lt_prog_compiler_pic
='-pic'
8651 lt_prog_compiler_static
='-Bstatic'
8655 lt_prog_compiler_can_build_shared
=no
8661 # For platforms which do not support PIC, -DPIC is meaningless:
8663 lt_prog_compiler_pic
=
8666 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8670 $as_echo "$lt_prog_compiler_pic" >&6; }
8678 # Check to make sure the PIC flag actually works.
8680 if test -n "$lt_prog_compiler_pic"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8682 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8683 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8684 $as_echo_n "(cached) " >&6
8686 lt_cv_prog_compiler_pic_works
=no
8687 ac_outfile
=conftest.
$ac_objext
8688 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8689 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8690 # Insert the option either (1) after the last *FLAGS variable, or
8691 # (2) before a word containing "conftest.", or (3) at the end.
8692 # Note that $ac_compile itself does not contain backslashes and begins
8693 # with a dollar sign (not a hyphen), so the echo should work correctly.
8694 # The option is referenced via a variable to avoid confusing sed.
8695 lt_compile
=`echo "$ac_compile" | $SED \
8696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8698 -e 's:$: $lt_compiler_flag:'`
8699 (eval echo "\"\$as_me:8699: $lt_compile\"" >&5)
8700 (eval "$lt_compile" 2>conftest.err
)
8702 cat conftest.err
>&5
8703 echo "$as_me:8703: \$? = $ac_status" >&5
8704 if (exit $ac_status) && test -s "$ac_outfile"; then
8705 # The compiler can only warn and ignore the option if not recognized
8706 # So say no if there are warnings other than the usual output.
8707 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8708 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8709 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
8710 lt_cv_prog_compiler_pic_works
=yes
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8717 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8719 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8720 case $lt_prog_compiler_pic in
8722 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8725 lt_prog_compiler_pic
=
8726 lt_prog_compiler_can_build_shared
=no
8737 # Check to make sure the static flag actually works.
8739 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8741 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8742 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8743 $as_echo_n "(cached) " >&6
8745 lt_cv_prog_compiler_static_works
=no
8746 save_LDFLAGS
="$LDFLAGS"
8747 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8748 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8749 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8750 # The linker can only warn and ignore the option if not recognized
8751 # So say no if there are warnings
8752 if test -s conftest.err
; then
8753 # Append any errors to the config.log.
8754 cat conftest.err
1>&5
8755 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8756 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8757 if diff conftest.exp conftest.er2
>/dev
/null
; then
8758 lt_cv_prog_compiler_static_works
=yes
8761 lt_cv_prog_compiler_static_works
=yes
8765 LDFLAGS
="$save_LDFLAGS"
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8769 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8771 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8774 lt_prog_compiler_static
=
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8784 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8785 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8786 $as_echo_n "(cached) " >&6
8788 lt_cv_prog_compiler_c_o
=no
8789 $RM -r conftest
2>/dev
/null
8793 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8795 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8796 # Insert the option either (1) after the last *FLAGS variable, or
8797 # (2) before a word containing "conftest.", or (3) at the end.
8798 # Note that $ac_compile itself does not contain backslashes and begins
8799 # with a dollar sign (not a hyphen), so the echo should work correctly.
8800 lt_compile
=`echo "$ac_compile" | $SED \
8801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8803 -e 's:$: $lt_compiler_flag:'`
8804 (eval echo "\"\$as_me:8804: $lt_compile\"" >&5)
8805 (eval "$lt_compile" 2>out
/conftest.err
)
8807 cat out
/conftest.err
>&5
8808 echo "$as_me:8808: \$? = $ac_status" >&5
8809 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8811 # The compiler can only warn and ignore the option if not recognized
8812 # So say no if there are warnings
8813 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
8814 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8815 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8816 lt_cv_prog_compiler_c_o
=yes
8821 # SGI C++ compiler will create directory out/ii_files/ for
8822 # template instantiation
8823 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8824 $RM out
/* && rmdir out
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8831 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8840 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8841 $as_echo_n "(cached) " >&6
8843 lt_cv_prog_compiler_c_o
=no
8844 $RM -r conftest
2>/dev
/null
8848 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8850 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 lt_compile
=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\$as_me:8859: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>out
/conftest.err
)
8862 cat out
/conftest.err
>&5
8863 echo "$as_me:8863: \$? = $ac_status" >&5
8864 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings
8868 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out
/conftest.exp
8869 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8870 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8871 lt_cv_prog_compiler_c_o
=yes
8876 # SGI C++ compiler will create directory out/ii_files/ for
8877 # template instantiation
8878 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8879 $RM out
/* && rmdir out
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8886 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8891 hard_links
="nottested"
8892 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8893 # do not overwrite the value of need_locks provided by the user
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8895 $as_echo_n "checking if we can lock with hard links... " >&6; }
8898 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8900 ln conftest.a conftest.b
2>&5 || hard_links
=no
8901 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8903 $as_echo "$hard_links" >&6; }
8904 if test "$hard_links" = no
; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8906 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8919 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8922 allow_undefined_flag
=
8923 always_export_symbols
=no
8925 archive_expsym_cmds
=
8926 compiler_needs_object
=no
8927 enable_shared_with_static_runtimes
=no
8928 export_dynamic_flag_spec
=
8929 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8930 hardcode_automatic
=no
8932 hardcode_direct_absolute
=no
8933 hardcode_libdir_flag_spec
=
8934 hardcode_libdir_flag_spec_ld
=
8935 hardcode_libdir_separator
=
8937 hardcode_shlibpath_var
=unsupported
8939 link_all_deplibs
=unknown
8942 old_archive_from_new_cmds
=
8943 old_archive_from_expsyms_cmds
=
8944 thread_safe_flag_spec
=
8945 whole_archive_flag_spec
=
8946 # include_expsyms should be a list of space-separated symbols to be *always*
8947 # included in the symbol list
8949 # exclude_expsyms can be an extended regexp of symbols to exclude
8950 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8952 # as well as any symbol that contains `d'.
8953 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8955 # platforms (ab)use it in PIC code, but their linkers get confused if
8956 # the symbol is explicitly referenced. Since portable code cannot
8957 # rely on this symbol name, it's probably fine to never include it in
8958 # preloaded symbol tables.
8959 # Exclude shared library initialization/finalization symbols.
8960 extract_expsyms_cmds
=
8963 cygwin
* | mingw
* | pw32
* | cegcc
*)
8964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 if test "$GCC" != yes; then
8972 # we just hope/assume this is gcc and not c89 (= MSVC++)
8981 if test "$with_gnu_ld" = yes; then
8982 # If archive_cmds runs LD, not CC, wlarc should be empty
8985 # Set some defaults for GNU ld with shared library support. These
8986 # are reset later if shared libraries are not supported. Putting them
8987 # here allows them to be overridden if necessary.
8988 runpath_var
=LD_RUN_PATH
8989 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8990 export_dynamic_flag_spec
='${wl}--export-dynamic'
8991 # ancient GNU ld didn't support --whole-archive et. al.
8992 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev
/null
; then
8993 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8995 whole_archive_flag_spec
=
8997 supports_anon_versioning
=no
8998 case `$LD -v 2>&1` in
8999 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
9000 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9001 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9002 *\
2.11.
*) ;; # other 2.11 versions
9003 *) supports_anon_versioning
=yes ;;
9006 # See if GNU ld supports shared libraries.
9009 # On AIX/PPC, the GNU linker is very broken
9010 if test "$host_cpu" != ia64
; then
9014 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9015 *** to be unable to reliably create shared libraries on AIX.
9016 *** Therefore, libtool is disabling shared libraries support. If you
9017 *** really care for shared libraries, you may want to modify your PATH
9018 *** so that a non-GNU linker is found, and then restart.
9027 # see comment about AmigaOS4 .so support
9028 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds
=''
9032 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)'
9033 hardcode_libdir_flag_spec
='-L$libdir'
9034 hardcode_minus_L
=yes
9040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
9041 allow_undefined_flag
=unsupported
9042 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9043 # support --undefined. This deserves some investigation. FIXME
9044 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9050 cygwin
* | mingw
* | pw32
* | cegcc
*)
9051 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9052 # as there is no search path for DLLs.
9053 hardcode_libdir_flag_spec
='-L$libdir'
9054 allow_undefined_flag
=unsupported
9055 always_export_symbols
=no
9056 enable_shared_with_static_runtimes
=yes
9057 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev
/null
; then
9060 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9061 # If the export-symbols file already is a .def file (1st line
9062 # is EXPORTS), use it as is; otherwise, prepend...
9063 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9064 cp $export_symbols $output_objdir/$soname.def;
9066 echo EXPORTS > $output_objdir/$soname.def;
9067 cat $export_symbols >> $output_objdir/$soname.def;
9069 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9077 hardcode_shlibpath_var
=no
9078 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9079 export_dynamic_flag_spec
='${wl}-E'
9080 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9081 # Instead, shared libraries are loaded at an image base (0x10000000 by
9082 # default) and relocated if they conflict, which is a slow very memory
9083 # consuming and fragmenting process. To avoid this, we pick a random,
9084 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9085 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9086 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9087 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'
9090 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
9092 if test "$host_os" = linux
-dietlibc; then
9093 case $cc_basename in
9094 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9097 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev
/null \
9098 && test "$tmp_diet" = no
9101 tmp_sharedflag
='-shared'
9102 case $cc_basename,$host_cpu in
9103 pgcc
*) # Portland Group C compiler
9104 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'
9105 tmp_addflag
=' $pic_flag'
9107 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
9108 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'
9109 tmp_addflag
=' $pic_flag -Mnomain' ;;
9110 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9111 tmp_addflag
=' -i_dynamic' ;;
9112 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9113 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9114 ifc
* | ifort
*) # Intel Fortran compiler
9115 tmp_addflag
=' -nofor_main' ;;
9116 lf95
*) # Lahey Fortran 8.1
9117 whole_archive_flag_spec
=
9118 tmp_sharedflag
='--shared' ;;
9119 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9120 tmp_sharedflag
='-qmkshrobj'
9123 case `$CC -V 2>&1 | sed 5q` in
9124 *Sun\ C
*) # Sun C 5.9
9125 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'
9126 compiler_needs_object
=yes
9127 tmp_sharedflag
='-G' ;;
9128 *Sun\ F
*) # Sun Fortran 8.3
9129 tmp_sharedflag
='-G' ;;
9131 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9133 if test "x$supports_anon_versioning" = xyes
; then
9134 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9136 echo "local: *; };" >> $output_objdir/$libname.ver~
9137 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9140 case $cc_basename in
9142 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9143 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9144 hardcode_libdir_flag_spec
=
9145 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9146 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9147 if test "x$supports_anon_versioning" = xyes
; then
9148 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9150 echo "local: *; };" >> $output_objdir/$libname.ver~
9151 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9161 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
9162 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9165 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9166 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9171 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev
/null
; then
9175 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9176 *** create shared libraries on Solaris systems. Therefore, libtool
9177 *** is disabling shared libraries support. We urge you to upgrade GNU
9178 *** binutils to release 2.9.1 or newer. Another option is to modify
9179 *** your PATH or compiler configuration so that the native linker is
9180 *** used, and then restart.
9183 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
9184 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9191 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9192 case `$LD -v 2>&1` in
9193 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
9197 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9198 *** reliably create shared libraries on SCO systems. Therefore, libtool
9199 *** is disabling shared libraries support. We urge you to upgrade GNU
9200 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9201 *** your PATH or compiler configuration so that the native linker is
9202 *** used, and then restart.
9207 # For security reasons, it is highly recommended that you always
9208 # use absolute paths for naming shared libraries, and exclude the
9209 # DT_RUNPATH tag from executables and libraries. But doing so
9210 # requires that you compile everything twice, which is a pain.
9211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
9212 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9213 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9223 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9226 hardcode_shlibpath_var
=no
9230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
9231 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9239 if test "$ld_shlibs" = no
; then
9241 hardcode_libdir_flag_spec
=
9242 export_dynamic_flag_spec
=
9243 whole_archive_flag_spec
=
9246 # PORTME fill in a description of your system's linker (not GNU ld)
9249 allow_undefined_flag
=unsupported
9250 always_export_symbols
=yes
9251 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'
9252 # Note: this linker hardcodes the directories in LIBPATH if there
9253 # are no directories specified by -L.
9254 hardcode_minus_L
=yes
9255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9256 # Neither direct hardcoding nor static linking is supported with a
9258 hardcode_direct
=unsupported
9263 if test "$host_cpu" = ia64
; then
9264 # On IA64, the linker does run time linking by default, so we don't
9265 # have to do anything special.
9266 aix_use_runtimelinking
=no
9267 exp_sym_flag
='-Bexport'
9270 # If we're using GNU nm, then we don't want the "-C" option.
9271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9272 if $NM -V 2>&1 | $GREP 'GNU' > /dev
/null
; then
9273 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'
9275 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'
9277 aix_use_runtimelinking
=no
9279 # Test if we are trying to use run time linking or normal
9280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9281 # need to do runtime linking.
9282 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9283 for ld_flag
in $LDFLAGS; do
9284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9285 aix_use_runtimelinking
=yes
9292 exp_sym_flag
='-bexport'
9293 no_entry_flag
='-bnoentry'
9296 # When large executables or shared objects are built, AIX ld can
9297 # have problems creating the table of contents. If linking a library
9298 # or program results in "error TOC overflow" add -mminimal-toc to
9299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9304 hardcode_direct_absolute
=yes
9305 hardcode_libdir_separator
=':'
9306 link_all_deplibs
=yes
9307 file_list_spec
='${wl}-f,'
9309 if test "$GCC" = yes; then
9310 case $host_os in aix4.
[012]|aix4.
[012].
*)
9311 # We only want to do this on AIX 4.2 and lower, the check
9312 # below for broken collect2 doesn't work under 4.3+
9313 collect2name
=`${CC} -print-prog-name=collect2`
9314 if test -f "$collect2name" &&
9315 strings "$collect2name" | $GREP resolve_lib_name
>/dev
/null
9317 # We have reworked collect2
9320 # We have old collect2
9321 hardcode_direct
=unsupported
9322 # It fails to find uninstalled libraries when the uninstalled
9323 # path is not listed in the libpath. Setting hardcode_minus_L
9324 # to unsupported forces relinking
9325 hardcode_minus_L
=yes
9326 hardcode_libdir_flag_spec
='-L$libdir'
9327 hardcode_libdir_separator
=
9331 shared_flag
='-shared'
9332 if test "$aix_use_runtimelinking" = yes; then
9333 shared_flag
="$shared_flag "'${wl}-G'
9337 if test "$host_cpu" = ia64
; then
9338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9339 # chokes on -Wl,-G. The following line is correct:
9342 if test "$aix_use_runtimelinking" = yes; then
9343 shared_flag
='${wl}-G'
9345 shared_flag
='${wl}-bM:SRE'
9350 export_dynamic_flag_spec
='${wl}-bexpall'
9351 # It seems that -bexpall does not export symbols beginning with
9352 # underscore (_), so it is better to generate a list of symbols to export.
9353 always_export_symbols
=yes
9354 if test "$aix_use_runtimelinking" = yes; then
9355 # Warning - without using the other runtime loading flags (-brtl),
9356 # -berok will link without error, but may produce a broken library.
9357 allow_undefined_flag
='-berok'
9358 # Determine the default libpath from the value encoded in an
9360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9371 if ac_fn_c_try_link
"$LINENO"; then :
9373 lt_aix_libpath_sed
='
9374 /Import File Strings/,/^$/ {
9380 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9381 # Check for a 64-bit object if we didn't find anything.
9382 if test -z "$aix_libpath"; then
9383 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9386 rm -f core conftest.err conftest.
$ac_objext \
9387 conftest
$ac_exeext conftest.
$ac_ext
9388 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9390 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9391 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"
9393 if test "$host_cpu" = ia64
; then
9394 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9395 allow_undefined_flag
="-z nodefs"
9396 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"
9398 # Determine the default libpath from the value encoded in an
9400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9411 if ac_fn_c_try_link
"$LINENO"; then :
9413 lt_aix_libpath_sed
='
9414 /Import File Strings/,/^$/ {
9420 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9421 # Check for a 64-bit object if we didn't find anything.
9422 if test -z "$aix_libpath"; then
9423 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9426 rm -f core conftest.err conftest.
$ac_objext \
9427 conftest
$ac_exeext conftest.
$ac_ext
9428 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9430 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9431 # Warning - without using the other run time loading flags,
9432 # -berok will link without error, but may produce a broken library.
9433 no_undefined_flag
=' ${wl}-bernotok'
9434 allow_undefined_flag
=' ${wl}-berok'
9435 # Exported symbols can be pulled into shared objects from archives
9436 whole_archive_flag_spec
='$convenience'
9437 archive_cmds_need_lc
=yes
9438 # This is similar to how AIX traditionally builds its shared libraries.
9439 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'
9447 # see comment about AmigaOS4 .so support
9448 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449 archive_expsym_cmds
=''
9452 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)'
9453 hardcode_libdir_flag_spec
='-L$libdir'
9454 hardcode_minus_L
=yes
9460 export_dynamic_flag_spec
=-rdynamic
9463 cygwin
* | mingw
* | pw32
* | cegcc
*)
9464 # When not using gcc, we currently assume that we are using
9465 # Microsoft Visual C++.
9466 # hardcode_libdir_flag_spec is actually meaningless, as there is
9467 # no search path for DLLs.
9468 hardcode_libdir_flag_spec
=' '
9469 allow_undefined_flag
=unsupported
9470 # Tell ltmain to make .lib files, not .a files.
9472 # Tell ltmain to make .dll files, not .so files.
9474 # FIXME: Setting linknames here is a bad hack.
9475 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9476 # The linker will automatically build a .lib file if we build a DLL.
9477 old_archive_from_new_cmds
='true'
9478 # FIXME: Should let the user specify the lib program.
9479 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9480 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9481 enable_shared_with_static_runtimes
=yes
9484 darwin
* | rhapsody
*)
9487 archive_cmds_need_lc
=no
9489 hardcode_automatic
=yes
9490 hardcode_shlibpath_var
=unsupported
9491 whole_archive_flag_spec
=''
9492 link_all_deplibs
=yes
9493 allow_undefined_flag
="$_lt_dar_allow_undefined"
9494 case $cc_basename in
9495 ifort
*) _lt_dar_can_shared
=yes ;;
9496 *) _lt_dar_can_shared
=$GCC ;;
9498 if test "$_lt_dar_can_shared" = "yes"; then
9499 output_verbose_link_cmd
=echo
9500 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9501 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9502 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}"
9503 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}"
9512 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 hardcode_libdir_flag_spec
='-L$libdir'
9514 hardcode_shlibpath_var
=no
9521 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9522 # support. Future versions do this automatically, but an explicit c++rt0.o
9523 # does not break anything, and helps significantly (at the cost of a little
9526 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9527 hardcode_libdir_flag_spec
='-R$libdir'
9529 hardcode_shlibpath_var
=no
9532 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9534 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_minus_L
=yes
9537 hardcode_shlibpath_var
=no
9540 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9541 freebsd
* | dragonfly
*)
9542 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9543 hardcode_libdir_flag_spec
='-R$libdir'
9545 hardcode_shlibpath_var
=no
9549 if test "$GCC" = yes; then
9550 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'
9552 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'
9554 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9555 hardcode_libdir_separator
=:
9558 # hardcode_minus_L: Not really in the search PATH,
9559 # but as the default location of the library.
9560 hardcode_minus_L
=yes
9561 export_dynamic_flag_spec
='${wl}-E'
9565 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9566 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9568 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9570 if test "$with_gnu_ld" = no
; then
9571 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9572 hardcode_libdir_flag_spec_ld
='+b $libdir'
9573 hardcode_libdir_separator
=:
9575 hardcode_direct_absolute
=yes
9576 export_dynamic_flag_spec
='${wl}-E'
9577 # hardcode_minus_L: Not really in the search PATH,
9578 # but as the default location of the library.
9579 hardcode_minus_L
=yes
9584 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9587 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9590 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9593 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9605 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9609 if test "$with_gnu_ld" = no
; then
9610 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9611 hardcode_libdir_separator
=:
9616 hardcode_shlibpath_var
=no
9620 hardcode_direct_absolute
=yes
9621 export_dynamic_flag_spec
='${wl}-E'
9623 # hardcode_minus_L: Not really in the search PATH,
9624 # but as the default location of the library.
9625 hardcode_minus_L
=yes
9631 irix5
* | irix6
* | nonstopux
*)
9632 if test "$GCC" = yes; then
9633 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'
9634 # Try to use the -exported_symbol ld option, if it does not
9635 # work, assume that -exports_file does not work either and
9636 # implicitly export all symbols.
9637 save_LDFLAGS
="$LDFLAGS"
9638 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9639 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9643 if ac_fn_c_try_link
"$LINENO"; then :
9644 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'
9647 rm -f core conftest.err conftest.
$ac_objext \
9648 conftest
$ac_exeext conftest.
$ac_ext
9649 LDFLAGS
="$save_LDFLAGS"
9651 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'
9652 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'
9654 archive_cmds_need_lc
='no'
9655 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9656 hardcode_libdir_separator
=:
9658 link_all_deplibs
=yes
9662 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
9663 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9665 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9667 hardcode_libdir_flag_spec
='-R$libdir'
9669 hardcode_shlibpath_var
=no
9673 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9676 hardcode_libdir_separator
=:
9677 hardcode_shlibpath_var
=no
9684 if test -f /usr
/libexec
/ld.so
; then
9686 hardcode_shlibpath_var
=no
9687 hardcode_direct_absolute
=yes
9688 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9689 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9690 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9691 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9692 export_dynamic_flag_spec
='${wl}-E'
9695 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9696 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_libdir_flag_spec
='-R$libdir'
9700 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9701 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9711 hardcode_libdir_flag_spec
='-L$libdir'
9712 hardcode_minus_L
=yes
9713 allow_undefined_flag
=unsupported
9714 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'
9715 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9719 if test "$GCC" = yes; then
9720 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9721 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'
9723 allow_undefined_flag
=' -expect_unresolved \*'
9724 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'
9726 archive_cmds_need_lc
='no'
9727 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9728 hardcode_libdir_separator
=:
9731 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9732 if test "$GCC" = yes; then
9733 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9734 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'
9735 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9737 allow_undefined_flag
=' -expect_unresolved \*'
9738 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'
9739 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~
9740 $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'
9742 # Both c and cxx compiler support -rpath directly
9743 hardcode_libdir_flag_spec
='-rpath $libdir'
9745 archive_cmds_need_lc
='no'
9746 hardcode_libdir_separator
=:
9750 no_undefined_flag
=' -z defs'
9751 if test "$GCC" = yes; then
9753 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9754 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9755 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9757 case `$CC -V 2>&1` in
9760 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9761 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9762 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9766 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9767 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9768 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9772 hardcode_libdir_flag_spec
='-R$libdir'
9773 hardcode_shlibpath_var
=no
9775 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9777 # The compiler driver will combine and reorder linker options,
9778 # but understands `-z linker_flag'. GCC discards it without `$wl',
9779 # but is careful enough not to reorder.
9780 # Supported since Solaris 2.6 (maybe 2.5.1?)
9781 if test "$GCC" = yes; then
9782 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9784 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9788 link_all_deplibs
=yes
9792 if test "x$host_vendor" = xsequent
; then
9793 # Use $CC to link under sequent, because it throws in some extra .o
9794 # files that make .init and .fini sections work.
9795 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9797 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9799 hardcode_libdir_flag_spec
='-L$libdir'
9801 hardcode_minus_L
=yes
9802 hardcode_shlibpath_var
=no
9806 case $host_vendor in
9808 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_direct
=yes # is this really true???
9812 ## LD is ld it makes a PLAMLIB
9813 ## CC just makes a GrossModule.
9814 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9815 reload_cmds
='$CC -r -o $output$reload_objs'
9819 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9820 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9823 runpath_var
='LD_RUN_PATH'
9824 hardcode_shlibpath_var
=no
9828 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9829 hardcode_shlibpath_var
=no
9830 export_dynamic_flag_spec
='-Bexport'
9834 if test -d /usr
/nec
; then
9835 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9836 hardcode_shlibpath_var
=no
9837 runpath_var
=LD_RUN_PATH
9838 hardcode_runpath_var
=yes
9843 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9844 no_undefined_flag
='${wl}-z,text'
9845 archive_cmds_need_lc
=no
9846 hardcode_shlibpath_var
=no
9847 runpath_var
='LD_RUN_PATH'
9849 if test "$GCC" = yes; then
9850 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9853 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9858 sysv5
* | sco3.2v5
* | sco5v6
*)
9859 # Note: We can NOT use -z defs as we might desire, because we do not
9860 # link with -lc, and that would cause any symbols used from libc to
9861 # always be unresolved, which means just about no library would
9862 # ever link correctly. If we're not using GNU ld we use -z text
9863 # though, which does catch some bad symbols but isn't as heavy-handed
9865 no_undefined_flag
='${wl}-z,text'
9866 allow_undefined_flag
='${wl}-z,nodefs'
9867 archive_cmds_need_lc
=no
9868 hardcode_shlibpath_var
=no
9869 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9870 hardcode_libdir_separator
=':'
9871 link_all_deplibs
=yes
9872 export_dynamic_flag_spec
='${wl}-Bexport'
9873 runpath_var
='LD_RUN_PATH'
9875 if test "$GCC" = yes; then
9876 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9879 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9880 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9885 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886 hardcode_libdir_flag_spec
='-L$libdir'
9887 hardcode_shlibpath_var
=no
9895 if test x
$host_vendor = xsni
; then
9897 sysv4
| sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9898 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9905 $as_echo "$ld_shlibs" >&6; }
9906 test "$ld_shlibs" = no
&& can_build_shared
=no
9908 with_gnu_ld
=$with_gnu_ld
9925 # Do we need to explicitly link libc?
9927 case "x$archive_cmds_need_lc" in
9929 # Assume -lc should be added
9930 archive_cmds_need_lc
=yes
9932 if test "$enable_shared" = yes && test "$GCC" = yes; then
9933 case $archive_cmds in
9935 # FIXME: we may have to deal with multi-command sequences.
9938 # Test whether the compiler implicitly links with -lc since on some
9939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9940 # to ld, don't add -lc before -lgcc.
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9942 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9944 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9947 (eval $ac_compile) 2>&5
9949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9950 test $ac_status = 0; } 2>conftest.err
; then
9953 libobjs
=conftest.
$ac_objext
9955 wl
=$lt_prog_compiler_wl
9956 pic_flag
=$lt_prog_compiler_pic
9962 lt_save_allow_undefined_flag
=$allow_undefined_flag
9963 allow_undefined_flag
=
9964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9965 (eval $archive_cmds 2\
>\
&1 \
| $GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9968 test $ac_status = 0; }
9970 archive_cmds_need_lc
=no
9972 archive_cmds_need_lc
=yes
9974 allow_undefined_flag
=$lt_save_allow_undefined_flag
9976 cat conftest.err
1>&5
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9980 $as_echo "$archive_cmds_need_lc" >&6; }
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10144 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10146 if test "$GCC" = yes; then
10148 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10149 *) lt_awk_arg
="/^libraries:/" ;;
10151 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10152 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev
/null
; then
10153 # if the path contains ";" then we assume it to be the separator
10154 # otherwise default to the standard path separator (i.e. ":") - it is
10155 # assumed that no part of a normal pathname contains ";" but that should
10156 # okay in the real world where ";" in dirpaths is itself problematic.
10157 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10159 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10161 # Ok, now we have the path, separated by spaces, we can step through it
10162 # and add multilib dir if necessary.
10163 lt_tmp_lt_search_path_spec
=
10164 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10165 for lt_sys_path
in $lt_search_path_spec; do
10166 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10167 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10169 test -d "$lt_sys_path" && \
10170 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10173 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10174 BEGIN {RS=" "; FS="/|\n";} {
10177 for (lt_i = NF; lt_i > 0; lt_i--) {
10178 if ($lt_i != "" && $lt_i != ".") {
10179 if ($lt_i == "..") {
10182 if (lt_count == 0) {
10183 lt_foo="/" $lt_i lt_foo;
10190 if (lt_foo != "") { lt_freq[lt_foo]++; }
10191 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10193 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
10195 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10197 library_names_spec
=
10198 libname_spec
='lib$name'
10202 postuninstall_cmds
=
10206 shlibpath_overrides_runpath
=unknown
10208 dynamic_linker
="$host_os ld.so"
10209 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10210 need_lib_prefix
=unknown
10211 hardcode_into_libs
=no
10213 # when you set need_version to no, make sure it does not cause -set_version
10214 # flags to be left without arguments
10215 need_version
=unknown
10220 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10221 shlibpath_var
=LIBPATH
10223 # AIX 3 has no versioning support, so we append a major version to the name.
10224 soname_spec
='${libname}${release}${shared_ext}$major'
10231 hardcode_into_libs
=yes
10232 if test "$host_cpu" = ia64
; then
10233 # AIX 5 supports IA64
10234 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10235 shlibpath_var
=LD_LIBRARY_PATH
10237 # With GCC up to 2.95.x, collect2 would create an import file
10238 # for dependence libraries. The import file would start with
10239 # the line `#! .'. This would cause the generated library to
10240 # depend on `.', always an invalid library. This was fixed in
10241 # development snapshots of GCC prior to 3.0.
10243 aix4
| aix4.
[01] | aix4.
[01].
*)
10244 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10246 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev
/null
; then
10249 can_build_shared
=no
10253 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10254 # soname into executable. Probably we can add versioning support to
10255 # collect2, so additional links can be useful in future.
10256 if test "$aix_use_runtimelinking" = yes; then
10257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10258 # instead of lib<name>.a to let people know that these are not
10259 # typical AIX shared libraries.
10260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262 # We preserve .a as extension for shared libraries through AIX4.2
10263 # and later when we are not doing run time linking.
10264 library_names_spec
='${libname}${release}.a $libname.a'
10265 soname_spec
='${libname}${release}${shared_ext}$major'
10267 shlibpath_var
=LIBPATH
10274 # Since July 2007 AmigaOS4 officially supports .so libraries.
10275 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10276 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 library_names_spec
='$libname.ixlibrary $libname.a'
10280 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10281 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'
10287 library_names_spec
='${libname}${shared_ext}'
10288 dynamic_linker
="$host_os ld.so"
10289 shlibpath_var
=LIBRARY_PATH
10295 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec
='${libname}${release}${shared_ext}$major'
10297 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10298 shlibpath_var
=LD_LIBRARY_PATH
10299 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10300 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10301 # the default ld.so.conf also contains /usr/contrib/lib and
10302 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10303 # libtool to hard-code these into programs
10306 cygwin
* | mingw
* | pw32
* | cegcc
*)
10307 version_type
=windows
10312 case $GCC,$host_os in
10313 yes,cygwin
* | yes,mingw
* | yes,pw32
* | yes,cegcc
*)
10314 library_names_spec
='$libname.dll.a'
10315 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10316 postinstall_cmds
='base_file=`basename \${file}`~
10317 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10318 dldir=$destdir/`dirname \$dlpath`~
10319 test -d \$dldir || mkdir -p \$dldir~
10320 $install_prog $dir/$dlname \$dldir/$dlname~
10321 chmod a+x \$dldir/$dlname~
10322 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10323 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10325 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10326 dlpath=$dir/\$dldll~
10328 shlibpath_overrides_runpath
=yes
10332 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10333 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10334 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
10337 # MinGW DLLs use traditional 'lib' prefix
10338 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10339 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10340 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev
/null
; then
10341 # It is most probably a Windows format PATH printed by
10342 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10343 # path with ; separators, and with drive letters. We can handle the
10344 # drive letters (cygwin fileutils understands them), so leave them,
10345 # especially as we might pass files found there to a mingw objdump,
10346 # which wouldn't understand a cygwinified path. Ahh.
10347 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10349 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10353 # pw32 DLLs use 'pw' prefix rather than 'lib'
10354 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
10360 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
10363 dynamic_linker
='Win32 ld.exe'
10364 # FIXME: first we should search . and the directory the executable is in
10368 darwin
* | rhapsody
*)
10369 dynamic_linker
="$host_os dyld"
10370 version_type
=darwin
10373 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10374 soname_spec
='${libname}${release}${major}$shared_ext'
10375 shlibpath_overrides_runpath
=yes
10376 shlibpath_var
=DYLD_LIBRARY_PATH
10377 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10379 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10380 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10388 soname_spec
='${libname}${release}${shared_ext}$major'
10389 shlibpath_var
=LD_LIBRARY_PATH
10396 freebsd
* | dragonfly
*)
10397 # DragonFly does not have aout. When/if they implement a new
10398 # versioning mechanism, adjust this.
10399 if test -x /usr
/bin
/objformat
; then
10400 objformat
=`/usr/bin/objformat`
10403 freebsd
[123]*) objformat
=aout
;;
10404 *) objformat
=elf
;;
10407 version_type
=freebsd
-$objformat
10408 case $version_type in
10410 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10415 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10419 shlibpath_var
=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath
=yes
10424 freebsd3.
[01]* | freebsdelf3.
[01]*)
10425 shlibpath_overrides_runpath
=yes
10426 hardcode_into_libs
=yes
10428 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10429 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10430 shlibpath_overrides_runpath
=no
10431 hardcode_into_libs
=yes
10433 *) # from 4.6 on, and DragonFly
10434 shlibpath_overrides_runpath
=yes
10435 hardcode_into_libs
=yes
10444 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10445 soname_spec
='${libname}${release}${shared_ext}$major'
10446 shlibpath_var
=LD_LIBRARY_PATH
10447 hardcode_into_libs
=yes
10450 hpux9
* | hpux10
* | hpux11
*)
10451 # Give a soname corresponding to the major version so that dld.sl refuses to
10452 # link against other versions.
10459 hardcode_into_libs
=yes
10460 dynamic_linker
="$host_os dld.so"
10461 shlibpath_var
=LD_LIBRARY_PATH
10462 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10463 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec
='${libname}${release}${shared_ext}$major'
10465 if test "X$HPUX_IA64_MODE" = X32
; then
10466 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10468 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10470 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10474 hardcode_into_libs
=yes
10475 dynamic_linker
="$host_os dld.sl"
10476 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10477 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10478 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 soname_spec
='${libname}${release}${shared_ext}$major'
10480 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10481 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10485 dynamic_linker
="$host_os dld.sl"
10486 shlibpath_var
=SHLIB_PATH
10487 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10488 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489 soname_spec
='${libname}${release}${shared_ext}$major'
10492 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10493 postinstall_cmds
='chmod 555 $lib'
10500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10501 soname_spec
='${libname}${release}${shared_ext}$major'
10502 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10503 shlibpath_var
=LD_LIBRARY_PATH
10504 shlibpath_overrides_runpath
=no
10505 hardcode_into_libs
=yes
10508 irix5
* | irix6
* | nonstopux
*)
10510 nonstopux
*) version_type
=nonstopux
;;
10512 if test "$lt_cv_prog_gnu_ld" = yes; then
10520 soname_spec
='${libname}${release}${shared_ext}$major'
10521 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10523 irix5
* | nonstopux
*)
10524 libsuff
= shlibsuff
=
10527 case $LD in # libtool.m4 will add one of these switches to LD
10528 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10529 libsuff
= shlibsuff
= libmagic
=32-bit;;
10530 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10531 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10532 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10533 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10534 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
10538 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10539 shlibpath_overrides_runpath
=no
10540 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10541 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10542 hardcode_into_libs
=yes
10545 # No shared lib support for Linux oldld, aout, or coff.
10546 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10550 # This must be Linux ELF.
10551 linux
* | k
*bsd
*-gnu)
10555 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 soname_spec
='${libname}${release}${shared_ext}$major'
10557 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10558 shlibpath_var
=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath
=no
10560 # Some binutils ld are patched to set DT_RUNPATH
10561 save_LDFLAGS
=$LDFLAGS
10562 save_libdir
=$libdir
10563 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10564 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10576 if ac_fn_c_try_link
"$LINENO"; then :
10577 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null
| grep "RUNPATH.*$libdir" >/dev
/null
; then :
10578 shlibpath_overrides_runpath
=yes
10581 rm -f core conftest.err conftest.
$ac_objext \
10582 conftest
$ac_exeext conftest.
$ac_ext
10583 LDFLAGS
=$save_LDFLAGS
10584 libdir
=$save_libdir
10586 # This implies no fast_install, which is unacceptable.
10587 # Some rework will be needed to allow for fast_install
10588 # before this can be enabled.
10589 hardcode_into_libs
=yes
10591 # Add ABI-specific directories to the system library path.
10592 sys_lib_dlsearch_path_spec
="/lib64 /usr/lib64 /lib /usr/lib"
10594 # Append ld.so.conf contents to the search path
10595 if test -f /etc
/ld.so.conf
; then
10596 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' ' '`
10597 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10600 # We used to test for /lib/ld.so.1 and disable shared libraries on
10601 # powerpc, because MkLinux only supported shared libraries with the
10602 # GNU dynamic linker. Since this was broken with cross compilers,
10603 # most powerpc-linux boxes support dynamic linking these days and
10604 # people can always --disable-shared, the test was removed, and we
10605 # assume the GNU/Linux dynamic linker is in use.
10606 dynamic_linker
='GNU/Linux ld.so'
10613 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
10614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10615 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10616 dynamic_linker
='NetBSD (a.out) ld.so'
10618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10619 soname_spec
='${libname}${release}${shared_ext}$major'
10620 dynamic_linker
='NetBSD ld.elf_so'
10622 shlibpath_var
=LD_LIBRARY_PATH
10623 shlibpath_overrides_runpath
=yes
10624 hardcode_into_libs
=yes
10629 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 shlibpath_var
=LD_LIBRARY_PATH
10631 shlibpath_overrides_runpath
=yes
10638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639 soname_spec
='${libname}${release}${shared_ext}$major'
10640 shlibpath_var
=LD_LIBRARY_PATH
10641 shlibpath_overrides_runpath
=no
10642 hardcode_into_libs
=yes
10643 dynamic_linker
='ldqnx.so'
10648 sys_lib_dlsearch_path_spec
="/usr/lib"
10650 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10652 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
10653 *) need_version
=no
;;
10655 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10656 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10657 shlibpath_var
=LD_LIBRARY_PATH
10658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10660 openbsd2.
[89] | openbsd2.
[89].
*)
10661 shlibpath_overrides_runpath
=no
10664 shlibpath_overrides_runpath
=yes
10668 shlibpath_overrides_runpath
=yes
10673 libname_spec
='$name'
10676 library_names_spec
='$libname${shared_ext} $libname.a'
10677 dynamic_linker
='OS/2 ld.exe'
10678 shlibpath_var
=LIBPATH
10681 osf3
* | osf4
* | osf5
*)
10685 soname_spec
='${libname}${release}${shared_ext}$major'
10686 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687 shlibpath_var
=LD_LIBRARY_PATH
10688 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10689 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec
='${libname}${release}${shared_ext}$major'
10702 shlibpath_var
=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath
=yes
10704 hardcode_into_libs
=yes
10705 # ldd complains unless libraries are executable
10706 postinstall_cmds
='chmod +x $lib'
10711 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10712 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10713 shlibpath_var
=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath
=yes
10715 if test "$with_gnu_ld" = yes; then
10723 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec
='${libname}${release}${shared_ext}$major'
10725 shlibpath_var
=LD_LIBRARY_PATH
10726 case $host_vendor in
10728 shlibpath_overrides_runpath
=no
10730 runpath_var
=LD_RUN_PATH
10738 shlibpath_overrides_runpath
=no
10739 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10745 if test -d /usr
/nec
;then
10747 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10748 soname_spec
='$libname${shared_ext}.$major'
10749 shlibpath_var
=LD_LIBRARY_PATH
10753 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10754 version_type
=freebsd
-elf
10757 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10758 soname_spec
='${libname}${release}${shared_ext}$major'
10759 shlibpath_var
=LD_LIBRARY_PATH
10760 shlibpath_overrides_runpath
=yes
10761 hardcode_into_libs
=yes
10762 if test "$with_gnu_ld" = yes; then
10763 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10765 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10768 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10772 sys_lib_dlsearch_path_spec
='/usr/lib'
10776 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10780 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 shlibpath_var
=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath
=no
10783 hardcode_into_libs
=yes
10788 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 soname_spec
='${libname}${release}${shared_ext}$major'
10790 shlibpath_var
=LD_LIBRARY_PATH
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10798 $as_echo "$dynamic_linker" >&6; }
10799 test "$dynamic_linker" = no
&& can_build_shared
=no
10801 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10802 if test "$GCC" = yes; then
10803 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10806 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10807 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10809 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10810 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10900 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10902 if test -n "$hardcode_libdir_flag_spec" ||
10903 test -n "$runpath_var" ||
10904 test "X$hardcode_automatic" = "Xyes" ; then
10906 # We can hardcode non-existent directories.
10907 if test "$hardcode_direct" != no
&&
10908 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10909 # have to relink, otherwise we might link with an installed library
10910 # when we should be linking with a yet-to-be-installed one
10911 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10912 test "$hardcode_minus_L" != no
; then
10913 # Linking always hardcodes the temporary library directory.
10914 hardcode_action
=relink
10916 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10917 hardcode_action
=immediate
10920 # We cannot hardcode anything, or else we can only hardcode existing
10922 hardcode_action
=unsupported
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10925 $as_echo "$hardcode_action" >&6; }
10927 if test "$hardcode_action" = relink
||
10928 test "$inherit_rpath" = yes; then
10929 # Fast installation is not supported
10930 enable_fast_install
=no
10931 elif test "$shlibpath_overrides_runpath" = yes ||
10932 test "$enable_shared" = no
; then
10933 # Fast installation is not necessary
10934 enable_fast_install
=needless
10942 if test "x$enable_dlopen" != xyes
; then
10943 enable_dlopen
=unknown
10944 enable_dlopen_self
=unknown
10945 enable_dlopen_self_static
=unknown
10952 lt_cv_dlopen
="load_add_on"
10954 lt_cv_dlopen_self
=yes
10957 mingw
* | pw32
* | cegcc
*)
10958 lt_cv_dlopen
="LoadLibrary"
10963 lt_cv_dlopen
="dlopen"
10968 # if libdl is installed we need to link against it
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10970 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10971 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10972 $as_echo_n "(cached) " >&6
10974 ac_check_lib_save_LIBS
=$LIBS
10976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10979 /* Override any GCC internal prototype to avoid an error.
10980 Use char because int might match the return type of a GCC
10981 builtin and then its argument prototype would still apply. */
10994 if ac_fn_c_try_link
"$LINENO"; then :
10995 ac_cv_lib_dl_dlopen
=yes
10997 ac_cv_lib_dl_dlopen
=no
10999 rm -f core conftest.err conftest.
$ac_objext \
11000 conftest
$ac_exeext conftest.
$ac_ext
11001 LIBS
=$ac_check_lib_save_LIBS
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11005 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11006 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11009 lt_cv_dlopen
="dyld"
11011 lt_cv_dlopen_self
=yes
11018 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11019 if test "x$ac_cv_func_shl_load" = xyes
; then :
11020 lt_cv_dlopen
="shl_load"
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11023 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11024 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11025 $as_echo_n "(cached) " >&6
11027 ac_check_lib_save_LIBS
=$LIBS
11029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11030 /* end confdefs.h. */
11032 /* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
11042 return shl_load ();
11047 if ac_fn_c_try_link
"$LINENO"; then :
11048 ac_cv_lib_dld_shl_load
=yes
11050 ac_cv_lib_dld_shl_load
=no
11052 rm -f core conftest.err conftest.
$ac_objext \
11053 conftest
$ac_exeext conftest.
$ac_ext
11054 LIBS
=$ac_check_lib_save_LIBS
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11057 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11058 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11059 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11061 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11062 if test "x$ac_cv_func_dlopen" = xyes
; then :
11063 lt_cv_dlopen
="dlopen"
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11067 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11068 $as_echo_n "(cached) " >&6
11070 ac_check_lib_save_LIBS
=$LIBS
11072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11090 if ac_fn_c_try_link
"$LINENO"; then :
11091 ac_cv_lib_dl_dlopen
=yes
11093 ac_cv_lib_dl_dlopen
=no
11095 rm -f core conftest.err conftest.
$ac_objext \
11096 conftest
$ac_exeext conftest.
$ac_ext
11097 LIBS
=$ac_check_lib_save_LIBS
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11101 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11102 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11105 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11106 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11107 $as_echo_n "(cached) " >&6
11109 ac_check_lib_save_LIBS
=$LIBS
11110 LIBS
="-lsvld $LIBS"
11111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11114 /* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11129 if ac_fn_c_try_link
"$LINENO"; then :
11130 ac_cv_lib_svld_dlopen
=yes
11132 ac_cv_lib_svld_dlopen
=no
11134 rm -f core conftest.err conftest.
$ac_objext \
11135 conftest
$ac_exeext conftest.
$ac_ext
11136 LIBS
=$ac_check_lib_save_LIBS
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11139 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11140 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11141 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11144 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11145 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11146 $as_echo_n "(cached) " >&6
11148 ac_check_lib_save_LIBS
=$LIBS
11150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11153 /* Override any GCC internal prototype to avoid an error.
11154 Use char because int might match the return type of a GCC
11155 builtin and then its argument prototype would still apply. */
11163 return dld_link ();
11168 if ac_fn_c_try_link
"$LINENO"; then :
11169 ac_cv_lib_dld_dld_link
=yes
11171 ac_cv_lib_dld_dld_link
=no
11173 rm -f core conftest.err conftest.
$ac_objext \
11174 conftest
$ac_exeext conftest.
$ac_ext
11175 LIBS
=$ac_check_lib_save_LIBS
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11178 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11179 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11180 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11201 if test "x$lt_cv_dlopen" != xno
; then
11207 case $lt_cv_dlopen in
11209 save_CPPFLAGS
="$CPPFLAGS"
11210 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11212 save_LDFLAGS
="$LDFLAGS"
11213 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11216 LIBS
="$lt_cv_dlopen_libs $LIBS"
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11219 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11220 if ${lt_cv_dlopen_self+:} false
; then :
11221 $as_echo_n "(cached) " >&6
11223 if test "$cross_compiling" = yes; then :
11224 lt_cv_dlopen_self
=cross
11226 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11227 lt_status
=$lt_dlunknown
11228 cat > conftest.
$ac_ext <<_LT_EOF
11229 #line 11229 "configure"
11230 #include "confdefs.h"
11239 # define LT_DLGLOBAL RTLD_GLOBAL
11242 # define LT_DLGLOBAL DL_GLOBAL
11244 # define LT_DLGLOBAL 0
11248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11249 find out it does not work in some platform. */
11250 #ifndef LT_DLLAZY_OR_NOW
11252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11255 # define LT_DLLAZY_OR_NOW DL_LAZY
11258 # define LT_DLLAZY_OR_NOW RTLD_NOW
11261 # define LT_DLLAZY_OR_NOW DL_NOW
11263 # define LT_DLLAZY_OR_NOW 0
11270 void fnord() { int i=42;}
11273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11274 int status = $lt_dlunknown;
11278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11279 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11280 /* dlclose (self); */
11288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11289 (eval $ac_link) 2>&5
11291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11292 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11293 (.
/conftest
; exit; ) >&5 2>/dev
/null
11295 case x
$lt_status in
11296 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11297 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11298 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11301 # compilation failed
11302 lt_cv_dlopen_self
=no
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11310 $as_echo "$lt_cv_dlopen_self" >&6; }
11312 if test "x$lt_cv_dlopen_self" = xyes
; then
11313 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11315 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11316 if ${lt_cv_dlopen_self_static+:} false
; then :
11317 $as_echo_n "(cached) " >&6
11319 if test "$cross_compiling" = yes; then :
11320 lt_cv_dlopen_self_static
=cross
11322 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11323 lt_status
=$lt_dlunknown
11324 cat > conftest.
$ac_ext <<_LT_EOF
11325 #line 11325 "configure"
11326 #include "confdefs.h"
11335 # define LT_DLGLOBAL RTLD_GLOBAL
11338 # define LT_DLGLOBAL DL_GLOBAL
11340 # define LT_DLGLOBAL 0
11344 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11345 find out it does not work in some platform. */
11346 #ifndef LT_DLLAZY_OR_NOW
11348 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11351 # define LT_DLLAZY_OR_NOW DL_LAZY
11354 # define LT_DLLAZY_OR_NOW RTLD_NOW
11357 # define LT_DLLAZY_OR_NOW DL_NOW
11359 # define LT_DLLAZY_OR_NOW 0
11366 void fnord() { int i=42;}
11369 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11370 int status = $lt_dlunknown;
11374 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11375 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11376 /* dlclose (self); */
11384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11385 (eval $ac_link) 2>&5
11387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11388 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11389 (.
/conftest
; exit; ) >&5 2>/dev
/null
11391 case x
$lt_status in
11392 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11393 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11394 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11397 # compilation failed
11398 lt_cv_dlopen_self_static
=no
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11406 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11409 CPPFLAGS
="$save_CPPFLAGS"
11410 LDFLAGS
="$save_LDFLAGS"
11415 case $lt_cv_dlopen_self in
11416 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11417 *) enable_dlopen_self
=unknown
;;
11420 case $lt_cv_dlopen_self_static in
11421 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11422 *) enable_dlopen_self_static
=unknown
;;
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11445 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11446 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev
/null
; then
11447 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11448 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11450 $as_echo "yes" >&6; }
11452 # FIXME - insert some real tests, host_os isn't really good enough
11455 if test -n "$STRIP" ; then
11456 striplib
="$STRIP -x"
11457 old_striplib
="$STRIP -S"
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11459 $as_echo "yes" >&6; }
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11483 # Report which library types will actually be built
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11485 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11487 $as_echo "$can_build_shared" >&6; }
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11490 $as_echo_n "checking whether to build shared libraries... " >&6; }
11491 test "$can_build_shared" = "no" && enable_shared
=no
11493 # On AIX, shared libraries and static libraries use the same namespace, and
11494 # are all built from PIC.
11497 test "$enable_shared" = yes && enable_static
=no
11498 if test -n "$RANLIB"; then
11499 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11500 postinstall_cmds
='$RANLIB $lib'
11505 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11506 test "$enable_shared" = yes && enable_static
=no
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11511 $as_echo "$enable_shared" >&6; }
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11514 $as_echo_n "checking whether to build static libraries... " >&6; }
11515 # Make sure either enable_shared or enable_static is yes.
11516 test "$enable_shared" = yes || enable_static
=yes
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11518 $as_echo "$enable_static" >&6; }
11525 ac_cpp
='$CPP $CPPFLAGS'
11526 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11544 ac_config_commands
="$ac_config_commands libtool"
11549 # Only expand once:
11553 LIBTOOL
="$LIBTOOL --silent"
11558 cat >>confdefs.h
<<_ACEOF
11563 cat >>confdefs.h
<<_ACEOF
11570 cat >>confdefs.h
<<_ACEOF
11575 cat >>confdefs.h
<<_ACEOF
11579 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
11580 if test "x$ac_cv_header_windows_h" = xyes
; then :
11583 as_fn_error $?
"** MinGW and no windows.h. I give up." "$LINENO" 5
11587 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
11588 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
11591 as_fn_error $?
"** MinGW and no winsock2.h. I give up." "$LINENO" 5
11596 cat >>confdefs.h
<<_ACEOF
11597 #define HAVE_WINSOCK2_H 1
11601 cat >>confdefs.h
<<_ACEOF
11602 #define HAVE_WINSOCK_H 1
11605 LIBS
="$LIBS -lws2_32 -liphlpapi"
11609 CPPFLAGS
="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
11612 CPPFLAGS
="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
11618 if test "$is_mingw" = "yes"; then
11628 # backwards support for IRC_CFLAGS
11629 CFLAGS
="$IRC_CFLAGS $CFLAGS -Wall"
11631 if test "$libexecdir" = '${exec_prefix}/libexec' &&
11632 test "$localstatedir" = '${prefix}/var'; then
11633 libexecdir
='${bindir}'
11634 localstatedir
='${prefix}'
11637 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11638 if test "x$ac_cv_type_pid_t" = xyes
; then :
11642 cat >>confdefs.h
<<_ACEOF
11648 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11649 if test "x$ac_cv_type_size_t" = xyes
; then :
11653 cat >>confdefs.h
<<_ACEOF
11654 #define size_t unsigned int
11659 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11660 if test "x$ac_cv_type_ssize_t" = xyes
; then :
11664 cat >>confdefs.h
<<_ACEOF
11665 #define ssize_t int
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11671 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11672 if ${ac_cv_type_uid_t+:} false
; then :
11673 $as_echo_n "(cached) " >&6
11675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11677 #include <sys/types.h>
11680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11681 $EGREP "uid_t" >/dev
/null
2>&1; then :
11682 ac_cv_type_uid_t
=yes
11684 ac_cv_type_uid_t
=no
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11690 $as_echo "$ac_cv_type_uid_t" >&6; }
11691 if test $ac_cv_type_uid_t = no
; then
11693 $as_echo "#define uid_t int" >>confdefs.h
11696 $as_echo "#define gid_t int" >>confdefs.h
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11703 $as_echo_n "checking for ANSI C header files... " >&6; }
11704 if ${ac_cv_header_stdc+:} false
; then :
11705 $as_echo_n "(cached) " >&6
11707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709 #include <stdlib.h>
11710 #include <stdarg.h>
11711 #include <string.h>
11722 if ac_fn_c_try_compile
"$LINENO"; then :
11723 ac_cv_header_stdc
=yes
11725 ac_cv_header_stdc
=no
11727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11729 if test $ac_cv_header_stdc = yes; then
11730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11733 #include <string.h>
11736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11737 $EGREP "memchr" >/dev
/null
2>&1; then :
11740 ac_cv_header_stdc
=no
11746 if test $ac_cv_header_stdc = yes; then
11747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11750 #include <stdlib.h>
11753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11754 $EGREP "free" >/dev
/null
2>&1; then :
11757 ac_cv_header_stdc
=no
11763 if test $ac_cv_header_stdc = yes; then
11764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11765 if test "$cross_compiling" = yes; then :
11768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h. */
11771 #include <stdlib.h>
11772 #if ((' ' & 0x0FF) == 0x020)
11773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11776 # define ISLOWER(c) \
11777 (('a' <= (c) && (c) <= 'i') \
11778 || ('j' <= (c) && (c) <= 'r') \
11779 || ('s' <= (c) && (c) <= 'z'))
11780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11788 for (i = 0; i < 256; i++)
11789 if (XOR (islower (i), ISLOWER (i))
11790 || toupper (i) != TOUPPER (i))
11795 if ac_fn_c_try_run
"$LINENO"; then :
11798 ac_cv_header_stdc
=no
11800 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11801 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11807 $as_echo "$ac_cv_header_stdc" >&6; }
11808 if test $ac_cv_header_stdc = yes; then
11810 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11815 for ac_header
in crypt.h unistd.h sys
/socket.h sys
/stat.h sys
/time.h
time.h netinet
/in.h arpa
/inet.h errno.h sys
/uio.h spawn.h sys
/poll.h sys
/epoll.h sys
/select.h sys
/devpoll.h sys
/event.h port.h signal.h sys
/signalfd.h sys
/timerfd.h
11817 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11818 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11819 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
11820 cat >>confdefs.h
<<_ACEOF
11821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11829 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11830 if ${ac_cv_header_time+:} false
; then :
11831 $as_echo_n "(cached) " >&6
11833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835 #include <sys/types.h>
11836 #include <sys/time.h>
11842 if ((struct tm *) 0)
11848 if ac_fn_c_try_compile
"$LINENO"; then :
11849 ac_cv_header_time
=yes
11851 ac_cv_header_time
=no
11853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11856 $as_echo "$ac_cv_header_time" >&6; }
11857 if test $ac_cv_header_time = yes; then
11859 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11866 $as_echo_n "checking for library containing socket... " >&6; }
11867 if ${ac_cv_search_socket+:} false
; then :
11868 $as_echo_n "(cached) " >&6
11870 ac_func_search_save_LIBS
=$LIBS
11871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11872 /* end confdefs.h. */
11874 /* Override any GCC internal prototype to avoid an error.
11875 Use char because int might match the return type of a GCC
11876 builtin and then its argument prototype would still apply. */
11889 for ac_lib
in '' socket
; do
11890 if test -z "$ac_lib"; then
11891 ac_res
="none required"
11894 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11896 if ac_fn_c_try_link
"$LINENO"; then :
11897 ac_cv_search_socket
=$ac_res
11899 rm -f core conftest.err conftest.
$ac_objext \
11901 if ${ac_cv_search_socket+:} false
; then :
11905 if ${ac_cv_search_socket+:} false
; then :
11908 ac_cv_search_socket
=no
11910 rm conftest.
$ac_ext
11911 LIBS
=$ac_func_search_save_LIBS
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11914 $as_echo "$ac_cv_search_socket" >&6; }
11915 ac_res
=$ac_cv_search_socket
11916 if test "$ac_res" != no
; then :
11917 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11923 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
11924 #ifdef HAVE_SYS_TYPES_H
11925 #include <sys/types.h>
11927 #ifdef HAVE_SYS_SOCKET_H
11928 #include <sys/socket.h>
11930 #ifdef HAVE_WINSOCK2_H
11931 #include <winsock2.h>
11935 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
11937 $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
11942 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11943 #include <sys/socket.h>
11945 if test "x$ac_cv_type_socklen_t" = xyes
; then :
11946 rb_cv_socklen_t
=socklen_t
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
11950 $as_echo_n "checking for socklen_t equivalent... " >&6; }
11951 if ${rb_cv_socklen_t+:} false
; then :
11952 $as_echo_n "(cached) " >&6
11955 # Systems have either "struct sockaddr *" or
11956 # "void *" as the second argument to getpeername
11958 for arg2
in "struct sockaddr" void
; do
11959 for t
in int size_t unsigned long
"unsigned long"; do
11960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11961 /* end confdefs.h. */
11963 #ifdef HAVE_SYS_TYPES_H
11964 #include <sys/types.h>
11966 #ifdef HAVE_SYS_SOCKET_H
11967 #include <sys/socket.h>
11969 #ifdef HAVE_WINSOCK2_H
11970 #include <winsock2.h>
11972 int getpeername (int, $arg2 *, $t *);
11979 getpeername(0,0,&len);
11985 if ac_fn_c_try_compile
"$LINENO"; then :
11987 rb_cv_socklen_t
="$t"
11991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11995 if test "x$rb_cv_socklen_t" = x
; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
11997 $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
11998 rb_cv_socklen_t
=int
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
12004 $as_echo "$rb_cv_socklen_t" >&6; }
12008 rb_socklen_t
=$rb_cv_socklen_t
12014 # Check whether --enable-ipv6 was given.
12015 if test "${enable_ipv6+set}" = set; then :
12016 enableval
=$enable_ipv6; ipv6
=$enableval
12022 if test x
$ipv6 != xyes
; then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
12029 $as_echo_n "checking for INET6 protocol support... " >&6; }
12030 if ${rb_cv_proto_inet6+:} false
; then :
12031 $as_echo_n "(cached) " >&6
12034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12037 #include <sys/types.h>
12038 #include <sys/socket.h>
12041 #error Missing PF_INET6
12044 #error Mlssing AF_INET6
12048 if ac_fn_c_try_cpp
"$LINENO"; then :
12050 rb_cv_proto_inet6
=yes
12054 rb_cv_proto_inet6
=no
12057 rm -f conftest.err conftest.i conftest.
$ac_ext
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
12061 $as_echo "$rb_cv_proto_inet6" >&6; }
12063 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
12068 $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
12074 if test "X$have_v6" = "Xyes"; then
12076 rb_have_sockaddr_in6
=
12077 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
12078 #include <sys/types.h>
12079 #include <sys/socket.h>
12080 #include <netinet/in.h>
12083 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
12085 cat >>confdefs.h
<<_ACEOF
12086 #define HAVE_STRUCT_SOCKADDR_IN6 1
12090 rb_have_sockaddr_in6
=yes
12094 rb_have_sockaddr_in6
=no
12099 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
12104 $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
12113 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
12114 #include <sys/types.h>
12115 #include <sys/socket.h>
12118 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
12120 cat >>confdefs.h
<<_ACEOF
12121 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12125 rb_have_sockaddr_storage
=yes
12131 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12132 if test "x$ac_cv_header_stdarg_h" = xyes
; then :
12135 as_fn_error $?
"** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
12140 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
12141 #include <sys/socket.h>
12143 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
12147 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
12153 for ac_func
in socketpair gettimeofday writev sendmsg gmtime_r strtok_r
usleep posix_spawn strlcpy strlcat strnlen fstat signalfd
select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create
12155 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12156 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12157 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12158 cat >>confdefs.h
<<_ACEOF
12159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
12167 $as_echo_n "checking for library containing nanosleep... " >&6; }
12168 if ${ac_cv_search_nanosleep+:} false
; then :
12169 $as_echo_n "(cached) " >&6
12171 ac_func_search_save_LIBS
=$LIBS
12172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12175 /* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12185 return nanosleep ();
12190 for ac_lib
in '' rt posix4
; do
12191 if test -z "$ac_lib"; then
12192 ac_res
="none required"
12195 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12197 if ac_fn_c_try_link
"$LINENO"; then :
12198 ac_cv_search_nanosleep
=$ac_res
12200 rm -f core conftest.err conftest.
$ac_objext \
12202 if ${ac_cv_search_nanosleep+:} false
; then :
12206 if ${ac_cv_search_nanosleep+:} false
; then :
12209 ac_cv_search_nanosleep
=no
12211 rm conftest.
$ac_ext
12212 LIBS
=$ac_func_search_save_LIBS
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
12215 $as_echo "$ac_cv_search_nanosleep" >&6; }
12216 ac_res
=$ac_cv_search_nanosleep
12217 if test "$ac_res" != no
; then :
12218 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12220 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
12225 $as_echo_n "checking for library containing timer_create... " >&6; }
12226 if ${ac_cv_search_timer_create+:} false
; then :
12227 $as_echo_n "(cached) " >&6
12229 ac_func_search_save_LIBS
=$LIBS
12230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12239 char timer_create ();
12243 return timer_create ();
12248 for ac_lib
in '' rt
; do
12249 if test -z "$ac_lib"; then
12250 ac_res
="none required"
12253 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12255 if ac_fn_c_try_link
"$LINENO"; then :
12256 ac_cv_search_timer_create
=$ac_res
12258 rm -f core conftest.err conftest.
$ac_objext \
12260 if ${ac_cv_search_timer_create+:} false
; then :
12264 if ${ac_cv_search_timer_create+:} false
; then :
12267 ac_cv_search_timer_create
=no
12269 rm conftest.
$ac_ext
12270 LIBS
=$ac_func_search_save_LIBS
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
12273 $as_echo "$ac_cv_search_timer_create" >&6; }
12274 ac_res
=$ac_cv_search_timer_create
12275 if test "$ac_res" != no
; then :
12276 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12278 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
12283 $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
12284 if ${rb__cv_timer_create_works+:} false
; then :
12285 $as_echo_n "(cached) " >&6
12287 if test "$cross_compiling" = yes; then :
12288 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12290 as_fn_error $?
"cannot run test program while cross compiling
12291 See \`config.log' for more details" "$LINENO" 5; }
12293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12299 #ifdef HAVE_SIGNAL_H
12300 #include <signal.h>
12302 #ifdef HAVE_UNISTD_H
12303 #include <unistd.h>
12305 int main(int argc, char *argv[])
12307 #if HAVE_TIMER_CREATE
12308 struct sigevent ev;
12310 ev.sigev_notify = SIGEV_SIGNAL;
12311 ev.sigev_signo = SIGVTALRM;
12312 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
12322 if ac_fn_c_try_run
"$LINENO"; then :
12323 rb__cv_timer_create_works
=yes
12325 rb__cv_timer_create_works
=no
12327 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12328 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
12334 $as_echo "$rb__cv_timer_create_works" >&6; }
12335 case $rb__cv_timer_create_works in
12337 $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
12342 $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
12343 if ${rb__cv_timerfd_create_works+:} false
; then :
12344 $as_echo_n "(cached) " >&6
12346 if test "$cross_compiling" = yes; then :
12347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12349 as_fn_error $?
"cannot run test program while cross compiling
12350 See \`config.log' for more details" "$LINENO" 5; }
12352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12353 /* end confdefs.h. */
12358 #ifdef HAVE_SIGNAL_H
12359 #include <signal.h>
12361 #ifdef HAVE_UNISTD_H
12362 #include <unistd.h>
12364 #ifdef HAVE_SYS_TIMERFD_H
12365 #include <sys/timerfd.h>
12367 int main(int argc, char *argv[])
12369 #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
12370 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
12380 if ac_fn_c_try_run
"$LINENO"; then :
12381 rb__cv_timerfd_create_works
=yes
12383 rb__cv_timerfd_create_works
=no
12385 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12386 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
12392 $as_echo "$rb__cv_timerfd_create_works" >&6; }
12393 case $rb__cv_timerfd_create_works in
12395 $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
12400 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12401 # for constant arguments. Useless!
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12403 $as_echo_n "checking for working alloca.h... " >&6; }
12404 if ${ac_cv_working_alloca_h+:} false
; then :
12405 $as_echo_n "(cached) " >&6
12407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h. */
12409 #include <alloca.h>
12413 char *p = (char *) alloca (2 * sizeof (int));
12419 if ac_fn_c_try_link
"$LINENO"; then :
12420 ac_cv_working_alloca_h
=yes
12422 ac_cv_working_alloca_h
=no
12424 rm -f core conftest.err conftest.
$ac_objext \
12425 conftest
$ac_exeext conftest.
$ac_ext
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12428 $as_echo "$ac_cv_working_alloca_h" >&6; }
12429 if test $ac_cv_working_alloca_h = yes; then
12431 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12436 $as_echo_n "checking for alloca... " >&6; }
12437 if ${ac_cv_func_alloca_works+:} false
; then :
12438 $as_echo_n "(cached) " >&6
12440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12443 # define alloca __builtin_alloca
12446 # include <malloc.h>
12447 # define alloca _alloca
12449 # ifdef HAVE_ALLOCA_H
12450 # include <alloca.h>
12455 # ifndef alloca /* predefined by HP cc +Olibcalls */
12456 void *alloca (size_t);
12466 char *p = (char *) alloca (1);
12472 if ac_fn_c_try_link
"$LINENO"; then :
12473 ac_cv_func_alloca_works
=yes
12475 ac_cv_func_alloca_works
=no
12477 rm -f core conftest.err conftest.
$ac_objext \
12478 conftest
$ac_exeext conftest.
$ac_ext
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12481 $as_echo "$ac_cv_func_alloca_works" >&6; }
12483 if test $ac_cv_func_alloca_works = yes; then
12485 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12488 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12489 # that cause trouble. Some versions do not even contain alloca or
12490 # contain a buggy version. If you still want to use their alloca,
12491 # use ar to extract alloca.o from them instead of compiling alloca.c.
12493 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
12495 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12499 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12500 if ${ac_cv_os_cray+:} false
; then :
12501 $as_echo_n "(cached) " >&6
12503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12504 /* end confdefs.h. */
12505 #if defined CRAY && ! defined CRAY2
12512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12513 $EGREP "webecray" >/dev
/null
2>&1; then :
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12522 $as_echo "$ac_cv_os_cray" >&6; }
12523 if test $ac_cv_os_cray = yes; then
12524 for ac_func
in _getb67 GETB67 getb67
; do
12525 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12526 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12527 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12529 cat >>confdefs.h
<<_ACEOF
12530 #define CRAY_STACKSEG_END $ac_func
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12540 $as_echo_n "checking stack direction for C alloca... " >&6; }
12541 if ${ac_cv_c_stack_direction+:} false
; then :
12542 $as_echo_n "(cached) " >&6
12544 if test "$cross_compiling" = yes; then :
12545 ac_cv_c_stack_direction
=0
12547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12549 $ac_includes_default
12551 find_stack_direction ()
12553 static char *addr = 0;
12558 return find_stack_direction ();
12561 return (&dummy > addr) ? 1 : -1;
12567 return find_stack_direction () < 0;
12570 if ac_fn_c_try_run
"$LINENO"; then :
12571 ac_cv_c_stack_direction
=1
12573 ac_cv_c_stack_direction
=-1
12575 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12576 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12581 $as_echo "$ac_cv_c_stack_direction" >&6; }
12582 cat >>confdefs.h
<<_ACEOF
12583 #define STACK_DIRECTION $ac_cv_c_stack_direction
12589 for ac_header
in vfork.h
12591 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12592 if test "x$ac_cv_header_vfork_h" = xyes
; then :
12593 cat >>confdefs.h
<<_ACEOF
12594 #define HAVE_VFORK_H 1
12601 for ac_func
in fork vfork
12603 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12604 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12605 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12606 cat >>confdefs.h
<<_ACEOF
12607 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12613 if test "x$ac_cv_func_fork" = xyes
; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12615 $as_echo_n "checking for working fork... " >&6; }
12616 if ${ac_cv_func_fork_works+:} false
; then :
12617 $as_echo_n "(cached) " >&6
12619 if test "$cross_compiling" = yes; then :
12620 ac_cv_func_fork_works
=cross
12622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12624 $ac_includes_default
12629 /* By Ruediger Kuhlmann. */
12630 return fork () < 0;
12636 if ac_fn_c_try_run
"$LINENO"; then :
12637 ac_cv_func_fork_works
=yes
12639 ac_cv_func_fork_works
=no
12641 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12642 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12647 $as_echo "$ac_cv_func_fork_works" >&6; }
12650 ac_cv_func_fork_works
=$ac_cv_func_fork
12652 if test "x$ac_cv_func_fork_works" = xcross
; then
12654 *-*-amigaos* | *-*-msdosdjgpp*)
12655 # Override, as these systems have only a dummy fork() stub
12656 ac_cv_func_fork_works
=no
12659 ac_cv_func_fork_works
=yes
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12663 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12665 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12666 if test "x$ac_cv_func_vfork" = xyes
; then
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12668 $as_echo_n "checking for working vfork... " >&6; }
12669 if ${ac_cv_func_vfork_works+:} false
; then :
12670 $as_echo_n "(cached) " >&6
12672 if test "$cross_compiling" = yes; then :
12673 ac_cv_func_vfork_works
=cross
12675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 /* Thanks to Paul Eggert for this test. */
12678 $ac_includes_default
12679 #include <sys/wait.h>
12680 #ifdef HAVE_VFORK_H
12681 # include <vfork.h>
12683 /* On some sparc systems, changes by the child to local and incoming
12684 argument registers are propagated back to the parent. The compiler
12685 is told about this with #include <vfork.h>, but some compilers
12686 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12687 static variable whose address is put into a register that is
12688 clobbered by the vfork. */
12691 sparc_address_test (int arg)
12693 sparc_address_test (arg) int arg;
12696 static pid_t child;
12714 pid_t parent = getpid ();
12717 sparc_address_test (0);
12722 /* Here is another test for sparc vfork register problems. This
12723 test uses lots of local variables, at least as many local
12724 variables as main has allocated so far including compiler
12725 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12726 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12727 reuse the register of parent for one of the local variables,
12728 since it will think that parent can't possibly be used any more
12729 in this routine. Assigning to the local variable will thus
12730 munge parent in the parent process. */
12732 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12733 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12734 /* Convince the compiler that p..p7 are live; otherwise, it might
12735 use the same hardware register for all 8 local variables. */
12736 if (p != p1 || p != p2 || p != p3 || p != p4
12737 || p != p5 || p != p6 || p != p7)
12740 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12741 from child file descriptors. If the child closes a descriptor
12742 before it execs or exits, this munges the parent's descriptor
12743 as well. Test for this by closing stdout in the child. */
12744 _exit(close(fileno(stdout)) != 0);
12749 while (wait(&status) != child)
12752 /* Was there some problem with vforking? */
12755 /* Did the child fail? (This shouldn't happen.) */
12758 /* Did the vfork/compiler bug occur? */
12759 || parent != getpid()
12761 /* Did the file descriptor bug occur? */
12762 || fstat(fileno(stdout), &st) != 0
12767 if ac_fn_c_try_run
"$LINENO"; then :
12768 ac_cv_func_vfork_works
=yes
12770 ac_cv_func_vfork_works
=no
12772 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12773 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12778 $as_echo "$ac_cv_func_vfork_works" >&6; }
12781 if test "x$ac_cv_func_fork_works" = xcross
; then
12782 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12784 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12787 if test "x$ac_cv_func_vfork_works" = xyes
; then
12789 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12793 $as_echo "#define vfork fork" >>confdefs.h
12796 if test "x$ac_cv_func_fork_works" = xyes
; then
12798 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12805 for ac_header
in $ac_header_list
12807 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12808 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12810 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12811 cat >>confdefs.h
<<_ACEOF
12812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12826 for ac_func
in getpagesize
12828 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12829 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12830 cat >>confdefs.h
<<_ACEOF
12831 #define HAVE_GETPAGESIZE 1
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12838 $as_echo_n "checking for working mmap... " >&6; }
12839 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12840 $as_echo_n "(cached) " >&6
12842 if test "$cross_compiling" = yes; then :
12843 ac_cv_func_mmap_fixed_mapped
=no
12845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 $ac_includes_default
12848 /* malloc might have been renamed as rpl_malloc. */
12851 /* Thanks to Mike Haertel and Jim Avera for this test.
12852 Here is a matrix of mmap possibilities:
12853 mmap private not fixed
12854 mmap private fixed at somewhere currently unmapped
12855 mmap private fixed at somewhere already mapped
12856 mmap shared not fixed
12857 mmap shared fixed at somewhere currently unmapped
12858 mmap shared fixed at somewhere already mapped
12859 For private mappings, we should verify that changes cannot be read()
12860 back from the file, nor mmap's back from the file at a different
12861 address. (There have been systems where private was not correctly
12862 implemented like the infamous i386 svr4.0, and systems where the
12863 VM page cache was not coherent with the file system buffer cache
12864 like early versions of FreeBSD and possibly contemporary NetBSD.)
12865 For shared mappings, we should conversely verify that changes get
12866 propagated back to all the places they're supposed to be.
12868 Grep wants private fixed already mapped.
12869 The main things grep needs to know about mmap are:
12870 * does it exist and is it safe to write into the mmap'd area
12871 * how to use it (BSD variants) */
12874 #include <sys/mman.h>
12876 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12880 /* This mess was copied from the GNU getpagesize.h. */
12881 #ifndef HAVE_GETPAGESIZE
12882 # ifdef _SC_PAGESIZE
12883 # define getpagesize() sysconf(_SC_PAGESIZE)
12884 # else /* no _SC_PAGESIZE */
12885 # ifdef HAVE_SYS_PARAM_H
12886 # include <sys/param.h>
12887 # ifdef EXEC_PAGESIZE
12888 # define getpagesize() EXEC_PAGESIZE
12889 # else /* no EXEC_PAGESIZE */
12891 # define getpagesize() NBPG * CLSIZE
12894 # endif /* no CLSIZE */
12895 # else /* no NBPG */
12897 # define getpagesize() NBPC
12898 # else /* no NBPC */
12900 # define getpagesize() PAGESIZE
12901 # endif /* PAGESIZE */
12902 # endif /* no NBPC */
12903 # endif /* no NBPG */
12904 # endif /* no EXEC_PAGESIZE */
12905 # else /* no HAVE_SYS_PARAM_H */
12906 # define getpagesize() 8192 /* punt totally */
12907 # endif /* no HAVE_SYS_PARAM_H */
12908 # endif /* no _SC_PAGESIZE */
12910 #endif /* no HAVE_GETPAGESIZE */
12915 char *data, *data2, *data3;
12916 const char *cdata2;
12920 pagesize = getpagesize ();
12922 /* First, make a file with some known garbage in it. */
12923 data = (char *) malloc (pagesize);
12926 for (i = 0; i < pagesize; ++i)
12927 *(data + i) = rand ();
12929 fd = creat ("conftest.mmap", 0600);
12932 if (write (fd, data, pagesize) != pagesize)
12936 /* Next, check that the tail of a page is zero-filled. File must have
12937 non-zero length, otherwise we risk SIGBUS for entire page. */
12938 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12942 if (write (fd2, cdata2, 1) != 1)
12944 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12945 if (data2 == MAP_FAILED)
12947 for (i = 0; i < pagesize; ++i)
12951 if (munmap (data2, pagesize))
12954 /* Next, try to mmap the file at a fixed address which already has
12955 something else allocated at it. If we can, also make sure that
12956 we see the same garbage. */
12957 fd = open ("conftest.mmap", O_RDWR);
12960 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12961 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12963 for (i = 0; i < pagesize; ++i)
12964 if (*(data + i) != *(data2 + i))
12967 /* Finally, make sure that changes to the mapped area do not
12968 percolate back to the file as seen by read(). (This is a bug on
12969 some variants of i386 svr4.0.) */
12970 for (i = 0; i < pagesize; ++i)
12971 *(data2 + i) = *(data2 + i) + 1;
12972 data3 = (char *) malloc (pagesize);
12975 if (read (fd, data3, pagesize) != pagesize)
12977 for (i = 0; i < pagesize; ++i)
12978 if (*(data + i) != *(data3 + i))
12984 if ac_fn_c_try_run
"$LINENO"; then :
12985 ac_cv_func_mmap_fixed_mapped
=yes
12987 ac_cv_func_mmap_fixed_mapped
=no
12989 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12990 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12995 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12996 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12998 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13001 rm -f conftest.mmap conftest.txt
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
13005 $as_echo_n "checking for /dev/poll... " >&6; }
13006 if test -c "/dev/poll"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008 $as_echo "yes" >&6; }
13010 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13014 $as_echo "no" >&6; }
13018 if test "$is_mingw" = "yes"; then
13020 $as_echo "#define HAVE_WIN32 1" >>confdefs.h
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13026 $as_echo_n "checking for OpenSSL... " >&6; }
13027 # Check whether --enable-openssl was given.
13028 if test "${enable_openssl+set}" = set; then :
13029 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
13031 cf_enable_openssl
="auto"
13035 if test "$cf_enable_openssl" != "no" ; then
13036 cf_openssl_basedir
=""
13037 if test "$cf_enable_openssl" != "auto" &&
13038 test "$cf_enable_openssl" != "yes" ; then
13039 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
13041 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
13042 /usr
/local
/openssl
; do
13043 if test -f "${dirs}/include/openssl/opensslv.h" ; then
13044 cf_openssl_basedir
="${dirs}"
13050 if test ! -z "$cf_openssl_basedir"; then
13051 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
13052 SSL_CFLAGS
="-I${cf_openssl_basedir}/include"
13053 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
13055 cf_openssl_basedir
=""
13058 if test -f "/usr/include/openssl/opensslv.h" ; then
13059 cf_openssl_basedir
="/usr"
13063 if test ! -z "$cf_openssl_basedir"; then
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13065 $as_echo "$cf_openssl_basedir" >&6; }
13066 cf_enable_openssl
="yes"
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
13069 $as_echo "not found. Specify a correct path?" >&6; }
13070 cf_enable_openssl
="no"
13072 unset cf_openssl_basedir
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13075 $as_echo "disabled" >&6; }
13078 save_CPPFLAGS
="$CPPFLAGS"
13079 CPPFLAGS
="$CPPFLAGS $SSL_CFLAGS"
13081 LIBS
="$LIBS $SSL_LIBS"
13082 if test "$cf_enable_openssl" != no
; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
13084 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
13085 if test "$cross_compiling" = yes; then :
13086 cf_enable_openssl
=no
13088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13090 #include <openssl/opensslv.h>
13091 #include <stdlib.h>
13095 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
13096 exit(0); else exit(1);
13101 if ac_fn_c_try_run
"$LINENO"; then :
13102 cf_enable_openssl
=yes
13104 cf_enable_openssl
=no
13106 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13107 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13111 if test "$cf_enable_openssl" != no
; then
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13113 $as_echo "found" >&6; }
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13116 $as_echo "no - OpenSSL support disabled" >&6; }
13122 if test "$cf_enable_openssl" != no
; then
13123 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
13125 $as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
13126 if ${ac_cv_lib_crypto_RAND_status+:} false
; then :
13127 $as_echo_n "(cached) " >&6
13129 ac_check_lib_save_LIBS
=$LIBS
13130 LIBS
="-lcrypto $LIBS"
13131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13134 /* Override any GCC internal prototype to avoid an error.
13135 Use char because int might match the return type of a GCC
13136 builtin and then its argument prototype would still apply. */
13140 char RAND_status ();
13144 return RAND_status ();
13149 if ac_fn_c_try_link
"$LINENO"; then :
13150 ac_cv_lib_crypto_RAND_status
=yes
13152 ac_cv_lib_crypto_RAND_status
=no
13154 rm -f core conftest.err conftest.
$ac_objext \
13155 conftest
$ac_exeext conftest.
$ac_ext
13156 LIBS
=$ac_check_lib_save_LIBS
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
13159 $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
13160 if test "x$ac_cv_lib_crypto_RAND_status" = xyes
; then :
13161 cf_enable_openssl
=yes
13163 cf_enable_openssl
=no
13168 if test "$cf_enable_openssl" != no
; then
13169 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
13171 $as_echo_n "checking for SSL_read in -lssl... " >&6; }
13172 if ${ac_cv_lib_ssl_SSL_read+:} false
; then :
13173 $as_echo_n "(cached) " >&6
13175 ac_check_lib_save_LIBS
=$LIBS
13176 LIBS
="-lssl -lcrypto $LIBS"
13177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13190 return SSL_read ();
13195 if ac_fn_c_try_link
"$LINENO"; then :
13196 ac_cv_lib_ssl_SSL_read
=yes
13198 ac_cv_lib_ssl_SSL_read
=no
13200 rm -f core conftest.err conftest.
$ac_objext \
13201 conftest
$ac_exeext conftest.
$ac_ext
13202 LIBS
=$ac_check_lib_save_LIBS
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
13205 $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
13206 if test "x$ac_cv_lib_ssl_SSL_read" = xyes
; then :
13207 SSL_LIBS
="$SSL_LIBS -lssl -lcrypto"
13209 cf_enable_openssl
=no
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
13217 $as_echo_n "checking for GnuTLS... " >&6; }
13218 # Check whether --enable-gnutls was given.
13219 if test "${enable_gnutls+set}" = set; then :
13220 enableval
=$enable_gnutls; cf_enable_gnutls
=$enableval
13222 cf_enable_gnutls
="auto"
13226 if test "$cf_enable_gnutls" != no
; then
13229 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13230 if test -n "$ac_tool_prefix"; then
13231 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13232 set dummy
${ac_tool_prefix}pkg
-config; ac_word
=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
13236 $as_echo_n "(cached) " >&6
13238 case $PKG_CONFIG in
13240 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13244 for as_dir
in $PATH
13247 test -z "$as_dir" && as_dir
=.
13248 for ac_exec_ext
in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13262 if test -n "$PKG_CONFIG"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13264 $as_echo "$PKG_CONFIG" >&6; }
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13272 if test -z "$ac_cv_path_PKG_CONFIG"; then
13273 ac_pt_PKG_CONFIG
=$PKG_CONFIG
13274 # Extract the first word of "pkg-config", so it can be a program name with args.
13275 set dummy pkg
-config; ac_word
=$2
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277 $as_echo_n "checking for $ac_word... " >&6; }
13278 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
13279 $as_echo_n "(cached) " >&6
13281 case $ac_pt_PKG_CONFIG in
13283 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13287 for as_dir
in $PATH
13290 test -z "$as_dir" && as_dir
=.
13291 for ac_exec_ext
in '' $ac_executable_extensions; do
13292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13293 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
13305 if test -n "$ac_pt_PKG_CONFIG"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13307 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310 $as_echo "no" >&6; }
13313 if test "x$ac_pt_PKG_CONFIG" = x
; then
13316 case $cross_compiling:$ac_tool_warned in
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13320 ac_tool_warned
=yes ;;
13322 PKG_CONFIG
=$ac_pt_PKG_CONFIG
13325 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
13329 if test -n "$PKG_CONFIG"; then
13330 _pkg_min_version
=0.9.0
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13332 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13333 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13335 $as_echo "yes" >&6; }
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338 $as_echo "no" >&6; }
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
13346 $as_echo_n "checking for GNUTLS... " >&6; }
13348 if test -n "$GNUTLS_CFLAGS"; then
13349 pkg_cv_GNUTLS_CFLAGS
="$GNUTLS_CFLAGS"
13350 elif test -n "$PKG_CONFIG"; then
13351 if test -n "$PKG_CONFIG" && \
13352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13353 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13356 test $ac_status = 0; }; then
13357 pkg_cv_GNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
13364 if test -n "$GNUTLS_LIBS"; then
13365 pkg_cv_GNUTLS_LIBS
="$GNUTLS_LIBS"
13366 elif test -n "$PKG_CONFIG"; then
13367 if test -n "$PKG_CONFIG" && \
13368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
13369 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
13371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13372 test $ac_status = 0; }; then
13373 pkg_cv_GNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
13383 if test $pkg_failed = yes; then
13385 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13386 _pkg_short_errors_supported
=yes
13388 _pkg_short_errors_supported
=no
13390 if test $_pkg_short_errors_supported = yes; then
13391 GNUTLS_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1`
13393 GNUTLS_PKG_ERRORS
=`$PKG_CONFIG --print-errors "gnutls" 2>&1`
13395 # Put the nasty error message in config.log where it belongs
13396 echo "$GNUTLS_PKG_ERRORS" >&5
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399 $as_echo "no" >&6; }
13400 cf_enable_gnutls
="no"
13401 elif test $pkg_failed = untried
; then
13402 cf_enable_gnutls
="no"
13404 GNUTLS_CFLAGS
=$pkg_cv_GNUTLS_CFLAGS
13405 GNUTLS_LIBS
=$pkg_cv_GNUTLS_LIBS
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13407 $as_echo "yes" >&6; }
13409 cf_enable_gnutls
="yes"
13414 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
13415 cf_enable_gnutls
="no"
13418 if test x
"$cf_enable_openssl" != xno
; then
13420 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13425 elif test x
"$cf_enable_gnutls" != xno
; then
13427 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
13437 CPPFLAGS
="$save_CPPFLAGS"
13445 # Check whether --enable-assert was given.
13446 if test "${enable_assert+set}" = set; then :
13447 enableval
=$enable_assert; assert
=$enableval
13453 if test "$assert" = no
; then
13455 $as_echo "#define NDEBUG 1" >>confdefs.h
13457 elif test "$assert" = soft
; then
13459 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
13462 $as_echo "#define NDEBUG 1" >>confdefs.h
13464 elif test "$assert" = yes; then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
13469 $as_echo_n "checking if you want to do a profile build... " >&6; }
13470 # Check whether --enable-profile was given.
13471 if test "${enable_profile+set}" = set; then :
13472 enableval
=$enable_profile; profile
=$enableval
13478 if test "$profile" = yes; then
13479 if test "$ac_cv_c_compiler_gnu" = yes; then
13480 CFLAGS
="$CFLAGS -pg -static"
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
13482 $as_echo "yes, adding -pg -static" >&6; }
13484 $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
13488 $as_echo "no, profile builds only work with gcc" >&6; }
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13495 # Check whether --enable-balloc was given.
13496 if test "${enable_balloc+set}" = set; then :
13497 enableval
=$enable_balloc; balloc
=$enableval
13503 if test "$balloc" = no
; then
13505 $as_echo "#define NOBALLOC 1" >>confdefs.h
13509 # Check whether --enable-warnings was given.
13510 if test "${enable_warnings+set}" = set; then :
13511 enableval
=$enable_warnings; CFLAGS
="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
13524 if test "$prefix" = "NONE"; then
13526 cat >>confdefs.h
<<_ACEOF
13527 #define RB_PREFIX "$ac_default_prefix"
13534 prefix
=`echo $prefix | sed 's/\/$//'`
13536 cat >>confdefs.h
<<_ACEOF
13537 #define RB_PREFIX "$prefix"
13545 ac_config_commands
="$ac_config_commands include/librb-config.h"
13549 ac_config_files
="$ac_config_files src/Makefile Makefile libratbox.pc"
13552 cat >confcache
<<\_ACEOF
13553 # This file is a shell script that caches the results of configure
13554 # tests run on this system so they can be shared between configure
13555 # scripts and configure runs, see configure's option --config-cache.
13556 # It is not useful on other systems. If it contains results you don't
13557 # want to keep, you may remove or edit it.
13559 # config.status only pays attention to the cache file if you give it
13560 # the --recheck option to rerun configure.
13562 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13563 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13564 # following values.
13568 # The following way of writing the cache mishandles newlines in values,
13569 # but we know of no workaround that is simple, portable, and efficient.
13570 # So, we kill variables containing newlines.
13571 # Ultrix sh set writes to stderr and can't be redirected directly,
13572 # and sets the high bit in the cache file unless we assign to the vars.
13574 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13575 eval ac_val
=\$
$ac_var
13579 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13580 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13583 _
| IFS
| as_nl
) ;; #(
13584 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
13585 *) { eval $ac_var=; unset $ac_var;} ;;
13591 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13592 *${as_nl}ac_space
=\
*)
13593 # `set' does not quote correctly, so add quotes: double-quote
13594 # substitution turns \\\\ into \\, and sed turns \\ into \.
13597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13600 # `set' quotes correctly as required by POSIX, so do not add quotes.
13601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13610 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13612 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13614 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13615 if test -w "$cache_file"; then
13616 if test "x$cache_file" != "x/dev/null"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13618 $as_echo "$as_me: updating cache $cache_file" >&6;}
13619 if test ! -f "$cache_file" || test -h "$cache_file"; then
13620 cat confcache
>"$cache_file"
13622 case $cache_file in #(
13624 mv -f confcache
"$cache_file"$$
&&
13625 mv -f "$cache_file"$$
"$cache_file" ;; #(
13627 mv -f confcache
"$cache_file" ;;
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13633 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13638 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13639 # Let make expand exec_prefix.
13640 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13642 DEFS
=-DHAVE_CONFIG_H
13647 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13648 # 1. Remove the extension, and $U if already installed.
13649 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13650 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13652 # will be set to the directory where LIBOBJS objects are built.
13653 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13654 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13656 LIBOBJS
=$ac_libobjs
13658 LTLIBOBJS
=$ac_ltlibobjs
13661 if test -n "$EXEEXT"; then
13663 am__EXEEXT_FALSE
='#'
13665 am__EXEEXT_TRUE
='#'
13669 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13670 as_fn_error $?
"conditional \"AMDEP\" was never defined.
13671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13673 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13674 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
13675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13677 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13678 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
13679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13681 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
13682 as_fn_error $?
"conditional \"MINGW\" was never defined.
13683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13686 : "${CONFIG_STATUS=./config.status}"
13688 ac_clean_files_save
=$ac_clean_files
13689 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13691 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13693 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13695 # Generated by $as_me.
13696 # Run this file to recreate the current configuration.
13697 # Compiler output produced by configure, useful for debugging
13698 # configure, is in config.log if it exists.
13701 ac_cs_recheck=false
13704 SHELL=\${CONFIG_SHELL-$SHELL}
13707 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
13708 ## -------------------- ##
13709 ## M4sh Initialization. ##
13710 ## -------------------- ##
13712 # Be more Bourne compatible
13713 DUALCASE
=1; export DUALCASE
# for MKS sh
13714 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13717 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13718 # is contrary to our usage. Disable this feature.
13719 alias -g '${1+"$@"}'='"$@"'
13720 setopt NO_GLOB_SUBST
13722 case `(set -o) 2>/dev/null` in #(
13734 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13735 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13736 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13738 # Prefer a ksh shell builtin over an external printf program on Solaris,
13739 # but without wasting forks for bash or zsh.
13740 if test -z "$BASH_VERSION$ZSH_VERSION" \
13741 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13742 as_echo='print
-r --'
13743 as_echo_n='print
-rn --'
13744 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13745 as_echo='printf %s
\n'
13746 as_echo_n='printf %s
'
13748 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13749 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13750 as_echo_n='/usr
/ucb
/echo -n'
13752 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13753 as_echo_n_body='eval
13757 expr "X$arg" : "X\\(.*\\)$as_nl";
13758 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13760 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13762 export as_echo_n_body
13763 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13765 export as_echo_body
13766 as_echo='sh
-c $as_echo_body as_echo
'
13769 # The user is always right.
13770 if test "${PATH_SEPARATOR+set}" != set; then
13772 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13773 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13780 # We need space, tab and new line, in precisely that order. Quoting is
13781 # there to prevent editors from complaining about space-tab.
13782 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13783 # splitting by setting IFS to empty value.)
13786 # Find who we are. Look in the path if we contain no directory separator.
13789 *[\\/]* ) as_myself=$0 ;;
13790 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13791 for as_dir in $PATH
13794 test -z "$as_dir" && as_dir=.
13795 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13801 # We did not find ourselves, most probably we were run as `sh COMMAND'
13802 # in which case we are not to be found in the path.
13803 if test "x$as_myself" = x
; then
13806 if test ! -f "$as_myself"; then
13807 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13811 # Unset variables that we do not need and which cause bugs (e.g. in
13812 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13813 # suppresses any "Segmentation fault" message there. '((' could
13814 # trigger a bug in pdksh 5.2.14.
13815 for as_var
in BASH_ENV ENV MAIL MAILPATH
13816 do eval test x\
${$as_var+set} = xset \
13817 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
13830 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13833 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13834 # ----------------------------------------
13835 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13836 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13837 # script with STATUS, using 1 if that was 0.
13840 as_status
=$1; test $as_status -eq 0 && as_status
=1
13842 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13843 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13845 $as_echo "$as_me: error: $2" >&2
13846 as_fn_exit
$as_status
13850 # as_fn_set_status STATUS
13851 # -----------------------
13852 # Set $? to STATUS, without forking.
13853 as_fn_set_status
()
13856 } # as_fn_set_status
13858 # as_fn_exit STATUS
13859 # -----------------
13860 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13864 as_fn_set_status
$1
13870 # Portably unset VAR.
13873 { eval $1=; unset $1;}
13875 as_unset
=as_fn_unset
13876 # as_fn_append VAR VALUE
13877 # ----------------------
13878 # Append the text in VALUE to the end of the definition contained in VAR. Take
13879 # advantage of any shell optimizations that allow amortized linear growth over
13880 # repeated appends, instead of the typical quadratic growth present in naive
13882 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13883 eval 'as_fn_append ()
13894 # as_fn_arith ARG...
13895 # ------------------
13896 # Perform arithmetic evaluation on the ARGs, and store the result in the
13897 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13898 # must be portable across $(()) and expr.
13899 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13900 eval 'as_fn_arith ()
13907 as_val
=`expr "$@" || test $? -eq 1`
13912 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13913 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13919 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13920 as_basename
=basename
13925 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13931 as_me
=`$as_basename -- "$0" ||
13932 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13933 X"$0" : 'X\(//\)$' \| \
13934 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13936 sed '/^.*\/\([^/][^/]*\)\/*$/{
13950 # Avoid depending upon Character Ranges.
13951 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13952 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13953 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13954 as_cr_digits
='0123456789'
13955 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13957 ECHO_C
= ECHO_N
= ECHO_T
=
13958 case `echo -n x` in #(((((
13960 case `echo 'xy\c'` in
13961 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13963 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13970 rm -f conf$$ conf$$.exe conf$$.
file
13971 if test -d conf$$.dir
; then
13972 rm -f conf$$.dir
/conf$$.
file
13975 mkdir conf$$.dir
2>/dev
/null
13977 if (echo >conf$$.
file) 2>/dev
/null
; then
13978 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13980 # ... but there are two gotchas:
13981 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13982 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13983 # In both cases, we have to default to `cp -p'.
13984 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
13986 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13994 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13995 rmdir conf$$.dir
2>/dev
/null
14000 # Create "$as_dir" as a directory, including parents if necessary.
14005 -*) as_dir
=.
/$as_dir;;
14007 test -d "$as_dir" || eval $as_mkdir_p || {
14011 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14012 *) as_qdir
=$as_dir;;
14014 as_dirs
="'$as_qdir' $as_dirs"
14015 as_dir
=`$as_dirname -- "$as_dir" ||
14016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14017 X"$as_dir" : 'X\(//\)[^/]' \| \
14018 X"$as_dir" : 'X\(//\)$' \| \
14019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14020 $as_echo X"$as_dir" |
14021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14025 /^X\(\/\/\)[^/].*/{
14038 test -d "$as_dir" && break
14040 test -z "$as_dirs" || eval "mkdir $as_dirs"
14041 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
14045 if mkdir -p .
2>/dev
/null
; then
14046 as_mkdir_p
='mkdir -p "$as_dir"'
14048 test -d .
/-p && rmdir .
/-p
14052 if test -x / >/dev
/null
2>&1; then
14053 as_test_x
='test -x'
14055 if ls -dL / >/dev
/null
2>&1; then
14062 if test -d "$1"; then
14068 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14069 ???[sx]*):;;*)false;;esac;fi
14073 as_executable_p
=$as_test_x
14075 # Sed expression to map a string onto a valid CPP name.
14076 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14078 # Sed expression to map a string onto a valid variable name.
14079 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14083 ## ----------------------------------- ##
14084 ## Main body of $CONFIG_STATUS script. ##
14085 ## ----------------------------------- ##
14087 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14089 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
14090 # Save the log message, to keep $0 and so on meaningful, and to
14091 # report actual input values of CONFIG_FILES etc. instead of their
14092 # values after options handling.
14094 This file was extended by libratbox $as_me devel, which was
14095 generated by GNU Autoconf 2.68. Invocation command line was
14097 CONFIG_FILES = $CONFIG_FILES
14098 CONFIG_HEADERS = $CONFIG_HEADERS
14099 CONFIG_LINKS = $CONFIG_LINKS
14100 CONFIG_COMMANDS = $CONFIG_COMMANDS
14103 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14108 case $ac_config_files in *"
14109 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14112 case $ac_config_headers in *"
14113 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14118 # Files that config.status was made for.
14119 config_files="$ac_config_files"
14120 config_headers="$ac_config_headers"
14121 config_commands="$ac_config_commands"
14125 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
14127 \`$as_me' instantiates files and other configuration actions
14128 from templates according to the current configuration. Unless the files
14129 and actions are specified as TAGs, all are instantiated by default.
14131 Usage: $0 [OPTION]... [TAG]...
14133 -h, --help print this help, then exit
14134 -V, --version print version number and configuration settings, then exit
14135 --config print configuration, then exit
14136 -q, --quiet, --silent
14137 do not print progress messages
14138 -d, --debug don't remove temporary files
14139 --recheck update $as_me by reconfiguring in the same conditions
14140 --file=FILE[:TEMPLATE]
14141 instantiate the configuration file FILE
14142 --header=FILE[:TEMPLATE]
14143 instantiate the configuration header FILE
14145 Configuration files:
14148 Configuration headers:
14151 Configuration commands:
14154 Report bugs to the package provider."
14157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14158 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14160 libratbox config.status devel
14161 configured by $0, generated by GNU Autoconf 2.68,
14162 with options \\"\$ac_cs_config\\"
14164 Copyright (C) 2010 Free Software Foundation, Inc.
14165 This config.status script is free software; the Free Software Foundation
14166 gives unlimited permission to copy, distribute and modify it."
14173 test -n "\$AWK" || AWK=awk
14176 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
14177 # The default lists apply if the user does not specify any file.
14183 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14184 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14188 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14200 # Handling of the options.
14201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14204 $as_echo "$ac_cs_version"; exit ;;
14205 --config | --confi | --conf | --con | --co | --c )
14206 $as_echo "$ac_cs_config"; exit ;;
14207 --debug | --debu | --deb | --de | --d | -d )
14209 --file | --fil | --fi | --f )
14212 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14213 '') as_fn_error $?
"missing file argument" ;;
14215 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14216 ac_need_defaults
=false
;;
14217 --header | --heade | --head | --hea )
14220 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14222 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14223 ac_need_defaults
=false
;;
14225 # Conflict between --help and --header
14226 as_fn_error $?
"ambiguous option: \`$1'
14227 Try \`$0 --help' for more information.";;
14228 --help | --hel | -h )
14229 $as_echo "$ac_cs_usage"; exit ;;
14230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14234 # This is an error.
14235 -*) as_fn_error $?
"unrecognized option: \`$1'
14236 Try \`$0 --help' for more information." ;;
14238 *) as_fn_append ac_config_targets
" $1"
14239 ac_need_defaults
=false
;;
14245 ac_configure_extra_args
=
14247 if $ac_cs_silent; then
14249 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14254 if \$ac_cs_recheck; then
14255 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14257 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14258 CONFIG_SHELL='$SHELL'
14259 export CONFIG_SHELL
14264 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
14268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14269 ## Running $as_me. ##
14275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14279 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14282 # The HP-UX ksh and POSIX shell print the target directory to stdout
14283 # if CDPATH is set.
14284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14286 sed_quote_subst='$sed_quote_subst'
14287 double_quote_subst='$double_quote_subst'
14288 delay_variable_subst='$delay_variable_subst'
14289 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14290 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14291 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14292 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14293 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14294 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14295 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14296 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14297 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14298 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14299 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14300 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14301 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14302 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14303 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14304 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14305 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14306 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14307 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14308 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14309 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14310 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14311 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14312 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14313 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14314 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14315 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14316 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14317 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14318 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14319 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14320 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14321 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14322 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14323 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14324 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14325 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14326 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14327 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14328 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14329 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14330 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14331 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14332 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14333 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"`'
14334 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"`'
14335 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14336 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14337 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14338 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14339 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14340 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14341 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14342 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14343 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14344 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14345 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14346 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14347 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14348 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14349 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14350 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14351 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14352 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14353 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14354 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14355 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14356 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14357 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14358 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14359 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14360 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14361 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14362 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14363 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14364 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14365 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14366 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14367 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14368 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14369 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14370 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14371 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14372 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14373 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14374 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14375 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14376 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14377 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14378 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14379 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14380 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14381 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14382 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14383 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14384 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14385 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14386 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14387 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14388 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14389 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14390 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14391 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14392 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14393 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14394 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14395 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14396 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14397 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14398 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14399 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14400 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14401 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14402 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14403 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14404 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14405 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14406 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14409 LTCFLAGS='$LTCFLAGS'
14410 compiler='$compiler_DEFAULT'
14412 # Quote evaled strings.
14424 deplibs_check_method \
14433 lt_cv_sys_global_symbol_pipe \
14434 lt_cv_sys_global_symbol_to_cdecl \
14435 lt_cv_sys_global_symbol_to_c_name_address \
14436 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14439 lt_prog_compiler_no_builtin_flag \
14440 lt_prog_compiler_wl \
14441 lt_prog_compiler_pic \
14442 lt_prog_compiler_static \
14443 lt_cv_prog_compiler_c_o \
14451 export_dynamic_flag_spec \
14452 whole_archive_flag_spec \
14453 compiler_needs_object \
14455 allow_undefined_flag \
14456 no_undefined_flag \
14457 hardcode_libdir_flag_spec \
14458 hardcode_libdir_flag_spec_ld \
14459 hardcode_libdir_separator \
14464 variables_saved_for_relink \
14466 library_names_spec \
14471 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14472 *[\\\\\\\`\\"\\\$]*)
14473 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14476 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14481 # Double-quote double-evaled strings.
14482 for var in reload_cmds \
14483 old_postinstall_cmds \
14484 old_postuninstall_cmds \
14486 extract_expsyms_cmds \
14487 old_archive_from_new_cmds \
14488 old_archive_from_expsyms_cmds \
14490 archive_expsym_cmds \
14492 module_expsym_cmds \
14493 export_symbols_cmds \
14496 postuninstall_cmds \
14498 sys_lib_search_path_spec \
14499 sys_lib_dlsearch_path_spec; do
14500 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14501 *[\\\\\\\`\\"\\\$]*)
14502 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14505 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14510 # Fix-up fallback echo if it was mangled by the above quoting rules.
14512 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14516 ac_aux_dir='$ac_aux_dir'
14517 xsi_shell='$xsi_shell'
14518 lt_shell_append='$lt_shell_append'
14520 # See if we are running on zsh, and set the options which allow our
14521 # commands through without removal of \ escapes INIT.
14522 if test -n "\${ZSH_VERSION+set}" ; then
14523 setopt NO_GLOB_SUBST
14529 TIMESTAMP='$TIMESTAMP'
14536 if test x$ac_cv_header_stdc = xyes; then
14539 if test x$ac_cv_header_stdlib_h = xyes; then
14540 rb_header_stdlib_h=yes
14542 if test x$ac_cv_header_string_h = xyes; then
14543 rb_header_string_h=yes
14545 if test x$ac_cv_header_memory_h = xyes; then
14546 rb_header_memory_h=yes
14548 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
14549 rb_alloca_h="$ac_cv_working_alloca_h"
14551 rb_alloc_h="$ac_cv_header_alloca_h"
14553 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
14554 rb_sockaddr_sa_len=yes
14556 if test x$ac_cv_header_sys_socket_h = xyes; then
14557 rb_sys_socket_h=yes
14559 if test x$ac_cv_header_sys_types_h = xyes; then
14562 if test x$ac_cv_header_sys_stat_h = xyes; then
14565 if test x$ac_cv_header_sys_time_h = xyes; then
14568 if test x$ac_cv_header_time = xyes; then
14572 if test x$ac_cv_header_stdint_h = xyes; then
14575 if test x$ac_cv_header_inttypes_h = xyes; then
14578 if test x$ac_cv_header_netinet_in_h = xyes; then
14579 rb_netinet_in_h=yes
14582 if test x$ac_cv_header_crypt_h = xyes; then
14585 if test x$ac_cv_header_errno_h = xyes; then
14588 if test x$ac_cv_header_unistd_h = xyes; then
14591 if test x$ac_cv_header_windows_h = xyes; then
14594 if test x$ac_cv_header_winsock2_h = xyes; then
14598 rb_socklen_t=$rb_socklen_t
14600 if test "x$rb_have_sockaddr_storage" = "xyes"; then
14601 rb_sockaddr_storage="yes"
14603 rb_sockaddr_storage="no"
14606 rb_have_ipv6="$have_v6"
14618 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
14620 # Handling of arguments.
14621 for ac_config_target
in $ac_config_targets
14623 case $ac_config_target in
14624 "include/libratbox_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/libratbox_config.h" ;;
14625 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
14626 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
14627 "include/librb-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/librb-config.h" ;;
14628 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
14629 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14630 "libratbox.pc") CONFIG_FILES
="$CONFIG_FILES libratbox.pc" ;;
14632 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14637 # If the user did not use the arguments to specify the items to instantiate,
14638 # then the envvar interface is used. Set only those that are not.
14639 # We use the long form for the default assignment because of an extremely
14640 # bizarre bug on SunOS 4.1.3.
14641 if $ac_need_defaults; then
14642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14647 # Have a temporary directory for convenience. Make it in the build tree
14648 # simply because there is no reason against having it here, and in addition,
14649 # creating and moving files from /tmp can sometimes cause problems.
14650 # Hook for its removal unless debugging.
14651 # Note that there is a small window in which the directory will not be cleaned:
14652 # after its creation but before its name has been assigned to `$tmp'.
14656 trap 'exit_status=$?
14657 : "${ac_tmp:=$tmp}"
14658 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14660 trap 'as_fn_exit 1' 1 2 13 15
14662 # Create a (secure) tmp directory for tmp files.
14665 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14669 tmp
=.
/conf$$
-$RANDOM
14670 (umask 077 && mkdir "$tmp")
14671 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
14674 # Set up the scripts for CONFIG_FILES section.
14675 # No need to generate them if there are no CONFIG_FILES.
14676 # This happens for instance with `./config.status config.h'.
14677 if test -n "$CONFIG_FILES"; then
14680 ac_cr
=`echo X | tr X '\015'`
14681 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14682 # But we know of no other shell where ac_cr would be empty at this
14683 # point, so we can use a bashism as a fallback.
14684 if test "x$ac_cr" = x
; then
14685 eval ac_cr
=\$
\'\\r
\'
14687 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14688 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14691 ac_cs_awk_cr
=$ac_cr
14694 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14699 echo "cat >conf$$subs.awk <<_ACEOF" &&
14700 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14702 } >conf$$subs.sh ||
14703 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14704 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14706 for ac_last_try in false false false false false :; do
14707 . ./conf$$subs.sh ||
14708 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14710 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14711 if test $ac_delim_n = $ac_delim_num; then
14713 elif $ac_last_try; then
14714 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14716 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14719 rm -f conf$$subs.sh
14721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14722 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
14726 s/^/S["/; s
/!.
*/"]=/
14736 s/\(.\{148\}\)..*/\1/
14738 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14743 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14750 s/\(.\{148\}\)..*/\1/
14752 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14756 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14761 ' <conf$$subs.awk | sed '
14766 ' >>$CONFIG_STATUS || ac_write_fail=1
14767 rm -f conf$$subs.awk
14768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14770 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
14771 for (key in S) S_is_set[key] = 1
14777 nfields = split(line, field, "@
")
14779 len = length(field[1])
14780 for (i = 2; i < nfields; i++) {
14782 keylen = length(key)
14783 if (S_is_set[key]) {
14785 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14786 len += length(value) + length(field[++i])
14797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14798 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14799 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14802 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
14803 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
14806 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14807 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
14808 # trailing colons and then remove the whole line if VPATH becomes empty
14809 # (actually we leave an empty line to preserve line numbers).
14810 if test "x
$srcdir" = x.; then
14811 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14830 fi # test -n "$CONFIG_FILES"
14832 # Set up the scripts for CONFIG_HEADERS section.
14833 # No need to generate them if there are no CONFIG_HEADERS.
14834 # This happens for instance with `./config.status Makefile'.
14835 if test -n "$CONFIG_HEADERS"; then
14836 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
14840 # Transform confdefs.h into an awk script `defines.awk', embedded as
14841 # here-document in config.status, that substitutes the proper values into
14842 # config.h.in to produce config.h.
14844 # Create a delimiter string that does not exist in confdefs.h, to ease
14845 # handling of long lines.
14847 for ac_last_try in false false :; do
14848 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
14849 if test -z "$ac_tt"; then
14851 elif $ac_last_try; then
14852 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
14854 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14858 # For the awk script, D is an array of macro values keyed by name,
14859 # likewise P contains macro parameters if any. Preserve backslash
14860 # newline sequences.
14862 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14864 s/.\{148\}/&'"$ac_delim"'/g
14867 s/^[ ]*#[ ]*define[ ][ ]*/ /
14874 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14876 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14880 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14881 D["\
1"]=" \
3\\\\\\n
"\\/p
14883 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14888 s/.\{148\}/&'"$ac_delim"'/g
14893 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14896 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14898 ' <confdefs.h | sed '
14899 s/'"$ac_delim"'/"\\\
14900 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14903 for (key in D) D_is_set[key] = 1
14906 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14908 split(line, arg, " ")
14909 if (arg[1] == "#") {
14913 defundef
= substr
(arg
[1], 2)
14916 split(mac1
, mac2
, "(") #)
14918 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14919 if (D_is_set
[macro
]) {
14920 # Preserve the white space surrounding the "#".
14921 print prefix
"define", macro P
[macro
] D
[macro
]
14924 # Replace #undef with comments. This is necessary, for example,
14925 # in the case of _POSIX_SOURCE, which is predefined and required
14926 # on some systems where configure will not decide to define it.
14927 if (defundef
== "undef") {
14928 print
"/*", prefix defundef
, macro
, "*/"
14936 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
14937 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
14938 fi # test -n "$CONFIG_HEADERS"
14941 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14946 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14948 case $ac_mode$ac_tag in
14950 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14951 :[FH
]-) ac_tag
=-:-;;
14952 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14969 -) ac_f
="$ac_tmp/stdin";;
14970 *) # Look for the file first in the build tree, then in the source tree
14971 # (if the path is not absolute). The absolute path cannot be DOS-style,
14972 # because $ac_f cannot contain `:'.
14976 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14978 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14980 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14981 as_fn_append ac_file_inputs
" '$ac_f'"
14984 # Let's still pretend it is `configure' which instantiates (i.e., don't
14985 # use $as_me), people would be surprised to read:
14986 # /* config.h. Generated by config.status. */
14987 configure_input
='Generated from '`
14988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14990 if test x
"$ac_file" != x
-; then
14991 configure_input
="$ac_file. $configure_input"
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14993 $as_echo "$as_me: creating $ac_file" >&6;}
14995 # Neutralize special characters interpreted by sed in replacement strings.
14996 case $configure_input in #(
14997 *\
&* | *\
|* | *\\* )
14998 ac_sed_conf_input
=`$as_echo "$configure_input" |
14999 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15000 *) ac_sed_conf_input
=$configure_input;;
15004 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15005 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
15010 ac_dir
=`$as_dirname -- "$ac_file" ||
15011 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15012 X"$ac_file" : 'X\(//\)[^/]' \| \
15013 X"$ac_file" : 'X\(//\)$' \| \
15014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15015 $as_echo X"$ac_file" |
15016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15020 /^X\(\/\/\)[^/].*/{
15033 as_dir
="$ac_dir"; as_fn_mkdir_p
15037 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15039 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15040 # A ".." for each directory in $ac_dir_suffix.
15041 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15042 case $ac_top_builddir_sub in
15043 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15044 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15047 ac_abs_top_builddir
=$ac_pwd
15048 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15049 # for backward compatibility:
15050 ac_top_builddir
=$ac_top_build_prefix
15053 .
) # We are building in place.
15055 ac_top_srcdir
=$ac_top_builddir_sub
15056 ac_abs_top_srcdir
=$ac_pwd ;;
15057 [\\/]* | ?
:[\\/]* ) # Absolute name.
15058 ac_srcdir
=$srcdir$ac_dir_suffix;
15059 ac_top_srcdir
=$srcdir
15060 ac_abs_top_srcdir
=$srcdir ;;
15061 *) # Relative name.
15062 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15063 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15064 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15066 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15076 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15077 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15079 ac_MKDIR_P
=$MKDIR_P
15081 [\\/$
]* | ?
:[\\/]* ) ;;
15082 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15086 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15087 # If the template does not know about datarootdir, expand it.
15088 # FIXME: This hack should be removed a few years after 2.60.
15089 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15100 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15101 *datarootdir
*) ac_datarootdir_seen
=yes;;
15102 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15104 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15107 ac_datarootdir_hack='
15108 s&@datadir@&$datadir&g
15109 s&@docdir@&$docdir&g
15110 s&@infodir@&$infodir&g
15111 s&@localedir@&$localedir&g
15112 s&@mandir@&$mandir&g
15113 s&\\\${datarootdir}&$datarootdir&g' ;;
15117 # Neutralize VPATH when `$srcdir' = `.'.
15118 # Shell code in configure.ac might set extrasub.
15119 # FIXME: do we really want to maintain this feature?
15120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121 ac_sed_extra="$ac_vpsub
15124 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15126 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
15127 s
|@configure_input@
|$ac_sed_conf_input|;t t
15128 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15129 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15130 s
&@srcdir@
&$ac_srcdir&;t t
15131 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15132 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15133 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15134 s
&@builddir@
&$ac_builddir&;t t
15135 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15136 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15137 s
&@INSTALL@
&$ac_INSTALL&;t t
15138 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15139 $ac_datarootdir_hack
15141 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
15142 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
15144 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15145 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
15146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15147 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15149 which seems to be undefined. Please make sure it is defined" >&5
15150 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15151 which seems to be undefined. Please make sure it is defined" >&2;}
15153 rm -f "$ac_tmp/stdin"
15155 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15156 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15164 if test x"$ac_file" != x-; then
15166 $as_echo "/* $configure_input */" \
15167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15168 } >"$ac_tmp/config.h" \
15169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15170 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15172 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15175 mv "$ac_tmp/config.h" "$ac_file" \
15176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15179 $as_echo "/* $configure_input */" \
15180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15181 || as_fn_error $? "could not create -" "$LINENO" 5
15183 # Compute "$ac_file"'s index
in $config_headers.
15186 for _am_header
in $config_headers :; do
15187 case $_am_header in
15188 $_am_arg | $_am_arg:* )
15191 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15194 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15195 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15196 X"$_am_arg" : 'X\(//\)[^/]' \| \
15197 X"$_am_arg" : 'X\(//\)$' \| \
15198 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15199 $as_echo X"$_am_arg" |
15200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15204 /^X\(\/\/\)[^/].*/{
15216 s/.*/./; q'`/stamp
-h$_am_stamp_count
15219 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15220 $as_echo "$as_me: executing $ac_file commands" >&6;}
15225 case $ac_file$ac_mode in
15226 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" || {
15227 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15228 # are listed without --file. Let's play safe and only enable the eval
15229 # if we detect the quoting.
15230 case $CONFIG_FILES in
15231 *\'*) eval set x
"$CONFIG_FILES" ;;
15232 *) set x
$CONFIG_FILES ;;
15237 # Strip MF so we end up with the name of the file.
15238 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15239 # Check whether this is an Automake generated Makefile or not.
15240 # We used to match only the files named `Makefile.in', but
15241 # some people rename them; so instead we look at the file content.
15242 # Grep'ing the first line is not enough: some people post-process
15243 # each Makefile.in and add a new line on top of each file to say so.
15244 # Grep'ing the whole file is not good either: AIX grep has a line
15245 # limit of 2048, but all sed's we know have understand at least 4000.
15246 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X
>/dev
/null
2>&1; then
15247 dirpart
=`$as_dirname -- "$mf" ||
15248 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15249 X"$mf" : 'X\(//\)[^/]' \| \
15250 X"$mf" : 'X\(//\)$' \| \
15251 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15257 /^X\(\/\/\)[^/].*/{
15273 # Extract the definition of DEPDIR, am__include, and am__quote
15274 # from the Makefile without running `make'.
15275 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15276 test -z "$DEPDIR" && continue
15277 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15278 test -z "am__include" && continue
15279 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15280 # When using ansi2knr, U may be empty or an underscore; expand it
15281 U
=`sed -n 's/^U = //p' < "$mf"`
15282 # Find all dependency output files, they are included files with
15283 # $(DEPDIR) in their names. We invoke sed twice because it is the
15284 # simplest approach to changing $(DEPDIR) to its actual value in the
15286 for file in `sed -n "
15287 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15288 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15289 # Make sure the directory exists.
15290 test -f "$dirpart/$file" && continue
15291 fdir
=`$as_dirname -- "$file" ||
15292 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15293 X"$file" : 'X\(//\)[^/]' \| \
15294 X"$file" : 'X\(//\)$' \| \
15295 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15296 $as_echo X"$file" |
15297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15301 /^X\(\/\/\)[^/].*/{
15314 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
15315 # echo "creating $dirpart/$file"
15316 echo '# dummy' > "$dirpart/$file"
15323 # See if we are running on zsh, and set the options which allow our
15324 # commands through without removal of \ escapes.
15325 if test -n "${ZSH_VERSION+set}" ; then
15326 setopt NO_GLOB_SUBST
15329 cfgfile
="${ofile}T"
15330 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15333 cat <<_LT_EOF >> "$cfgfile"
15336 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15337 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15338 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15339 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15341 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15342 # 2006, 2007, 2008 Free Software Foundation, Inc.
15343 # Written by Gordon Matzigkeit, 1996
15345 # This file is part of GNU Libtool.
15347 # GNU Libtool is free software; you can redistribute it and/or
15348 # modify it under the terms of the GNU General Public License as
15349 # published by the Free Software Foundation; either version 2 of
15350 # the License, or (at your option) any later version.
15352 # As a special exception to the GNU General Public License,
15353 # if you distribute this file as part of a program or library that
15354 # is built using GNU Libtool, you may include this file under the
15355 # same distribution terms that you use for the rest of that program.
15357 # GNU Libtool is distributed in the hope that it will be useful,
15358 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15360 # GNU General Public License for more details.
15362 # You should have received a copy of the GNU General Public License
15363 # along with GNU Libtool; see the file COPYING. If not, a copy
15364 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15365 # obtained by writing to the Free Software Foundation, Inc.,
15366 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15369 # The names of the tagged configurations supported by this script.
15372 # ### BEGIN LIBTOOL CONFIG
15374 # Whether or not to build static libraries.
15375 build_old_libs=$enable_static
15377 # Whether or not to build shared libraries.
15378 build_libtool_libs=$enable_shared
15380 # Which release of libtool.m4 was used?
15381 macro_version=$macro_version
15382 macro_revision=$macro_revision
15384 # What type of objects to build.
15387 # Whether or not to optimize for fast installation.
15388 fast_install=$enable_fast_install
15391 host_alias=$host_alias
15395 # The build system.
15396 build_alias=$build_alias
15400 # A sed program that does not truncate output.
15403 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15404 Xsed="\$SED -e 1s/^X//"
15406 # A grep program that handles long lines.
15412 # A literal string matcher.
15415 # A BSD- or MS-compatible name lister.
15418 # Whether we need soft or hard links.
15421 # What is the maximum length of a command?
15422 max_cmd_len=$max_cmd_len
15424 # Object file suffix (normally "o").
15427 # Executable file suffix (normally "").
15430 # whether the shell understands "unset".
15433 # turn spaces into newlines.
15436 # turn newlines into spaces.
15439 # How to create reloadable object files.
15440 reload_flag=$lt_reload_flag
15441 reload_cmds=$lt_reload_cmds
15443 # An object symbol dumper.
15444 OBJDUMP=$lt_OBJDUMP
15446 # Method to check whether dependent libraries are shared objects.
15447 deplibs_check_method=$lt_deplibs_check_method
15449 # Command to use when deplibs_check_method == "file_magic".
15450 file_magic_cmd=$lt_file_magic_cmd
15454 AR_FLAGS=$lt_AR_FLAGS
15456 # A symbol stripping program.
15459 # Commands used to install an old-style archive.
15461 old_postinstall_cmds=$lt_old_postinstall_cmds
15462 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15467 # LTCC compiler flags.
15468 LTCFLAGS=$lt_CFLAGS
15470 # Take the output of nm and produce a listing of raw symbols and C names.
15471 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15473 # Transform the output of nm in a proper C declaration.
15474 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15476 # Transform the output of nm in a C name address pair.
15477 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15479 # Transform the output of nm in a C name address pair when lib prefix is needed.
15480 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15482 # The name of the directory that contains temporary libtool files.
15485 # Shell to use when invoking shell scripts.
15488 # An echo program that does not interpret backslashes.
15491 # Used to examine libraries when file_magic_cmd begins with "file".
15492 MAGIC_CMD=$MAGIC_CMD
15494 # Must we lock files when doing compilation?
15495 need_locks=$lt_need_locks
15497 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15498 DSYMUTIL=$lt_DSYMUTIL
15500 # Tool to change global to local symbols on Mac OS X.
15503 # Tool to manipulate fat objects and archives on Mac OS X.
15506 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15509 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15510 OTOOL64=$lt_OTOOL64
15512 # Old archive suffix (normally "a").
15515 # Shared library suffix (normally ".so").
15516 shrext_cmds=$lt_shrext_cmds
15518 # The commands to extract the exported symbol list from a shared archive.
15519 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15521 # Variables whose values should be saved in libtool wrapper scripts and
15522 # restored at link time.
15523 variables_saved_for_relink=$lt_variables_saved_for_relink
15525 # Do we need the "lib" prefix for modules?
15526 need_lib_prefix=$need_lib_prefix
15528 # Do we need a version for libraries?
15529 need_version=$need_version
15531 # Library versioning type.
15532 version_type=$version_type
15534 # Shared library runtime path variable.
15535 runpath_var=$runpath_var
15537 # Shared library path variable.
15538 shlibpath_var=$shlibpath_var
15540 # Is shlibpath searched before the hard-coded library search path?
15541 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15543 # Format of library name prefix.
15544 libname_spec=$lt_libname_spec
15546 # List of archive names. First name is the real one, the rest are links.
15547 # The last name is the one that the linker finds with -lNAME
15548 library_names_spec=$lt_library_names_spec
15550 # The coded name of the library, if different from the real name.
15551 soname_spec=$lt_soname_spec
15553 # Command to use after installation of a shared archive.
15554 postinstall_cmds=$lt_postinstall_cmds
15556 # Command to use after uninstallation of a shared archive.
15557 postuninstall_cmds=$lt_postuninstall_cmds
15559 # Commands used to finish a libtool library installation in a directory.
15560 finish_cmds=$lt_finish_cmds
15562 # As "finish_cmds", except a single script fragment to be evaled but
15564 finish_eval=$lt_finish_eval
15566 # Whether we should hardcode library paths into libraries.
15567 hardcode_into_libs=$hardcode_into_libs
15569 # Compile-time system search path for libraries.
15570 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15572 # Run-time system search path for libraries.
15573 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15575 # Whether dlopen is supported.
15576 dlopen_support=$enable_dlopen
15578 # Whether dlopen of programs is supported.
15579 dlopen_self=$enable_dlopen_self
15581 # Whether dlopen of statically linked programs is supported.
15582 dlopen_self_static=$enable_dlopen_self_static
15584 # Commands to strip libraries.
15585 old_striplib=$lt_old_striplib
15586 striplib=$lt_striplib
15589 # The linker used to build libraries.
15592 # Commands used to build an old-style archive.
15593 old_archive_cmds=$lt_old_archive_cmds
15595 # A language specific compiler.
15598 # Is the compiler the GNU compiler?
15601 # Compiler flag to turn off builtin functions.
15602 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15604 # How to pass a linker flag through the compiler.
15605 wl=$lt_lt_prog_compiler_wl
15607 # Additional compiler flags for building library objects.
15608 pic_flag=$lt_lt_prog_compiler_pic
15610 # Compiler flag to prevent dynamic linking.
15611 link_static_flag=$lt_lt_prog_compiler_static
15613 # Does compiler simultaneously support -c and -o options?
15614 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15616 # Whether or not to add -lc for building shared libraries.
15617 build_libtool_need_lc=$archive_cmds_need_lc
15619 # Whether or not to disallow shared libs when runtime libs are static.
15620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15622 # Compiler flag to allow reflexive dlopens.
15623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15625 # Compiler flag to generate shared objects directly from archives.
15626 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15628 # Whether the compiler copes with passing no objects directly.
15629 compiler_needs_object=$lt_compiler_needs_object
15631 # Create an old-style archive from a shared archive.
15632 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15634 # Create a temporary old-style archive to link instead of a shared archive.
15635 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15637 # Commands used to build a shared archive.
15638 archive_cmds=$lt_archive_cmds
15639 archive_expsym_cmds=$lt_archive_expsym_cmds
15641 # Commands used to build a loadable module if different from building
15642 # a shared archive.
15643 module_cmds=$lt_module_cmds
15644 module_expsym_cmds=$lt_module_expsym_cmds
15646 # Whether we are building with GNU ld or not.
15647 with_gnu_ld=$lt_with_gnu_ld
15649 # Flag that allows shared libraries with undefined symbols to be built.
15650 allow_undefined_flag=$lt_allow_undefined_flag
15652 # Flag that enforces no undefined symbols.
15653 no_undefined_flag=$lt_no_undefined_flag
15655 # Flag to hardcode \$libdir into a binary during linking.
15656 # This must work even if \$libdir does not exist
15657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15659 # If ld is used when linking, flag to hardcode \$libdir into a binary
15660 # during linking. This must work even if \$libdir does not exist.
15661 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15663 # Whether we need a single "-rpath" flag with a separated argument.
15664 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15666 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15667 # DIR into the resulting binary.
15668 hardcode_direct=$hardcode_direct
15670 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15671 # DIR into the resulting binary and the resulting library dependency is
15672 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15673 # library is relocated.
15674 hardcode_direct_absolute=$hardcode_direct_absolute
15676 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15677 # into the resulting binary.
15678 hardcode_minus_L=$hardcode_minus_L
15680 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15681 # into the resulting binary.
15682 hardcode_shlibpath_var=$hardcode_shlibpath_var
15684 # Set to "yes" if building a shared library automatically hardcodes DIR
15685 # into the library and all subsequent libraries and executables linked
15687 hardcode_automatic=$hardcode_automatic
15689 # Set to yes if linker adds runtime paths of dependent libraries
15690 # to runtime path list.
15691 inherit_rpath=$inherit_rpath
15693 # Whether libtool must link a program against all its dependency libraries.
15694 link_all_deplibs=$link_all_deplibs
15696 # Fix the shell variable \$srcfile for the compiler.
15697 fix_srcfile_path=$lt_fix_srcfile_path
15699 # Set to "yes" if exported symbols are required.
15700 always_export_symbols=$always_export_symbols
15702 # The commands to list exported symbols.
15703 export_symbols_cmds=$lt_export_symbols_cmds
15705 # Symbols that should not be listed in the preloaded symbols.
15706 exclude_expsyms=$lt_exclude_expsyms
15708 # Symbols that must always be exported.
15709 include_expsyms=$lt_include_expsyms
15711 # Commands necessary for linking programs (against libraries) with templates.
15712 prelink_cmds=$lt_prelink_cmds
15714 # Specify filename containing input files.
15715 file_list_spec=$lt_file_list_spec
15717 # How to hardcode a shared library path into an executable.
15718 hardcode_action=$hardcode_action
15720 # ### END LIBTOOL CONFIG
15726 cat <<\_LT_EOF
>> "$cfgfile"
15727 # AIX sometimes has problems with the GCC collect2 program. For some
15728 # reason, if we set the COLLECT_NAMES environment variable, the problems
15729 # vanish in a puff of smoke.
15730 if test "X${COLLECT_NAMES+set}" != Xset
; then
15732 export COLLECT_NAMES
15739 ltmain
="$ac_aux_dir/ltmain.sh"
15742 # We use sed instead of cat because bash on DJGPP gets confused if
15743 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15744 # text mode, it properly converts lines to CR/LF. This bash problem
15745 # is reportedly fixed, but why not run on old versions too?
15746 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15747 || (rm -f "$cfgfile"; exit 1)
15751 cat << \_LT_EOF
>> "$cfgfile"
15753 # func_dirname file append nondir_replacement
15754 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15755 # otherwise set result to NONDIR_REPLACEMENT.
15759 */*) func_dirname_result
="${1%/*}${2}" ;;
15760 * ) func_dirname_result
="${3}" ;;
15764 # func_basename file
15767 func_basename_result
="${1##*/}"
15770 # func_dirname_and_basename file append nondir_replacement
15771 # perform func_basename and func_dirname in a single function
15773 # dirname: Compute the dirname of FILE. If nonempty,
15774 # add APPEND to the result, otherwise set result
15775 # to NONDIR_REPLACEMENT.
15776 # value returned in "$func_dirname_result"
15777 # basename: Compute filename of FILE.
15778 # value retuned in "$func_basename_result"
15779 # Implementation must be kept synchronized with func_dirname
15780 # and func_basename. For efficiency, we do not delegate to
15781 # those functions but instead duplicate the functionality here.
15782 func_dirname_and_basename
()
15785 */*) func_dirname_result
="${1%/*}${2}" ;;
15786 * ) func_dirname_result
="${3}" ;;
15788 func_basename_result
="${1##*/}"
15791 # func_stripname prefix suffix name
15792 # strip PREFIX and SUFFIX off of NAME.
15793 # PREFIX and SUFFIX must not contain globbing or regex special
15794 # characters, hashes, percent signs, but SUFFIX may contain a leading
15795 # dot (in which case that matches only a dot).
15798 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15799 # positional parameters, so assign one to ordinary parameter first.
15800 func_stripname_result
=${3}
15801 func_stripname_result
=${func_stripname_result#"${1}"}
15802 func_stripname_result
=${func_stripname_result%"${2}"}
15808 func_opt_split_opt
=${1%%=*}
15809 func_opt_split_arg
=${1#*=}
15816 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
15817 *) func_lo2o_result
=${1} ;;
15821 # func_xform libobj-or-source
15824 func_xform_result
=${1%.*}.lo
15827 # func_arith arithmetic-term...
15830 func_arith_result
=$(( $* ))
15834 # STRING may not start with a hyphen.
15837 func_len_result
=${#1}
15842 *) # Bourne compatible functions.
15843 cat << \_LT_EOF
>> "$cfgfile"
15845 # func_dirname file append nondir_replacement
15846 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15847 # otherwise set result to NONDIR_REPLACEMENT.
15850 # Extract subdirectory from the argument.
15851 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15852 if test "X$func_dirname_result" = "X${1}"; then
15853 func_dirname_result
="${3}"
15855 func_dirname_result
="$func_dirname_result${2}"
15859 # func_basename file
15862 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
15866 # func_stripname prefix suffix name
15867 # strip PREFIX and SUFFIX off of NAME.
15868 # PREFIX and SUFFIX must not contain globbing or regex special
15869 # characters, hashes, percent signs, but SUFFIX may contain a leading
15870 # dot (in which case that matches only a dot).
15871 # func_strip_suffix prefix name
15875 .
*) func_stripname_result
=`$ECHO "X${3}" \
15876 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15877 *) func_stripname_result
=`$ECHO "X${3}" \
15878 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15883 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
15884 my_sed_long_arg
='1s/^-[^=]*=//'
15889 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15890 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15896 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15899 # func_xform libobj-or-source
15902 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15905 # func_arith arithmetic-term...
15908 func_arith_result
=`expr "$@"`
15912 # STRING may not start with a hyphen.
15915 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15921 case $lt_shell_append in
15923 cat << \_LT_EOF
>> "$cfgfile"
15925 # func_append var value
15926 # Append VALUE to the end of shell variable VAR.
15934 cat << \_LT_EOF
>> "$cfgfile"
15936 # func_append var value
15937 # Append VALUE to the end of shell variable VAR.
15948 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15949 || (rm -f "$cfgfile"; exit 1)
15951 mv -f "$cfgfile" "$ofile" ||
15952 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15956 "include/librb-config.h":C
)
15957 outfile
=include
/librb
-config.h.tmp
15958 cat > $outfile <<\_______EOF
15960 * librb
-config.h
: libratbox config
file. Please modify configure.ac
15963 #ifndef __LIBRB_CONFIG_H
15964 #define __LIBRB_CONFIG_H
15968 if test "x$rb_have_ipv6" = "xyes"; then
15969 echo "#define RB_IPV6 1" >> $outfile
15972 if test "x$rb_windows_h" = "xyes"; then
15973 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
15974 echo '#include <windows.h>' >> $outfile
15975 echo '#include <winsock2.h>' >> $outfile
15976 echo '#include <iphlpapi.h>' >> $outfile
15979 if test "x$rb_alloca_h" = "xyes"; then
15980 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
15983 if test "x$rb_header_stdc" = "xyes"; then
15984 echo '#include <stdlib.h>' >> $outfile
15985 echo '#include <stddef.h>' >> $outfile
15986 elif test "x$rb_header_stdlib" = "xyes"; then
15987 echo '#include <stdlib.h>' >> $outfile
15990 if test "x$rb_header_string_h" = "xyes"; then
15991 echo '#include <string.h>' >> $outfile
15994 if test "x$rb_stdint_h" = "xyes"; then
15995 echo '#include <stdint.h>' >> $outfile
15998 if test "x$rb_inttypes_h" = "xyes"; then
15999 echo '#include <inttypes.h>' >> $outfile
16002 if test "x$rb_sys_types_h" = "xyes"; then
16003 echo '#include <sys/types.h>' >> $outfile
16005 if test "x$rb_sys_time_h" = "xyes"; then
16006 echo '#include <sys/time.h>' >> $outfile
16008 if test "x$rb_sys_stat_h" = "xyes"; then
16009 echo '#include <sys/stat.h>' >> $outfile
16011 if test "x$rb_time_h" = "xyes"; then
16012 echo '#include <time.h>' >> $outfile
16015 if test "x$rb_sys_socket_h" = "xyes"; then
16016 echo '#include <sys/socket.h>' >> $outfile
16019 if test "x$rb_netinet_in_h" = "xyes"; then
16020 echo '#include <netinet/in.h>' >> $outfile
16023 if test "x$rb_arpa_inet_h" = "xyes"; then
16024 echo '#include <arpa/inet.h>' >> $outfile
16027 if test "x$rb_unistd_h" = "xyes"; then
16028 echo '#include <unistd.h>' >> $outfile
16031 if test "x$rb_crypt_h" = "xyes"; then
16032 echo '#include <crypt.h>' >> $outfile
16035 if test "x$rb_errno_h" = "xyes"; then
16036 echo '#include <errno.h>' >> $outfile
16039 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
16042 if test "x$rb_sockaddr_sa_len" = "xyes"; then
16043 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
16046 if test "x$rb_sockaddr_storage" = "xyes"; then
16047 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
16049 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
16052 cat >> $outfile <<\_______EOF
16053 #endif /* __LIBRB_CONFIG_H */
16056 if cmp -s $outfile include
/librb
-config.h
; then
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
16058 $as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
16059 ${rb_rm} -f $outfile
16061 ${rb_mv} $outfile include
/librb
-config.h
16072 ac_clean_files
=$ac_clean_files_save
16074 test $ac_write_fail = 0 ||
16075 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
16078 # configure is writing to config.log, and then calls config.status.
16079 # config.status does its own redirection, appending to config.log.
16080 # Unfortunately, on DOS this fails, as config.log is still kept open
16081 # by configure, so config.status won't be able to write to it; its
16082 # output is simply discarded. So we exec the FD to /dev/null,
16083 # effectively closing config.log, so it can be properly (re)opened and
16084 # appended to by config.status. When coming back to configure, we
16085 # need to make the FD available again.
16086 if test "$no_create" != yes; then
16088 ac_config_status_args
=
16089 test "$silent" = yes &&
16090 ac_config_status_args
="$ac_config_status_args --quiet"
16092 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16094 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16095 # would make configure fail if this is the last instruction.
16096 $ac_cs_success || as_fn_exit
1
16098 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16100 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16106 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
16109 echo "Installing into: $prefix"
16111 echo "IPv6 support ................... $have_v6"
16112 echo "Assert debugging ............... $assert"
16113 echo "Block allocator ................ $balloc"
16114 echo "SSL Type........................ $SSL_TYPE"