2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for libedit 3.0.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status
=$?
; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL
=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec
; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo
; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo
; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset
; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
593 for dir
in $PATH /usr
/ucb
; do
595 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho
; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL
=/bin
/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
634 SHELL
="$CONFIG_SHELL"
636 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string
=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix
=/usr
/local
691 ac_config_libobj_dir
=.
698 # Identity of this package.
699 PACKAGE_NAME
='libedit'
700 PACKAGE_TARNAME
='libedit-20100424'
701 PACKAGE_VERSION
='3.0'
702 PACKAGE_STRING
='libedit 3.0'
706 ac_unique_file
="src/strlcat.c"
707 # Factoring default headers for most tests.
708 ac_includes_default
="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
743 ac_subst_vars
='am__EXEEXT_FALSE
797 INSTALL_STRIP_PROGRAM
849 program_transform_name
862 enable_option_checking
863 enable_dependency_tracking
873 ac_precious_vars
='build_alias
884 # Initialize some variables set by options.
886 ac_init_version
=false
887 ac_unrecognized_opts
=
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
898 program_transform_name
=s
,x
,x
,
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir
='${exec_prefix}/bin'
913 sbindir
='${exec_prefix}/sbin'
914 libexecdir
='${exec_prefix}/libexec'
915 datarootdir
='${prefix}/share'
916 datadir
='${datarootdir}'
917 sysconfdir
='${prefix}/etc'
918 sharedstatedir
='${prefix}/com'
919 localstatedir
='${prefix}/var'
920 includedir
='${prefix}/include'
921 oldincludedir
='/usr/include'
922 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
923 infodir
='${datarootdir}/info'
928 libdir
='${exec_prefix}/lib'
929 localedir
='${datarootdir}/locale'
930 mandir
='${datarootdir}/man'
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\
$ac_option
944 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 # Accept the important Cygnus configure options, so we can diagnose typos.
950 case $ac_dashdash$ac_option in
954 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
956 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
959 -build |
--build |
--buil |
--bui |
--bu)
960 ac_prev
=build_alias
;;
961 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
962 build_alias
=$ac_optarg ;;
964 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
965 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
966 ac_prev
=cache_file
;;
967 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
968 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
969 cache_file
=$ac_optarg ;;
972 cache_file
=config.cache
;;
974 -datadir |
--datadir |
--datadi |
--datad)
976 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
977 datadir
=$ac_optarg ;;
979 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
980 |
--dataroo |
--dataro |
--datar)
981 ac_prev
=datarootdir
;;
982 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
983 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
984 datarootdir
=$ac_optarg ;;
986 -disable-* |
--disable-*)
987 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
990 as_fn_error
"invalid feature name: $ac_useropt"
991 ac_useropt_orig
=$ac_useropt
992 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
997 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep
=', ';;
1000 eval enable_
$ac_useropt=no
;;
1002 -docdir |
--docdir |
--docdi |
--doc |
--do)
1004 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1005 docdir
=$ac_optarg ;;
1007 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1009 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1010 dvidir
=$ac_optarg ;;
1012 -enable-* |
--enable-*)
1013 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1016 as_fn_error
"invalid feature name: $ac_useropt"
1017 ac_useropt_orig
=$ac_useropt
1018 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_
$ac_useropt"
1023 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep
=', ';;
1026 eval enable_
$ac_useropt=\
$ac_optarg ;;
1028 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1029 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1030 |
--exec |
--exe |
--ex)
1031 ac_prev
=exec_prefix
;;
1032 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1033 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1034 |
--exec=* |
--exe=* |
--ex=*)
1035 exec_prefix
=$ac_optarg ;;
1037 -gas |
--gas |
--ga |
--g)
1038 # Obsolete; use --with-gas.
1041 -help |
--help |
--hel |
--he |
-h)
1042 ac_init_help
=long
;;
1043 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1044 ac_init_help
=recursive
;;
1045 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1046 ac_init_help
=short
;;
1048 -host |
--host |
--hos |
--ho)
1049 ac_prev
=host_alias
;;
1050 -host=* |
--host=* |
--hos=* |
--ho=*)
1051 host_alias
=$ac_optarg ;;
1053 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1055 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1057 htmldir
=$ac_optarg ;;
1059 -includedir |
--includedir |
--includedi |
--included |
--include \
1060 |
--includ |
--inclu |
--incl |
--inc)
1061 ac_prev
=includedir
;;
1062 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1063 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1064 includedir
=$ac_optarg ;;
1066 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1068 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1069 infodir
=$ac_optarg ;;
1071 -libdir |
--libdir |
--libdi |
--libd)
1073 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1074 libdir
=$ac_optarg ;;
1076 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1077 |
--libexe |
--libex |
--libe)
1078 ac_prev
=libexecdir
;;
1079 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1080 |
--libexe=* |
--libex=* |
--libe=*)
1081 libexecdir
=$ac_optarg ;;
1083 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1084 ac_prev
=localedir
;;
1085 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1086 localedir
=$ac_optarg ;;
1088 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1089 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1090 ac_prev
=localstatedir
;;
1091 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1092 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1093 localstatedir
=$ac_optarg ;;
1095 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1097 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1098 mandir
=$ac_optarg ;;
1100 -nfp |
--nfp |
--nf)
1101 # Obsolete; use --without-fp.
1104 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1105 |
--no-cr |
--no-c |
-n)
1108 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1109 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1112 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1113 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1114 |
--oldin |
--oldi |
--old |
--ol |
--o)
1115 ac_prev
=oldincludedir
;;
1116 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1117 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1118 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1119 oldincludedir
=$ac_optarg ;;
1121 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1123 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1124 prefix
=$ac_optarg ;;
1126 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1127 |
--program-pre |
--program-pr |
--program-p)
1128 ac_prev
=program_prefix
;;
1129 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1130 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1131 program_prefix
=$ac_optarg ;;
1133 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1134 |
--program-suf |
--program-su |
--program-s)
1135 ac_prev
=program_suffix
;;
1136 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1137 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1138 program_suffix
=$ac_optarg ;;
1140 -program-transform-name |
--program-transform-name \
1141 |
--program-transform-nam |
--program-transform-na \
1142 |
--program-transform-n |
--program-transform- \
1143 |
--program-transform |
--program-transfor \
1144 |
--program-transfo |
--program-transf \
1145 |
--program-trans |
--program-tran \
1146 |
--progr-tra |
--program-tr |
--program-t)
1147 ac_prev
=program_transform_name
;;
1148 -program-transform-name=* |
--program-transform-name=* \
1149 |
--program-transform-nam=* |
--program-transform-na=* \
1150 |
--program-transform-n=* |
--program-transform-=* \
1151 |
--program-transform=* |
--program-transfor=* \
1152 |
--program-transfo=* |
--program-transf=* \
1153 |
--program-trans=* |
--program-tran=* \
1154 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1155 program_transform_name
=$ac_optarg ;;
1157 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1159 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1160 pdfdir
=$ac_optarg ;;
1162 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1164 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1167 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1168 |
-silent |
--silent |
--silen |
--sile |
--sil)
1171 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1173 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1175 sbindir
=$ac_optarg ;;
1177 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1178 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1179 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1181 ac_prev
=sharedstatedir
;;
1182 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1183 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1184 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1186 sharedstatedir
=$ac_optarg ;;
1188 -site |
--site |
--sit)
1190 -site=* |
--site=* |
--sit=*)
1193 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1195 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1196 srcdir
=$ac_optarg ;;
1198 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1199 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1200 ac_prev
=sysconfdir
;;
1201 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1202 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1203 sysconfdir
=$ac_optarg ;;
1205 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1206 ac_prev
=target_alias
;;
1207 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1208 target_alias
=$ac_optarg ;;
1210 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1213 -version |
--version |
--versio |
--versi |
--vers |
-V)
1214 ac_init_version
=: ;;
1217 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1220 as_fn_error
"invalid package name: $ac_useropt"
1221 ac_useropt_orig
=$ac_useropt
1222 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep
=', ';;
1230 eval with_
$ac_useropt=\
$ac_optarg ;;
1232 -without-* |
--without-*)
1233 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1236 as_fn_error
"invalid package name: $ac_useropt"
1237 ac_useropt_orig
=$ac_useropt
1238 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1243 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep
=', ';;
1246 eval with_
$ac_useropt=no
;;
1249 # Obsolete; use --with-x.
1252 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1253 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1254 ac_prev
=x_includes
;;
1255 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1256 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1257 x_includes
=$ac_optarg ;;
1259 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1260 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1261 ac_prev
=x_libraries
;;
1262 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1263 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1264 x_libraries
=$ac_optarg ;;
1266 -*) as_fn_error
"unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information."
1271 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1275 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1277 eval $ac_envvar=\
$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1291 if test -n "$ac_prev"; then
1292 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error
"missing argument to $ac_option"
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1299 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 # Check all directory arguments for consistency.
1305 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1310 eval ac_val
=\$
$ac_var
1311 # Remove trailing slashes.
1314 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\
$ac_val;;
1317 # Be sure to have absolute directory names.
1319 [\\/$
]* | ?
:[\\/]* ) continue;;
1320 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1322 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1330 target
=$target_alias
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x
; then
1334 if test "x$build_alias" = x
; then
1335 cross_compiling
=maybe
1336 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1337 If a cross compiler is detected then cross compile mode will be used." >&2
1338 elif test "x$build_alias" != "x$host_alias"; then
1344 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1346 test "$silent" = yes && exec 6>/dev
/null
1349 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di
=`ls -di .` &&
1351 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1352 as_fn_error
"working directory cannot be determined"
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 as_fn_error
"pwd does not report name of working directory"
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359 ac_srcdir_defaulted
=yes
1360 # Try the directory containing this script, then the parent directory.
1361 ac_confdir
=`$as_dirname -- "$as_myself" ||
1362 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$as_myself" : 'X\(//\)[^/]' \| \
1364 X"$as_myself" : 'X\(//\)$' \| \
1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366 $as_echo X"$as_myself" |
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1389 ac_srcdir_defaulted
=no
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1393 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1395 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1407 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 for ac_var
in $ac_precious_vars; do
1410 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1412 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1417 # Report the --help message.
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1423 \`configure' configures libedit 3.0 to adapt to many kinds of systems.
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1430 Defaults for the options are specified in brackets.
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print \`checking...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1454 For better control, use the options below.
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root
1472 [DATAROOTDIR/doc/libedit-20100424]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1482 --program-prefix=PREFIX prepend PREFIX to installed program names
1483 --program-suffix=SUFFIX append SUFFIX to installed program names
1484 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1487 --build=BUILD configure
for building on BUILD
[guessed
]
1488 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive
) echo "Configuration of libedit 3.0:";;
1499 --disable-option-checking ignore unrecognized
--enable/--with options
1500 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1501 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1502 --disable-dependency-tracking speeds up one-time build
1503 --enable-dependency-tracking do not reject slow dependency extractors
1504 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1505 --enable-static[=PKGS
] build static libraries
[default
=yes]
1506 --enable-fast-install[=PKGS
]
1507 optimize
for fast installation
[default
=yes]
1508 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1509 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1510 --disable-silent-rules verbose build output (undo: `make V
=0')
1511 --enable-widec compile with wide-char/UTF-8 code
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-pic try to use only PIC/non-PIC objects [default=use
1518 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1520 Some influential environment variables:
1521 CC C compiler command
1522 CFLAGS C compiler flags
1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1524 nonstandard directory <lib dir>
1525 LIBS libraries to pass to the linker, e.g. -l<library>
1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1527 you have headers in a nonstandard directory <include dir>
1530 Use these variables to override the choices made by `configure' or to
help
1531 it to
find libraries and programs with nonstandard names
/locations.
1533 Report bugs to the package provider.
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1547 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1549 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1554 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1557 ac_abs_top_builddir
=$ac_pwd
1558 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir
=$ac_top_build_prefix
1563 .
) # We are building in place.
1565 ac_top_srcdir
=$ac_top_builddir_sub
1566 ac_abs_top_srcdir
=$ac_pwd ;;
1567 [\\/]* | ?
:[\\/]* ) # Absolute name.
1568 ac_srcdir
=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir
=$srcdir
1570 ac_abs_top_srcdir
=$srcdir ;;
1572 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1576 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1578 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1596 libedit configure
3.0
1597 generated by GNU Autoconf
2.65
1599 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1600 This configure
script is free software
; the Free Software Foundation
1601 gives unlimited permission to copy
, distribute and modify it.
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile
()
1615 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1616 rm -f conftest.
$ac_objext
1617 if { { ac_try
="$ac_compile"
1619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext; then :
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 as_fn_set_status $ac_retval
1646 } # ac_fn_c_try_compile
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1657 *) ac_try_echo
=$ac_try;;
1659 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 if test -s conftest.err
; then
1664 grep -v '^ *+' conftest.err
>conftest.er1
1665 cat conftest.er1
>&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } >/dev
/null
&& {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.
$ac_ext >&5
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1681 as_fn_set_status
$ac_retval
1685 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1686 # -------------------------------------------------------
1687 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1688 # the include files in INCLUDES and setting the cache variable VAR
1690 ac_fn_c_check_header_mongrel
()
1692 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1693 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1697 $as_echo_n "(cached) " >&6
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1703 # Is the header compilable?
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1705 $as_echo_n "checking $2 usability... " >&6; }
1706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1711 if ac_fn_c_try_compile
"$LINENO"; then :
1712 ac_header_compiler
=yes
1714 ac_header_compiler
=no
1716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1718 $as_echo "$ac_header_compiler" >&6; }
1720 # Is the header present?
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1722 $as_echo_n "checking $2 presence... " >&6; }
1723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1727 if ac_fn_c_try_cpp
"$LINENO"; then :
1728 ac_header_preproc
=yes
1730 ac_header_preproc
=no
1732 rm -f conftest.err conftest.
$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1734 $as_echo "$ac_header_preproc" >&6; }
1736 # So? What about this header?
1737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1740 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1742 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1746 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1748 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1750 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1752 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1754 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760 $as_echo_n "(cached) " >&6
1762 eval "$3=\$ac_header_compiler"
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1770 } # ac_fn_c_check_header_mongrel
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1778 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1779 if { { ac_try
="$ac_link"
1781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1792 *) ac_try_echo
=$ac_try;;
1794 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.
$ac_ext >&5
1806 ac_retval
=$ac_status
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1810 as_fn_set_status
$ac_retval
1814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists and can be compiled using the include files in
1817 # INCLUDES, setting the cache variable VAR accordingly.
1818 ac_fn_c_check_header_compile
()
1820 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 $as_echo_n "(cached) " >&6
1826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1831 if ac_fn_c_try_compile
"$LINENO"; then :
1836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1843 } # ac_fn_c_check_header_compile
1845 # ac_fn_c_try_link LINENO
1846 # -----------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded.
1850 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1851 rm -f conftest.
$ac_objext conftest
$ac_exeext
1852 if { { ac_try
="$ac_link"
1854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
1872 $as_test_x conftest$ac_exeext
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_link
1891 # ac_fn_c_check_func LINENO FUNC VAR
1892 # ----------------------------------
1893 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1894 ac_fn_c_check_func ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1906 #define $2 innocuous_$2
1908 /* System header to define __stub macros and hopefully few prototypes,
1909 which can conflict with char $2 (); below.
1910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1911 <limits.h> exists even on freestanding compilers. */
1914 # include <limits.h>
1916 # include <assert.h>
1921 /* Override any GCC internal prototype to avoid an error.
1922 Use char because int might match the return type of a GCC
1923 builtin and then its argument prototype would still apply. */
1928 /* The GNU C library defines this for functions which it implements
1929 to always fail with ENOSYS. Some functions are actually named
1930 something starting with __ and the normal name is an alias. */
1931 #if defined __stub_$2 || defined __stub___$2
1943 if ac_fn_c_try_link "$LINENO"; then :
1948 rm -f core conftest.err conftest.$ac_objext \
1949 conftest$ac_exeext conftest.$ac_ext
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_c_check_func
1958 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1959 # -------------------------------------------
1960 # Tests whether TYPE exists after having included INCLUDES, setting cache
1961 # variable VAR accordingly.
1962 ac_fn_c_check_type ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968 $as_echo_n "(cached) " >&6
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1996 if ac_fn_c_try_compile "$LINENO"; then :
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 } # ac_fn_c_check_type
2011 cat >config.log <<_ACEOF
2012 This file contains any messages produced by compilers while
2013 running configure, to aid debugging if configure makes a mistake.
2015 It was created by libedit $as_me 3.0, which was
2016 generated by GNU Autoconf 2.65. Invocation command line was
2028 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2029 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2030 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2031 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2032 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2034 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2035 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2037 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2038 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2039 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2040 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2041 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2042 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2043 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 $as_echo "PATH: $as_dir"
2068 # Keep a trace of the command line.
2069 # Strip out --no-create and --no-recursion so they do not pile up.
2070 # Strip out --silent because we don't want to record it for future runs.
2071 # Also quote any args containing shell meta-characters.
2072 # Make two passes to allow for proper duplicate-argument suppression.
2076 ac_must_keep_next=false
2082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084 | -silent | --silent | --silen | --sile | --sil)
2087 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2090 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2092 as_fn_append ac_configure_args1 " '$ac_arg'"
2093 if test $ac_must_keep_next = true; then
2094 ac_must_keep_next=false # Got value, back to normal.
2097 *=* | --config-cache | -C | -disable-* | --disable-* \
2098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100 | -with-* | --with-* | -without-* | --without-* | --x)
2101 case "$ac_configure_args0 " in
2102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2105 -* ) ac_must_keep_next=true ;;
2108 as_fn_append ac_configure_args " '$ac_arg'"
2113 { ac_configure_args0=; unset ac_configure_args0;}
2114 { ac_configure_args1=; unset ac_configure_args1;}
2116 # When interrupted or exit'd, cleanup temporary files, and complete
2117 # config.log. We remove comments because anyway the quotes in there
2118 # would cause problems or look ugly.
2119 # WARNING: Use '\'' to represent an apostrophe within the trap.
2120 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2121 trap 'exit_status=$?
2122 # Save into config.log some information that might help in debugging.
2127 ## ---------------- ##
2128 ## Cache variables. ##
2129 ## ---------------- ##
2132 # The following way of writing the cache mishandles newlines in values,
2134 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2135 eval ac_val=\$$ac_var
2139 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2140 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2143 _ | IFS | as_nl) ;; #(
2144 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2145 *) { eval $ac_var=; unset $ac_var;} ;;
2150 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2151 *${as_nl}ac_space=\ *)
2153 "s/'\''/'\''\\\\'\'''\''/g;
2154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2157 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2165 ## ----------------- ##
2166 ## Output variables. ##
2167 ## ----------------- ##
2170 for ac_var in $ac_subst_vars
2172 eval ac_val=\$$ac_var
2174 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 $as_echo "$ac_var='\''$ac_val'\''"
2180 if test -n "$ac_subst_files"; then
2182 ## ------------------- ##
2183 ## File substitutions. ##
2184 ## ------------------- ##
2187 for ac_var in $ac_subst_files
2189 eval ac_val=\$$ac_var
2191 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 $as_echo "$ac_var='\''$ac_val'\''"
2198 if test -s confdefs.h; then
2208 test "$ac_signal" != 0 &&
2209 $as_echo "$as_me: caught signal $ac_signal"
2210 $as_echo "$as_me: exit $exit_status"
2212 rm -f core *.core core.conftest.* &&
2213 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2216 for ac_signal in 1 2 13 15; do
2217 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2222 rm -f -r conftest* confdefs.h
2224 $as_echo "/* confdefs.h */" > confdefs.h
2226 # Predefined preprocessor variables.
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_NAME "$PACKAGE_NAME"
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_STRING "$PACKAGE_STRING"
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_URL "$PACKAGE_URL"
2253 # Let the site file select an alternate cache file if it wants to.
2254 # Prefer an explicitly selected file to automatically selected ones.
2257 if test -n "$CONFIG_SITE"; then
2258 ac_site_file1=$CONFIG_SITE
2259 elif test "x$prefix" != xNONE; then
2260 ac_site_file1=$prefix/share/config.site
2261 ac_site_file2=$prefix/etc/config.site
2263 ac_site_file1=$ac_default_prefix/share/config.site
2264 ac_site_file2=$ac_default_prefix/etc/config.site
2266 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2268 test "x$ac_site_file" = xNONE && continue
2269 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2271 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2272 sed 's/^/| /' "$ac_site_file" >&5
2277 if test -r "$cache_file"; then
2278 # Some versions of bash will fail to source /dev/null (special files
2279 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2280 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2282 $as_echo "$as_me: loading cache $cache_file" >&6;}
2284 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2285 *) . "./$cache_file";;
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2290 $as_echo "$as_me: creating cache $cache_file" >&6;}
2294 # Check that the precious variables saved in the cache have kept the same
2296 ac_cache_corrupted=false
2297 for ac_var in $ac_precious_vars; do
2298 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2299 eval ac_new_set=\$ac_env_${ac_var}_set
2300 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2301 eval ac_new_val=\$ac_env_${ac_var}_value
2302 case $ac_old_set,$ac_new_set in
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2305 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2306 ac_cache_corrupted=: ;;
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2309 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2310 ac_cache_corrupted=: ;;
2313 if test "x$ac_old_val" != "x$ac_new_val"; then
2314 # differences in whitespace do not lead to failure.
2315 ac_old_val_w=`echo x
$ac_old_val`
2316 ac_new_val_w=`echo x
$ac_new_val`
2317 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2319 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2320 ac_cache_corrupted=:
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2323 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2324 eval $ac_var=\$ac_old_val
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2327 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2329 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2332 # Pass precious variables to config.status.
2333 if test "$ac_new_set" = set; then
2335 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2336 *) ac_arg=$ac_var=$ac_new_val ;;
2338 case " $ac_configure_args " in
2339 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2340 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2344 if $ac_cache_corrupted; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2348 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2349 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2351 ## -------------------- ##
2352 ## Main body of script. ##
2353 ## -------------------- ##
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363 ac_config_headers="$ac_config_headers config.h"
2366 # features of Posix that are extensions to C (define _GNU_SOURCE)
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372 if test -n "$ac_tool_prefix"; then
2373 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2374 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376 $as_echo_n "checking for $ac_word... " >&6; }
2377 if test "${ac_cv_prog_CC+set}" = set; then :
2378 $as_echo_n "(cached) " >&6
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2390 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 if test -n "$CC"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2403 $as_echo "$CC" >&6; }
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2406 $as_echo "no" >&6; }
2411 if test -z "$ac_cv_prog_CC"; then
2413 # Extract the first word of "gcc", so it can be a program name with args.
2414 set dummy gcc; ac_word=$2
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416 $as_echo_n "checking for $ac_word... " >&6; }
2417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2418 $as_echo_n "(cached) " >&6
2420 if test -n "$ac_ct_CC"; then
2421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2430 ac_cv_prog_ac_ct_CC="gcc"
2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2441 if test -n "$ac_ct_CC"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2443 $as_echo "$ac_ct_CC" >&6; }
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446 $as_echo "no" >&6; }
2449 if test "x$ac_ct_CC" = x; then
2452 case $cross_compiling:$ac_tool_warned in
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2456 ac_tool_warned=yes ;;
2464 if test -z "$CC"; then
2465 if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2467 set dummy ${ac_tool_prefix}cc; ac_word=$2
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_prog_CC+set}" = set; then :
2471 $as_echo_n "(cached) " >&6
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_CC="${ac_tool_prefix}cc"
2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494 if test -n "$CC"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2496 $as_echo "$CC" >&6; }
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499 $as_echo "no" >&6; }
2505 if test -z "$CC"; then
2506 # Extract the first word of "cc", so it can be a program name with args.
2507 set dummy cc; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if test "${ac_cv_prog_CC+set}" = set; then :
2511 $as_echo_n "(cached) " >&6
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2525 ac_prog_rejected=yes
2529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 if test $ac_prog_rejected = yes; then
2537 # We found a bogon in the path, so make sure we never use it.
2538 set dummy $ac_cv_prog_CC
2540 if test $# != 0; then
2541 # We chose a different compiler from the bogus one.
2542 # However, it has the same basename, so the bogon will be chosen
2543 # first if we set CC to just the basename; use the full file name.
2545 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2551 if test -n "$CC"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2553 $as_echo "$CC" >&6; }
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2556 $as_echo "no" >&6; }
2561 if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
2563 for ac_prog in cl.exe
2565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2566 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 if test -n "$CC"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2595 $as_echo "$CC" >&6; }
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2602 test -n "$CC" && break
2605 if test -z "$CC"; then
2607 for ac_prog in cl.exe
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610 set dummy $ac_prog; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_ac_ct_CC="$ac_prog"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637 if test -n "$ac_ct_CC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2639 $as_echo "$ac_ct_CC" >&6; }
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2646 test -n "$ac_ct_CC" && break
2649 if test "x$ac_ct_CC" = x; then
2652 case $cross_compiling:$ac_tool_warned in
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2656 ac_tool_warned=yes ;;
2665 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 as_fn_error "no acceptable C compiler found
in \
$PATH
2668 See \
`config.log' for more details." "$LINENO" 5; }
2670 # Provide some information about the compiler.
2671 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2674 for ac_option in --version -v -V -qversion; do
2675 { { ac_try="$ac_compiler $ac_option >&5"
2677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2678 *) ac_try_echo
=$ac_try;;
2680 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2681 $as_echo "$ac_try_echo"; } >&5
2682 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2684 if test -s conftest.err
; then
2686 ... rest of stderr output deleted ...
2687 10q' conftest.err
>conftest.er1
2688 cat conftest.er1
>&5
2690 rm -f conftest.er1 conftest.err
2691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2692 test $ac_status = 0; }
2695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2706 ac_clean_files_save
=$ac_clean_files
2707 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2708 # Try to create an executable without -o first, disregard a.out.
2709 # It will help us diagnose broken compilers, and finding out an intuition
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2712 $as_echo_n "checking whether the C compiler works... " >&6; }
2713 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2715 # The possible output files:
2716 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2719 for ac_file
in $ac_files
2722 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2723 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2728 if { { ac_try
="$ac_link_default"
2730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2734 $as_echo "$ac_try_echo"; } >&5
2735 (eval "$ac_link_default") 2>&5
2737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738 test $ac_status = 0; }; then :
2739 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2740 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2741 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2742 # so that the user can short-circuit this test for compilers unknown to
2744 for ac_file in $ac_files ''
2746 test -f "$ac_file" || continue
2748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2751 # We found the default executable, but exeext='' is most
2755 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2759 # We set ac_cv_exeext here because the later test for it is not
2760 # safe: cross compilers may not add the suffix if given an `-o'
2761 # argument, so we may need to know it at that point already.
2762 # Even if this section looks crufty: it has the advantage of
2769 test "$ac_cv_exeext" = no && ac_cv_exeext=
2774 if test -z "$ac_file"; then :
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777 $as_echo "$as_me: failed program was:" >&5
2778 sed 's
/^
/|
/' conftest.$ac_ext >&5
2780 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2781 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2782 { as_fn_set_status 77
2783 as_fn_error "C compiler cannot create executables
2784 See \`config.log
' for more details." "$LINENO" 5; }; }
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2787 $as_echo "yes" >&6; }
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2790 $as_echo_n "checking for C compiler default output file name... " >&6; }
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2792 $as_echo "$ac_file" >&6; }
2793 ac_exeext=$ac_cv_exeext
2795 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2796 ac_clean_files=$ac_clean_files_save
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2798 $as_echo_n "checking for suffix of executables... " >&6; }
2799 if { { ac_try="$ac_link"
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2805 $as_echo "$ac_try_echo"; } >&5
2806 (eval "$ac_link") 2>&5
2808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2809 test $ac_status = 0; }; then :
2810 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2811 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2812 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2814 for ac_file
in conftest.exe conftest conftest.
*; do
2815 test -f "$ac_file" ||
continue
2817 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2818 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2827 See \`config.log' for more details." "$LINENO" 5; }
2829 rm -f conftest conftest
$ac_cv_exeext
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2831 $as_echo "$ac_cv_exeext" >&6; }
2833 rm -f conftest.
$ac_ext
2834 EXEEXT
=$ac_cv_exeext
2836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2837 /* end confdefs.h. */
2842 FILE *f = fopen ("conftest.out", "w");
2843 return ferror (f) || fclose (f) != 0;
2849 ac_clean_files
="$ac_clean_files conftest.out"
2850 # Check that the compiler produces executables we can run. If not, either
2851 # the compiler is broken, or we cross compile.
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2853 $as_echo_n "checking whether we are cross compiling... " >&6; }
2854 if test "$cross_compiling" != yes; then
2855 { { ac_try
="$ac_link"
2857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2861 $as_echo "$ac_try_echo"; } >&5
2862 (eval "$ac_link") 2>&5
2864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; }
2866 if { ac_try='./conftest$ac_cv_exeext'
2867 { { case "(($ac_try" in
2868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2869 *) ac_try_echo
=$ac_try;;
2871 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2872 $as_echo "$ac_try_echo"; } >&5
2873 (eval "$ac_try") 2>&5
2875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876 test $ac_status = 0; }; }; then
2879 if test "$cross_compiling" = maybe
; then
2882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2884 as_fn_error
"cannot run C compiled programs.
2885 If you meant to cross compile, use \`--host'.
2886 See \`config.log' for more details." "$LINENO" 5; }
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2891 $as_echo "$cross_compiling" >&6; }
2893 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2894 ac_clean_files
=$ac_clean_files_save
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2896 $as_echo_n "checking for suffix of object files... " >&6; }
2897 if test "${ac_cv_objext+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
2900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2911 rm -f conftest.o conftest.obj
2912 if { { ac_try
="$ac_compile"
2914 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918 $as_echo "$ac_try_echo"; } >&5
2919 (eval "$ac_compile") 2>&5
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }; then :
2923 for ac_file in conftest.o conftest.obj conftest.*; do
2924 test -f "$ac_file" || continue;
2926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2927 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2932 $as_echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2937 as_fn_error "cannot compute suffix of object files
: cannot compile
2938 See \
`config.log' for more details." "$LINENO" 5; }
2940 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2943 $as_echo "$ac_cv_objext" >&6; }
2944 OBJEXT=$ac_cv_objext
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2947 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2948 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2952 /* end confdefs.h. */
2965 if ac_fn_c_try_compile "$LINENO"; then :
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2975 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2976 if test $ac_compiler_gnu = yes; then
2981 ac_test_CFLAGS=${CFLAGS+set}
2982 ac_save_CFLAGS=$CFLAGS
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2984 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2985 if test "${ac_cv_prog_cc_g+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2988 ac_save_c_werror_flag=$ac_c_werror_flag
2989 ac_c_werror_flag=yes
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
3003 if ac_fn_c_try_compile "$LINENO"; then :
3007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3008 /* end confdefs.h. */
3018 if ac_fn_c_try_compile "$LINENO"; then :
3021 ac_c_werror_flag=$ac_save_c_werror_flag
3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024 /* end confdefs.h. */
3034 if ac_fn_c_try_compile "$LINENO"; then :
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042 ac_c_werror_flag=$ac_save_c_werror_flag
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3045 $as_echo "$ac_cv_prog_cc_g" >&6; }
3046 if test "$ac_test_CFLAGS" = set; then
3047 CFLAGS=$ac_save_CFLAGS
3048 elif test $ac_cv_prog_cc_g = yes; then
3049 if test "$GCC" = yes; then
3055 if test "$GCC" = yes; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3062 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3063 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3064 $as_echo_n "(cached) " >&6
3066 ac_cv_prog_cc_c89=no
3068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3069 /* end confdefs.h. */
3072 #include <sys/types.h>
3073 #include <sys/stat.h>
3074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3075 struct buf { int x; };
3076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3077 static char *e (p, i)
3083 static char *f (char * (*g) (char **, int), char **p, ...)
3088 s = g (p, va_arg (v,int));
3093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3094 function prototypes and stuff, but not '\xHH' hex character constants.
3095 These don't provoke an error unfortunately, instead are silently treated
3096 as 'x'. The following induces an error, until -std is added to get
3097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3098 array size at least. It's necessary to write '\x00'==0 to get something
3099 that's true only with -std. */
3100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3103 inside strings and character constants. */
3105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3107 int test (int i, double x);
3108 struct s1 {int (*f) (int a);};
3109 struct s2 {int (*f) (double a);};
3110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3121 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3124 CC="$ac_save_CC $ac_arg"
3125 if ac_fn_c_try_compile "$LINENO"; then :
3126 ac_cv_prog_cc_c89=$ac_arg
3128 rm -f core conftest.err conftest.$ac_objext
3129 test "x$ac_cv_prog_cc_c89" != "xno" && break
3131 rm -f conftest.$ac_ext
3136 case "x$ac_cv_prog_cc_c89" in
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3139 $as_echo "none needed" >&6; } ;;
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3142 $as_echo "unsupported" >&6; } ;;
3144 CC="$CC $ac_cv_prog_cc_c89"
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3146 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3148 if test "x$ac_cv_prog_cc_c89" != xno; then :
3153 ac_cpp='$CPP $CPPFLAGS'
3154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 ac_cpp='$CPP $CPPFLAGS'
3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3165 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3166 # On Suns, sometimes $CPP names a directory.
3167 if test -n "$CPP" && test -d "$CPP"; then
3170 if test -z "$CPP"; then
3171 if test "${ac_cv_prog_CPP+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
3174 # Double quotes because CPP needs to be expanded
3175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3178 for ac_c_preproc_warn_flag in '' yes
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3189 # include <limits.h>
3191 # include <assert.h>
3195 if ac_fn_c_try_cpp "$LINENO"; then :
3198 # Broken: fails on valid input.
3201 rm -f conftest.err conftest.$ac_ext
3203 # OK, works on sane cases. Now check whether nonexistent headers
3204 # can be detected and how.
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207 #include <ac_nonexistent.h>
3209 if ac_fn_c_try_cpp "$LINENO"; then :
3210 # Broken: success on invalid input.
3213 # Passes both tests.
3217 rm -f conftest.err conftest.$ac_ext
3220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221 rm -f conftest.err conftest.
$ac_ext
3222 if $ac_preproc_ok; then :
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3235 $as_echo "$CPP" >&6; }
3237 for ac_c_preproc_warn_flag
in '' yes
3239 # Use a header file that comes with gcc, so configuring glibc
3240 # with a fresh cross-compiler works.
3241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3242 # <limits.h> exists even on freestanding compilers.
3243 # On the NeXT, cc -E runs the code through the compiler's parser,
3244 # not just through cpp. "Syntax error" is here to catch this case.
3245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3248 # include <limits.h>
3250 # include <assert.h>
3254 if ac_fn_c_try_cpp
"$LINENO"; then :
3257 # Broken: fails on valid input.
3260 rm -f conftest.err conftest.
$ac_ext
3262 # OK, works on sane cases. Now check whether nonexistent headers
3263 # can be detected and how.
3264 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3266 #include <ac_nonexistent.h>
3268 if ac_fn_c_try_cpp
"$LINENO"; then :
3269 # Broken: success on invalid input.
3272 # Passes both tests.
3276 rm -f conftest.err conftest.
$ac_ext
3279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3280 rm -f conftest.err conftest.
$ac_ext
3281 if $ac_preproc_ok; then :
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3287 See \`config.log' for more details." "$LINENO" 5; }
3291 ac_cpp
='$CPP $CPPFLAGS'
3292 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3298 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3299 if test "${ac_cv_path_GREP+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3302 if test -z "$GREP"; then
3303 ac_path_GREP_found
=false
3304 # Loop through the user's path and test for each of PROGNAME-LIST
3305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3306 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3309 test -z "$as_dir" && as_dir
=.
3310 for ac_prog
in grep ggrep
; do
3311 for ac_exec_ext
in '' $ac_executable_extensions; do
3312 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3313 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3314 # Check for GNU ac_path_GREP and select it if it is found.
3315 # Check for GNU $ac_path_GREP
3316 case `"$ac_path_GREP" --version 2>&1` in
3318 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3321 $as_echo_n 0123456789 >"conftest.in"
3324 cat "conftest.in" "conftest.in" >"conftest.tmp"
3325 mv "conftest.tmp" "conftest.in"
3326 cp "conftest.in" "conftest.nl"
3327 $as_echo 'GREP' >> "conftest.nl"
3328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3329 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3330 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3332 # Best one so far, save it but keep looking for a better one
3333 ac_cv_path_GREP
="$ac_path_GREP"
3334 ac_path_GREP_max
=$ac_count
3336 # 10*(2^10) chars as input seems more than enough
3337 test $ac_count -gt 10 && break
3339 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3342 $ac_path_GREP_found && break 3
3347 if test -z "$ac_cv_path_GREP"; then
3348 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3351 ac_cv_path_GREP
=$GREP
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3356 $as_echo "$ac_cv_path_GREP" >&6; }
3357 GREP
="$ac_cv_path_GREP"
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3361 $as_echo_n "checking for egrep... " >&6; }
3362 if test "${ac_cv_path_EGREP+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3366 then ac_cv_path_EGREP
="$GREP -E"
3368 if test -z "$EGREP"; then
3369 ac_path_EGREP_found
=false
3370 # Loop through the user's path and test for each of PROGNAME-LIST
3371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3372 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3375 test -z "$as_dir" && as_dir
=.
3376 for ac_prog
in egrep; do
3377 for ac_exec_ext
in '' $ac_executable_extensions; do
3378 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3379 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3380 # Check for GNU ac_path_EGREP and select it if it is found.
3381 # Check for GNU $ac_path_EGREP
3382 case `"$ac_path_EGREP" --version 2>&1` in
3384 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3387 $as_echo_n 0123456789 >"conftest.in"
3390 cat "conftest.in" "conftest.in" >"conftest.tmp"
3391 mv "conftest.tmp" "conftest.in"
3392 cp "conftest.in" "conftest.nl"
3393 $as_echo 'EGREP' >> "conftest.nl"
3394 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3395 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3396 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3397 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3398 # Best one so far, save it but keep looking for a better one
3399 ac_cv_path_EGREP
="$ac_path_EGREP"
3400 ac_path_EGREP_max
=$ac_count
3402 # 10*(2^10) chars as input seems more than enough
3403 test $ac_count -gt 10 && break
3405 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3408 $ac_path_EGREP_found && break 3
3413 if test -z "$ac_cv_path_EGREP"; then
3414 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3417 ac_cv_path_EGREP
=$EGREP
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3423 $as_echo "$ac_cv_path_EGREP" >&6; }
3424 EGREP
="$ac_cv_path_EGREP"
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3428 $as_echo_n "checking for ANSI C header files... " >&6; }
3429 if test "${ac_cv_header_stdc+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3447 if ac_fn_c_try_compile
"$LINENO"; then :
3448 ac_cv_header_stdc
=yes
3450 ac_cv_header_stdc
=no
3452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3454 if test $ac_cv_header_stdc = yes; then
3455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 $EGREP "memchr" >/dev
/null
2>&1; then :
3465 ac_cv_header_stdc
=no
3471 if test $ac_cv_header_stdc = yes; then
3472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3479 $EGREP "free" >/dev
/null
2>&1; then :
3482 ac_cv_header_stdc
=no
3488 if test $ac_cv_header_stdc = yes; then
3489 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3490 if test "$cross_compiling" = yes; then :
3493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3497 #if ((' ' & 0x0FF) == 0x020)
3498 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3499 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3501 # define ISLOWER(c) \
3502 (('a' <= (c) && (c) <= 'i') \
3503 || ('j' <= (c) && (c) <= 'r') \
3504 || ('s' <= (c) && (c) <= 'z'))
3505 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3508 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3513 for (i = 0; i < 256; i++)
3514 if (XOR (islower (i), ISLOWER (i))
3515 || toupper (i) != TOUPPER (i))
3520 if ac_fn_c_try_run
"$LINENO"; then :
3523 ac_cv_header_stdc
=no
3525 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3526 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3532 $as_echo "$ac_cv_header_stdc" >&6; }
3533 if test $ac_cv_header_stdc = yes; then
3535 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3539 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3540 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3541 inttypes.h stdint.h unistd.h
3543 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3544 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3546 eval as_val
=\$
$as_ac_Header
3547 if test "x$as_val" = x
""yes; then :
3548 cat >>confdefs.h
<<_ACEOF
3549 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3558 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3559 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3566 if test "$MINIX" = yes; then
3568 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3571 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3574 $as_echo "#define _MINIX 1" >>confdefs.h
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3580 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3581 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3582 $as_echo_n "(cached) " >&6
3584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3587 # define __EXTENSIONS__ 1
3588 $ac_includes_default
3597 if ac_fn_c_try_compile
"$LINENO"; then :
3598 ac_cv_safe_to_define___extensions__
=yes
3600 ac_cv_safe_to_define___extensions__
=no
3602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3605 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3606 test $ac_cv_safe_to_define___extensions__ = yes &&
3607 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3609 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3611 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3613 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3615 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3619 am__api_version
='1.11'
3622 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3623 for ac_t
in install-sh
install.sh shtool
; do
3624 if test -f "$ac_dir/$ac_t"; then
3626 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3631 if test -z "$ac_aux_dir"; then
3632 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3635 # These three variables are undocumented and unsupported,
3636 # and are intended to be withdrawn in a future Autoconf release.
3637 # They can cause serious problems if a builder's source tree is in a directory
3638 # whose full name contains unusual characters.
3639 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3640 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3641 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3644 # Find a good install program. We prefer a C program (faster),
3645 # so one script is as good as another. But avoid the broken or
3646 # incompatible versions:
3647 # SysV /etc/install, /usr/sbin/install
3648 # SunOS /usr/etc/install
3649 # IRIX /sbin/install
3651 # AmigaOS /C/install, which installs bootblocks on floppy discs
3652 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3655 # OS/2's system install, which has a completely different semantic
3656 # ./install, which can be erroneously created by make from ./install.sh.
3657 # Reject install programs that cannot install multiple files.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3659 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3660 if test -z "$INSTALL"; then
3661 if test "${ac_cv_path_install+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3664 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3668 test -z "$as_dir" && as_dir
=.
3669 # Account for people who put trailing slashes in PATH elements.
3670 case $as_dir/ in #((
3671 .
/ | .
// |
/[cC
]/* | \
3672 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3673 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3676 # OSF1 and SCO ODT 3.0 have their own names for install.
3677 # Don't use installbsd from OSF since it installs stuff as root
3679 for ac_prog
in ginstall scoinst
install; do
3680 for ac_exec_ext
in '' $ac_executable_extensions; do
3681 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3682 if test $ac_prog = install &&
3683 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3684 # AIX install. It has an incompatible calling convention.
3686 elif test $ac_prog = install &&
3687 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3688 # program-specific install script used by HP pwplus--don't use.
3691 rm -rf conftest.one conftest.two conftest.dir
3692 echo one
> conftest.one
3693 echo two
> conftest.two
3695 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3696 test -s conftest.one
&& test -s conftest.two
&&
3697 test -s conftest.dir
/conftest.one
&&
3698 test -s conftest.dir
/conftest.two
3700 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3713 rm -rf conftest.one conftest.two conftest.dir
3716 if test "${ac_cv_path_install+set}" = set; then
3717 INSTALL
=$ac_cv_path_install
3719 # As a last resort, use the slow shell script. Don't cache a
3720 # value for INSTALL within a source directory, because that will
3721 # break other packages using the cache if that directory is
3722 # removed, or if the value is a relative name.
3723 INSTALL
=$ac_install_sh
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3727 $as_echo "$INSTALL" >&6; }
3729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3730 # It thinks the first close brace ends the variable substitution.
3731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3735 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3738 $as_echo_n "checking whether build environment is sane... " >&6; }
3741 echo timestamp
> conftest.
file
3742 # Reject unsafe characters in $srcdir or the absolute working directory
3743 # name. Accept space and tab only in the latter.
3747 *[\\\"\
#\$\&\'\`$am_lf]*)
3748 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
3751 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3752 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3755 # Do `set' in a subshell so we don't clobber the current shell's
3756 # arguments. Must try -L first in case configure is actually a
3757 # symlink; some systems play weird games with the mod time of symlinks
3758 # (eg FreeBSD returns the mod time of the symlink's containing
3761 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3762 if test "$*" = "X"; then
3764 set X
`ls -t "$srcdir/configure" conftest.file`
3767 if test "$*" != "X $srcdir/configure conftest.file" \
3768 && test "$*" != "X conftest.file $srcdir/configure"; then
3770 # If neither matched, then we have a broken ls. This can happen
3771 # if, for instance, CONFIG_SHELL is bash and it inherits a
3772 # broken ls alias from the environment. This has actually
3773 # happened. Such a system could not be considered "sane".
3774 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
3775 alias in your environment" "$LINENO" 5
3778 test "$2" = conftest.
file
3784 as_fn_error
"newly created file is older than distributed files!
3785 Check your system clock" "$LINENO" 5
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3788 $as_echo "yes" >&6; }
3789 test "$program_prefix" != NONE
&&
3790 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3791 # Use a double $ so make ignores it.
3792 test "$program_suffix" != NONE
&&
3793 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3794 # Double any \ or $.
3795 # By default was `s,x,x', remove it if useless.
3796 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3797 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3799 # expand $ac_aux_dir to an absolute path
3800 am_aux_dir
=`cd $ac_aux_dir && pwd`
3802 if test x
"${MISSING+set}" != xset
; then
3805 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3807 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3810 # Use eval to expand $SHELL
3811 if eval "$MISSING --run true"; then
3812 am_missing_run
="$MISSING --run "
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3816 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3819 if test x
"${install_sh}" != xset
; then
3822 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3824 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3828 # Installed binaries are usually stripped using `strip' when the user
3829 # run `make install-strip'. However `strip' might not be the right
3830 # tool to use in cross-compilation environments, therefore Automake
3831 # will honor the `STRIP' environment variable to overrule this program.
3832 if test "$cross_compiling" != no
; then
3833 if test -n "$ac_tool_prefix"; then
3834 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3835 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if test "${ac_cv_prog_STRIP+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3841 if test -n "$STRIP"; then
3842 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3844 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3848 test -z "$as_dir" && as_dir
=.
3849 for ac_exec_ext
in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 STRIP
=$ac_cv_prog_STRIP
3862 if test -n "$STRIP"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3864 $as_echo "$STRIP" >&6; }
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3872 if test -z "$ac_cv_prog_STRIP"; then
3874 # Extract the first word of "strip", so it can be a program name with args.
3875 set dummy strip
; ac_word
=$2
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 $as_echo_n "checking for $ac_word... " >&6; }
3878 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
3881 if test -n "$ac_ct_STRIP"; then
3882 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3888 test -z "$as_dir" && as_dir
=.
3889 for ac_exec_ext
in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 ac_cv_prog_ac_ct_STRIP
="strip"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3902 if test -n "$ac_ct_STRIP"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3904 $as_echo "$ac_ct_STRIP" >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907 $as_echo "no" >&6; }
3910 if test "x$ac_ct_STRIP" = x
; then
3913 case $cross_compiling:$ac_tool_warned in
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3917 ac_tool_warned
=yes ;;
3922 STRIP
="$ac_cv_prog_STRIP"
3926 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3929 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3930 if test -z "$MKDIR_P"; then
3931 if test "${ac_cv_path_mkdir+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3934 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3935 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3938 test -z "$as_dir" && as_dir
=.
3939 for ac_prog
in mkdir gmkdir
; do
3940 for ac_exec_ext
in '' $ac_executable_extensions; do
3941 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3942 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3943 'mkdir (GNU coreutils) '* | \
3944 'mkdir (coreutils) '* | \
3945 'mkdir (fileutils) '4.1*)
3946 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3956 test -d .
/--version && rmdir .
/--version
3957 if test "${ac_cv_path_mkdir+set}" = set; then
3958 MKDIR_P
="$ac_cv_path_mkdir -p"
3960 # As a last resort, use the slow shell script. Don't cache a
3961 # value for MKDIR_P within a source directory, because that will
3962 # break other packages using the cache if that directory is
3963 # removed, or if the value is a relative name.
3964 MKDIR_P
="$ac_install_sh -d"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3968 $as_echo "$MKDIR_P" >&6; }
3972 [\\/$
]* | ?
:[\\/]*) ;;
3973 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3976 for ac_prog
in gawk mawk nawk
awk
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy
$ac_prog; ac_word
=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_prog_AWK+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3985 if test -n "$AWK"; then
3986 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir
=.
3993 for ac_exec_ext
in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995 ac_cv_prog_AWK
="$ac_prog"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 if test -n "$AWK"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4008 $as_echo "$AWK" >&6; }
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4015 test -n "$AWK" && break
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4019 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4021 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4022 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4023 $as_echo_n "(cached) " >&6
4025 cat >conftest.
make <<\_ACEOF
4028 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4030 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4031 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4033 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4035 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4039 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4041 $as_echo "yes" >&6; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045 $as_echo "no" >&6; }
4046 SET_MAKE
="MAKE=${MAKE-make}"
4049 rm -rf .tst
2>/dev
/null
4050 mkdir .tst
2>/dev
/null
4051 if test -d .tst
; then
4056 rmdir .tst
2>/dev
/null
4058 DEPDIR
="${am__leading_dot}deps"
4060 ac_config_commands
="$ac_config_commands depfiles"
4063 am_make
=${MAKE-make}
4064 cat > confinc
<< 'END'
4066 @
echo this is the am__doit target
4069 # If we don't find an include directive, just comment out the code.
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4071 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4075 # First try GNU make style include.
4076 echo "include confinc" > confmf
4077 # Ignore all kinds of additional output from `make'.
4078 case `$am_make -s -f confmf 2> /dev/null` in #(
4079 *the\ am__doit\ target
*)
4085 # Now try BSD make style include.
4086 if test "$am__include" = "#"; then
4087 echo '.include "confinc"' > confmf
4088 case `$am_make -s -f confmf 2> /dev/null` in #(
4089 *the\ am__doit\ target
*)
4090 am__include
=.include
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4099 $as_echo "$_am_result" >&6; }
4100 rm -f confinc confmf
4102 # Check whether --enable-dependency-tracking was given.
4103 if test "${enable_dependency_tracking+set}" = set; then :
4104 enableval
=$enable_dependency_tracking;
4107 if test "x$enable_dependency_tracking" != xno
; then
4108 am_depcomp
="$ac_aux_dir/depcomp"
4111 if test "x$enable_dependency_tracking" != xno; then
4120 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4121 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4122 # is not polluted with repeated "-I."
4123 am__isrc
=' -I$(srcdir)'
4124 # test to see if srcdir already configured
4125 if test -f $srcdir/config.status
; then
4126 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4130 # test whether we have cygpath
4131 if test -z "$CYGPATH_W"; then
4132 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
4133 CYGPATH_W
='cygpath -w'
4140 # Define the identity of the package.
4141 PACKAGE
='libedit-20100424'
4145 cat >>confdefs.h
<<_ACEOF
4146 #define PACKAGE "$PACKAGE"
4150 cat >>confdefs.h
<<_ACEOF
4151 #define VERSION "$VERSION"
4154 # Some tools Automake needs.
4156 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4159 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
4162 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4165 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
4168 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
4170 # We need awk for the "check" target. The system "awk" is bad on
4172 # Always define AMTAR for backward compatibility.
4174 AMTAR
=${AMTAR-"${am_missing_run}tar"}
4176 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
4181 depcc
="$CC" am_compiler_list
=
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4184 $as_echo_n "checking dependency style of $depcc... " >&6; }
4185 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4188 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4189 # We make a subdir and do the tests there. Otherwise we can end up
4190 # making bogus files that we don't know about and never remove. For
4191 # instance it was reported that on HP-UX the gcc test will end up
4192 # making a dummy file named `D' -- because `-MD' means `put the output
4195 # Copy depcomp to subdir because otherwise we won't find it if we're
4196 # using a relative directory.
4197 cp "$am_depcomp" conftest.dir
4199 # We will build objects and dependencies in a subdirectory because
4200 # it helps to detect inapplicable dependency modes. For instance
4201 # both Tru64's cc and ICC support -MD to output dependencies as a
4202 # side effect of compilation, but ICC will put the dependencies in
4203 # the current directory while Tru64 will put them in the object
4207 am_cv_CC_dependencies_compiler_type
=none
4208 if test "$am_compiler_list" = ""; then
4209 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4212 case " $depcc " in #(
4213 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4216 for depmode
in $am_compiler_list; do
4217 # Setup a source with many dependencies, because some compilers
4218 # like to wrap large dependency lists on column 80 (with \), and
4219 # we should not choose a depcomp mode which is confused by this.
4221 # We need to recreate these files for each test, as the compiler may
4222 # overwrite some of them when testing with obscure command lines.
4223 # This happens at least with the AIX C compiler.
4225 for i
in 1 2 3 4 5 6; do
4226 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4227 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4228 # Solaris 8's {/usr,}/bin/sh.
4229 touch sub
/conftst
$i.h
4231 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4233 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4234 # mode. It turns out that the SunPro C++ compiler does not properly
4235 # handle `-M -o', and we need to detect this. Also, some Intel
4236 # versions had trouble with output in subdirs
4237 am__obj
=sub
/conftest.
${OBJEXT-o}
4238 am__minus_obj
="-o $am__obj"
4241 # This depmode causes a compiler race in universal mode.
4242 test "$am__universal" = false ||
continue
4245 # after this tag, mechanisms are not by side-effect, so they'll
4246 # only be used when explicitly requested
4247 if test "x$enable_dependency_tracking" = xyes
; then
4253 msvisualcpp | msvcmsys
)
4254 # This compiler won't grok `-c -o', but also, the minuso test has
4255 # not run yet. These depmodes are late enough in the game, and
4256 # so weak that their functioning should not be impacted.
4257 am__obj
=conftest.
${OBJEXT-o}
4262 if depmode
=$depmode \
4263 source=sub
/conftest.c object
=$am__obj \
4264 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4265 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4266 >/dev
/null
2>conftest.err
&&
4267 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4268 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4269 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4270 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4271 # icc doesn't choke on unknown options, it will just issue warnings
4272 # or remarks (even with -Werror). So we grep stderr for any message
4273 # that says an option was ignored or not supported.
4274 # When given -MP, icc 7.0 and 7.1 complain thusly:
4275 # icc: Command line warning: ignoring option '-M'; no argument required
4276 # The diagnosis changed in icc 8.0:
4277 # icc: Command line remark: option '-MP' not supported
4278 if (grep 'ignoring option' conftest.err ||
4279 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4280 am_cv_CC_dependencies_compiler_type
=$depmode
4289 am_cv_CC_dependencies_compiler_type
=none
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4294 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4295 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4298 test "x$enable_dependency_tracking" != xno \
4299 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4301 am__fastdepCC_FALSE
='#'
4303 am__fastdepCC_TRUE
='#'
4304 am__fastdepCC_FALSE
=
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4312 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4317 macro_version
='2.2.6b'
4318 macro_revision
='1.3017'
4332 ltmain
="$ac_aux_dir/ltmain.sh"
4334 # Make sure we can run config.sub.
4335 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4336 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4339 $as_echo_n "checking build system type... " >&6; }
4340 if test "${ac_cv_build+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4343 ac_build_alias
=$build_alias
4344 test "x$ac_build_alias" = x
&&
4345 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4346 test "x$ac_build_alias" = x
&&
4347 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4348 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4349 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4353 $as_echo "$ac_cv_build" >&6; }
4354 case $ac_cv_build in
4356 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4359 ac_save_IFS
=$IFS; IFS
='-'
4365 # Remember, the first character of IFS is used to create $*,
4366 # except with old shells:
4369 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4373 $as_echo_n "checking host system type... " >&6; }
4374 if test "${ac_cv_host+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4377 if test "x$host_alias" = x
; then
4378 ac_cv_host
=$ac_cv_build
4380 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4381 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4386 $as_echo "$ac_cv_host" >&6; }
4389 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4392 ac_save_IFS
=$IFS; IFS
='-'
4398 # Remember, the first character of IFS is used to create $*,
4399 # except with old shells:
4402 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4406 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4407 if test "${ac_cv_path_SED+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4410 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4411 for ac_i
in 1 2 3 4 5 6 7; do
4412 ac_script
="$ac_script$as_nl$ac_script"
4414 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4415 { ac_script
=; unset ac_script
;}
4416 if test -z "$SED"; then
4417 ac_path_SED_found
=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4423 test -z "$as_dir" && as_dir
=.
4424 for ac_prog
in sed gsed
; do
4425 for ac_exec_ext
in '' $ac_executable_extensions; do
4426 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4427 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4428 # Check for GNU ac_path_SED and select it if it is found.
4429 # Check for GNU $ac_path_SED
4430 case `"$ac_path_SED" --version 2>&1` in
4432 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4435 $as_echo_n 0123456789 >"conftest.in"
4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
4439 mv "conftest.tmp" "conftest.in"
4440 cp "conftest.in" "conftest.nl"
4441 $as_echo '' >> "conftest.nl"
4442 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4443 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4444 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4445 if test $ac_count -gt ${ac_path_SED_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_SED
="$ac_path_SED"
4448 ac_path_SED_max
=$ac_count
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4453 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4456 $ac_path_SED_found && break 3
4461 if test -z "$ac_cv_path_SED"; then
4462 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4470 $as_echo "$ac_cv_path_SED" >&6; }
4471 SED
="$ac_cv_path_SED"
4474 test -z "$SED" && SED
=sed
4475 Xsed
="$SED -e 1s/^X//"
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4488 $as_echo_n "checking for fgrep... " >&6; }
4489 if test "${ac_cv_path_FGREP+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4492 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4493 then ac_cv_path_FGREP
="$GREP -F"
4495 if test -z "$FGREP"; then
4496 ac_path_FGREP_found
=false
4497 # Loop through the user's path and test for each of PROGNAME-LIST
4498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4499 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4502 test -z "$as_dir" && as_dir
=.
4503 for ac_prog
in fgrep
; do
4504 for ac_exec_ext
in '' $ac_executable_extensions; do
4505 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4506 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4507 # Check for GNU ac_path_FGREP and select it if it is found.
4508 # Check for GNU $ac_path_FGREP
4509 case `"$ac_path_FGREP" --version 2>&1` in
4511 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4514 $as_echo_n 0123456789 >"conftest.in"
4517 cat "conftest.in" "conftest.in" >"conftest.tmp"
4518 mv "conftest.tmp" "conftest.in"
4519 cp "conftest.in" "conftest.nl"
4520 $as_echo 'FGREP' >> "conftest.nl"
4521 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4522 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4523 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4524 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4525 # Best one so far, save it but keep looking for a better one
4526 ac_cv_path_FGREP
="$ac_path_FGREP"
4527 ac_path_FGREP_max
=$ac_count
4529 # 10*(2^10) chars as input seems more than enough
4530 test $ac_count -gt 10 && break
4532 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4535 $ac_path_FGREP_found && break 3
4540 if test -z "$ac_cv_path_FGREP"; then
4541 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4544 ac_cv_path_FGREP
=$FGREP
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4550 $as_echo "$ac_cv_path_FGREP" >&6; }
4551 FGREP
="$ac_cv_path_FGREP"
4554 test -z "$GREP" && GREP
=grep
4574 # Check whether --with-gnu-ld was given.
4575 if test "${with_gnu_ld+set}" = set; then :
4576 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4582 if test "$GCC" = yes; then
4583 # Check if gcc -print-prog-name=ld gives a path.
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4585 $as_echo_n "checking for ld used by $CC... " >&6; }
4588 # gcc leaves a trailing carriage return which upsets mingw
4589 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4591 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4594 # Accept absolute paths.
4596 re_direlt
='/[^/][^/]*/\.\./'
4597 # Canonicalize the pathname of ld
4598 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4599 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4600 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4602 test -z "$LD" && LD
="$ac_prog"
4605 # If it fails, then pretend we aren't using GCC.
4609 # If it is relative, then search for the first ld in PATH.
4613 elif test "$with_gnu_ld" = yes; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4615 $as_echo_n "checking for GNU ld... " >&6; }
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4618 $as_echo_n "checking for non-GNU ld... " >&6; }
4620 if test "${lt_cv_path_LD+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 if test -z "$LD"; then
4624 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4625 for ac_dir
in $PATH; do
4627 test -z "$ac_dir" && ac_dir
=.
4628 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4629 lt_cv_path_LD
="$ac_dir/$ac_prog"
4630 # Check to see if the program is GNU ld. I'd rather use --version,
4631 # but apparently some variants of GNU ld only accept -v.
4632 # Break only if it was the GNU/non-GNU ld that we prefer.
4633 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4634 *GNU
* |
*'with BFD'*)
4635 test "$with_gnu_ld" != no
&& break
4638 test "$with_gnu_ld" != yes && break
4645 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4650 if test -n "$LD"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4652 $as_echo "$LD" >&6; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4657 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4659 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4660 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4663 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4664 case `$LD -v 2>&1 </dev/null` in
4665 *GNU
* |
*'with BFD'*)
4666 lt_cv_prog_gnu_ld
=yes
4669 lt_cv_prog_gnu_ld
=no
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4674 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4675 with_gnu_ld
=$lt_cv_prog_gnu_ld
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4686 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4687 if test "${lt_cv_path_NM+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4690 if test -n "$NM"; then
4691 # Let the user override the test.
4694 lt_nm_to_check
="${ac_tool_prefix}nm"
4695 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4696 lt_nm_to_check
="$lt_nm_to_check nm"
4698 for lt_tmp_nm
in $lt_nm_to_check; do
4699 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4700 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4702 test -z "$ac_dir" && ac_dir
=.
4703 tmp_nm
="$ac_dir/$lt_tmp_nm"
4704 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4705 # Check to see if the nm accepts a BSD-compat flag.
4706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4707 # nm: unknown option "B" ignored
4708 # Tru64's nm complains that /dev/null is an invalid object file
4709 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4710 */dev
/null
* |
*'Invalid file or object type'*)
4711 lt_cv_path_NM
="$tmp_nm -B"
4715 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4717 lt_cv_path_NM
="$tmp_nm -p"
4721 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4722 continue # so that we can try to find one that supports BSD flags
4731 : ${lt_cv_path_NM=no}
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4735 $as_echo "$lt_cv_path_NM" >&6; }
4736 if test "$lt_cv_path_NM" != "no"; then
4739 # Didn't find any BSD compatible name lister, look for dumpbin.
4740 if test -n "$ac_tool_prefix"; then
4741 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4744 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4750 if test -n "$DUMPBIN"; then
4751 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir
=.
4758 for ac_exec_ext
in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 DUMPBIN
=$ac_cv_prog_DUMPBIN
4771 if test -n "$DUMPBIN"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4773 $as_echo "$DUMPBIN" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4780 test -n "$DUMPBIN" && break
4783 if test -z "$DUMPBIN"; then
4784 ac_ct_DUMPBIN
=$DUMPBIN
4785 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy
$ac_prog; ac_word
=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4794 if test -n "$ac_ct_DUMPBIN"; then
4795 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir
=.
4802 for ac_exec_ext
in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4815 if test -n "$ac_ct_DUMPBIN"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4817 $as_echo "$ac_ct_DUMPBIN" >&6; }
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4824 test -n "$ac_ct_DUMPBIN" && break
4827 if test "x$ac_ct_DUMPBIN" = x
; then
4830 case $cross_compiling:$ac_tool_warned in
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned
=yes ;;
4836 DUMPBIN
=$ac_ct_DUMPBIN
4841 if test "$DUMPBIN" != ":"; then
4845 test -z "$NM" && NM
=nm
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4853 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4854 if test "${lt_cv_nm_interface+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4857 lt_cv_nm_interface
="BSD nm"
4858 echo "int some_variable = 0;" > conftest.
$ac_ext
4859 (eval echo "\"\$as_me:4859: $ac_compile\"" >&5)
4860 (eval "$ac_compile" 2>conftest.err
)
4861 cat conftest.err
>&5
4862 (eval echo "\"\$as_me:4862: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4863 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4864 cat conftest.err
>&5
4865 (eval echo "\"\$as_me:4865: output\"" >&5)
4866 cat conftest.out
>&5
4867 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4868 lt_cv_nm_interface
="MS dumpbin"
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4873 $as_echo "$lt_cv_nm_interface" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4876 $as_echo_n "checking whether ln -s works... " >&6; }
4878 if test "$LN_S" = "ln -s"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4880 $as_echo "yes" >&6; }
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4883 $as_echo "no, using $LN_S" >&6; }
4886 # find the maximum length of command line arguments
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4888 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4889 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4897 # On DJGPP, this test can blow up pretty badly due to problems in libc
4898 # (any single argument exceeding 2000 bytes causes a buffer overrun
4899 # during glob expansion). Even if it were fixed, the result of this
4900 # check would be larger than it should be.
4901 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4905 # Under GNU Hurd, this test is not required because there is
4906 # no limit to the length of command line arguments.
4907 # Libtool will interpret -1 as no limit whatsoever
4908 lt_cv_sys_max_cmd_len
=-1;
4911 cygwin
* | mingw
* | cegcc
*)
4912 # On Win9x/ME, this test blows up -- it succeeds, but takes
4913 # about 5 minutes as the teststring grows exponentially.
4914 # Worse, since 9x/ME are not pre-emptively multitasking,
4915 # you end up with a "frozen" computer, even though with patience
4916 # the test eventually succeeds (with a max line length of 256k).
4917 # Instead, let's just punt: use the minimum linelength reported by
4918 # all of the supported platforms: 8192 (on NT/2K/XP).
4919 lt_cv_sys_max_cmd_len
=8192;
4923 # On AmigaOS with pdksh, this test takes hours, literally.
4924 # So we just punt and use a minimum line length of 8192.
4925 lt_cv_sys_max_cmd_len
=8192;
4928 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4929 # This has been around since 386BSD, at least. Likely further.
4930 if test -x /sbin
/sysctl
; then
4931 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4932 elif test -x /usr
/sbin
/sysctl
; then
4933 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4935 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4937 # And add a safety zone
4938 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4939 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4943 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4944 lt_cv_sys_max_cmd_len
=196608
4948 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4949 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4950 # nice to cause kernel panics so lets avoid the loop below.
4951 # First set a reasonable default.
4952 lt_cv_sys_max_cmd_len
=16384
4954 if test -x /sbin
/sysconfig
; then
4955 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4956 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4961 lt_cv_sys_max_cmd_len
=102400
4963 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4964 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4965 if test -n "$kargmax"; then
4966 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4968 lt_cv_sys_max_cmd_len
=32768
4972 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4973 if test -n "$lt_cv_sys_max_cmd_len"; then
4974 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4975 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4977 # Make teststring a little bigger before we do anything with it.
4978 # a 1K string should be a reasonable start.
4979 for i
in 1 2 3 4 5 6 7 8 ; do
4980 teststring
=$teststring$teststring
4982 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4983 # If test is not a shell built-in, we'll probably end up computing a
4984 # maximum length that is only half of the actual maximum length, but
4986 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4987 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4988 test $i != 17 # 1/2 MB should be enough
4991 teststring
=$teststring$teststring
4993 # Only check the string length outside the loop.
4994 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4996 # Add a significant safety factor because C++ compilers can tack on
4997 # massive amounts of additional arguments before passing them to the
4998 # linker. It appears as though 1/2 is a usable value.
4999 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5006 if test -n $lt_cv_sys_max_cmd_len ; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5008 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5011 $as_echo "none" >&6; }
5013 max_cmd_len
=$lt_cv_sys_max_cmd_len
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5025 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5026 # Try some XSI features
5029 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5031 && eval 'test $(( 1 + 1 )) -eq 2 \
5032 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5035 $as_echo "$xsi_shell" >&6; }
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5039 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5041 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5043 && lt_shell_append=yes
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5045 $as_echo "$lt_shell_append" >&6; }
5048 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5058 # test EBCDIC or ASCII
5059 case `echo X|tr X '\101'` in
5060 A) # ASCII based system
5061 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5062 lt_SP2NL='tr \040 \012'
5063 lt_NL2SP='tr \015\012 \040\040'
5065 *) # EBCDIC based system
5066 lt_SP2NL='tr \100 \n'
5067 lt_NL2SP='tr \r\n \100\100'
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5080 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5081 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5082 $as_echo_n "(cached
) " >&6
5084 lt_cv_ld_reload_flag='-r'
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5087 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5088 reload_flag=$lt_cv_ld_reload_flag
5089 case $reload_flag in
5091 *) reload_flag=" $reload_flag" ;;
5093 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5096 if test "$GCC" = yes; then
5097 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5099 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5112 if test -n "$ac_tool_prefix"; then
5113 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5114 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5116 $as_echo_n "checking
for $ac_word...
" >&6; }
5117 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5118 $as_echo_n "(cached
) " >&6
5120 if test -n "$OBJDUMP"; then
5121 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5140 OBJDUMP=$ac_cv_prog_OBJDUMP
5141 if test -n "$OBJDUMP"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5143 $as_echo "$OBJDUMP" >&6; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5146 $as_echo "no
" >&6; }
5151 if test -z "$ac_cv_prog_OBJDUMP"; then
5152 ac_ct_OBJDUMP=$OBJDUMP
5153 # Extract the first word of "objdump
", so it can be a program name with args.
5154 set dummy objdump; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5156 $as_echo_n "checking
for $ac_word...
" >&6; }
5157 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5158 $as_echo_n "(cached
) " >&6
5160 if test -n "$ac_ct_OBJDUMP"; then
5161 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5180 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5181 if test -n "$ac_ct_OBJDUMP"; then
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5183 $as_echo "$ac_ct_OBJDUMP" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5186 $as_echo "no
" >&6; }
5189 if test "x
$ac_ct_OBJDUMP" = x; then
5192 case $cross_compiling:$ac_tool_warned in
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5195 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5196 ac_tool_warned=yes ;;
5198 OBJDUMP=$ac_ct_OBJDUMP
5201 OBJDUMP="$ac_cv_prog_OBJDUMP"
5204 test -z "$OBJDUMP" && OBJDUMP=objdump
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5215 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5216 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5217 $as_echo_n "(cached
) " >&6
5219 lt_cv_file_magic_cmd='$MAGIC_CMD'
5220 lt_cv_file_magic_test_file=
5221 lt_cv_deplibs_check_method='unknown'
5222 # Need to set the preceding variable on all platforms that support
5223 # interlibrary dependencies.
5224 # 'none' -- dependencies not supported.
5225 # `unknown' -- same as none, but documents that we really don't know.
5226 # 'pass_all' -- all dependencies passed with no checks.
5227 # 'test_compile' -- check by making test program.
5228 # 'file_magic [[regex]]' -- check by looking for files in library path
5229 # which responds to the $file_magic_cmd with a given extended regex.
5230 # If you have `file' or equivalent on your system and you're not sure
5231 # whether `pass_all' will *always* work, you probably want this one.
5235 lt_cv_deplibs_check_method=pass_all
5239 lt_cv_deplibs_check_method=pass_all
5243 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5244 lt_cv_file_magic_cmd='/usr/bin/file -L'
5245 lt_cv_file_magic_test_file=/shlib/libc.so
5249 # func_win32_libid is a shell function defined in ltmain.sh
5250 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5251 lt_cv_file_magic_cmd='func_win32_libid'
5255 # Base MSYS/MinGW do not provide the 'file' command needed by
5256 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5257 # unless we find 'file', for example because we are cross-compiling.
5258 if ( file / ) >/dev/null 2>&1; then
5259 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5260 lt_cv_file_magic_cmd='func_win32_libid'
5262 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5263 lt_cv_file_magic_cmd='$OBJDUMP -f'
5268 # use the weaker test based on 'objdump'. See mingw*.
5269 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5270 lt_cv_file_magic_cmd='$OBJDUMP -f'
5273 darwin* | rhapsody*)
5274 lt_cv_deplibs_check_method=pass_all
5277 freebsd* | dragonfly*)
5278 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5281 # Not sure whether the presence of OpenBSD here was a mistake.
5282 # Let's accept both of them until this is cleared up.
5283 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5284 lt_cv_file_magic_cmd=/usr/bin/file
5285 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5289 lt_cv_deplibs_check_method=pass_all
5294 lt_cv_deplibs_check_method=pass_all
5297 hpux10.20* | hpux11*)
5298 lt_cv_file_magic_cmd=/usr/bin/file
5301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5302 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5305 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]'
5306 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5309 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5310 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5316 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5320 irix5* | irix6* | nonstopux*)
5322 *-32|*"-32 ") libmagic=32-bit;;
5323 *-n32|*"-n32 ") libmagic=N32;;
5324 *-64|*"-64 ") libmagic=64-bit;;
5325 *) libmagic=never-match;;
5327 lt_cv_deplibs_check_method=pass_all
5330 # This must be Linux ELF.
5331 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5332 lt_cv_deplibs_check_method=pass_all
5335 netbsd* | netbsdelf*-gnu)
5336 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5345 lt_cv_file_magic_cmd=/usr/bin/file
5346 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5350 lt_cv_deplibs_check_method=pass_all
5354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5361 osf3* | osf4* | osf5*)
5362 lt_cv_deplibs_check_method=pass_all
5366 lt_cv_deplibs_check_method=pass_all
5370 lt_cv_deplibs_check_method=pass_all
5373 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5374 lt_cv_deplibs_check_method=pass_all
5378 case $host_vendor in
5380 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]'
5381 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5384 lt_cv_deplibs_check_method=pass_all
5387 lt_cv_file_magic_cmd='/bin/file'
5388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5391 lt_cv_file_magic_cmd='/bin/file'
5392 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5393 lt_cv_file_magic_test_file=/lib/libc.so
5396 lt_cv_deplibs_check_method=pass_all
5399 lt_cv_deplibs_check_method=pass_all
5405 lt_cv_deplibs_check_method=pass_all
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5411 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5412 file_magic_cmd=$lt_cv_file_magic_cmd
5413 deplibs_check_method=$lt_cv_deplibs_check_method
5414 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5427 if test -n "$ac_tool_prefix"; then
5428 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5429 set dummy ${ac_tool_prefix}ar; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5431 $as_echo_n "checking
for $ac_word...
" >&6; }
5432 if test "${ac_cv_prog_AR+set}" = set; then :
5433 $as_echo_n "(cached
) " >&6
5435 if test -n "$AR"; then
5436 ac_cv_prog_AR="$AR" # Let the user override the test.
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445 ac_cv_prog_AR="${ac_tool_prefix}ar"
5446 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5456 if test -n "$AR"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5458 $as_echo "$AR" >&6; }
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5461 $as_echo "no
" >&6; }
5466 if test -z "$ac_cv_prog_AR"; then
5468 # Extract the first word of "ar", so it can be a program name with args.
5469 set dummy ar; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5471 $as_echo_n "checking
for $ac_word...
" >&6; }
5472 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5473 $as_echo_n "(cached
) " >&6
5475 if test -n "$ac_ct_AR"; then
5476 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5485 ac_cv_prog_ac_ct_AR="ar"
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5495 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5496 if test -n "$ac_ct_AR"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5498 $as_echo "$ac_ct_AR" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5501 $as_echo "no
" >&6; }
5504 if test "x
$ac_ct_AR" = x; then
5507 case $cross_compiling:$ac_tool_warned in
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5510 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5511 ac_tool_warned=yes ;;
5519 test -z "$AR" && AR=ar
5520 test -z "$AR_FLAGS" && AR_FLAGS=cru
5532 if test -n "$ac_tool_prefix"; then
5533 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5534 set dummy ${ac_tool_prefix}strip; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5536 $as_echo_n "checking
for $ac_word...
" >&6; }
5537 if test "${ac_cv_prog_STRIP+set}" = set; then :
5538 $as_echo_n "(cached
) " >&6
5540 if test -n "$STRIP"; then
5541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5560 STRIP=$ac_cv_prog_STRIP
5561 if test -n "$STRIP"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
5563 $as_echo "$STRIP" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5566 $as_echo "no
" >&6; }
5571 if test -z "$ac_cv_prog_STRIP"; then
5573 # Extract the first word of "strip
", so it can be a program name with args.
5574 set dummy strip; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5576 $as_echo_n "checking
for $ac_word...
" >&6; }
5577 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5578 $as_echo_n "(cached
) " >&6
5580 if test -n "$ac_ct_STRIP"; then
5581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590 ac_cv_prog_ac_ct_STRIP="strip
"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5600 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5601 if test -n "$ac_ct_STRIP"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
5603 $as_echo "$ac_ct_STRIP" >&6; }
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5606 $as_echo "no
" >&6; }
5609 if test "x
$ac_ct_STRIP" = x; then
5612 case $cross_compiling:$ac_tool_warned in
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5615 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5616 ac_tool_warned=yes ;;
5621 STRIP="$ac_cv_prog_STRIP"
5624 test -z "$STRIP" && STRIP=:
5631 if test -n "$ac_tool_prefix"; then
5632 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5633 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5635 $as_echo_n "checking
for $ac_word...
" >&6; }
5636 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5637 $as_echo_n "(cached
) " >&6
5639 if test -n "$RANLIB"; then
5640 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5659 RANLIB=$ac_cv_prog_RANLIB
5660 if test -n "$RANLIB"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
5662 $as_echo "$RANLIB" >&6; }
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5665 $as_echo "no
" >&6; }
5670 if test -z "$ac_cv_prog_RANLIB"; then
5671 ac_ct_RANLIB=$RANLIB
5672 # Extract the first word of "ranlib
", so it can be a program name with args.
5673 set dummy ranlib; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5675 $as_echo_n "checking
for $ac_word...
" >&6; }
5676 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5677 $as_echo_n "(cached
) " >&6
5679 if test -n "$ac_ct_RANLIB"; then
5680 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5699 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5700 if test -n "$ac_ct_RANLIB"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
5702 $as_echo "$ac_ct_RANLIB" >&6; }
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5705 $as_echo "no
" >&6; }
5708 if test "x
$ac_ct_RANLIB" = x; then
5711 case $cross_compiling:$ac_tool_warned in
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5714 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5715 ac_tool_warned=yes ;;
5717 RANLIB=$ac_ct_RANLIB
5720 RANLIB="$ac_cv_prog_RANLIB"
5723 test -z "$RANLIB" && RANLIB=:
5730 # Determine commands to create old-style static archives.
5731 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5732 old_postinstall_cmds='chmod 644 $oldlib'
5733 old_postuninstall_cmds=
5735 if test -n "$RANLIB"; then
5738 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5741 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5744 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5780 # If no C compiler was specified, use CC.
5783 # If no C compiler flags were specified, use CFLAGS.
5784 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5786 # Allow CC to be a program name with arguments.
5790 # Check for command to grab the raw symbol name followed by C symbol from nm.
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
5792 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5793 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5794 $as_echo_n "(cached
) " >&6
5797 # These are sane defaults that work on at least a few old systems.
5798 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5800 # Character class describing NM global symbol codes.
5801 symcode='[BCDEGRST]'
5803 # Regexp to match symbols that can be accessed directly from C.
5804 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5806 # Define system-specific variables.
5811 cygwin* | mingw* | pw32* | cegcc*)
5812 symcode='[ABCDGISTW]'
5815 if test "$host_cpu" = ia64; then
5816 symcode='[ABCDEGRST]'
5820 symcode='[BCDEGRST]'
5823 symcode='[BCDEGQRST]'
5834 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5842 # If we're using GNU nm, then use its standard symbol codes.
5843 case `$NM -V 2>&1` in
5844 *GNU* | *'with BFD'*)
5845 symcode='[ABCDGIRSTW]' ;;
5848 # Transform an extracted symbol line into a proper C declaration.
5849 # Some systems (esp. on ia64) link data and code symbols differently,
5850 # so use this general approach.
5851 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5853 # Transform an extracted symbol line into symbol name and symbol address
5854 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5855 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'"
5857 # Handle CRLF in mingw tool chain
5861 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5865 # Try without a prefix underscore, then with it.
5866 for ac_symprfx in "" "_
"; do
5868 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5869 symxfrm="\\1 $ac_symprfx\\2 \\2"
5871 # Write the raw and C identifiers.
5872 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5873 # Fake it for dumpbin and say T for any non-static function
5874 # and D for any global variable.
5875 # Also find C++ and __fastcall symbols from MSVC++,
5876 # which start with @ or ?.
5877 lt_cv_sys_global_symbol_pipe="$AWK '"\
5878 " {last_section=section; section=\$ 3};"\
5879 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5880 " \$ 0!~/External *\|/{next};"\
5881 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5882 " {if(hide[section]) next};"\
5883 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5884 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5885 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5886 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5887 " ' prfx
=^
$ac_symprfx"
5889 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5892 # Check to see that the pipe works correctly.
5896 cat > conftest.$ac_ext <<_LT_EOF
5901 void nm_test_func(void);
5902 void nm_test_func(void){}
5906 int main(){nm_test_var='a';nm_test_func();return(0);}
5909 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5910 (eval $ac_compile) 2>&5
5912 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5913 test $ac_status = 0; }; then
5914 # Now try to grab the symbols.
5916 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\""; } >&5
5917 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5919 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5920 test $ac_status = 0; } && test -s "$nlist"; then
5921 # Try sorting and uniquifying the output.
5922 if sort "$nlist" | uniq > "$nlist"T; then
5923 mv -f "$nlist"T "$nlist"
5928 # Make sure that we snagged all the symbols we need.
5929 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5930 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5931 cat <<_LT_EOF > conftest.$ac_ext
5937 # Now generate the symbol file.
5938 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5940 cat <<_LT_EOF >> conftest.$ac_ext
5942 /* The mapping between symbol names and symbols. */
5947 lt__PROGRAM__LTX_preloaded_symbols[] =
5949 { "@PROGRAM@
", (void *) 0 },
5951 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5952 cat <<\_LT_EOF >> conftest.$ac_ext
5956 /* This works around a problem in FreeBSD linker */
5957 #ifdef FREEBSD_WORKAROUND
5958 static const void *lt_preloaded_setup() {
5959 return lt__PROGRAM__LTX_preloaded_symbols;
5967 # Now try linking the two files.
5968 mv conftest.$ac_objext conftstm.$ac_objext
5969 lt_save_LIBS="$LIBS"
5970 lt_save_CFLAGS="$CFLAGS"
5971 LIBS="conftstm.
$ac_objext"
5972 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5973 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5974 (eval $ac_link) 2>&5
5976 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5977 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5980 LIBS="$lt_save_LIBS"
5981 CFLAGS="$lt_save_CFLAGS"
5983 echo "cannot
find nm_test_func
in $nlist" >&5
5986 echo "cannot
find nm_test_var
in $nlist" >&5
5989 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5992 echo "$progname: failed program was
:" >&5
5993 cat conftest.$ac_ext >&5
5995 rm -rf conftest* conftst*
5997 # Do not use the global_symbol_pipe unless it works.
5998 if test "$pipe_works" = yes; then
6001 lt_cv_sys_global_symbol_pipe=
6007 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6008 lt_cv_sys_global_symbol_to_cdecl=
6010 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6012 $as_echo "failed
" >&6; }
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6015 $as_echo "ok
" >&6; }
6039 # Check whether --enable-libtool-lock was given.
6040 if test "${enable_libtool_lock+set}" = set; then :
6041 enableval=$enable_libtool_lock;
6044 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6046 # Some flags need to be propagated to the compiler or linker for good
6050 # Find out which ABI we are using.
6051 echo 'int i;' > conftest.$ac_ext
6052 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6053 (eval $ac_compile) 2>&5
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6056 test $ac_status = 0; }; then
6057 case `/usr/bin/file conftest.$ac_objext` in
6069 # Find out which ABI we are using.
6070 echo '#line 6070 "configure
"' > conftest.$ac_ext
6071 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6072 (eval $ac_compile) 2>&5
6074 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6075 test $ac_status = 0; }; then
6076 if test "$lt_cv_prog_gnu_ld" = yes; then
6077 case `/usr/bin/file conftest.$ac_objext` in
6079 LD="${LD-ld} -melf32bsmip"
6082 LD="${LD-ld} -melf32bmipn32"
6085 LD="${LD-ld} -melf64bmip"
6089 case `/usr/bin/file conftest.$ac_objext` in
6105 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6106 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6107 # Find out which ABI we are using.
6108 echo 'int i;' > conftest.$ac_ext
6109 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6110 (eval $ac_compile) 2>&5
6112 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6113 test $ac_status = 0; }; then
6114 case `/usr/bin/file conftest.o` in
6117 x86_64-*kfreebsd*-gnu)
6118 LD="${LD-ld} -m elf_i386_fbsd
"
6121 LD="${LD-ld} -m elf_i386
"
6123 ppc64-*linux*|powerpc64-*linux*)
6124 LD="${LD-ld} -m elf32ppclinux
"
6127 LD="${LD-ld} -m elf_s390
"
6130 LD="${LD-ld} -m elf32_sparc
"
6136 x86_64-*kfreebsd*-gnu)
6137 LD="${LD-ld} -m elf_x86_64_fbsd
"
6140 LD="${LD-ld} -m elf_x86_64
"
6142 ppc*-*linux*|powerpc*-*linux*)
6143 LD="${LD-ld} -m elf64ppc
"
6145 s390*-*linux*|s390*-*tpf*)
6146 LD="${LD-ld} -m elf64_s390
"
6149 LD="${LD-ld} -m elf64_sparc
"
6159 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6160 SAVE_CFLAGS="$CFLAGS"
6161 CFLAGS="$CFLAGS -belf"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6163 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6164 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6165 $as_echo_n "(cached
) " >&6
6168 ac_cpp='$CPP $CPPFLAGS'
6169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6184 if ac_fn_c_try_link "$LINENO"; then :
6185 lt_cv_cc_needs_belf=yes
6187 lt_cv_cc_needs_belf=no
6189 rm -f core conftest.err conftest.$ac_objext \
6190 conftest$ac_exeext conftest.$ac_ext
6192 ac_cpp='$CPP $CPPFLAGS'
6193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6199 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6200 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6201 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6202 CFLAGS="$SAVE_CFLAGS"
6206 # Find out which ABI we are using.
6207 echo 'int i;' > conftest.$ac_ext
6208 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6209 (eval $ac_compile) 2>&5
6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6212 test $ac_status = 0; }; then
6213 case `/usr/bin/file conftest.o` in
6215 case $lt_cv_prog_gnu_ld in
6216 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6218 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6230 need_locks="$enable_libtool_lock"
6234 rhapsody* | darwin*)
6235 if test -n "$ac_tool_prefix"; then
6236 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6237 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6239 $as_echo_n "checking
for $ac_word...
" >&6; }
6240 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6241 $as_echo_n "(cached
) " >&6
6243 if test -n "$DSYMUTIL"; then
6244 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6253 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6254 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6263 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6264 if test -n "$DSYMUTIL"; then
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6266 $as_echo "$DSYMUTIL" >&6; }
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6269 $as_echo "no
" >&6; }
6274 if test -z "$ac_cv_prog_DSYMUTIL"; then
6275 ac_ct_DSYMUTIL=$DSYMUTIL
6276 # Extract the first word of "dsymutil
", so it can be a program name with args.
6277 set dummy dsymutil; ac_word=$2
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6279 $as_echo_n "checking
for $ac_word...
" >&6; }
6280 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6281 $as_echo_n "(cached
) " >&6
6283 if test -n "$ac_ct_DSYMUTIL"; then
6284 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
6292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6294 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6303 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6304 if test -n "$ac_ct_DSYMUTIL"; then
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6306 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6309 $as_echo "no
" >&6; }
6312 if test "x
$ac_ct_DSYMUTIL" = x; then
6315 case $cross_compiling:$ac_tool_warned in
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6318 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6319 ac_tool_warned=yes ;;
6321 DSYMUTIL=$ac_ct_DSYMUTIL
6324 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6327 if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6329 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6331 $as_echo_n "checking
for $ac_word...
" >&6; }
6332 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6333 $as_echo_n "(cached
) " >&6
6335 if test -n "$NMEDIT"; then
6336 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6355 NMEDIT=$ac_cv_prog_NMEDIT
6356 if test -n "$NMEDIT"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6358 $as_echo "$NMEDIT" >&6; }
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6361 $as_echo "no
" >&6; }
6366 if test -z "$ac_cv_prog_NMEDIT"; then
6367 ac_ct_NMEDIT=$NMEDIT
6368 # Extract the first word of "nmedit
", so it can be a program name with args.
6369 set dummy nmedit; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6371 $as_echo_n "checking
for $ac_word...
" >&6; }
6372 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6373 $as_echo_n "(cached
) " >&6
6375 if test -n "$ac_ct_NMEDIT"; then
6376 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6395 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6396 if test -n "$ac_ct_NMEDIT"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6398 $as_echo "$ac_ct_NMEDIT" >&6; }
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6401 $as_echo "no
" >&6; }
6404 if test "x
$ac_ct_NMEDIT" = x; then
6407 case $cross_compiling:$ac_tool_warned in
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6410 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6411 ac_tool_warned=yes ;;
6413 NMEDIT=$ac_ct_NMEDIT
6416 NMEDIT="$ac_cv_prog_NMEDIT"
6419 if test -n "$ac_tool_prefix"; then
6420 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6421 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6423 $as_echo_n "checking
for $ac_word...
" >&6; }
6424 if test "${ac_cv_prog_LIPO+set}" = set; then :
6425 $as_echo_n "(cached
) " >&6
6427 if test -n "$LIPO"; then
6428 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6447 LIPO=$ac_cv_prog_LIPO
6448 if test -n "$LIPO"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6450 $as_echo "$LIPO" >&6; }
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6453 $as_echo "no
" >&6; }
6458 if test -z "$ac_cv_prog_LIPO"; then
6460 # Extract the first word of "lipo
", so it can be a program name with args.
6461 set dummy lipo; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6463 $as_echo_n "checking
for $ac_word...
" >&6; }
6464 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6465 $as_echo_n "(cached
) " >&6
6467 if test -n "$ac_ct_LIPO"; then
6468 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_ac_ct_LIPO="lipo
"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6487 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6488 if test -n "$ac_ct_LIPO"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6490 $as_echo "$ac_ct_LIPO" >&6; }
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6493 $as_echo "no
" >&6; }
6496 if test "x
$ac_ct_LIPO" = x; then
6499 case $cross_compiling:$ac_tool_warned in
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6502 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6503 ac_tool_warned=yes ;;
6508 LIPO="$ac_cv_prog_LIPO"
6511 if test -n "$ac_tool_prefix"; then
6512 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}otool; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6515 $as_echo_n "checking
for $ac_word...
" >&6; }
6516 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6517 $as_echo_n "(cached
) " >&6
6519 if test -n "$OTOOL"; then
6520 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6529 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6530 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6539 OTOOL=$ac_cv_prog_OTOOL
6540 if test -n "$OTOOL"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
6542 $as_echo "$OTOOL" >&6; }
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6545 $as_echo "no
" >&6; }
6550 if test -z "$ac_cv_prog_OTOOL"; then
6552 # Extract the first word of "otool
", so it can be a program name with args.
6553 set dummy otool; ac_word=$2
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6555 $as_echo_n "checking
for $ac_word...
" >&6; }
6556 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6557 $as_echo_n "(cached
) " >&6
6559 if test -n "$ac_ct_OTOOL"; then
6560 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6569 ac_cv_prog_ac_ct_OTOOL="otool
"
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6579 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6580 if test -n "$ac_ct_OTOOL"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
6582 $as_echo "$ac_ct_OTOOL" >&6; }
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6585 $as_echo "no
" >&6; }
6588 if test "x
$ac_ct_OTOOL" = x; then
6591 case $cross_compiling:$ac_tool_warned in
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6594 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6595 ac_tool_warned=yes ;;
6600 OTOOL="$ac_cv_prog_OTOOL"
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6607 $as_echo_n "checking
for $ac_word...
" >&6; }
6608 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6609 $as_echo_n "(cached
) " >&6
6611 if test -n "$OTOOL64"; then
6612 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6631 OTOOL64=$ac_cv_prog_OTOOL64
6632 if test -n "$OTOOL64"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
6634 $as_echo "$OTOOL64" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6637 $as_echo "no
" >&6; }
6642 if test -z "$ac_cv_prog_OTOOL64"; then
6643 ac_ct_OTOOL64=$OTOOL64
6644 # Extract the first word of "otool64
", so it can be a program name with args.
6645 set dummy otool64; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6647 $as_echo_n "checking
for $ac_word...
" >&6; }
6648 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6649 $as_echo_n "(cached
) " >&6
6651 if test -n "$ac_ct_OTOOL64"; then
6652 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6662 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6671 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6672 if test -n "$ac_ct_OTOOL64"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
6674 $as_echo "$ac_ct_OTOOL64" >&6; }
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6677 $as_echo "no
" >&6; }
6680 if test "x
$ac_ct_OTOOL64" = x; then
6683 case $cross_compiling:$ac_tool_warned in
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6686 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6687 ac_tool_warned=yes ;;
6689 OTOOL64=$ac_ct_OTOOL64
6692 OTOOL64="$ac_cv_prog_OTOOL64"
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
6722 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6723 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6724 $as_echo_n "(cached
) " >&6
6726 lt_cv_apple_cc_single_mod=no
6727 if test -z "${LT_MULTI_MODULE}"; then
6728 # By default we will add the -single_module flag. You can override
6729 # by either setting the environment variable LT_MULTI_MODULE
6730 # non-empty at configure time, or by adding -multi_module to the
6732 rm -rf libconftest.dylib*
6733 echo "int foo
(void
){return 1;}" > conftest.c
6734 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6735 -dynamiclib -Wl,-single_module conftest.c
" >&5
6736 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6737 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6739 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6740 lt_cv_apple_cc_single_mod=yes
6742 cat conftest.err >&5
6744 rm -rf libconftest.dylib*
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
6749 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
6751 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6752 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6753 $as_echo_n "(cached
) " >&6
6755 lt_cv_ld_exported_symbols_list=no
6756 save_LDFLAGS=$LDFLAGS
6757 echo "_main
" > conftest.sym
6758 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6770 if ac_fn_c_try_link "$LINENO"; then :
6771 lt_cv_ld_exported_symbols_list=yes
6773 lt_cv_ld_exported_symbols_list=no
6775 rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
6777 LDFLAGS="$save_LDFLAGS"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
6781 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6783 rhapsody* | darwin1.[012])
6784 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6786 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6787 darwin*) # darwin 5.x on
6788 # if running on 10.5 or later, the deployment target defaults
6789 # to the OS version, if on x86, and 10.4, the deployment
6790 # target defaults to 10.4. Don't you love it?
6791 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6792 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6793 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6795 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6797 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6801 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6802 _lt_dar_single_mod='$single_module'
6804 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6805 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6807 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6809 if test "$DSYMUTIL" != ":"; then
6810 _lt_dsymutil='~$DSYMUTIL $lib || :'
6817 for ac_header in dlfcn.h
6819 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
6821 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_DLFCN_H 1
6842 # Check whether --enable-shared was given.
6843 if test "${enable_shared+set}" = set; then :
6844 enableval=$enable_shared; p=${PACKAGE-default}
6846 yes) enable_shared=yes ;;
6847 no) enable_shared=no ;;
6850 # Look at the argument we got. We use all the common list separators.
6851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6852 for pkg in $enableval; do
6854 if test "X
$pkg" = "X
$p"; then
6873 # Check whether --enable-static was given.
6874 if test "${enable_static+set}" = set; then :
6875 enableval=$enable_static; p=${PACKAGE-default}
6877 yes) enable_static=yes ;;
6878 no) enable_static=no ;;
6881 # Look at the argument we got. We use all the common list separators.
6882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6883 for pkg in $enableval; do
6885 if test "X
$pkg" = "X
$p"; then
6905 # Check whether --with-pic was given.
6906 if test "${with_pic+set}" = set; then :
6907 withval=$with_pic; pic_mode="$withval"
6913 test -z "$pic_mode" && pic_mode=default
6921 # Check whether --enable-fast-install was given.
6922 if test "${enable_fast_install+set}" = set; then :
6923 enableval=$enable_fast_install; p=${PACKAGE-default}
6925 yes) enable_fast_install=yes ;;
6926 no) enable_fast_install=no ;;
6928 enable_fast_install=no
6929 # Look at the argument we got. We use all the common list separators.
6930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6931 for pkg in $enableval; do
6933 if test "X
$pkg" = "X
$p"; then
6934 enable_fast_install=yes
6941 enable_fast_install=yes
6954 # This can be used to rebuild libtool when needed
6955 LIBTOOL_DEPS="$ltmain"
6957 # Always use our own libtool.
6958 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6984 test -z "$LN_S" && LN_S="ln -s"
6999 if test -n "${ZSH_VERSION+set}" ; then
7000 setopt NO_GLOB_SUBST
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
7004 $as_echo_n "checking
for objdir...
" >&6; }
7005 if test "${lt_cv_objdir+set}" = set; then :
7006 $as_echo_n "(cached
) " >&6
7008 rm -f .libs 2>/dev/null
7009 mkdir .libs 2>/dev/null
7010 if test -d .libs; then
7013 # MS-DOS does not allow filenames that begin with a dot.
7016 rmdir .libs 2>/dev/null
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
7019 $as_echo "$lt_cv_objdir" >&6; }
7020 objdir=$lt_cv_objdir
7026 cat >>confdefs.h <<_ACEOF
7027 #define LT_OBJDIR "$lt_cv_objdir/"
7048 # AIX sometimes has problems with the GCC collect2 program. For some
7049 # reason, if we set the COLLECT_NAMES environment variable, the problems
7050 # vanish in a puff of smoke.
7051 if test "X
${COLLECT_NAMES+set}" != Xset; then
7053 export COLLECT_NAMES
7058 # Sed substitution that helps us do robust quoting. It backslashifies
7059 # metacharacters that are still active within double-quoted strings.
7060 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7062 # Same as above, but do not quote variable references.
7063 double_quote_subst='s/\(["`\\]\
)/\\\
1/g
'
7065 # Sed substitution to delay expansion of an escaped shell variable in a
7066 # double_quote_subst'ed string.
7067 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7069 # Sed substitution to delay expansion of an escaped single quote.
7070 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7072 # Sed substitution to avoid accidental globbing in evaled expressions
7073 no_glob_subst
='s/\*/\\\*/g'
7077 can_build_shared
=yes
7079 # All known linkers require a `.a' archive for static linking (except MSVC,
7080 # which needs '.lib').
7083 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7086 old_CFLAGS
="$CFLAGS"
7088 # Set sane defaults for various variables
7089 test -z "$CC" && CC
=cc
7090 test -z "$LTCC" && LTCC
=$CC
7091 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7092 test -z "$LD" && LD
=ld
7093 test -z "$ac_objext" && ac_objext
=o
7095 for cc_temp
in $compiler""; do
7097 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7098 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7103 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7106 # Only perform the check for file, if the check method requires it
7107 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7108 case $deplibs_check_method in
7110 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7112 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7114 $as_echo_n "(cached) " >&6
7118 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7121 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7122 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7123 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7124 for ac_dir
in $ac_dummy; do
7126 test -z "$ac_dir" && ac_dir
=.
7127 if test -f $ac_dir/${ac_tool_prefix}file; then
7128 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7129 if test -n "$file_magic_test_file"; then
7130 case $deplibs_check_method in
7132 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7133 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7134 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7135 $EGREP "$file_magic_regex" > /dev
/null
; then
7140 *** Warning: the command libtool uses to detect shared libraries,
7141 *** $file_magic_cmd, produces output that libtool cannot recognize.
7142 *** The result is that libtool may fail to recognize shared libraries
7143 *** as such. This will affect the creation of libtool libraries that
7144 *** depend on shared libraries, but programs linked with such libtool
7145 *** libraries will work regardless of this problem. Nevertheless, you
7146 *** may want to report the problem to your system manager and/or to
7147 *** bug-libtool@gnu.org
7157 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7162 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7163 if test -n "$MAGIC_CMD"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7165 $as_echo "$MAGIC_CMD" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7175 if test -z "$lt_cv_path_MAGIC_CMD"; then
7176 if test -n "$ac_tool_prefix"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7178 $as_echo_n "checking for file... " >&6; }
7179 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7184 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7187 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7188 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7189 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7190 for ac_dir
in $ac_dummy; do
7192 test -z "$ac_dir" && ac_dir
=.
7193 if test -f $ac_dir/file; then
7194 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7195 if test -n "$file_magic_test_file"; then
7196 case $deplibs_check_method in
7198 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7199 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7200 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7201 $EGREP "$file_magic_regex" > /dev
/null
; then
7206 *** Warning: the command libtool uses to detect shared libraries,
7207 *** $file_magic_cmd, produces output that libtool cannot recognize.
7208 *** The result is that libtool may fail to recognize shared libraries
7209 *** as such. This will affect the creation of libtool libraries that
7210 *** depend on shared libraries, but programs linked with such libtool
7211 *** libraries will work regardless of this problem. Nevertheless, you
7212 *** may want to report the problem to your system manager and/or to
7213 *** bug-libtool@gnu.org
7223 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7228 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7229 if test -n "$MAGIC_CMD"; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7231 $as_echo "$MAGIC_CMD" >&6; }
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7247 # Use C for the default configuration in the libtool script
7251 ac_cpp
='$CPP $CPPFLAGS'
7252 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7257 # Source file extension for C test sources.
7260 # Object file extension for compiled C test sources.
7264 # Code to be used in simple compile tests
7265 lt_simple_compile_test_code
="int some_variable = 0;"
7267 # Code to be used in simple link tests
7268 lt_simple_link_test_code
='int main(){return(0);}'
7276 # If no C compiler was specified, use CC.
7279 # If no C compiler flags were specified, use CFLAGS.
7280 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7282 # Allow CC to be a program name with arguments.
7285 # Save the default compiler, since it gets overwritten when the other
7286 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7287 compiler_DEFAULT
=$CC
7289 # save warnings/boilerplate of simple test code
7290 ac_outfile
=conftest.
$ac_objext
7291 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7292 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7293 _lt_compiler_boilerplate
=`cat conftest.err`
7296 ac_outfile
=conftest.
$ac_objext
7297 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7298 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7299 _lt_linker_boilerplate
=`cat conftest.err`
7303 if test -n "$compiler"; then
7305 lt_prog_compiler_no_builtin_flag
=
7307 if test "$GCC" = yes; then
7308 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7311 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7312 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7313 $as_echo_n "(cached) " >&6
7315 lt_cv_prog_compiler_rtti_exceptions
=no
7316 ac_outfile
=conftest.
$ac_objext
7317 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7318 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7319 # Insert the option either (1) after the last *FLAGS variable, or
7320 # (2) before a word containing "conftest.", or (3) at the end.
7321 # Note that $ac_compile itself does not contain backslashes and begins
7322 # with a dollar sign (not a hyphen), so the echo should work correctly.
7323 # The option is referenced via a variable to avoid confusing sed.
7324 lt_compile
=`echo "$ac_compile" | $SED \
7325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7327 -e 's:$: $lt_compiler_flag:'`
7328 (eval echo "\"\$as_me:7328: $lt_compile\"" >&5)
7329 (eval "$lt_compile" 2>conftest.err
)
7331 cat conftest.err
>&5
7332 echo "$as_me:7332: \$? = $ac_status" >&5
7333 if (exit $ac_status) && test -s "$ac_outfile"; then
7334 # The compiler can only warn and ignore the option if not recognized
7335 # So say no if there are warnings other than the usual output.
7336 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7337 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7338 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7339 lt_cv_prog_compiler_rtti_exceptions
=yes
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7346 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7348 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7349 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7361 lt_prog_compiler_wl
=
7362 lt_prog_compiler_pic
=
7363 lt_prog_compiler_static
=
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7368 if test "$GCC" = yes; then
7369 lt_prog_compiler_wl
='-Wl,'
7370 lt_prog_compiler_static
='-static'
7374 # All AIX code is PIC.
7375 if test "$host_cpu" = ia64
; then
7376 # AIX 5 now supports IA64 processor
7377 lt_prog_compiler_static
='-Bstatic'
7384 # see comment about AmigaOS4 .so support
7385 lt_prog_compiler_pic
='-fPIC'
7388 # FIXME: we need at least 68020 code to build shared libraries, but
7389 # adding the `-m68020' flag to GCC prevents building anything better,
7391 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7396 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7397 # PIC is the default for these OSes.
7400 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7401 # This hack is so that the source file can tell whether it is being
7402 # built for inclusion in a dll (and should export symbols for example).
7403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7404 # (--disable-auto-import) libraries
7405 lt_prog_compiler_pic
='-DDLL_EXPORT'
7408 darwin
* | rhapsody
*)
7409 # PIC is the default on this platform
7410 # Common symbols not allowed in MH_DYLIB files
7411 lt_prog_compiler_pic
='-fno-common'
7415 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7416 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7417 # sets the default TLS model and affects inlining.
7423 lt_prog_compiler_pic
='-fPIC'
7429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7430 # Instead, we relocate shared libraries at runtime.
7434 # Just because we use GCC doesn't mean we suddenly get shared libraries
7435 # on systems that don't support them.
7436 lt_prog_compiler_can_build_shared
=no
7441 # QNX uses GNU C++, but need to define -shared option too, otherwise
7443 lt_prog_compiler_pic
='-fPIC -shared'
7447 if test -d /usr
/nec
; then
7448 lt_prog_compiler_pic
=-Kconform_pic
7453 lt_prog_compiler_pic
='-fPIC'
7457 # PORTME Check for flag to pass linker flags through the system compiler.
7460 lt_prog_compiler_wl
='-Wl,'
7461 if test "$host_cpu" = ia64
; then
7462 # AIX 5 now supports IA64 processor
7463 lt_prog_compiler_static
='-Bstatic'
7465 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7469 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7470 # This hack is so that the source file can tell whether it is being
7471 # built for inclusion in a dll (and should export symbols for example).
7472 lt_prog_compiler_pic
='-DDLL_EXPORT'
7475 hpux9
* | hpux10
* | hpux11
*)
7476 lt_prog_compiler_wl
='-Wl,'
7477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7484 lt_prog_compiler_pic
='+Z'
7487 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7488 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7491 irix5
* | irix6
* | nonstopux
*)
7492 lt_prog_compiler_wl
='-Wl,'
7493 # PIC (with -KPIC) is the default.
7494 lt_prog_compiler_static
='-non_shared'
7497 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
7498 case $cc_basename in
7499 # old Intel for x86_64 which still supported -KPIC.
7501 lt_prog_compiler_wl
='-Wl,'
7502 lt_prog_compiler_pic
='-KPIC'
7503 lt_prog_compiler_static
='-static'
7505 # icc used to be incompatible with GCC.
7506 # ICC 10 doesn't accept -KPIC any more.
7508 lt_prog_compiler_wl
='-Wl,'
7509 lt_prog_compiler_pic
='-fPIC'
7510 lt_prog_compiler_static
='-static'
7512 # Lahey Fortran 8.1.
7514 lt_prog_compiler_wl
='-Wl,'
7515 lt_prog_compiler_pic
='--shared'
7516 lt_prog_compiler_static
='--static'
7518 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7519 # Portland Group compilers (*not* the Pentium gcc compiler,
7520 # which looks to be a dead project)
7521 lt_prog_compiler_wl
='-Wl,'
7522 lt_prog_compiler_pic
='-fpic'
7523 lt_prog_compiler_static
='-Bstatic'
7526 lt_prog_compiler_wl
='-Wl,'
7527 # All Alpha code is PIC.
7528 lt_prog_compiler_static
='-non_shared'
7531 # IBM XL C 8.0/Fortran 10.1 on PPC
7532 lt_prog_compiler_wl
='-Wl,'
7533 lt_prog_compiler_pic
='-qpic'
7534 lt_prog_compiler_static
='-qstaticlink'
7537 case `$CC -V 2>&1 | sed 5q` in
7540 lt_prog_compiler_pic
='-KPIC'
7541 lt_prog_compiler_static
='-Bstatic'
7542 lt_prog_compiler_wl
='-Wl,'
7545 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7546 lt_prog_compiler_pic
='-KPIC'
7547 lt_prog_compiler_static
='-Bstatic'
7548 lt_prog_compiler_wl
=''
7556 lt_prog_compiler_pic
='-KPIC'
7557 lt_prog_compiler_static
='-Bstatic'
7561 # QNX uses GNU C++, but need to define -shared option too, otherwise
7563 lt_prog_compiler_pic
='-fPIC -shared'
7566 osf3
* | osf4
* | osf5
*)
7567 lt_prog_compiler_wl
='-Wl,'
7568 # All OSF/1 code is PIC.
7569 lt_prog_compiler_static
='-non_shared'
7573 lt_prog_compiler_static
='-non_shared'
7577 lt_prog_compiler_pic
='-KPIC'
7578 lt_prog_compiler_static
='-Bstatic'
7579 case $cc_basename in
7581 lt_prog_compiler_wl
='-Qoption ld ';;
7583 lt_prog_compiler_wl
='-Wl,';;
7588 lt_prog_compiler_wl
='-Qoption ld '
7589 lt_prog_compiler_pic
='-PIC'
7590 lt_prog_compiler_static
='-Bstatic'
7593 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7594 lt_prog_compiler_wl
='-Wl,'
7595 lt_prog_compiler_pic
='-KPIC'
7596 lt_prog_compiler_static
='-Bstatic'
7600 if test -d /usr
/nec
;then
7601 lt_prog_compiler_pic
='-Kconform_pic'
7602 lt_prog_compiler_static
='-Bstatic'
7606 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7607 lt_prog_compiler_wl
='-Wl,'
7608 lt_prog_compiler_pic
='-KPIC'
7609 lt_prog_compiler_static
='-Bstatic'
7613 lt_prog_compiler_wl
='-Wl,'
7614 lt_prog_compiler_can_build_shared
=no
7618 lt_prog_compiler_pic
='-pic'
7619 lt_prog_compiler_static
='-Bstatic'
7623 lt_prog_compiler_can_build_shared
=no
7629 # For platforms which do not support PIC, -DPIC is meaningless:
7631 lt_prog_compiler_pic
=
7634 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7638 $as_echo "$lt_prog_compiler_pic" >&6; }
7646 # Check to make sure the PIC flag actually works.
7648 if test -n "$lt_prog_compiler_pic"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7650 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7651 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7654 lt_cv_prog_compiler_pic_works
=no
7655 ac_outfile
=conftest.
$ac_objext
7656 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7657 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7658 # Insert the option either (1) after the last *FLAGS variable, or
7659 # (2) before a word containing "conftest.", or (3) at the end.
7660 # Note that $ac_compile itself does not contain backslashes and begins
7661 # with a dollar sign (not a hyphen), so the echo should work correctly.
7662 # The option is referenced via a variable to avoid confusing sed.
7663 lt_compile
=`echo "$ac_compile" | $SED \
7664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7666 -e 's:$: $lt_compiler_flag:'`
7667 (eval echo "\"\$as_me:7667: $lt_compile\"" >&5)
7668 (eval "$lt_compile" 2>conftest.err
)
7670 cat conftest.err
>&5
7671 echo "$as_me:7671: \$? = $ac_status" >&5
7672 if (exit $ac_status) && test -s "$ac_outfile"; then
7673 # The compiler can only warn and ignore the option if not recognized
7674 # So say no if there are warnings other than the usual output.
7675 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7676 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7677 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7678 lt_cv_prog_compiler_pic_works
=yes
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7685 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7687 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
7688 case $lt_prog_compiler_pic in
7690 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7693 lt_prog_compiler_pic
=
7694 lt_prog_compiler_can_build_shared
=no
7705 # Check to make sure the static flag actually works.
7707 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7709 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7710 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7713 lt_cv_prog_compiler_static_works
=no
7714 save_LDFLAGS
="$LDFLAGS"
7715 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7716 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7717 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7718 # The linker can only warn and ignore the option if not recognized
7719 # So say no if there are warnings
7720 if test -s conftest.err
; then
7721 # Append any errors to the config.log.
7722 cat conftest.err
1>&5
7723 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7724 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7725 if diff conftest.exp conftest.er2
>/dev
/null
; then
7726 lt_cv_prog_compiler_static_works
=yes
7729 lt_cv_prog_compiler_static_works
=yes
7733 LDFLAGS
="$save_LDFLAGS"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7737 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7739 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
7742 lt_prog_compiler_static
=
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7752 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7753 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7756 lt_cv_prog_compiler_c_o
=no
7757 $RM -r conftest
2>/dev
/null
7761 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7763 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7764 # Insert the option either (1) after the last *FLAGS variable, or
7765 # (2) before a word containing "conftest.", or (3) at the end.
7766 # Note that $ac_compile itself does not contain backslashes and begins
7767 # with a dollar sign (not a hyphen), so the echo should work correctly.
7768 lt_compile
=`echo "$ac_compile" | $SED \
7769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7771 -e 's:$: $lt_compiler_flag:'`
7772 (eval echo "\"\$as_me:7772: $lt_compile\"" >&5)
7773 (eval "$lt_compile" 2>out
/conftest.err
)
7775 cat out
/conftest.err
>&5
7776 echo "$as_me:7776: \$? = $ac_status" >&5
7777 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7779 # The compiler can only warn and ignore the option if not recognized
7780 # So say no if there are warnings
7781 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7782 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7783 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7784 lt_cv_prog_compiler_c_o
=yes
7789 # SGI C++ compiler will create directory out/ii_files/ for
7790 # template instantiation
7791 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
7792 $RM out
/* && rmdir out
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7799 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7807 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7808 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7811 lt_cv_prog_compiler_c_o
=no
7812 $RM -r conftest
2>/dev
/null
7816 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7818 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7819 # Insert the option either (1) after the last *FLAGS variable, or
7820 # (2) before a word containing "conftest.", or (3) at the end.
7821 # Note that $ac_compile itself does not contain backslashes and begins
7822 # with a dollar sign (not a hyphen), so the echo should work correctly.
7823 lt_compile
=`echo "$ac_compile" | $SED \
7824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7826 -e 's:$: $lt_compiler_flag:'`
7827 (eval echo "\"\$as_me:7827: $lt_compile\"" >&5)
7828 (eval "$lt_compile" 2>out
/conftest.err
)
7830 cat out
/conftest.err
>&5
7831 echo "$as_me:7831: \$? = $ac_status" >&5
7832 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7834 # The compiler can only warn and ignore the option if not recognized
7835 # So say no if there are warnings
7836 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7837 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7838 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7839 lt_cv_prog_compiler_c_o
=yes
7844 # SGI C++ compiler will create directory out/ii_files/ for
7845 # template instantiation
7846 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
7847 $RM out
/* && rmdir out
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7854 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7859 hard_links
="nottested"
7860 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7861 # do not overwrite the value of need_locks provided by the user
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7863 $as_echo_n "checking if we can lock with hard links... " >&6; }
7866 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7868 ln conftest.a conftest.b
2>&5 || hard_links
=no
7869 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7871 $as_echo "$hard_links" >&6; }
7872 if test "$hard_links" = no
; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7874 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7887 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7890 allow_undefined_flag
=
7891 always_export_symbols
=no
7893 archive_expsym_cmds
=
7894 compiler_needs_object
=no
7895 enable_shared_with_static_runtimes
=no
7896 export_dynamic_flag_spec
=
7897 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7898 hardcode_automatic
=no
7900 hardcode_direct_absolute
=no
7901 hardcode_libdir_flag_spec
=
7902 hardcode_libdir_flag_spec_ld
=
7903 hardcode_libdir_separator
=
7905 hardcode_shlibpath_var
=unsupported
7907 link_all_deplibs
=unknown
7910 old_archive_from_new_cmds
=
7911 old_archive_from_expsyms_cmds
=
7912 thread_safe_flag_spec
=
7913 whole_archive_flag_spec
=
7914 # include_expsyms should be a list of space-separated symbols to be *always*
7915 # included in the symbol list
7917 # exclude_expsyms can be an extended regexp of symbols to exclude
7918 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7919 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7920 # as well as any symbol that contains `d'.
7921 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7922 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7923 # platforms (ab)use it in PIC code, but their linkers get confused if
7924 # the symbol is explicitly referenced. Since portable code cannot
7925 # rely on this symbol name, it's probably fine to never include it in
7926 # preloaded symbol tables.
7927 # Exclude shared library initialization/finalization symbols.
7928 extract_expsyms_cmds
=
7931 cygwin
* | mingw
* | pw32
* | cegcc
*)
7932 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7933 # When not using gcc, we currently assume that we are using
7934 # Microsoft Visual C++.
7935 if test "$GCC" != yes; then
7940 # we just hope/assume this is gcc and not c89 (= MSVC++)
7946 linux
* | k
*bsd
*-gnu)
7952 if test "$with_gnu_ld" = yes; then
7953 # If archive_cmds runs LD, not CC, wlarc should be empty
7956 # Set some defaults for GNU ld with shared library support. These
7957 # are reset later if shared libraries are not supported. Putting them
7958 # here allows them to be overridden if necessary.
7959 runpath_var
=LD_RUN_PATH
7960 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7961 export_dynamic_flag_spec
='${wl}--export-dynamic'
7962 # ancient GNU ld didn't support --whole-archive et. al.
7963 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
7964 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7966 whole_archive_flag_spec
=
7968 supports_anon_versioning
=no
7969 case `$LD -v 2>&1` in
7970 *GNU\ gold
*) supports_anon_versioning
=yes ;;
7971 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7972 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7973 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7974 *\
2.11.
*) ;; # other 2.11 versions
7975 *) supports_anon_versioning
=yes ;;
7978 # See if GNU ld supports shared libraries.
7981 # On AIX/PPC, the GNU linker is very broken
7982 if test "$host_cpu" != ia64
; then
7986 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7987 *** to be unable to reliably create shared libraries on AIX.
7988 *** Therefore, libtool is disabling shared libraries support. If you
7989 *** really care for shared libraries, you may want to modify your PATH
7990 *** so that a non-GNU linker is found, and then restart.
7999 # see comment about AmigaOS4 .so support
8000 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8001 archive_expsym_cmds
=''
8004 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)'
8005 hardcode_libdir_flag_spec
='-L$libdir'
8006 hardcode_minus_L
=yes
8012 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8013 allow_undefined_flag
=unsupported
8014 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8015 # support --undefined. This deserves some investigation. FIXME
8016 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8022 cygwin
* | mingw
* | pw32
* | cegcc
*)
8023 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8024 # as there is no search path for DLLs.
8025 hardcode_libdir_flag_spec
='-L$libdir'
8026 allow_undefined_flag
=unsupported
8027 always_export_symbols
=no
8028 enable_shared_with_static_runtimes
=yes
8029 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8031 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8032 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8033 # If the export-symbols file already is a .def file (1st line
8034 # is EXPORTS), use it as is; otherwise, prepend...
8035 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8036 cp $export_symbols $output_objdir/$soname.def;
8038 echo EXPORTS > $output_objdir/$soname.def;
8039 cat $export_symbols >> $output_objdir/$soname.def;
8041 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8049 hardcode_shlibpath_var
=no
8050 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8051 export_dynamic_flag_spec
='${wl}-E'
8052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8053 # Instead, shared libraries are loaded at an image base (0x10000000 by
8054 # default) and relocated if they conflict, which is a slow very memory
8055 # consuming and fragmenting process. To avoid this, we pick a random,
8056 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8057 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8058 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8059 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'
8062 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8064 if test "$host_os" = linux-dietlibc
; then
8065 case $cc_basename in
8066 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8069 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8070 && test "$tmp_diet" = no
8073 tmp_sharedflag
='-shared'
8074 case $cc_basename,$host_cpu in
8075 pgcc
*) # Portland Group C compiler
8076 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'
8077 tmp_addflag
=' $pic_flag'
8079 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8080 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'
8081 tmp_addflag
=' $pic_flag -Mnomain' ;;
8082 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8083 tmp_addflag
=' -i_dynamic' ;;
8084 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8085 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8086 ifc
* | ifort
*) # Intel Fortran compiler
8087 tmp_addflag
=' -nofor_main' ;;
8088 lf95
*) # Lahey Fortran 8.1
8089 whole_archive_flag_spec
=
8090 tmp_sharedflag
='--shared' ;;
8091 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8092 tmp_sharedflag
='-qmkshrobj'
8095 case `$CC -V 2>&1 | sed 5q` in
8096 *Sun\ C
*) # Sun C 5.9
8097 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'
8098 compiler_needs_object
=yes
8099 tmp_sharedflag
='-G' ;;
8100 *Sun\ F
*) # Sun Fortran 8.3
8101 tmp_sharedflag
='-G' ;;
8103 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8105 if test "x$supports_anon_versioning" = xyes
; then
8106 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8108 echo "local: *; };" >> $output_objdir/$libname.ver~
8109 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8112 case $cc_basename in
8114 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8115 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8116 hardcode_libdir_flag_spec
=
8117 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8118 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8119 if test "x$supports_anon_versioning" = xyes
; then
8120 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8122 echo "local: *; };" >> $output_objdir/$libname.ver~
8123 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8132 netbsd
* | netbsdelf
*-gnu)
8133 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8134 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8137 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8138 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8143 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8147 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8148 *** create shared libraries on Solaris systems. Therefore, libtool
8149 *** is disabling shared libraries support. We urge you to upgrade GNU
8150 *** binutils to release 2.9.1 or newer. Another option is to modify
8151 *** your PATH or compiler configuration so that the native linker is
8152 *** used, and then restart.
8155 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8156 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8157 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8163 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8164 case `$LD -v 2>&1` in
8165 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8169 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8170 *** reliably create shared libraries on SCO systems. Therefore, libtool
8171 *** is disabling shared libraries support. We urge you to upgrade GNU
8172 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8173 *** your PATH or compiler configuration so that the native linker is
8174 *** used, and then restart.
8179 # For security reasons, it is highly recommended that you always
8180 # use absolute paths for naming shared libraries, and exclude the
8181 # DT_RUNPATH tag from executables and libraries. But doing so
8182 # requires that you compile everything twice, which is a pain.
8183 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8184 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8185 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8195 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8198 hardcode_shlibpath_var
=no
8202 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8203 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8204 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8211 if test "$ld_shlibs" = no
; then
8213 hardcode_libdir_flag_spec
=
8214 export_dynamic_flag_spec
=
8215 whole_archive_flag_spec
=
8218 # PORTME fill in a description of your system's linker (not GNU ld)
8221 allow_undefined_flag
=unsupported
8222 always_export_symbols
=yes
8223 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'
8224 # Note: this linker hardcodes the directories in LIBPATH if there
8225 # are no directories specified by -L.
8226 hardcode_minus_L
=yes
8227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8228 # Neither direct hardcoding nor static linking is supported with a
8230 hardcode_direct
=unsupported
8235 if test "$host_cpu" = ia64
; then
8236 # On IA64, the linker does run time linking by default, so we don't
8237 # have to do anything special.
8238 aix_use_runtimelinking
=no
8239 exp_sym_flag
='-Bexport'
8242 # If we're using GNU nm, then we don't want the "-C" option.
8243 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8244 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8245 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'
8247 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'
8249 aix_use_runtimelinking
=no
8251 # Test if we are trying to use run time linking or normal
8252 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8253 # need to do runtime linking.
8254 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8255 for ld_flag
in $LDFLAGS; do
8256 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8257 aix_use_runtimelinking
=yes
8264 exp_sym_flag
='-bexport'
8265 no_entry_flag
='-bnoentry'
8268 # When large executables or shared objects are built, AIX ld can
8269 # have problems creating the table of contents. If linking a library
8270 # or program results in "error TOC overflow" add -mminimal-toc to
8271 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8272 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8276 hardcode_direct_absolute
=yes
8277 hardcode_libdir_separator
=':'
8278 link_all_deplibs
=yes
8279 file_list_spec
='${wl}-f,'
8281 if test "$GCC" = yes; then
8282 case $host_os in aix4.
[012]|aix4.
[012].
*)
8283 # We only want to do this on AIX 4.2 and lower, the check
8284 # below for broken collect2 doesn't work under 4.3+
8285 collect2name
=`${CC} -print-prog-name=collect2`
8286 if test -f "$collect2name" &&
8287 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8289 # We have reworked collect2
8292 # We have old collect2
8293 hardcode_direct
=unsupported
8294 # It fails to find uninstalled libraries when the uninstalled
8295 # path is not listed in the libpath. Setting hardcode_minus_L
8296 # to unsupported forces relinking
8297 hardcode_minus_L
=yes
8298 hardcode_libdir_flag_spec
='-L$libdir'
8299 hardcode_libdir_separator
=
8303 shared_flag
='-shared'
8304 if test "$aix_use_runtimelinking" = yes; then
8305 shared_flag
="$shared_flag "'${wl}-G'
8310 if test "$host_cpu" = ia64
; then
8311 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8312 # chokes on -Wl,-G. The following line is correct:
8315 if test "$aix_use_runtimelinking" = yes; then
8316 shared_flag
='${wl}-G'
8318 shared_flag
='${wl}-bM:SRE'
8323 export_dynamic_flag_spec
='${wl}-bexpall'
8324 # It seems that -bexpall does not export symbols beginning with
8325 # underscore (_), so it is better to generate a list of symbols to export.
8326 always_export_symbols
=yes
8327 if test "$aix_use_runtimelinking" = yes; then
8328 # Warning - without using the other runtime loading flags (-brtl),
8329 # -berok will link without error, but may produce a broken library.
8330 allow_undefined_flag
='-berok'
8331 # Determine the default libpath from the value encoded in an
8333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8344 if ac_fn_c_try_link
"$LINENO"; then :
8346 lt_aix_libpath_sed
='
8347 /Import File Strings/,/^$/ {
8353 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8354 # Check for a 64-bit object if we didn't find anything.
8355 if test -z "$aix_libpath"; then
8356 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8359 rm -f core conftest.err conftest.
$ac_objext \
8360 conftest
$ac_exeext conftest.
$ac_ext
8361 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8363 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8364 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"
8366 if test "$host_cpu" = ia64
; then
8367 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
8368 allow_undefined_flag
="-z nodefs"
8369 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"
8371 # Determine the default libpath from the value encoded in an
8373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8384 if ac_fn_c_try_link
"$LINENO"; then :
8386 lt_aix_libpath_sed
='
8387 /Import File Strings/,/^$/ {
8393 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8394 # Check for a 64-bit object if we didn't find anything.
8395 if test -z "$aix_libpath"; then
8396 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8399 rm -f core conftest.err conftest.
$ac_objext \
8400 conftest
$ac_exeext conftest.
$ac_ext
8401 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8403 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8404 # Warning - without using the other run time loading flags,
8405 # -berok will link without error, but may produce a broken library.
8406 no_undefined_flag
=' ${wl}-bernotok'
8407 allow_undefined_flag
=' ${wl}-berok'
8408 # Exported symbols can be pulled into shared objects from archives
8409 whole_archive_flag_spec
='$convenience'
8410 archive_cmds_need_lc
=yes
8411 # This is similar to how AIX traditionally builds its shared libraries.
8412 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'
8420 # see comment about AmigaOS4 .so support
8421 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422 archive_expsym_cmds
=''
8425 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)'
8426 hardcode_libdir_flag_spec
='-L$libdir'
8427 hardcode_minus_L
=yes
8433 export_dynamic_flag_spec
=-rdynamic
8436 cygwin
* | mingw
* | pw32
* | cegcc
*)
8437 # When not using gcc, we currently assume that we are using
8438 # Microsoft Visual C++.
8439 # hardcode_libdir_flag_spec is actually meaningless, as there is
8440 # no search path for DLLs.
8441 hardcode_libdir_flag_spec
=' '
8442 allow_undefined_flag
=unsupported
8443 # Tell ltmain to make .lib files, not .a files.
8445 # Tell ltmain to make .dll files, not .so files.
8447 # FIXME: Setting linknames here is a bad hack.
8448 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8449 # The linker will automatically build a .lib file if we build a DLL.
8450 old_archive_from_new_cmds
='true'
8451 # FIXME: Should let the user specify the lib program.
8452 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8453 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8454 enable_shared_with_static_runtimes
=yes
8457 darwin
* | rhapsody
*)
8460 archive_cmds_need_lc
=no
8462 hardcode_automatic
=yes
8463 hardcode_shlibpath_var
=unsupported
8464 whole_archive_flag_spec
=''
8465 link_all_deplibs
=yes
8466 allow_undefined_flag
="$_lt_dar_allow_undefined"
8467 case $cc_basename in
8468 ifort
*) _lt_dar_can_shared
=yes ;;
8469 *) _lt_dar_can_shared
=$GCC ;;
8471 if test "$_lt_dar_can_shared" = "yes"; then
8472 output_verbose_link_cmd
=echo
8473 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8474 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8475 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}"
8476 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}"
8485 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8486 hardcode_libdir_flag_spec
='-L$libdir'
8487 hardcode_shlibpath_var
=no
8494 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8495 # support. Future versions do this automatically, but an explicit c++rt0.o
8496 # does not break anything, and helps significantly (at the cost of a little
8499 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8500 hardcode_libdir_flag_spec
='-R$libdir'
8502 hardcode_shlibpath_var
=no
8505 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8507 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8509 hardcode_minus_L
=yes
8510 hardcode_shlibpath_var
=no
8513 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8514 freebsd
* | dragonfly
*)
8515 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8516 hardcode_libdir_flag_spec
='-R$libdir'
8518 hardcode_shlibpath_var
=no
8522 if test "$GCC" = yes; then
8523 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'
8525 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'
8527 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8528 hardcode_libdir_separator
=:
8531 # hardcode_minus_L: Not really in the search PATH,
8532 # but as the default location of the library.
8533 hardcode_minus_L
=yes
8534 export_dynamic_flag_spec
='${wl}-E'
8538 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8539 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8541 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8543 if test "$with_gnu_ld" = no
; then
8544 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8545 hardcode_libdir_flag_spec_ld
='+b $libdir'
8546 hardcode_libdir_separator
=:
8548 hardcode_direct_absolute
=yes
8549 export_dynamic_flag_spec
='${wl}-E'
8550 # hardcode_minus_L: Not really in the search PATH,
8551 # but as the default location of the library.
8552 hardcode_minus_L
=yes
8557 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8560 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8563 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8566 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8572 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8575 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8578 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8582 if test "$with_gnu_ld" = no
; then
8583 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8584 hardcode_libdir_separator
=:
8589 hardcode_shlibpath_var
=no
8593 hardcode_direct_absolute
=yes
8594 export_dynamic_flag_spec
='${wl}-E'
8596 # hardcode_minus_L: Not really in the search PATH,
8597 # but as the default location of the library.
8598 hardcode_minus_L
=yes
8604 irix5
* | irix6
* | nonstopux
*)
8605 if test "$GCC" = yes; then
8606 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'
8607 # Try to use the -exported_symbol ld option, if it does not
8608 # work, assume that -exports_file does not work either and
8609 # implicitly export all symbols.
8610 save_LDFLAGS
="$LDFLAGS"
8611 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8613 /* end confdefs.h. */
8616 if ac_fn_c_try_link
"$LINENO"; then :
8617 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'
8620 rm -f core conftest.err conftest.
$ac_objext \
8621 conftest
$ac_exeext conftest.
$ac_ext
8622 LDFLAGS
="$save_LDFLAGS"
8624 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'
8625 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'
8627 archive_cmds_need_lc
='no'
8628 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8629 hardcode_libdir_separator
=:
8631 link_all_deplibs
=yes
8634 netbsd
* | netbsdelf
*-gnu)
8635 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8636 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8638 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8640 hardcode_libdir_flag_spec
='-R$libdir'
8642 hardcode_shlibpath_var
=no
8646 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8648 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8649 hardcode_libdir_separator
=:
8650 hardcode_shlibpath_var
=no
8657 if test -f /usr
/libexec
/ld.so
; then
8659 hardcode_shlibpath_var
=no
8660 hardcode_direct_absolute
=yes
8661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8662 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8664 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8665 export_dynamic_flag_spec
='${wl}-E'
8668 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8669 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670 hardcode_libdir_flag_spec
='-R$libdir'
8673 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8674 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8684 hardcode_libdir_flag_spec
='-L$libdir'
8685 hardcode_minus_L
=yes
8686 allow_undefined_flag
=unsupported
8687 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'
8688 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8692 if test "$GCC" = yes; then
8693 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8694 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'
8696 allow_undefined_flag
=' -expect_unresolved \*'
8697 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'
8699 archive_cmds_need_lc
='no'
8700 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8701 hardcode_libdir_separator
=:
8704 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8705 if test "$GCC" = yes; then
8706 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8707 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'
8708 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8710 allow_undefined_flag
=' -expect_unresolved \*'
8711 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'
8712 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~
8713 $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'
8715 # Both c and cxx compiler support -rpath directly
8716 hardcode_libdir_flag_spec
='-rpath $libdir'
8718 archive_cmds_need_lc
='no'
8719 hardcode_libdir_separator
=:
8723 no_undefined_flag
=' -z defs'
8724 if test "$GCC" = yes; then
8726 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8728 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8730 case `$CC -V 2>&1` in
8733 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8735 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8739 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8740 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8741 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8745 hardcode_libdir_flag_spec
='-R$libdir'
8746 hardcode_shlibpath_var
=no
8748 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8750 # The compiler driver will combine and reorder linker options,
8751 # but understands `-z linker_flag'. GCC discards it without `$wl',
8752 # but is careful enough not to reorder.
8753 # Supported since Solaris 2.6 (maybe 2.5.1?)
8754 if test "$GCC" = yes; then
8755 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8757 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8761 link_all_deplibs
=yes
8765 if test "x$host_vendor" = xsequent
; then
8766 # Use $CC to link under sequent, because it throws in some extra .o
8767 # files that make .init and .fini sections work.
8768 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8770 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8772 hardcode_libdir_flag_spec
='-L$libdir'
8774 hardcode_minus_L
=yes
8775 hardcode_shlibpath_var
=no
8779 case $host_vendor in
8781 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782 hardcode_direct
=yes # is this really true???
8785 ## LD is ld it makes a PLAMLIB
8786 ## CC just makes a GrossModule.
8787 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8788 reload_cmds
='$CC -r -o $output$reload_objs'
8792 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8793 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8796 runpath_var
='LD_RUN_PATH'
8797 hardcode_shlibpath_var
=no
8801 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802 hardcode_shlibpath_var
=no
8803 export_dynamic_flag_spec
='-Bexport'
8807 if test -d /usr
/nec
; then
8808 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_shlibpath_var
=no
8810 runpath_var
=LD_RUN_PATH
8811 hardcode_runpath_var
=yes
8816 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8817 no_undefined_flag
='${wl}-z,text'
8818 archive_cmds_need_lc
=no
8819 hardcode_shlibpath_var
=no
8820 runpath_var
='LD_RUN_PATH'
8822 if test "$GCC" = yes; then
8823 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8824 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8826 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8831 sysv5
* | sco3.2v5
* | sco5v6
*)
8832 # Note: We can NOT use -z defs as we might desire, because we do not
8833 # link with -lc, and that would cause any symbols used from libc to
8834 # always be unresolved, which means just about no library would
8835 # ever link correctly. If we're not using GNU ld we use -z text
8836 # though, which does catch some bad symbols but isn't as heavy-handed
8838 no_undefined_flag
='${wl}-z,text'
8839 allow_undefined_flag
='${wl}-z,nodefs'
8840 archive_cmds_need_lc
=no
8841 hardcode_shlibpath_var
=no
8842 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
8843 hardcode_libdir_separator
=':'
8844 link_all_deplibs
=yes
8845 export_dynamic_flag_spec
='${wl}-Bexport'
8846 runpath_var
='LD_RUN_PATH'
8848 if test "$GCC" = yes; then
8849 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8850 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8852 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8858 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859 hardcode_libdir_flag_spec
='-L$libdir'
8860 hardcode_shlibpath_var
=no
8868 if test x
$host_vendor = xsni
; then
8870 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8871 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8878 $as_echo "$ld_shlibs" >&6; }
8879 test "$ld_shlibs" = no
&& can_build_shared
=no
8881 with_gnu_ld
=$with_gnu_ld
8898 # Do we need to explicitly link libc?
8900 case "x$archive_cmds_need_lc" in
8902 # Assume -lc should be added
8903 archive_cmds_need_lc
=yes
8905 if test "$enable_shared" = yes && test "$GCC" = yes; then
8906 case $archive_cmds in
8908 # FIXME: we may have to deal with multi-command sequences.
8911 # Test whether the compiler implicitly links with -lc since on some
8912 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8913 # to ld, don't add -lc before -lgcc.
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8915 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8917 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8920 (eval $ac_compile) 2>&5
8922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8923 test $ac_status = 0; } 2>conftest.err
; then
8926 libobjs
=conftest.
$ac_objext
8928 wl
=$lt_prog_compiler_wl
8929 pic_flag
=$lt_prog_compiler_pic
8935 lt_save_allow_undefined_flag
=$allow_undefined_flag
8936 allow_undefined_flag
=
8937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8938 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8941 test $ac_status = 0; }
8943 archive_cmds_need_lc
=no
8945 archive_cmds_need_lc
=yes
8947 allow_undefined_flag
=$lt_save_allow_undefined_flag
8949 cat conftest.err
1>&5
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8953 $as_echo "$archive_cmds_need_lc" >&6; }
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9117 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9119 if test "$GCC" = yes; then
9121 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9122 *) lt_awk_arg
="/^libraries:/" ;;
9124 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9125 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9126 # if the path contains ";" then we assume it to be the separator
9127 # otherwise default to the standard path separator (i.e. ":") - it is
9128 # assumed that no part of a normal pathname contains ";" but that should
9129 # okay in the real world where ";" in dirpaths is itself problematic.
9130 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9132 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9134 # Ok, now we have the path, separated by spaces, we can step through it
9135 # and add multilib dir if necessary.
9136 lt_tmp_lt_search_path_spec
=
9137 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9138 for lt_sys_path
in $lt_search_path_spec; do
9139 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9140 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9142 test -d "$lt_sys_path" && \
9143 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9146 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9147 BEGIN {RS=" "; FS="/|\n";} {
9150 for (lt_i = NF; lt_i > 0; lt_i--) {
9151 if ($lt_i != "" && $lt_i != ".") {
9152 if ($lt_i == "..") {
9155 if (lt_count == 0) {
9156 lt_foo="/" $lt_i lt_foo;
9163 if (lt_foo != "") { lt_freq[lt_foo]++; }
9164 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9166 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9168 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9171 libname_spec
='lib$name'
9179 shlibpath_overrides_runpath
=unknown
9181 dynamic_linker
="$host_os ld.so"
9182 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9183 need_lib_prefix
=unknown
9184 hardcode_into_libs
=no
9186 # when you set need_version to no, make sure it does not cause -set_version
9187 # flags to be left without arguments
9188 need_version
=unknown
9193 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9194 shlibpath_var
=LIBPATH
9196 # AIX 3 has no versioning support, so we append a major version to the name.
9197 soname_spec
='${libname}${release}${shared_ext}$major'
9204 hardcode_into_libs
=yes
9205 if test "$host_cpu" = ia64
; then
9206 # AIX 5 supports IA64
9207 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9208 shlibpath_var
=LD_LIBRARY_PATH
9210 # With GCC up to 2.95.x, collect2 would create an import file
9211 # for dependence libraries. The import file would start with
9212 # the line `#! .'. This would cause the generated library to
9213 # depend on `.', always an invalid library. This was fixed in
9214 # development snapshots of GCC prior to 3.0.
9216 aix4 | aix4.
[01] | aix4.
[01].
*)
9217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9219 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9227 # soname into executable. Probably we can add versioning support to
9228 # collect2, so additional links can be useful in future.
9229 if test "$aix_use_runtimelinking" = yes; then
9230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9231 # instead of lib<name>.a to let people know that these are not
9232 # typical AIX shared libraries.
9233 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9235 # We preserve .a as extension for shared libraries through AIX4.2
9236 # and later when we are not doing run time linking.
9237 library_names_spec
='${libname}${release}.a $libname.a'
9238 soname_spec
='${libname}${release}${shared_ext}$major'
9240 shlibpath_var
=LIBPATH
9247 # Since July 2007 AmigaOS4 officially supports .so libraries.
9248 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252 library_names_spec
='$libname.ixlibrary $libname.a'
9253 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9254 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'
9260 library_names_spec
='${libname}${shared_ext}'
9261 dynamic_linker
="$host_os ld.so"
9262 shlibpath_var
=LIBRARY_PATH
9268 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9269 soname_spec
='${libname}${release}${shared_ext}$major'
9270 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9271 shlibpath_var
=LD_LIBRARY_PATH
9272 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9273 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9274 # the default ld.so.conf also contains /usr/contrib/lib and
9275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9276 # libtool to hard-code these into programs
9279 cygwin
* | mingw
* | pw32
* | cegcc
*)
9280 version_type
=windows
9285 case $GCC,$host_os in
9286 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9287 library_names_spec
='$libname.dll.a'
9288 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9289 postinstall_cmds
='base_file=`basename \${file}`~
9290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9291 dldir=$destdir/`dirname \$dlpath`~
9292 test -d \$dldir || mkdir -p \$dldir~
9293 $install_prog $dir/$dlname \$dldir/$dlname~
9294 chmod a+x \$dldir/$dlname~
9295 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9296 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9298 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9299 dlpath=$dir/\$dldll~
9301 shlibpath_overrides_runpath
=yes
9305 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9306 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9307 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9310 # MinGW DLLs use traditional 'lib' prefix
9311 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9312 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9313 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9314 # It is most probably a Windows format PATH printed by
9315 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9316 # path with ; separators, and with drive letters. We can handle the
9317 # drive letters (cygwin fileutils understands them), so leave them,
9318 # especially as we might pass files found there to a mingw objdump,
9319 # which wouldn't understand a cygwinified path. Ahh.
9320 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9322 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9326 # pw32 DLLs use 'pw' prefix rather than 'lib'
9327 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9333 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9336 dynamic_linker
='Win32 ld.exe'
9337 # FIXME: first we should search . and the directory the executable is in
9341 darwin
* | rhapsody
*)
9342 dynamic_linker
="$host_os dyld"
9346 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9347 soname_spec
='${libname}${release}${major}$shared_ext'
9348 shlibpath_overrides_runpath
=yes
9349 shlibpath_var
=DYLD_LIBRARY_PATH
9350 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9352 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9353 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9360 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9361 soname_spec
='${libname}${release}${shared_ext}$major'
9362 shlibpath_var
=LD_LIBRARY_PATH
9369 freebsd
* | dragonfly
*)
9370 # DragonFly does not have aout. When/if they implement a new
9371 # versioning mechanism, adjust this.
9372 if test -x /usr
/bin
/objformat
; then
9373 objformat
=`/usr/bin/objformat`
9376 freebsd
[123]*) objformat
=aout
;;
9380 version_type
=freebsd-
$objformat
9381 case $version_type in
9383 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9388 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9392 shlibpath_var
=LD_LIBRARY_PATH
9395 shlibpath_overrides_runpath
=yes
9397 freebsd3.
[01]* | freebsdelf3.
[01]*)
9398 shlibpath_overrides_runpath
=yes
9399 hardcode_into_libs
=yes
9401 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9402 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9403 shlibpath_overrides_runpath
=no
9404 hardcode_into_libs
=yes
9406 *) # from 4.6 on, and DragonFly
9407 shlibpath_overrides_runpath
=yes
9408 hardcode_into_libs
=yes
9417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9418 soname_spec
='${libname}${release}${shared_ext}$major'
9419 shlibpath_var
=LD_LIBRARY_PATH
9420 hardcode_into_libs
=yes
9423 hpux9
* | hpux10
* | hpux11
*)
9424 # Give a soname corresponding to the major version so that dld.sl refuses to
9425 # link against other versions.
9432 hardcode_into_libs
=yes
9433 dynamic_linker
="$host_os dld.so"
9434 shlibpath_var
=LD_LIBRARY_PATH
9435 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9436 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9437 soname_spec
='${libname}${release}${shared_ext}$major'
9438 if test "X$HPUX_IA64_MODE" = X32
; then
9439 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9441 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9443 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9447 hardcode_into_libs
=yes
9448 dynamic_linker
="$host_os dld.sl"
9449 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9450 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452 soname_spec
='${libname}${release}${shared_ext}$major'
9453 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9454 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9458 dynamic_linker
="$host_os dld.sl"
9459 shlibpath_var
=SHLIB_PATH
9460 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9462 soname_spec
='${libname}${release}${shared_ext}$major'
9465 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9466 postinstall_cmds
='chmod 555 $lib'
9473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9474 soname_spec
='${libname}${release}${shared_ext}$major'
9475 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9476 shlibpath_var
=LD_LIBRARY_PATH
9477 shlibpath_overrides_runpath
=no
9478 hardcode_into_libs
=yes
9481 irix5
* | irix6
* | nonstopux
*)
9483 nonstopux
*) version_type
=nonstopux
;;
9485 if test "$lt_cv_prog_gnu_ld" = yes; then
9493 soname_spec
='${libname}${release}${shared_ext}$major'
9494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9496 irix5
* | nonstopux
*)
9500 case $LD in # libtool.m4 will add one of these switches to LD
9501 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9502 libsuff
= shlibsuff
= libmagic
=32-bit;;
9503 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9504 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9505 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9506 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9507 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9511 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9512 shlibpath_overrides_runpath
=no
9513 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9514 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9515 hardcode_into_libs
=yes
9518 # No shared lib support for Linux oldld, aout, or coff.
9519 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9523 # This must be Linux ELF.
9524 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9528 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529 soname_spec
='${libname}${release}${shared_ext}$major'
9530 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9531 shlibpath_var
=LD_LIBRARY_PATH
9532 shlibpath_overrides_runpath
=no
9533 # Some binutils ld are patched to set DT_RUNPATH
9534 save_LDFLAGS
=$LDFLAGS
9536 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9537 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9549 if ac_fn_c_try_link
"$LINENO"; then :
9550 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
9551 shlibpath_overrides_runpath
=yes
9554 rm -f core conftest.err conftest.
$ac_objext \
9555 conftest
$ac_exeext conftest.
$ac_ext
9556 LDFLAGS
=$save_LDFLAGS
9559 # This implies no fast_install, which is unacceptable.
9560 # Some rework will be needed to allow for fast_install
9561 # before this can be enabled.
9562 hardcode_into_libs
=yes
9564 # Append ld.so.conf contents to the search path
9565 if test -f /etc
/ld.so.conf
; then
9566 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' ' '`
9567 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
9570 # We used to test for /lib/ld.so.1 and disable shared libraries on
9571 # powerpc, because MkLinux only supported shared libraries with the
9572 # GNU dynamic linker. Since this was broken with cross compilers,
9573 # most powerpc-linux boxes support dynamic linking these days and
9574 # people can always --disable-shared, the test was removed, and we
9575 # assume the GNU/Linux dynamic linker is in use.
9576 dynamic_linker
='GNU/Linux ld.so'
9583 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9584 soname_spec
='${libname}${release}${shared_ext}$major'
9585 shlibpath_var
=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath
=no
9587 hardcode_into_libs
=yes
9588 dynamic_linker
='NetBSD ld.elf_so'
9595 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9596 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9597 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9598 dynamic_linker
='NetBSD (a.out) ld.so'
9600 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9601 soname_spec
='${libname}${release}${shared_ext}$major'
9602 dynamic_linker
='NetBSD ld.elf_so'
9604 shlibpath_var
=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath
=yes
9606 hardcode_into_libs
=yes
9611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 shlibpath_var
=LD_LIBRARY_PATH
9613 shlibpath_overrides_runpath
=yes
9620 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9621 soname_spec
='${libname}${release}${shared_ext}$major'
9622 shlibpath_var
=LD_LIBRARY_PATH
9623 shlibpath_overrides_runpath
=no
9624 hardcode_into_libs
=yes
9625 dynamic_linker
='ldqnx.so'
9630 sys_lib_dlsearch_path_spec
="/usr/lib"
9632 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9634 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9635 *) need_version
=no
;;
9637 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639 shlibpath_var
=LD_LIBRARY_PATH
9640 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9642 openbsd2.
[89] | openbsd2.
[89].
*)
9643 shlibpath_overrides_runpath
=no
9646 shlibpath_overrides_runpath
=yes
9650 shlibpath_overrides_runpath
=yes
9655 libname_spec
='$name'
9658 library_names_spec
='$libname${shared_ext} $libname.a'
9659 dynamic_linker
='OS/2 ld.exe'
9660 shlibpath_var
=LIBPATH
9663 osf3
* | osf4
* | osf5
*)
9667 soname_spec
='${libname}${release}${shared_ext}$major'
9668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669 shlibpath_var
=LD_LIBRARY_PATH
9670 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9671 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9682 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec
='${libname}${release}${shared_ext}$major'
9684 shlibpath_var
=LD_LIBRARY_PATH
9685 shlibpath_overrides_runpath
=yes
9686 hardcode_into_libs
=yes
9687 # ldd complains unless libraries are executable
9688 postinstall_cmds
='chmod +x $lib'
9693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9694 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9695 shlibpath_var
=LD_LIBRARY_PATH
9696 shlibpath_overrides_runpath
=yes
9697 if test "$with_gnu_ld" = yes; then
9705 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706 soname_spec
='${libname}${release}${shared_ext}$major'
9707 shlibpath_var
=LD_LIBRARY_PATH
9708 case $host_vendor in
9710 shlibpath_overrides_runpath
=no
9712 runpath_var
=LD_RUN_PATH
9720 shlibpath_overrides_runpath
=no
9721 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9727 if test -d /usr
/nec
;then
9729 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9730 soname_spec
='$libname${shared_ext}.$major'
9731 shlibpath_var
=LD_LIBRARY_PATH
9735 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9736 version_type
=freebsd-elf
9739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9740 soname_spec
='${libname}${release}${shared_ext}$major'
9741 shlibpath_var
=LD_LIBRARY_PATH
9742 shlibpath_overrides_runpath
=yes
9743 hardcode_into_libs
=yes
9744 if test "$with_gnu_ld" = yes; then
9745 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9747 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9750 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9754 sys_lib_dlsearch_path_spec
='/usr/lib'
9758 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9762 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763 shlibpath_var
=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath
=no
9765 hardcode_into_libs
=yes
9770 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771 soname_spec
='${libname}${release}${shared_ext}$major'
9772 shlibpath_var
=LD_LIBRARY_PATH
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9780 $as_echo "$dynamic_linker" >&6; }
9781 test "$dynamic_linker" = no
&& can_build_shared
=no
9783 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9784 if test "$GCC" = yes; then
9785 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9788 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9789 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
9791 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9792 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9882 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9884 if test -n "$hardcode_libdir_flag_spec" ||
9885 test -n "$runpath_var" ||
9886 test "X$hardcode_automatic" = "Xyes" ; then
9888 # We can hardcode non-existent directories.
9889 if test "$hardcode_direct" != no
&&
9890 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9891 # have to relink, otherwise we might link with an installed library
9892 # when we should be linking with a yet-to-be-installed one
9893 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9894 test "$hardcode_minus_L" != no
; then
9895 # Linking always hardcodes the temporary library directory.
9896 hardcode_action
=relink
9898 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9899 hardcode_action
=immediate
9902 # We cannot hardcode anything, or else we can only hardcode existing
9904 hardcode_action
=unsupported
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9907 $as_echo "$hardcode_action" >&6; }
9909 if test "$hardcode_action" = relink ||
9910 test "$inherit_rpath" = yes; then
9911 # Fast installation is not supported
9912 enable_fast_install
=no
9913 elif test "$shlibpath_overrides_runpath" = yes ||
9914 test "$enable_shared" = no
; then
9915 # Fast installation is not necessary
9916 enable_fast_install
=needless
9924 if test "x$enable_dlopen" != xyes
; then
9925 enable_dlopen
=unknown
9926 enable_dlopen_self
=unknown
9927 enable_dlopen_self_static
=unknown
9934 lt_cv_dlopen
="load_add_on"
9936 lt_cv_dlopen_self
=yes
9939 mingw
* | pw32
* | cegcc
*)
9940 lt_cv_dlopen
="LoadLibrary"
9945 lt_cv_dlopen
="dlopen"
9950 # if libdl is installed we need to link against it
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
9956 ac_check_lib_save_LIBS
=$LIBS
9958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9961 /* Override any GCC internal prototype to avoid an error.
9962 Use char because int might match the return type of a GCC
9963 builtin and then its argument prototype would still apply. */
9976 if ac_fn_c_try_link
"$LINENO"; then :
9977 ac_cv_lib_dl_dlopen
=yes
9979 ac_cv_lib_dl_dlopen
=no
9981 rm -f core conftest.err conftest.
$ac_objext \
9982 conftest
$ac_exeext conftest.
$ac_ext
9983 LIBS
=$ac_check_lib_save_LIBS
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9987 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
9988 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
9993 lt_cv_dlopen_self
=yes
10000 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10001 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10002 lt_cv_dlopen
="shl_load"
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10005 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10006 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
10009 ac_check_lib_save_LIBS
=$LIBS
10011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10014 /* Override any GCC internal prototype to avoid an error.
10015 Use char because int might match the return type of a GCC
10016 builtin and then its argument prototype would still apply. */
10024 return shl_load ();
10029 if ac_fn_c_try_link
"$LINENO"; then :
10030 ac_cv_lib_dld_shl_load
=yes
10032 ac_cv_lib_dld_shl_load
=no
10034 rm -f core conftest.err conftest.
$ac_objext \
10035 conftest
$ac_exeext conftest.
$ac_ext
10036 LIBS
=$ac_check_lib_save_LIBS
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10039 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10040 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10041 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10043 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10044 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10045 lt_cv_dlopen
="dlopen"
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10048 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10050 $as_echo_n "(cached) " >&6
10052 ac_check_lib_save_LIBS
=$LIBS
10054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10057 /* Override any GCC internal prototype to avoid an error.
10058 Use char because int might match the return type of a GCC
10059 builtin and then its argument prototype would still apply. */
10072 if ac_fn_c_try_link
"$LINENO"; then :
10073 ac_cv_lib_dl_dlopen
=yes
10075 ac_cv_lib_dl_dlopen
=no
10077 rm -f core conftest.err conftest.
$ac_objext \
10078 conftest
$ac_exeext conftest.
$ac_ext
10079 LIBS
=$ac_check_lib_save_LIBS
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10082 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10083 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10084 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10087 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10088 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10089 $as_echo_n "(cached) " >&6
10091 ac_check_lib_save_LIBS
=$LIBS
10092 LIBS
="-lsvld $LIBS"
10093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10096 /* Override any GCC internal prototype to avoid an error.
10097 Use char because int might match the return type of a GCC
10098 builtin and then its argument prototype would still apply. */
10111 if ac_fn_c_try_link
"$LINENO"; then :
10112 ac_cv_lib_svld_dlopen
=yes
10114 ac_cv_lib_svld_dlopen
=no
10116 rm -f core conftest.err conftest.
$ac_objext \
10117 conftest
$ac_exeext conftest.
$ac_ext
10118 LIBS
=$ac_check_lib_save_LIBS
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10121 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10122 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
10123 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10126 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10127 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10128 $as_echo_n "(cached) " >&6
10130 ac_check_lib_save_LIBS
=$LIBS
10132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10145 return dld_link ();
10150 if ac_fn_c_try_link
"$LINENO"; then :
10151 ac_cv_lib_dld_dld_link
=yes
10153 ac_cv_lib_dld_dld_link
=no
10155 rm -f core conftest.err conftest.
$ac_objext \
10156 conftest
$ac_exeext conftest.
$ac_ext
10157 LIBS
=$ac_check_lib_save_LIBS
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10160 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10161 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
10162 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
10183 if test "x$lt_cv_dlopen" != xno
; then
10189 case $lt_cv_dlopen in
10191 save_CPPFLAGS
="$CPPFLAGS"
10192 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
10194 save_LDFLAGS
="$LDFLAGS"
10195 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
10198 LIBS
="$lt_cv_dlopen_libs $LIBS"
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10201 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10202 if test "${lt_cv_dlopen_self+set}" = set; then :
10203 $as_echo_n "(cached) " >&6
10205 if test "$cross_compiling" = yes; then :
10206 lt_cv_dlopen_self
=cross
10208 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10209 lt_status
=$lt_dlunknown
10210 cat > conftest.
$ac_ext <<_LT_EOF
10211 #line 10211 "configure"
10212 #include "confdefs.h"
10221 # define LT_DLGLOBAL RTLD_GLOBAL
10224 # define LT_DLGLOBAL DL_GLOBAL
10226 # define LT_DLGLOBAL 0
10230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10231 find out it does not work in some platform. */
10232 #ifndef LT_DLLAZY_OR_NOW
10234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10237 # define LT_DLLAZY_OR_NOW DL_LAZY
10240 # define LT_DLLAZY_OR_NOW RTLD_NOW
10243 # define LT_DLLAZY_OR_NOW DL_NOW
10245 # define LT_DLLAZY_OR_NOW 0
10252 void fnord() { int i=42;}
10255 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10256 int status = $lt_dlunknown;
10260 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10261 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10262 /* dlclose (self); */
10270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10271 (eval $ac_link) 2>&5
10273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10274 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10275 (.
/conftest
; exit; ) >&5 2>/dev
/null
10277 case x
$lt_status in
10278 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
10279 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
10280 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
10283 # compilation failed
10284 lt_cv_dlopen_self
=no
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10292 $as_echo "$lt_cv_dlopen_self" >&6; }
10294 if test "x$lt_cv_dlopen_self" = xyes
; then
10295 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10297 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10298 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10299 $as_echo_n "(cached) " >&6
10301 if test "$cross_compiling" = yes; then :
10302 lt_cv_dlopen_self_static
=cross
10304 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10305 lt_status
=$lt_dlunknown
10306 cat > conftest.
$ac_ext <<_LT_EOF
10307 #line 10307 "configure"
10308 #include "confdefs.h"
10317 # define LT_DLGLOBAL RTLD_GLOBAL
10320 # define LT_DLGLOBAL DL_GLOBAL
10322 # define LT_DLGLOBAL 0
10326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10327 find out it does not work in some platform. */
10328 #ifndef LT_DLLAZY_OR_NOW
10330 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10333 # define LT_DLLAZY_OR_NOW DL_LAZY
10336 # define LT_DLLAZY_OR_NOW RTLD_NOW
10339 # define LT_DLLAZY_OR_NOW DL_NOW
10341 # define LT_DLLAZY_OR_NOW 0
10348 void fnord() { int i=42;}
10351 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10352 int status = $lt_dlunknown;
10356 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10357 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10358 /* dlclose (self); */
10366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10367 (eval $ac_link) 2>&5
10369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10370 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10371 (.
/conftest
; exit; ) >&5 2>/dev
/null
10373 case x
$lt_status in
10374 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
10375 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
10376 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
10379 # compilation failed
10380 lt_cv_dlopen_self_static
=no
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10388 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10391 CPPFLAGS
="$save_CPPFLAGS"
10392 LDFLAGS
="$save_LDFLAGS"
10397 case $lt_cv_dlopen_self in
10398 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
10399 *) enable_dlopen_self
=unknown
;;
10402 case $lt_cv_dlopen_self_static in
10403 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
10404 *) enable_dlopen_self_static
=unknown
;;
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10427 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10428 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
10429 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
10430 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10432 $as_echo "yes" >&6; }
10434 # FIXME - insert some real tests, host_os isn't really good enough
10437 if test -n "$STRIP" ; then
10438 striplib
="$STRIP -x"
10439 old_striplib
="$STRIP -S"
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10441 $as_echo "yes" >&6; }
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10465 # Report which library types will actually be built
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10467 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10469 $as_echo "$can_build_shared" >&6; }
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10472 $as_echo_n "checking whether to build shared libraries... " >&6; }
10473 test "$can_build_shared" = "no" && enable_shared
=no
10475 # On AIX, shared libraries and static libraries use the same namespace, and
10476 # are all built from PIC.
10479 test "$enable_shared" = yes && enable_static
=no
10480 if test -n "$RANLIB"; then
10481 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
10482 postinstall_cmds
='$RANLIB $lib'
10487 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
10488 test "$enable_shared" = yes && enable_static
=no
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10493 $as_echo "$enable_shared" >&6; }
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10496 $as_echo_n "checking whether to build static libraries... " >&6; }
10497 # Make sure either enable_shared or enable_static is yes.
10498 test "$enable_shared" = yes || enable_static
=yes
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10500 $as_echo "$enable_static" >&6; }
10507 ac_cpp
='$CPP $CPPFLAGS'
10508 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10509 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10510 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10526 ac_config_commands
="$ac_config_commands libtool"
10531 # Only expand once:
10535 # libtool -version-info
10539 # Check whether --enable-silent-rules was given.
10540 if test "${enable_silent_rules+set}" = set; then :
10541 enableval
=$enable_silent_rules;
10544 case $enable_silent_rules in
10545 yes) AM_DEFAULT_VERBOSITY
=0;;
10546 no
) AM_DEFAULT_VERBOSITY
=1;;
10547 *) AM_DEFAULT_VERBOSITY
=0;;
10552 # Checks for programs.
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10554 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10555 if test "${ac_cv_prog_cc_c99+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10558 ac_cv_prog_cc_c99=no
10560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10561 /* end confdefs.h. */
10562 #include <stdarg.h>
10563 #include <stdbool.h>
10564 #include <stdlib.h>
10568 // Check varargs macros. These examples are taken from C99 6.10.3.5.
10569 #define debug(...) fprintf (stderr, __VA_ARGS__)
10570 #define showlist(...) puts (#__VA_ARGS__)
10571 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10573 test_varargs_macros (void)
10578 debug ("X = %d\n", x);
10579 showlist (The first, second, and third items.);
10580 report (x>y, "x is %d but y is %d", x, y);
10583 // Check long long types.
10584 #define BIG64 18446744073709551615ull
10585 #define BIG32 4294967295ul
10586 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10588 your preprocessor is broken;
10592 your preprocessor is broken;
10594 static long long int bignum = -9223372036854775807LL;
10595 static unsigned long long int ubignum = BIG64;
10597 struct incomplete_array
10603 struct named_init {
10605 const wchar_t *name;
10609 typedef const char *ccp;
10612 test_restrict (ccp restrict text)
10614 // See if C++-style comments work.
10615 // Iterate through items via the restricted pointer.
10616 // Also check for declarations in for loops.
10617 for (unsigned int i = 0; *(text+i) != '\
0'; ++i)
10622 // Check varargs and va_copy.
10624 test_varargs (const char *format, ...)
10627 va_start (args, format);
10629 va_copy (args_copy, args);
10639 case 's
': // string
10640 str = va_arg (args_copy, const char *);
10643 number = va_arg (args_copy, int);
10646 fnumber = va_arg (args_copy, double);
10652 va_end (args_copy);
10661 _Bool success = false;
10664 if (test_restrict ("String literal") == 0)
10666 char *restrict newvar = "Another string";
10669 test_varargs ("s, d' f .
", "string
", 65, 34.234);
10670 test_varargs_macros ();
10672 // Check flexible array members.
10673 struct incomplete_array *ia =
10674 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10676 for (int i = 0; i < ia->datasize; ++i)
10677 ia->data[i] = i * 1.234;
10679 // Check named initializers.
10680 struct named_init ni = {
10682 .name = L"Test wide string
",
10683 .average = 543.34343,
10688 int dynamic_array[ni.number];
10689 dynamic_array[ni.number - 1] = 543;
10691 // work around unused variable warnings
10692 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10693 || dynamic_array[ni.number - 1] != 543);
10699 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10701 CC="$ac_save_CC $ac_arg"
10702 if ac_fn_c_try_compile "$LINENO"; then :
10703 ac_cv_prog_cc_c99=$ac_arg
10705 rm -f core conftest.err conftest.$ac_objext
10706 test "x
$ac_cv_prog_cc_c99" != "xno
" && break
10708 rm -f conftest.$ac_ext
10713 case "x
$ac_cv_prog_cc_c99" in
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
10716 $as_echo "none needed
" >&6; } ;;
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
10719 $as_echo "unsupported
" >&6; } ;;
10721 CC="$CC $ac_cv_prog_cc_c99"
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c99" >&5
10723 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10725 if test "x
$ac_cv_prog_cc_c99" != xno; then :
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
10732 $as_echo_n "checking whether
ln -s works...
" >&6; }
10734 if test "$LN_S" = "ln -s"; then
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
10736 $as_echo "yes" >&6; }
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
10739 $as_echo "no
, using
$LN_S" >&6; }
10742 for ac_prog in gawk mawk nawk awk
10744 # Extract the first word of "$ac_prog", so it can be a program name with args.
10745 set dummy $ac_prog; ac_word=$2
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10747 $as_echo_n "checking
for $ac_word...
" >&6; }
10748 if test "${ac_cv_prog_AWK+set}" = set; then :
10749 $as_echo_n "(cached
) " >&6
10751 if test -n "$AWK"; then
10752 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761 ac_cv_prog_AWK="$ac_prog"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10771 AWK=$ac_cv_prog_AWK
10772 if test -n "$AWK"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AWK" >&5
10774 $as_echo "$AWK" >&6; }
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10777 $as_echo "no
" >&6; }
10781 test -n "$AWK" && break
10786 TestPath="/usr
/bin
${PATH_SEPARATOR}/usr
/ucb
"
10787 for ac_prog in nroff awf
10789 # Extract the first word of "$ac_prog", so it can be a program name with args.
10790 set dummy $ac_prog; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10792 $as_echo_n "checking
for $ac_word...
" >&6; }
10793 if test "${ac_cv_path_NROFF+set}" = set; then :
10794 $as_echo_n "(cached
) " >&6
10798 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in $TestPath
10805 test -z "$as_dir" && as_dir=.
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10808 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
10809 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10819 NROFF=$ac_cv_path_NROFF
10820 if test -n "$NROFF"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NROFF" >&5
10822 $as_echo "$NROFF" >&6; }
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10825 $as_echo "no
" >&6; }
10829 test -n "$NROFF" && break
10831 test -n "$NROFF" || NROFF="/bin
/false
"
10833 if ${NROFF} -mdoc ${srcdir}/doc/editrc.5.roff >/dev/null 2>&1; then
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for tgetent
in -lcurses" >&5
10841 $as_echo_n "checking
for tgetent
in -lcurses...
" >&6; }
10842 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
10843 $as_echo_n "(cached
) " >&6
10845 ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-lcurses $LIBS"
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10850 /* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
10865 if ac_fn_c_try_link "$LINENO"; then :
10866 ac_cv_lib_curses_tgetent=yes
10868 ac_cv_lib_curses_tgetent=no
10870 rm -f core conftest.err conftest.$ac_objext \
10871 conftest$ac_exeext conftest.$ac_ext
10872 LIBS=$ac_check_lib_save_LIBS
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_lib_curses_tgetent" >&5
10875 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
10876 if test "x
$ac_cv_lib_curses_tgetent" = x""yes; then :
10877 cat >>confdefs.h <<_ACEOF
10878 #define HAVE_LIBCURSES 1
10881 LIBS="-lcurses $LIBS"
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for tgetent
in -lncurses" >&5
10885 $as_echo_n "checking
for tgetent
in -lncurses...
" >&6; }
10886 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
10887 $as_echo_n "(cached
) " >&6
10889 ac_check_lib_save_LIBS=$LIBS
10890 LIBS="-lncurses $LIBS"
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10894 /* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10909 if ac_fn_c_try_link "$LINENO"; then :
10910 ac_cv_lib_ncurses_tgetent=yes
10912 ac_cv_lib_ncurses_tgetent=no
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_lib_ncurses_tgetent" >&5
10919 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
10920 if test "x
$ac_cv_lib_ncurses_tgetent" = x""yes; then :
10921 cat >>confdefs.h <<_ACEOF
10922 #define HAVE_LIBNCURSES 1
10925 LIBS="-lncurses $LIBS"
10928 as_fn_error "libcurses or libncurses are required
!" "$LINENO" 5
10935 ### use option --enable-widec to turn on use of wide-character support
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if you want wide-character code
" >&5
10938 $as_echo_n "checking
if you want wide-character code...
" >&6; }
10939 # Check whether --enable-widec was given.
10940 if test "${enable_widec+set}" = set; then :
10941 enableval=$enable_widec; with_widec=$enableval
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $with_widec" >&5
10947 $as_echo "$with_widec" >&6; }
10948 if test "$with_widec" = yes ; then
10950 $as_echo "#define WIDECHAR 1" >>confdefs.h
10953 if test "$with_widec" = yes; then
10963 # Checks for header files.
10964 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10965 # for constant arguments. Useless!
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10967 $as_echo_n "checking for working alloca.h... " >&6; }
10968 if test "${ac_cv_working_alloca_h+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
10971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973 #include <alloca.h>
10977 char *p = (char *) alloca (2 * sizeof (int));
10983 if ac_fn_c_try_link
"$LINENO"; then :
10984 ac_cv_working_alloca_h
=yes
10986 ac_cv_working_alloca_h
=no
10988 rm -f core conftest.err conftest.
$ac_objext \
10989 conftest
$ac_exeext conftest.
$ac_ext
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10992 $as_echo "$ac_cv_working_alloca_h" >&6; }
10993 if test $ac_cv_working_alloca_h = yes; then
10995 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11000 $as_echo_n "checking for alloca... " >&6; }
11001 if test "${ac_cv_func_alloca_works+set}" = set; then :
11002 $as_echo_n "(cached) " >&6
11004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11007 # define alloca __builtin_alloca
11010 # include <malloc.h>
11011 # define alloca _alloca
11013 # ifdef HAVE_ALLOCA_H
11014 # include <alloca.h>
11019 # ifndef alloca /* predefined by HP cc +Olibcalls */
11030 char *p = (char *) alloca (1);
11036 if ac_fn_c_try_link
"$LINENO"; then :
11037 ac_cv_func_alloca_works
=yes
11039 ac_cv_func_alloca_works
=no
11041 rm -f core conftest.err conftest.
$ac_objext \
11042 conftest
$ac_exeext conftest.
$ac_ext
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11045 $as_echo "$ac_cv_func_alloca_works" >&6; }
11047 if test $ac_cv_func_alloca_works = yes; then
11049 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11052 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11053 # that cause trouble. Some versions do not even contain alloca or
11054 # contain a buggy version. If you still want to use their alloca,
11055 # use ar to extract alloca.o from them instead of compiling alloca.c.
11057 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
11059 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11063 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11064 if test "${ac_cv_os_cray+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11069 #if defined CRAY && ! defined CRAY2
11076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11077 $EGREP "webecray" >/dev
/null
2>&1; then :
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11086 $as_echo "$ac_cv_os_cray" >&6; }
11087 if test $ac_cv_os_cray = yes; then
11088 for ac_func
in _getb67 GETB67 getb67
; do
11089 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11090 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11091 eval as_val
=\$
$as_ac_var
11092 if test "x$as_val" = x
""yes; then :
11094 cat >>confdefs.h
<<_ACEOF
11095 #define CRAY_STACKSEG_END $ac_func
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11105 $as_echo_n "checking stack direction for C alloca... " >&6; }
11106 if test "${ac_cv_c_stack_direction+set}" = set; then :
11107 $as_echo_n "(cached) " >&6
11109 if test "$cross_compiling" = yes; then :
11110 ac_cv_c_stack_direction
=0
11112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114 $ac_includes_default
11116 find_stack_direction ()
11118 static char *addr = 0;
11123 return find_stack_direction ();
11126 return (&dummy > addr) ? 1 : -1;
11132 return find_stack_direction () < 0;
11135 if ac_fn_c_try_run
"$LINENO"; then :
11136 ac_cv_c_stack_direction
=1
11138 ac_cv_c_stack_direction
=-1
11140 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11141 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11146 $as_echo "$ac_cv_c_stack_direction" >&6; }
11147 cat >>confdefs.h
<<_ACEOF
11148 #define STACK_DIRECTION $ac_cv_c_stack_direction
11154 ac_header_dirent
=no
11155 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11156 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11158 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11159 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11160 $as_echo_n "(cached) " >&6
11162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11163 /* end confdefs.h. */
11164 #include <sys/types.h>
11176 if ac_fn_c_try_compile
"$LINENO"; then :
11177 eval "$as_ac_Header=yes"
11179 eval "$as_ac_Header=no"
11181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11183 eval ac_res
=\$
$as_ac_Header
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11185 $as_echo "$ac_res" >&6; }
11186 eval as_val
=\$
$as_ac_Header
11187 if test "x$as_val" = x
""yes; then :
11188 cat >>confdefs.h
<<_ACEOF
11189 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11192 ac_header_dirent
=$ac_hdr; break
11196 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11197 if test $ac_header_dirent = dirent.h
; then
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11199 $as_echo_n "checking for library containing opendir... " >&6; }
11200 if test "${ac_cv_search_opendir+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11203 ac_func_search_save_LIBS
=$LIBS
11204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11205 /* end confdefs.h. */
11207 /* Override any GCC internal prototype to avoid an error.
11208 Use char because int might match the return type of a GCC
11209 builtin and then its argument prototype would still apply. */
11222 for ac_lib
in '' dir
; do
11223 if test -z "$ac_lib"; then
11224 ac_res
="none required"
11227 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11229 if ac_fn_c_try_link
"$LINENO"; then :
11230 ac_cv_search_opendir
=$ac_res
11232 rm -f core conftest.err conftest.
$ac_objext \
11234 if test "${ac_cv_search_opendir+set}" = set; then :
11238 if test "${ac_cv_search_opendir+set}" = set; then :
11241 ac_cv_search_opendir
=no
11243 rm conftest.
$ac_ext
11244 LIBS
=$ac_func_search_save_LIBS
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11247 $as_echo "$ac_cv_search_opendir" >&6; }
11248 ac_res
=$ac_cv_search_opendir
11249 if test "$ac_res" != no
; then :
11250 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11256 $as_echo_n "checking for library containing opendir... " >&6; }
11257 if test "${ac_cv_search_opendir+set}" = set; then :
11258 $as_echo_n "(cached) " >&6
11260 ac_func_search_save_LIBS
=$LIBS
11261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h. */
11264 /* Override any GCC internal prototype to avoid an error.
11265 Use char because int might match the return type of a GCC
11266 builtin and then its argument prototype would still apply. */
11279 for ac_lib
in '' x
; do
11280 if test -z "$ac_lib"; then
11281 ac_res
="none required"
11284 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11286 if ac_fn_c_try_link
"$LINENO"; then :
11287 ac_cv_search_opendir
=$ac_res
11289 rm -f core conftest.err conftest.
$ac_objext \
11291 if test "${ac_cv_search_opendir+set}" = set; then :
11295 if test "${ac_cv_search_opendir+set}" = set; then :
11298 ac_cv_search_opendir
=no
11300 rm conftest.
$ac_ext
11301 LIBS
=$ac_func_search_save_LIBS
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11304 $as_echo "$ac_cv_search_opendir" >&6; }
11305 ac_res
=$ac_cv_search_opendir
11306 if test "$ac_res" != no
; then :
11307 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11314 $as_echo_n "checking for ANSI C header files... " >&6; }
11315 if test "${ac_cv_header_stdc+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
11318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11319 /* end confdefs.h. */
11320 #include <stdlib.h>
11321 #include <stdarg.h>
11322 #include <string.h>
11333 if ac_fn_c_try_compile
"$LINENO"; then :
11334 ac_cv_header_stdc
=yes
11336 ac_cv_header_stdc
=no
11338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11340 if test $ac_cv_header_stdc = yes; then
11341 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11344 #include <string.h>
11347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11348 $EGREP "memchr" >/dev
/null
2>&1; then :
11351 ac_cv_header_stdc
=no
11357 if test $ac_cv_header_stdc = yes; then
11358 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361 #include <stdlib.h>
11364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11365 $EGREP "free" >/dev
/null
2>&1; then :
11368 ac_cv_header_stdc
=no
11374 if test $ac_cv_header_stdc = yes; then
11375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11376 if test "$cross_compiling" = yes; then :
11379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11382 #include <stdlib.h>
11383 #if ((' ' & 0x0FF) == 0x020)
11384 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11385 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11387 # define ISLOWER(c) \
11388 (('a' <= (c) && (c) <= 'i') \
11389 || ('j' <= (c) && (c) <= 'r') \
11390 || ('s' <= (c) && (c) <= 'z'))
11391 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11394 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11399 for (i = 0; i < 256; i++)
11400 if (XOR (islower (i), ISLOWER (i))
11401 || toupper (i) != TOUPPER (i))
11406 if ac_fn_c_try_run
"$LINENO"; then :
11409 ac_cv_header_stdc
=no
11411 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11412 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11418 $as_echo "$ac_cv_header_stdc" >&6; }
11419 if test $ac_cv_header_stdc = yes; then
11421 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11426 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11427 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11428 $as_echo_n "(cached) " >&6
11430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11431 /* end confdefs.h. */
11432 #include <sys/types.h>
11433 #include <sys/wait.h>
11434 #ifndef WEXITSTATUS
11435 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11438 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11446 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11451 if ac_fn_c_try_compile
"$LINENO"; then :
11452 ac_cv_header_sys_wait_h
=yes
11454 ac_cv_header_sys_wait_h
=no
11456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11459 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11460 if test $ac_cv_header_sys_wait_h = yes; then
11462 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11466 for ac_header
in fcntl.h limits.h malloc.h stdlib.h string.h sys
/ioctl.h sys
/param.h unistd.h curses.h ncurses.h sys
/cdefs.h
11468 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11469 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11470 eval as_val
=\$
$as_ac_Header
11471 if test "x$as_val" = x
""yes; then :
11472 cat >>confdefs.h
<<_ACEOF
11473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11481 ac_fn_c_check_header_mongrel
"$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11482 if test "x$ac_cv_header_termios_h" = x
""yes; then :
11485 as_fn_error
"termios.h is required!" "$LINENO" 5
11490 ## include curses.h to prevent "Present But Cannot Be Compiled"
11491 for ac_header
in term.h
11493 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11494 # include <curses.h>
11495 #elif HAVE_NCURSES_H
11496 # include <ncurses.h>
11500 if test "x$ac_cv_header_term_h" = x
""yes; then :
11501 cat >>confdefs.h
<<_ACEOF
11502 #define HAVE_TERM_H 1
11510 # Checks for typedefs, structures, and compiler characteristics.
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11512 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11513 if test "${ac_cv_c_const+set}" = set; then :
11514 $as_echo_n "(cached) " >&6
11516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11522 /* FIXME: Include the comments suggested by Paul. */
11523 #ifndef __cplusplus
11524 /* Ultrix mips cc rejects this. */
11525 typedef int charset[2];
11527 /* SunOS 4.1.1 cc rejects this. */
11528 char const *const *pcpcc;
11530 /* NEC SVR4.0.2 mips cc rejects this. */
11531 struct point {int x, y;};
11532 static struct point const zero = {0,0};
11533 /* AIX XL C 1.02.0.0 rejects this.
11534 It does not let you subtract one const X* pointer from another in
11535 an arm of an if-expression whose if-part is not a constant
11537 const char *g = "string";
11538 pcpcc = &g + (g ? g-g : 0);
11539 /* HPUX 7.0 cc rejects these. */
11541 ppc = (char**) pcpcc;
11542 pcpcc = (char const *const *) ppc;
11543 { /* SCO 3.2v4 cc rejects this. */
11545 char const *s = 0 ? (char *) 0 : (char const *) 0;
11550 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11551 int x[] = {25, 17};
11552 const int *foo = &x[0];
11555 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11556 typedef const int *iptr;
11560 { /* AIX XL C 1.02.0.0 rejects this saying
11561 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11562 struct s { int j; const int *ap[3]; };
11563 struct s *b; b->j = 5;
11565 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11566 const int foo = 10;
11567 if (!foo) return 0;
11569 return !cs[0] && !zero.x;
11576 if ac_fn_c_try_compile
"$LINENO"; then :
11581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11584 $as_echo "$ac_cv_c_const" >&6; }
11585 if test $ac_cv_c_const = no
; then
11587 $as_echo "#define const /**/" >>confdefs.h
11591 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11592 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11596 cat >>confdefs.h
<<_ACEOF
11602 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11603 if test "x$ac_cv_type_size_t" = x
""yes; then :
11607 cat >>confdefs.h
<<_ACEOF
11608 #define size_t unsigned int
11613 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
11614 if test "x$ac_cv_type_u_int32_t" = x
""yes; then :
11616 cat >>confdefs.h
<<_ACEOF
11617 #define HAVE_U_INT32_T 1
11624 # Checks for library functions.
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
11626 $as_echo_n "checking whether closedir returns void... " >&6; }
11627 if test "${ac_cv_func_closedir_void+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11630 if test "$cross_compiling" = yes; then :
11631 ac_cv_func_closedir_void
=yes
11633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11635 $ac_includes_default
11636 #include <$ac_header_dirent>
11637 #ifndef __cplusplus
11644 return closedir (opendir (".")) != 0;
11649 if ac_fn_c_try_run
"$LINENO"; then :
11650 ac_cv_func_closedir_void
=no
11652 ac_cv_func_closedir_void
=yes
11654 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11655 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
11660 $as_echo "$ac_cv_func_closedir_void" >&6; }
11661 if test $ac_cv_func_closedir_void = yes; then
11663 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
11667 for ac_header
in vfork.h
11669 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
11670 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
11671 cat >>confdefs.h
<<_ACEOF
11672 #define HAVE_VFORK_H 1
11679 for ac_func
in fork vfork
11681 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11682 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11683 eval as_val
=\$
$as_ac_var
11684 if test "x$as_val" = x
""yes; then :
11685 cat >>confdefs.h
<<_ACEOF
11686 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11692 if test "x$ac_cv_func_fork" = xyes
; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
11694 $as_echo_n "checking for working fork... " >&6; }
11695 if test "${ac_cv_func_fork_works+set}" = set; then :
11696 $as_echo_n "(cached) " >&6
11698 if test "$cross_compiling" = yes; then :
11699 ac_cv_func_fork_works
=cross
11701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703 $ac_includes_default
11708 /* By Ruediger Kuhlmann. */
11709 return fork () < 0;
11715 if ac_fn_c_try_run
"$LINENO"; then :
11716 ac_cv_func_fork_works
=yes
11718 ac_cv_func_fork_works
=no
11720 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11721 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
11726 $as_echo "$ac_cv_func_fork_works" >&6; }
11729 ac_cv_func_fork_works
=$ac_cv_func_fork
11731 if test "x$ac_cv_func_fork_works" = xcross
; then
11733 *-*-amigaos* |
*-*-msdosdjgpp*)
11734 # Override, as these systems have only a dummy fork() stub
11735 ac_cv_func_fork_works
=no
11738 ac_cv_func_fork_works
=yes
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
11742 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
11744 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11745 if test "x$ac_cv_func_vfork" = xyes
; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
11747 $as_echo_n "checking for working vfork... " >&6; }
11748 if test "${ac_cv_func_vfork_works+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11751 if test "$cross_compiling" = yes; then :
11752 ac_cv_func_vfork_works
=cross
11754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 /* Thanks to Paul Eggert for this test. */
11757 $ac_includes_default
11758 #include <sys/wait.h>
11759 #ifdef HAVE_VFORK_H
11760 # include <vfork.h>
11762 /* On some sparc systems, changes by the child to local and incoming
11763 argument registers are propagated back to the parent. The compiler
11764 is told about this with #include <vfork.h>, but some compilers
11765 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
11766 static variable whose address is put into a register that is
11767 clobbered by the vfork. */
11770 sparc_address_test (int arg)
11772 sparc_address_test (arg) int arg;
11775 static pid_t child;
11793 pid_t parent = getpid ();
11796 sparc_address_test (0);
11801 /* Here is another test for sparc vfork register problems. This
11802 test uses lots of local variables, at least as many local
11803 variables as main has allocated so far including compiler
11804 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
11805 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
11806 reuse the register of parent for one of the local variables,
11807 since it will think that parent can't possibly be used any more
11808 in this routine. Assigning to the local variable will thus
11809 munge parent in the parent process. */
11811 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
11812 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
11813 /* Convince the compiler that p..p7 are live; otherwise, it might
11814 use the same hardware register for all 8 local variables. */
11815 if (p != p1 || p != p2 || p != p3 || p != p4
11816 || p != p5 || p != p6 || p != p7)
11819 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
11820 from child file descriptors. If the child closes a descriptor
11821 before it execs or exits, this munges the parent's descriptor
11822 as well. Test for this by closing stdout in the child. */
11823 _exit(close(fileno(stdout)) != 0);
11828 while (wait(&status) != child)
11831 /* Was there some problem with vforking? */
11834 /* Did the child fail? (This shouldn't happen.) */
11837 /* Did the vfork/compiler bug occur? */
11838 || parent != getpid()
11840 /* Did the file descriptor bug occur? */
11841 || fstat(fileno(stdout), &st) != 0
11846 if ac_fn_c_try_run
"$LINENO"; then :
11847 ac_cv_func_vfork_works
=yes
11849 ac_cv_func_vfork_works
=no
11851 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11852 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
11857 $as_echo "$ac_cv_func_vfork_works" >&6; }
11860 if test "x$ac_cv_func_fork_works" = xcross
; then
11861 ac_cv_func_vfork_works
=$ac_cv_func_vfork
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
11863 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
11866 if test "x$ac_cv_func_vfork_works" = xyes
; then
11868 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
11872 $as_echo "#define vfork fork" >>confdefs.h
11875 if test "x$ac_cv_func_fork_works" = xyes
; then
11877 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
11881 if test $ac_cv_c_compiler_gnu = yes; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11883 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11884 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11887 ac_pattern
="Autoconf.*'x'"
11888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11889 /* end confdefs.h. */
11893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11894 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
11895 ac_cv_prog_gcc_traditional
=yes
11897 ac_cv_prog_gcc_traditional
=no
11902 if test $ac_cv_prog_gcc_traditional = no
; then
11903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905 #include <termio.h>
11908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11909 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
11910 ac_cv_prog_gcc_traditional
=yes
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11917 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11918 if test $ac_cv_prog_gcc_traditional = yes; then
11919 CC
="$CC -traditional"
11923 ## _AIX is offended by rpl_malloc and rpl_realloc
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11927 $as_echo_n "checking return type of signal handlers... " >&6; }
11928 if test "${ac_cv_type_signal+set}" = set; then :
11929 $as_echo_n "(cached) " >&6
11931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11932 /* end confdefs.h. */
11933 #include <sys/types.h>
11934 #include <signal.h>
11939 return *(signal (0, 0)) (0) == 1;
11944 if ac_fn_c_try_compile
"$LINENO"; then :
11945 ac_cv_type_signal
=int
11947 ac_cv_type_signal
=void
11949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11952 $as_echo "$ac_cv_type_signal" >&6; }
11954 cat >>confdefs.h
<<_ACEOF
11955 #define RETSIGTYPE $ac_cv_type_signal
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
11960 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
11961 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
11962 $as_echo_n "(cached) " >&6
11964 rm -f conftest.sym conftest.
file
11965 echo >conftest.
file
11966 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
11967 if test "$cross_compiling" = yes; then :
11968 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11971 /* end confdefs.h. */
11972 $ac_includes_default
11977 /* Linux will dereference the symlink and fail, as required by POSIX.
11978 That is better in the sense that it means we will not
11979 have to compile and use the lstat wrapper. */
11980 return lstat ("conftest.sym/", &sbuf) == 0;
11985 if ac_fn_c_try_run
"$LINENO"; then :
11986 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
11988 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11990 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11991 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11995 # If the `ln -s' command failed, then we probably don't even
11996 # have an lstat function.
11997 ac_cv_func_lstat_dereferences_slashed_symlink
=no
11999 rm -f conftest.sym conftest.
file
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
12003 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12005 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
12007 cat >>confdefs.h
<<_ACEOF
12008 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
12012 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
12013 case " $LIBOBJS " in
12014 *" lstat.$ac_objext "* ) ;;
12015 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
12022 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
12023 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12026 if test "$cross_compiling" = yes; then :
12027 ac_cv_func_stat_empty_string_bug
=yes
12029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12031 $ac_includes_default
12036 return stat ("", &sbuf) == 0;
12041 if ac_fn_c_try_run
"$LINENO"; then :
12042 ac_cv_func_stat_empty_string_bug
=no
12044 ac_cv_func_stat_empty_string_bug
=yes
12046 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12047 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
12052 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
12053 if test $ac_cv_func_stat_empty_string_bug = yes; then
12054 case " $LIBOBJS " in
12055 *" stat.$ac_objext "* ) ;;
12056 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
12061 cat >>confdefs.h
<<_ACEOF
12062 #define HAVE_STAT_EMPTY_STRING_BUG 1
12067 for ac_func
in endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strerror strrchr strstr strtol issetugid wcsdup
12069 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12071 eval as_val
=\$
$as_ac_var
12072 if test "x$as_val" = x
""yes; then :
12073 cat >>confdefs.h
<<_ACEOF
12074 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix like" >&5
12082 $as_echo_n "checking whether getpwnam_r and getpwuid_r are posix like... " >&6; }
12083 # The prototype for the POSIX version is:
12084 # int getpwnam_r(char *, struct passwd *, char *, size_t, struct passwd **)
12085 # int getpwuid_r(uid_t, struct passwd *, char *, size_t, struct passwd **);
12086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12087 /* end confdefs.h. */
12088 #include <stdlib.h>
12089 #include <sys/types.h>
12094 getpwnam_r(NULL, NULL, NULL, (size_t)0, NULL);
12095 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0, NULL);
12100 if ac_fn_c_try_link
"$LINENO"; then :
12102 $as_echo "#define HAVE_GETPW_R_POSIX 1" >>confdefs.h
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105 $as_echo "yes" >&6; }
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; }
12110 rm -f core conftest.err conftest.
$ac_objext \
12111 conftest
$ac_exeext conftest.
$ac_ext
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpwnam_r and getpwuid_r are posix _draft_ like" >&5
12115 $as_echo_n "checking whether getpwnam_r and getpwuid_r are posix _draft_ like... " >&6; }
12116 # The prototype for the POSIX draft version is:
12117 # struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int);
12118 # struct passwd *getpwnam_r(char *, struct passwd *, char *, int);
12119 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12121 #include <stdlib.h>
12122 #include <sys/types.h>
12127 getpwnam_r(NULL, NULL, NULL, (size_t)0);
12128 getpwuid_r((uid_t)0, NULL, NULL, (size_t)0);
12133 if ac_fn_c_try_link
"$LINENO"; then :
12135 $as_echo "#define HAVE_GETPW_R_DRAFT 1" >>confdefs.h
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12138 $as_echo "yes" >&6; }
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141 $as_echo "no" >&6; }
12143 rm -f core conftest.err conftest.
$ac_objext \
12144 conftest
$ac_exeext conftest.
$ac_ext
12150 ac_config_files
="$ac_config_files Makefile libedit.pc src/Makefile doc/Makefile examples/Makefile"
12152 cat >confcache
<<\_ACEOF
12153 # This file is a shell script that caches the results of configure
12154 # tests run on this system so they can be shared between configure
12155 # scripts and configure runs, see configure's option --config-cache.
12156 # It is not useful on other systems. If it contains results you don't
12157 # want to keep, you may remove or edit it.
12159 # config.status only pays attention to the cache file if you give it
12160 # the --recheck option to rerun configure.
12162 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12163 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12164 # following values.
12168 # The following way of writing the cache mishandles newlines in values,
12169 # but we know of no workaround that is simple, portable, and efficient.
12170 # So, we kill variables containing newlines.
12171 # Ultrix sh set writes to stderr and can't be redirected directly,
12172 # and sets the high bit in the cache file unless we assign to the vars.
12174 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12175 eval ac_val
=\$
$ac_var
12179 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12180 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12183 _ | IFS | as_nl
) ;; #(
12184 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12185 *) { eval $ac_var=; unset $ac_var;} ;;
12191 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12192 *${as_nl}ac_space
=\
*)
12193 # `set' does not quote correctly, so add quotes: double-quote
12194 # substitution turns \\\\ into \\, and sed turns \\ into \.
12197 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12200 # `set' quotes correctly as required by POSIX, so do not add quotes.
12201 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12210 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12212 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12214 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12215 if test -w "$cache_file"; then
12216 test "x$cache_file" != "x/dev/null" &&
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12218 $as_echo "$as_me: updating cache $cache_file" >&6;}
12219 cat confcache
>$cache_file
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12222 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12227 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12228 # Let make expand exec_prefix.
12229 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12231 DEFS
=-DHAVE_CONFIG_H
12235 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12236 # 1. Remove the extension, and $U if already installed.
12237 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12238 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12239 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12240 # will be set to the directory where LIBOBJS objects are built.
12241 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12242 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12244 LIBOBJS
=$ac_libobjs
12246 LTLIBOBJS
=$ac_ltlibobjs
12249 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12250 as_fn_error
"conditional \"AMDEP\" was never defined.
12251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12253 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12254 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
12255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12257 if test -n "$EXEEXT"; then
12259 am__EXEEXT_FALSE
='#'
12261 am__EXEEXT_TRUE
='#'
12265 if test -z "${WIDECHAR_TRUE}" && test -z "${WIDECHAR_FALSE}"; then
12266 as_fn_error
"conditional \"WIDECHAR\" was never defined.
12267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12270 : ${CONFIG_STATUS=./config.status}
12272 ac_clean_files_save
=$ac_clean_files
12273 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12275 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12277 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12279 # Generated by $as_me.
12280 # Run this file to recreate the current configuration.
12281 # Compiler output produced by configure, useful for debugging
12282 # configure, is in config.log if it exists.
12285 ac_cs_recheck=false
12288 SHELL=\${CONFIG_SHELL-$SHELL}
12291 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12292 ## -------------------- ##
12293 ## M4sh Initialization. ##
12294 ## -------------------- ##
12296 # Be more Bourne compatible
12297 DUALCASE
=1; export DUALCASE
# for MKS sh
12298 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12301 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12302 # is contrary to our usage. Disable this feature.
12303 alias -g '${1+"$@"}'='"$@"'
12304 setopt NO_GLOB_SUBST
12306 case `(set -o) 2>/dev/null` in #(
12318 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12319 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12320 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12321 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12322 # Prefer a ksh shell builtin over an external printf program on Solaris,
12323 # but without wasting forks for bash or zsh.
12324 if test -z "$BASH_VERSION$ZSH_VERSION" \
12325 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12326 as_echo='print
-r --'
12327 as_echo_n='print
-rn --'
12328 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12329 as_echo='printf %s
\n'
12330 as_echo_n='printf %s
'
12332 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12333 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12334 as_echo_n='/usr
/ucb
/echo -n'
12336 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12337 as_echo_n_body='eval
12341 expr "X$arg" : "X\\(.*\\)$as_nl";
12342 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12344 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12346 export as_echo_n_body
12347 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12349 export as_echo_body
12350 as_echo='sh
-c $as_echo_body as_echo
'
12353 # The user is always right.
12354 if test "${PATH_SEPARATOR+set}" != set; then
12356 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12357 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12364 # We need space, tab and new line, in precisely that order. Quoting is
12365 # there to prevent editors from complaining about space-tab.
12366 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12367 # splitting by setting IFS to empty value.)
12370 # Find who we are. Look in the path if we contain no directory separator.
12372 *[\\/]* ) as_myself=$0 ;;
12373 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12377 test -z "$as_dir" && as_dir=.
12378 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12384 # We did not find ourselves, most probably we were run as `sh COMMAND'
12385 # in which case we are not to be found in the path.
12386 if test "x$as_myself" = x
; then
12389 if test ! -f "$as_myself"; then
12390 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12394 # Unset variables that we do not need and which cause bugs (e.g. in
12395 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12396 # suppresses any "Segmentation fault" message there. '((' could
12397 # trigger a bug in pdksh 5.2.14.
12398 for as_var
in BASH_ENV ENV MAIL MAILPATH
12399 do eval test x\
${$as_var+set} = xset \
12400 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12413 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12416 # as_fn_error ERROR [LINENO LOG_FD]
12417 # ---------------------------------
12418 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12419 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12420 # script with status $?, using 1 if that was 0.
12423 as_status
=$?
; test $as_status -eq 0 && as_status
=1
12425 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12428 $as_echo "$as_me: error: $1" >&2
12429 as_fn_exit
$as_status
12433 # as_fn_set_status STATUS
12434 # -----------------------
12435 # Set $? to STATUS, without forking.
12436 as_fn_set_status
()
12439 } # as_fn_set_status
12441 # as_fn_exit STATUS
12442 # -----------------
12443 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12447 as_fn_set_status
$1
12453 # Portably unset VAR.
12456 { eval $1=; unset $1;}
12458 as_unset
=as_fn_unset
12459 # as_fn_append VAR VALUE
12460 # ----------------------
12461 # Append the text in VALUE to the end of the definition contained in VAR. Take
12462 # advantage of any shell optimizations that allow amortized linear growth over
12463 # repeated appends, instead of the typical quadratic growth present in naive
12465 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12466 eval 'as_fn_append ()
12477 # as_fn_arith ARG...
12478 # ------------------
12479 # Perform arithmetic evaluation on the ARGs, and store the result in the
12480 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12481 # must be portable across $(()) and expr.
12482 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12483 eval 'as_fn_arith ()
12490 as_val
=`expr "$@" || test $? -eq 1`
12495 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12496 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12502 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12503 as_basename
=basename
12508 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12514 as_me
=`$as_basename -- "$0" ||
12515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12516 X"$0" : 'X\(//\)$' \| \
12517 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12519 sed '/^.*\/\([^/][^/]*\)\/*$/{
12533 # Avoid depending upon Character Ranges.
12534 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12535 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12536 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12537 as_cr_digits
='0123456789'
12538 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12540 ECHO_C
= ECHO_N
= ECHO_T
=
12541 case `echo -n x` in #(((((
12543 case `echo 'xy\c'` in
12544 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12546 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12553 rm -f conf$$ conf$$.exe conf$$.
file
12554 if test -d conf$$.dir
; then
12555 rm -f conf$$.dir
/conf$$.
file
12558 mkdir conf$$.dir
2>/dev
/null
12560 if (echo >conf$$.
file) 2>/dev
/null
; then
12561 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12563 # ... but there are two gotchas:
12564 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12565 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12566 # In both cases, we have to default to `cp -p'.
12567 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12569 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12577 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12578 rmdir conf$$.dir
2>/dev
/null
12583 # Create "$as_dir" as a directory, including parents if necessary.
12588 -*) as_dir
=.
/$as_dir;;
12590 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12594 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12595 *) as_qdir
=$as_dir;;
12597 as_dirs
="'$as_qdir' $as_dirs"
12598 as_dir
=`$as_dirname -- "$as_dir" ||
12599 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12600 X"$as_dir" : 'X\(//\)[^/]' \| \
12601 X"$as_dir" : 'X\(//\)$' \| \
12602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12603 $as_echo X"$as_dir" |
12604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12608 /^X\(\/\/\)[^/].*/{
12621 test -d "$as_dir" && break
12623 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12624 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
12628 if mkdir
-p .
2>/dev
/null
; then
12629 as_mkdir_p
='mkdir -p "$as_dir"'
12631 test -d .
/-p && rmdir .
/-p
12635 if test -x / >/dev
/null
2>&1; then
12636 as_test_x
='test -x'
12638 if ls -dL / >/dev
/null
2>&1; then
12645 if test -d "$1"; then
12651 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12652 ???[sx]*):;;*)false;;esac;fi
12656 as_executable_p
=$as_test_x
12658 # Sed expression to map a string onto a valid CPP name.
12659 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12661 # Sed expression to map a string onto a valid variable name.
12662 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12666 ## ----------------------------------- ##
12667 ## Main body of $CONFIG_STATUS script. ##
12668 ## ----------------------------------- ##
12670 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
12672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12673 # Save the log message, to keep $0 and so on meaningful, and to
12674 # report actual input values of CONFIG_FILES etc. instead of their
12675 # values after options handling.
12677 This file was extended by libedit $as_me 3.0, which was
12678 generated by GNU Autoconf 2.65. Invocation command line was
12680 CONFIG_FILES = $CONFIG_FILES
12681 CONFIG_HEADERS = $CONFIG_HEADERS
12682 CONFIG_LINKS = $CONFIG_LINKS
12683 CONFIG_COMMANDS = $CONFIG_COMMANDS
12686 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12691 case $ac_config_files in *"
12692 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
12695 case $ac_config_headers in *"
12696 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
12700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12701 # Files that config.status was made for.
12702 config_files="$ac_config_files"
12703 config_headers="$ac_config_headers"
12704 config_commands="$ac_config_commands"
12708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12710 \`$as_me' instantiates files and other configuration actions
12711 from templates according to the current configuration. Unless the files
12712 and actions are specified as TAGs, all are instantiated by default.
12714 Usage: $0 [OPTION]... [TAG]...
12716 -h, --help print this help, then exit
12717 -V, --version print version number and configuration settings, then exit
12718 --config print configuration, then exit
12719 -q, --quiet, --silent
12720 do not print progress messages
12721 -d, --debug don't remove temporary files
12722 --recheck update $as_me by reconfiguring in the same conditions
12723 --file=FILE[:TEMPLATE]
12724 instantiate the configuration file FILE
12725 --header=FILE[:TEMPLATE]
12726 instantiate the configuration header FILE
12728 Configuration files:
12731 Configuration headers:
12734 Configuration commands:
12737 Report bugs to the package provider."
12740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12741 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12743 libedit config.status 3.0
12744 configured by $0, generated by GNU Autoconf 2.65,
12745 with options \\"\$ac_cs_config\\"
12747 Copyright (C) 2009 Free Software Foundation, Inc.
12748 This config.status script is free software; the Free Software Foundation
12749 gives unlimited permission to copy, distribute and modify it."
12756 test -n "\$AWK" || AWK=awk
12759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12760 # The default lists apply if the user does not specify any file.
12766 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12767 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12778 # Handling of the options.
12779 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12781 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12782 $as_echo "$ac_cs_version"; exit ;;
12783 --config |
--confi |
--conf |
--con |
--co |
--c )
12784 $as_echo "$ac_cs_config"; exit ;;
12785 --debug |
--debu |
--deb |
--de |
--d |
-d )
12787 --file |
--fil |
--fi |
--f )
12790 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12792 as_fn_append CONFIG_FILES
" '$ac_optarg'"
12793 ac_need_defaults
=false
;;
12794 --header |
--heade |
--head |
--hea )
12797 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12799 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
12800 ac_need_defaults
=false
;;
12802 # Conflict between --help and --header
12803 as_fn_error
"ambiguous option: \`$1'
12804 Try \`$0 --help' for more information.";;
12805 --help |
--hel |
-h )
12806 $as_echo "$ac_cs_usage"; exit ;;
12807 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12808 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12811 # This is an error.
12812 -*) as_fn_error
"unrecognized option: \`$1'
12813 Try \`$0 --help' for more information." ;;
12815 *) as_fn_append ac_config_targets
" $1"
12816 ac_need_defaults
=false
;;
12822 ac_configure_extra_args
=
12824 if $ac_cs_silent; then
12826 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12831 if \$ac_cs_recheck; then
12832 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12834 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12835 CONFIG_SHELL='$SHELL'
12836 export CONFIG_SHELL
12841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12845 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12846 ## Running $as_me. ##
12852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12856 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12859 # The HP-UX ksh and POSIX shell print the target directory to stdout
12860 # if CDPATH is set.
12861 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12863 sed_quote_subst='$sed_quote_subst'
12864 double_quote_subst='$double_quote_subst'
12865 delay_variable_subst='$delay_variable_subst'
12866 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12867 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12868 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12869 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12870 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12871 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12872 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12873 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12874 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12875 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12876 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12877 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12878 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12879 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12880 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12881 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12882 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12883 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12884 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12885 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12886 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12887 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12888 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12889 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12890 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12891 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12892 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12893 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12894 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12895 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12896 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12897 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12898 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12899 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12900 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12901 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12902 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12903 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12904 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12905 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12906 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12907 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12908 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12909 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12910 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"`'
12911 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"`'
12912 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12913 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12914 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12915 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12916 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12917 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12918 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12919 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12920 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12921 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12922 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12923 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12924 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12925 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12926 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12927 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12928 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12929 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12930 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12931 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12932 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12933 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12934 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12935 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12936 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12937 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12938 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12939 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12940 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12941 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12942 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12943 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12944 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12945 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12946 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12947 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12948 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12949 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12950 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12951 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12952 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12953 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12954 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12955 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12956 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12957 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12958 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12959 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12960 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12961 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12962 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12963 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12964 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12965 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12966 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12967 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12968 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12969 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12970 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12971 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12972 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12973 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12974 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12975 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12976 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12977 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12978 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12979 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12980 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12981 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12982 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12983 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12986 LTCFLAGS='$LTCFLAGS'
12987 compiler='$compiler_DEFAULT'
12989 # Quote evaled strings.
13001 deplibs_check_method \
13010 lt_cv_sys_global_symbol_pipe \
13011 lt_cv_sys_global_symbol_to_cdecl \
13012 lt_cv_sys_global_symbol_to_c_name_address \
13013 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13016 lt_prog_compiler_no_builtin_flag \
13017 lt_prog_compiler_wl \
13018 lt_prog_compiler_pic \
13019 lt_prog_compiler_static \
13020 lt_cv_prog_compiler_c_o \
13028 export_dynamic_flag_spec \
13029 whole_archive_flag_spec \
13030 compiler_needs_object \
13032 allow_undefined_flag \
13033 no_undefined_flag \
13034 hardcode_libdir_flag_spec \
13035 hardcode_libdir_flag_spec_ld \
13036 hardcode_libdir_separator \
13041 variables_saved_for_relink \
13043 library_names_spec \
13048 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13049 *[\\\\\\\`\\"\\\$]*)
13050 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13053 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13058 # Double-quote double-evaled strings.
13059 for var in reload_cmds \
13060 old_postinstall_cmds \
13061 old_postuninstall_cmds \
13063 extract_expsyms_cmds \
13064 old_archive_from_new_cmds \
13065 old_archive_from_expsyms_cmds \
13067 archive_expsym_cmds \
13069 module_expsym_cmds \
13070 export_symbols_cmds \
13073 postuninstall_cmds \
13075 sys_lib_search_path_spec \
13076 sys_lib_dlsearch_path_spec; do
13077 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13078 *[\\\\\\\`\\"\\\$]*)
13079 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13082 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13087 # Fix-up fallback echo if it was mangled by the above quoting rules.
13089 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13093 ac_aux_dir='$ac_aux_dir'
13094 xsi_shell='$xsi_shell'
13095 lt_shell_append='$lt_shell_append'
13097 # See if we are running on zsh, and set the options which allow our
13098 # commands through without removal of \ escapes INIT.
13099 if test -n "\${ZSH_VERSION+set}" ; then
13100 setopt NO_GLOB_SUBST
13106 TIMESTAMP='$TIMESTAMP'
13115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13117 # Handling of arguments.
13118 for ac_config_target
in $ac_config_targets
13120 case $ac_config_target in
13121 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
13122 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
13123 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
13124 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13125 "libedit.pc") CONFIG_FILES
="$CONFIG_FILES libedit.pc" ;;
13126 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
13127 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
13128 "examples/Makefile") CONFIG_FILES
="$CONFIG_FILES examples/Makefile" ;;
13130 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13135 # If the user did not use the arguments to specify the items to instantiate,
13136 # then the envvar interface is used. Set only those that are not.
13137 # We use the long form for the default assignment because of an extremely
13138 # bizarre bug on SunOS 4.1.3.
13139 if $ac_need_defaults; then
13140 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13141 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13142 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13145 # Have a temporary directory for convenience. Make it in the build tree
13146 # simply because there is no reason against having it here, and in addition,
13147 # creating and moving files from /tmp can sometimes cause problems.
13148 # Hook for its removal unless debugging.
13149 # Note that there is a small window in which the directory will not be cleaned:
13150 # after its creation but before its name has been assigned to `$tmp'.
13154 trap 'exit_status=$?
13155 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13157 trap 'as_fn_exit 1' 1 2 13 15
13159 # Create a (secure) tmp directory for tmp files.
13162 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13163 test -n "$tmp" && test -d "$tmp"
13166 tmp
=.
/conf$$
-$RANDOM
13167 (umask 077 && mkdir
"$tmp")
13168 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
13170 # Set up the scripts for CONFIG_FILES section.
13171 # No need to generate them if there are no CONFIG_FILES.
13172 # This happens for instance with `./config.status config.h'.
13173 if test -n "$CONFIG_FILES"; then
13176 ac_cr
=`echo X | tr X '\015'`
13177 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13178 # But we know of no other shell where ac_cr would be empty at this
13179 # point, so we can use a bashism as a fallback.
13180 if test "x$ac_cr" = x
; then
13181 eval ac_cr
=\$
\'\\r
\'
13183 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13184 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13187 ac_cs_awk_cr
=$ac_cr
13190 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13195 echo "cat >conf$$subs.awk <<_ACEOF" &&
13196 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13198 } >conf$$subs.sh ||
13199 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
13200 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13202 for ac_last_try in false false false false false :; do
13203 . ./conf$$subs.sh ||
13204 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
13206 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
13207 if test $ac_delim_n = $ac_delim_num; then
13209 elif $ac_last_try; then
13210 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
13212 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13215 rm -f conf$$subs.sh
13217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13218 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
13222 s/^/S["/; s
/!.
*/"]=/
13232 s/\(.\{148\}\)..*/\1/
13234 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13239 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13246 s/\(.\{148\}\)..*/\1/
13248 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13252 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13257 ' <conf$$subs.awk | sed '
13262 ' >>$CONFIG_STATUS || ac_write_fail=1
13263 rm -f conf$$subs.awk
13264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13266 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
13267 for (key in S) S_is_set[key] = 1
13273 nfields = split(line, field, "@
")
13275 len = length(field[1])
13276 for (i = 2; i < nfields; i++) {
13278 keylen = length(key)
13279 if (S_is_set[key]) {
13281 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13282 len += length(value) + length(field[++i])
13293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13294 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13295 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13298 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
13299 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
13302 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13303 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
13304 # trailing colons and then remove the whole line if VPATH becomes empty
13305 # (actually we leave an empty line to preserve line numbers).
13306 if test "x
$srcdir" = x.; then
13307 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13308 s/:*\$(srcdir):*/:/
13309 s/:*\${srcdir}:*/:/
13311 s/^\([^=]*=[ ]*\):*/\1/
13317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13318 fi # test -n "$CONFIG_FILES"
13320 # Set up the scripts for CONFIG_HEADERS section.
13321 # No need to generate them if there are no CONFIG_HEADERS.
13322 # This happens for instance with `./config.status Makefile'.
13323 if test -n "$CONFIG_HEADERS"; then
13324 cat >"$tmp/defines.
awk" <<\_ACAWK ||
13328 # Transform confdefs.h into an awk script `defines.awk', embedded as
13329 # here-document in config.status, that substitutes the proper values into
13330 # config.h.in to produce config.h.
13332 # Create a delimiter string that does not exist in confdefs.h, to ease
13333 # handling of long lines.
13335 for ac_last_try in false false :; do
13336 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
13337 if test -z "$ac_t"; then
13339 elif $ac_last_try; then
13340 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
13342 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13346 # For the awk script, D is an array of macro values keyed by name,
13347 # likewise P contains macro parameters if any. Preserve backslash
13348 # newline sequences.
13350 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13352 s/.\{148\}/&'"$ac_delim"'/g
13355 s/^[ ]*#[ ]*define[ ][ ]*/ /
13362 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13364 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13368 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13369 D["\
1"]=" \
3\\\\\\n
"\\/p
13371 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13376 s/.\{148\}/&'"$ac_delim"'/g
13381 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13384 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13386 ' <confdefs.h | sed '
13387 s/'"$ac_delim"'/"\\\
13388 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13391 for (key in D) D_is_set[key] = 1
13394 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13396 split(line, arg, " ")
13397 if (arg[1] == "#") {
13401 defundef
= substr
(arg
[1], 2)
13404 split(mac1
, mac2
, "(") #)
13406 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13407 if (D_is_set
[macro
]) {
13408 # Preserve the white space surrounding the "#".
13409 print prefix
"define", macro P
[macro
] D
[macro
]
13412 # Replace #undef with comments. This is necessary, for example,
13413 # in the case of _POSIX_SOURCE, which is predefined and required
13414 # on some systems where configure will not decide to define it.
13415 if (defundef
== "undef") {
13416 print
"/*", prefix defundef
, macro
, "*/"
13424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13425 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
13426 fi # test -n "$CONFIG_HEADERS"
13429 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13434 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13436 case $ac_mode$ac_tag in
13438 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13439 :[FH
]-) ac_tag
=-:-;;
13440 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13457 -) ac_f
="$tmp/stdin";;
13458 *) # Look for the file first in the build tree, then in the source tree
13459 # (if the path is not absolute). The absolute path cannot be DOS-style,
13460 # because $ac_f cannot contain `:'.
13464 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13466 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
13468 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13469 as_fn_append ac_file_inputs
" '$ac_f'"
13472 # Let's still pretend it is `configure' which instantiates (i.e., don't
13473 # use $as_me), people would be surprised to read:
13474 # /* config.h. Generated by config.status. */
13475 configure_input
='Generated from '`
13476 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13478 if test x
"$ac_file" != x-
; then
13479 configure_input
="$ac_file. $configure_input"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13481 $as_echo "$as_me: creating $ac_file" >&6;}
13483 # Neutralize special characters interpreted by sed in replacement strings.
13484 case $configure_input in #(
13485 *\
&* |
*\|
* |
*\\* )
13486 ac_sed_conf_input
=`$as_echo "$configure_input" |
13487 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13488 *) ac_sed_conf_input
=$configure_input;;
13492 *:-:* |
*:-) cat >"$tmp/stdin" \
13493 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
13498 ac_dir
=`$as_dirname -- "$ac_file" ||
13499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13500 X"$ac_file" : 'X\(//\)[^/]' \| \
13501 X"$ac_file" : 'X\(//\)$' \| \
13502 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13503 $as_echo X"$ac_file" |
13504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13508 /^X\(\/\/\)[^/].*/{
13521 as_dir
="$ac_dir"; as_fn_mkdir_p
13525 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13527 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13528 # A ".." for each directory in $ac_dir_suffix.
13529 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13530 case $ac_top_builddir_sub in
13531 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13532 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13535 ac_abs_top_builddir
=$ac_pwd
13536 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13537 # for backward compatibility:
13538 ac_top_builddir
=$ac_top_build_prefix
13541 .
) # We are building in place.
13543 ac_top_srcdir
=$ac_top_builddir_sub
13544 ac_abs_top_srcdir
=$ac_pwd ;;
13545 [\\/]* | ?
:[\\/]* ) # Absolute name.
13546 ac_srcdir
=$srcdir$ac_dir_suffix;
13547 ac_top_srcdir
=$srcdir
13548 ac_abs_top_srcdir
=$srcdir ;;
13549 *) # Relative name.
13550 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13551 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13552 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13554 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13564 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13565 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13567 ac_MKDIR_P
=$MKDIR_P
13569 [\\/$
]* | ?
:[\\/]* ) ;;
13570 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
13574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13575 # If the template does not know about datarootdir, expand it.
13576 # FIXME: This hack should be removed a few years after 2.60.
13577 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13588 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13589 *datarootdir
*) ac_datarootdir_seen
=yes;;
13590 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13592 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13595 ac_datarootdir_hack='
13596 s&@datadir@&$datadir&g
13597 s&@docdir@&$docdir&g
13598 s&@infodir@&$infodir&g
13599 s&@localedir@&$localedir&g
13600 s&@mandir@&$mandir&g
13601 s&\\\${datarootdir}&$datarootdir&g' ;;
13605 # Neutralize VPATH when `$srcdir' = `.'.
13606 # Shell code in configure.ac might set extrasub.
13607 # FIXME: do we really want to maintain this feature?
13608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13609 ac_sed_extra="$ac_vpsub
13612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13614 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13615 s|@configure_input@|
$ac_sed_conf_input|
;t t
13616 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13617 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13618 s
&@srcdir@
&$ac_srcdir&;t t
13619 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13620 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13621 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13622 s
&@builddir@
&$ac_builddir&;t t
13623 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13624 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13625 s
&@INSTALL@
&$ac_INSTALL&;t t
13626 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
13627 $ac_datarootdir_hack
13629 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
13630 || as_fn_error "could not create
$ac_file" "$LINENO" 5
13632 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13633 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13634 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13636 which seems to be undefined. Please make sure it is defined." >&5
13637 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13638 which seems to be undefined. Please make sure it is defined." >&2;}
13642 -) cat "$tmp/out" && rm -f "$tmp/out";;
13643 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13645 || as_fn_error "could not create $ac_file" "$LINENO" 5
13651 if test x"$ac_file" != x-; then
13653 $as_echo "/* $configure_input */" \
13654 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13655 } >"$tmp/config.h" \
13656 || as_fn_error "could not create $ac_file" "$LINENO" 5
13657 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13659 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13662 mv "$tmp/config.h" "$ac_file" \
13663 || as_fn_error "could not create $ac_file" "$LINENO" 5
13666 $as_echo "/* $configure_input */" \
13667 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13668 || as_fn_error "could not create -" "$LINENO" 5
13670 # Compute "$ac_file"'s index
in $config_headers.
13673 for _am_header
in $config_headers :; do
13674 case $_am_header in
13675 $_am_arg |
$_am_arg:* )
13678 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
13681 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13682 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13683 X"$_am_arg" : 'X\(//\)[^/]' \| \
13684 X"$_am_arg" : 'X\(//\)$' \| \
13685 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13686 $as_echo X"$_am_arg" |
13687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13691 /^X\(\/\/\)[^/].*/{
13703 s/.*/./; q'`/stamp-h
$_am_stamp_count
13706 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13707 $as_echo "$as_me: executing $ac_file commands" >&6;}
13712 case $ac_file$ac_mode in
13713 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
13714 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13715 # are listed without --file. Let's play safe and only enable the eval
13716 # if we detect the quoting.
13717 case $CONFIG_FILES in
13718 *\'*) eval set x
"$CONFIG_FILES" ;;
13719 *) set x
$CONFIG_FILES ;;
13724 # Strip MF so we end up with the name of the file.
13725 mf
=`echo "$mf" | sed -e 's/:.*$//'`
13726 # Check whether this is an Automake generated Makefile or not.
13727 # We used to match only the files named `Makefile.in', but
13728 # some people rename them; so instead we look at the file content.
13729 # Grep'ing the first line is not enough: some people post-process
13730 # each Makefile.in and add a new line on top of each file to say so.
13731 # Grep'ing the whole file is not good either: AIX grep has a line
13732 # limit of 2048, but all sed's we know have understand at least 4000.
13733 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
13734 dirpart
=`$as_dirname -- "$mf" ||
13735 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13736 X"$mf" : 'X\(//\)[^/]' \| \
13737 X"$mf" : 'X\(//\)$' \| \
13738 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13744 /^X\(\/\/\)[^/].*/{
13760 # Extract the definition of DEPDIR, am__include, and am__quote
13761 # from the Makefile without running `make'.
13762 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
13763 test -z "$DEPDIR" && continue
13764 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
13765 test -z "am__include" && continue
13766 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
13767 # When using ansi2knr, U may be empty or an underscore; expand it
13768 U
=`sed -n 's/^U = //p' < "$mf"`
13769 # Find all dependency output files, they are included files with
13770 # $(DEPDIR) in their names. We invoke sed twice because it is the
13771 # simplest approach to changing $(DEPDIR) to its actual value in the
13773 for file in `sed -n "
13774 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13775 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13776 # Make sure the directory exists.
13777 test -f "$dirpart/$file" && continue
13778 fdir
=`$as_dirname -- "$file" ||
13779 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13780 X"$file" : 'X\(//\)[^/]' \| \
13781 X"$file" : 'X\(//\)$' \| \
13782 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13783 $as_echo X"$file" |
13784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13788 /^X\(\/\/\)[^/].*/{
13801 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
13802 # echo "creating $dirpart/$file"
13803 echo '# dummy' > "$dirpart/$file"
13810 # See if we are running on zsh, and set the options which allow our
13811 # commands through without removal of \ escapes.
13812 if test -n "${ZSH_VERSION+set}" ; then
13813 setopt NO_GLOB_SUBST
13816 cfgfile
="${ofile}T"
13817 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13820 cat <<_LT_EOF >> "$cfgfile"
13823 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13824 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13825 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13826 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13828 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13829 # 2006, 2007, 2008 Free Software Foundation, Inc.
13830 # Written by Gordon Matzigkeit, 1996
13832 # This file is part of GNU Libtool.
13834 # GNU Libtool is free software; you can redistribute it and/or
13835 # modify it under the terms of the GNU General Public License as
13836 # published by the Free Software Foundation; either version 2 of
13837 # the License, or (at your option) any later version.
13839 # As a special exception to the GNU General Public License,
13840 # if you distribute this file as part of a program or library that
13841 # is built using GNU Libtool, you may include this file under the
13842 # same distribution terms that you use for the rest of that program.
13844 # GNU Libtool is distributed in the hope that it will be useful,
13845 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13846 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13847 # GNU General Public License for more details.
13849 # You should have received a copy of the GNU General Public License
13850 # along with GNU Libtool; see the file COPYING. If not, a copy
13851 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13852 # obtained by writing to the Free Software Foundation, Inc.,
13853 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13856 # The names of the tagged configurations supported by this script.
13859 # ### BEGIN LIBTOOL CONFIG
13861 # Which release of libtool.m4 was used?
13862 macro_version=$macro_version
13863 macro_revision=$macro_revision
13865 # Whether or not to build shared libraries.
13866 build_libtool_libs=$enable_shared
13868 # Whether or not to build static libraries.
13869 build_old_libs=$enable_static
13871 # What type of objects to build.
13874 # Whether or not to optimize for fast installation.
13875 fast_install=$enable_fast_install
13878 host_alias=$host_alias
13882 # The build system.
13883 build_alias=$build_alias
13887 # A sed program that does not truncate output.
13890 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13891 Xsed="\$SED -e 1s/^X//"
13893 # A grep program that handles long lines.
13899 # A literal string matcher.
13902 # A BSD- or MS-compatible name lister.
13905 # Whether we need soft or hard links.
13908 # What is the maximum length of a command?
13909 max_cmd_len=$max_cmd_len
13911 # Object file suffix (normally "o").
13914 # Executable file suffix (normally "").
13917 # whether the shell understands "unset".
13920 # turn spaces into newlines.
13923 # turn newlines into spaces.
13926 # How to create reloadable object files.
13927 reload_flag=$lt_reload_flag
13928 reload_cmds=$lt_reload_cmds
13930 # An object symbol dumper.
13931 OBJDUMP=$lt_OBJDUMP
13933 # Method to check whether dependent libraries are shared objects.
13934 deplibs_check_method=$lt_deplibs_check_method
13936 # Command to use when deplibs_check_method == "file_magic".
13937 file_magic_cmd=$lt_file_magic_cmd
13941 AR_FLAGS=$lt_AR_FLAGS
13943 # A symbol stripping program.
13946 # Commands used to install an old-style archive.
13948 old_postinstall_cmds=$lt_old_postinstall_cmds
13949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13954 # LTCC compiler flags.
13955 LTCFLAGS=$lt_CFLAGS
13957 # Take the output of nm and produce a listing of raw symbols and C names.
13958 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13960 # Transform the output of nm in a proper C declaration.
13961 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13963 # Transform the output of nm in a C name address pair.
13964 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13966 # Transform the output of nm in a C name address pair when lib prefix is needed.
13967 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13969 # The name of the directory that contains temporary libtool files.
13972 # Shell to use when invoking shell scripts.
13975 # An echo program that does not interpret backslashes.
13978 # Used to examine libraries when file_magic_cmd begins with "file".
13979 MAGIC_CMD=$MAGIC_CMD
13981 # Must we lock files when doing compilation?
13982 need_locks=$lt_need_locks
13984 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13985 DSYMUTIL=$lt_DSYMUTIL
13987 # Tool to change global to local symbols on Mac OS X.
13990 # Tool to manipulate fat objects and archives on Mac OS X.
13993 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13996 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13997 OTOOL64=$lt_OTOOL64
13999 # Old archive suffix (normally "a").
14002 # Shared library suffix (normally ".so").
14003 shrext_cmds=$lt_shrext_cmds
14005 # The commands to extract the exported symbol list from a shared archive.
14006 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14008 # Variables whose values should be saved in libtool wrapper scripts and
14009 # restored at link time.
14010 variables_saved_for_relink=$lt_variables_saved_for_relink
14012 # Do we need the "lib" prefix for modules?
14013 need_lib_prefix=$need_lib_prefix
14015 # Do we need a version for libraries?
14016 need_version=$need_version
14018 # Library versioning type.
14019 version_type=$version_type
14021 # Shared library runtime path variable.
14022 runpath_var=$runpath_var
14024 # Shared library path variable.
14025 shlibpath_var=$shlibpath_var
14027 # Is shlibpath searched before the hard-coded library search path?
14028 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14030 # Format of library name prefix.
14031 libname_spec=$lt_libname_spec
14033 # List of archive names. First name is the real one, the rest are links.
14034 # The last name is the one that the linker finds with -lNAME
14035 library_names_spec=$lt_library_names_spec
14037 # The coded name of the library, if different from the real name.
14038 soname_spec=$lt_soname_spec
14040 # Command to use after installation of a shared archive.
14041 postinstall_cmds=$lt_postinstall_cmds
14043 # Command to use after uninstallation of a shared archive.
14044 postuninstall_cmds=$lt_postuninstall_cmds
14046 # Commands used to finish a libtool library installation in a directory.
14047 finish_cmds=$lt_finish_cmds
14049 # As "finish_cmds", except a single script fragment to be evaled but
14051 finish_eval=$lt_finish_eval
14053 # Whether we should hardcode library paths into libraries.
14054 hardcode_into_libs=$hardcode_into_libs
14056 # Compile-time system search path for libraries.
14057 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14059 # Run-time system search path for libraries.
14060 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14062 # Whether dlopen is supported.
14063 dlopen_support=$enable_dlopen
14065 # Whether dlopen of programs is supported.
14066 dlopen_self=$enable_dlopen_self
14068 # Whether dlopen of statically linked programs is supported.
14069 dlopen_self_static=$enable_dlopen_self_static
14071 # Commands to strip libraries.
14072 old_striplib=$lt_old_striplib
14073 striplib=$lt_striplib
14076 # The linker used to build libraries.
14079 # Commands used to build an old-style archive.
14080 old_archive_cmds=$lt_old_archive_cmds
14082 # A language specific compiler.
14085 # Is the compiler the GNU compiler?
14088 # Compiler flag to turn off builtin functions.
14089 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14091 # How to pass a linker flag through the compiler.
14092 wl=$lt_lt_prog_compiler_wl
14094 # Additional compiler flags for building library objects.
14095 pic_flag=$lt_lt_prog_compiler_pic
14097 # Compiler flag to prevent dynamic linking.
14098 link_static_flag=$lt_lt_prog_compiler_static
14100 # Does compiler simultaneously support -c and -o options?
14101 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14103 # Whether or not to add -lc for building shared libraries.
14104 build_libtool_need_lc=$archive_cmds_need_lc
14106 # Whether or not to disallow shared libs when runtime libs are static.
14107 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14109 # Compiler flag to allow reflexive dlopens.
14110 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14112 # Compiler flag to generate shared objects directly from archives.
14113 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14115 # Whether the compiler copes with passing no objects directly.
14116 compiler_needs_object=$lt_compiler_needs_object
14118 # Create an old-style archive from a shared archive.
14119 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14121 # Create a temporary old-style archive to link instead of a shared archive.
14122 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14124 # Commands used to build a shared archive.
14125 archive_cmds=$lt_archive_cmds
14126 archive_expsym_cmds=$lt_archive_expsym_cmds
14128 # Commands used to build a loadable module if different from building
14129 # a shared archive.
14130 module_cmds=$lt_module_cmds
14131 module_expsym_cmds=$lt_module_expsym_cmds
14133 # Whether we are building with GNU ld or not.
14134 with_gnu_ld=$lt_with_gnu_ld
14136 # Flag that allows shared libraries with undefined symbols to be built.
14137 allow_undefined_flag=$lt_allow_undefined_flag
14139 # Flag that enforces no undefined symbols.
14140 no_undefined_flag=$lt_no_undefined_flag
14142 # Flag to hardcode \$libdir into a binary during linking.
14143 # This must work even if \$libdir does not exist
14144 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14146 # If ld is used when linking, flag to hardcode \$libdir into a binary
14147 # during linking. This must work even if \$libdir does not exist.
14148 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14150 # Whether we need a single "-rpath" flag with a separated argument.
14151 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14153 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14154 # DIR into the resulting binary.
14155 hardcode_direct=$hardcode_direct
14157 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14158 # DIR into the resulting binary and the resulting library dependency is
14159 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14160 # library is relocated.
14161 hardcode_direct_absolute=$hardcode_direct_absolute
14163 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14164 # into the resulting binary.
14165 hardcode_minus_L=$hardcode_minus_L
14167 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14168 # into the resulting binary.
14169 hardcode_shlibpath_var=$hardcode_shlibpath_var
14171 # Set to "yes" if building a shared library automatically hardcodes DIR
14172 # into the library and all subsequent libraries and executables linked
14174 hardcode_automatic=$hardcode_automatic
14176 # Set to yes if linker adds runtime paths of dependent libraries
14177 # to runtime path list.
14178 inherit_rpath=$inherit_rpath
14180 # Whether libtool must link a program against all its dependency libraries.
14181 link_all_deplibs=$link_all_deplibs
14183 # Fix the shell variable \$srcfile for the compiler.
14184 fix_srcfile_path=$lt_fix_srcfile_path
14186 # Set to "yes" if exported symbols are required.
14187 always_export_symbols=$always_export_symbols
14189 # The commands to list exported symbols.
14190 export_symbols_cmds=$lt_export_symbols_cmds
14192 # Symbols that should not be listed in the preloaded symbols.
14193 exclude_expsyms=$lt_exclude_expsyms
14195 # Symbols that must always be exported.
14196 include_expsyms=$lt_include_expsyms
14198 # Commands necessary for linking programs (against libraries) with templates.
14199 prelink_cmds=$lt_prelink_cmds
14201 # Specify filename containing input files.
14202 file_list_spec=$lt_file_list_spec
14204 # How to hardcode a shared library path into an executable.
14205 hardcode_action=$hardcode_action
14207 # ### END LIBTOOL CONFIG
14213 cat <<\_LT_EOF
>> "$cfgfile"
14214 # AIX sometimes has problems with the GCC collect2 program. For some
14215 # reason, if we set the COLLECT_NAMES environment variable, the problems
14216 # vanish in a puff of smoke.
14217 if test "X${COLLECT_NAMES+set}" != Xset
; then
14219 export COLLECT_NAMES
14226 ltmain
="$ac_aux_dir/ltmain.sh"
14229 # We use sed instead of cat because bash on DJGPP gets confused if
14230 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14231 # text mode, it properly converts lines to CR/LF. This bash problem
14232 # is reportedly fixed, but why not run on old versions too?
14233 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14234 ||
(rm -f "$cfgfile"; exit 1)
14238 cat << \_LT_EOF
>> "$cfgfile"
14240 # func_dirname file append nondir_replacement
14241 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14242 # otherwise set result to NONDIR_REPLACEMENT.
14246 */*) func_dirname_result
="${1%/*}${2}" ;;
14247 * ) func_dirname_result
="${3}" ;;
14251 # func_basename file
14254 func_basename_result
="${1##*/}"
14257 # func_dirname_and_basename file append nondir_replacement
14258 # perform func_basename and func_dirname in a single function
14260 # dirname: Compute the dirname of FILE. If nonempty,
14261 # add APPEND to the result, otherwise set result
14262 # to NONDIR_REPLACEMENT.
14263 # value returned in "$func_dirname_result"
14264 # basename: Compute filename of FILE.
14265 # value retuned in "$func_basename_result"
14266 # Implementation must be kept synchronized with func_dirname
14267 # and func_basename. For efficiency, we do not delegate to
14268 # those functions but instead duplicate the functionality here.
14269 func_dirname_and_basename
()
14272 */*) func_dirname_result
="${1%/*}${2}" ;;
14273 * ) func_dirname_result
="${3}" ;;
14275 func_basename_result
="${1##*/}"
14278 # func_stripname prefix suffix name
14279 # strip PREFIX and SUFFIX off of NAME.
14280 # PREFIX and SUFFIX must not contain globbing or regex special
14281 # characters, hashes, percent signs, but SUFFIX may contain a leading
14282 # dot (in which case that matches only a dot).
14285 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14286 # positional parameters, so assign one to ordinary parameter first.
14287 func_stripname_result
=${3}
14288 func_stripname_result
=${func_stripname_result#"${1}"}
14289 func_stripname_result
=${func_stripname_result%"${2}"}
14295 func_opt_split_opt
=${1%%=*}
14296 func_opt_split_arg
=${1#*=}
14303 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
14304 *) func_lo2o_result
=${1} ;;
14308 # func_xform libobj-or-source
14311 func_xform_result
=${1%.*}.lo
14314 # func_arith arithmetic-term...
14317 func_arith_result
=$
(( $
* ))
14321 # STRING may not start with a hyphen.
14324 func_len_result
=${#1}
14329 *) # Bourne compatible functions.
14330 cat << \_LT_EOF
>> "$cfgfile"
14332 # func_dirname file append nondir_replacement
14333 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14334 # otherwise set result to NONDIR_REPLACEMENT.
14337 # Extract subdirectory from the argument.
14338 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14339 if test "X$func_dirname_result" = "X${1}"; then
14340 func_dirname_result
="${3}"
14342 func_dirname_result
="$func_dirname_result${2}"
14346 # func_basename file
14349 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
14353 # func_stripname prefix suffix name
14354 # strip PREFIX and SUFFIX off of NAME.
14355 # PREFIX and SUFFIX must not contain globbing or regex special
14356 # characters, hashes, percent signs, but SUFFIX may contain a leading
14357 # dot (in which case that matches only a dot).
14358 # func_strip_suffix prefix name
14362 .
*) func_stripname_result
=`$ECHO "X${3}" \
14363 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14364 *) func_stripname_result
=`$ECHO "X${3}" \
14365 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14370 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
14371 my_sed_long_arg
='1s/^-[^=]*=//'
14376 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14377 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14383 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14386 # func_xform libobj-or-source
14389 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14392 # func_arith arithmetic-term...
14395 func_arith_result
=`expr "$@"`
14399 # STRING may not start with a hyphen.
14402 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14408 case $lt_shell_append in
14410 cat << \_LT_EOF
>> "$cfgfile"
14412 # func_append var value
14413 # Append VALUE to the end of shell variable VAR.
14421 cat << \_LT_EOF
>> "$cfgfile"
14423 # func_append var value
14424 # Append VALUE to the end of shell variable VAR.
14435 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14436 ||
(rm -f "$cfgfile"; exit 1)
14438 mv -f "$cfgfile" "$ofile" ||
14439 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14450 ac_clean_files
=$ac_clean_files_save
14452 test $ac_write_fail = 0 ||
14453 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
14456 # configure is writing to config.log, and then calls config.status.
14457 # config.status does its own redirection, appending to config.log.
14458 # Unfortunately, on DOS this fails, as config.log is still kept open
14459 # by configure, so config.status won't be able to write to it; its
14460 # output is simply discarded. So we exec the FD to /dev/null,
14461 # effectively closing config.log, so it can be properly (re)opened and
14462 # appended to by config.status. When coming back to configure, we
14463 # need to make the FD available again.
14464 if test "$no_create" != yes; then
14466 ac_config_status_args
=
14467 test "$silent" = yes &&
14468 ac_config_status_args
="$ac_config_status_args --quiet"
14470 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14472 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14473 # would make configure fail if this is the last instruction.
14474 $ac_cs_success || as_fn_exit $?
14476 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14478 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}