2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for util-linux 2.20.1.
5 # Report bugs to <kzak@redhat.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and kzak@redhat.com
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='util-linux'
572 PACKAGE_TARNAME='util-linux'
573 PACKAGE_VERSION='2.20.1'
574 PACKAGE_STRING='util-linux 2.20.1'
575 PACKAGE_BUGREPORT='kzak@redhat.com'
578 ac_unique_file="mount/mount.c"
579 ac_default_prefix=/usr
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_subst_vars='am__EXEEXT_FALSE
622 MAKEINSTALL_DO_SETUID_FALSE
623 MAKEINSTALL_DO_SETUID_TRUE
624 MAKEINSTALL_DO_CHOWN_FALSE
625 MAKEINSTALL_DO_CHOWN_TRUE
632 BUILD_SCHEDUTILS_FALSE
633 BUILD_SCHEDUTILS_TRUE
642 BUILD_LOGIN_UTILS_FALSE
643 BUILD_LOGIN_UTILS_TRUE
662 BUILD_FALLOCATE_FALSE
664 BUILD_PIVOT_ROOT_FALSE
665 BUILD_PIVOT_ROOT_TRUE
666 BUILD_SWITCH_ROOT_FALSE
667 BUILD_SWITCH_ROOT_TRUE
702 HAVE_IOPRIO_GET_FALSE
704 HAVE_IOPRIO_SET_FALSE
706 HAVE_SCHED_GETAFFINITY_FALSE
707 HAVE_SCHED_GETAFFINITY_TRUE
708 HAVE_PIVOT_ROOT_FALSE
737 BUILD_MOUNTPOINT_FALSE
738 BUILD_MOUNTPOINT_TRUE
739 BUILD_LIBMOUNT_MOUNT_FALSE
740 BUILD_LIBMOUNT_MOUNT_TRUE
743 LIBMOUNT_VERSION_INFO
747 LIBBLKID_VERSION_INFO
762 HAVE_STATIC_BLKID_FALSE
763 HAVE_STATIC_BLKID_TRUE
764 HAVE_STATIC_SFDISK_FALSE
765 HAVE_STATIC_SFDISK_TRUE
766 HAVE_STATIC_FDISK_FALSE
767 HAVE_STATIC_FDISK_TRUE
768 HAVE_STATIC_UMOUNT_FALSE
769 HAVE_STATIC_UMOUNT_TRUE
770 HAVE_STATIC_MOUNT_FALSE
771 HAVE_STATIC_MOUNT_TRUE
772 HAVE_STATIC_LOSETUP_FALSE
773 HAVE_STATIC_LOSETUP_TRUE
785 GTK_DOC_USE_LIBTOOL_FALSE
786 GTK_DOC_USE_LIBTOOL_TRUE
854 INSTALL_STRIP_PROGRAM
896 program_transform_name
909 enable_option_checking
911 enable_dependency_tracking
922 enable_static_programs
931 enable_libmount_mount
963 enable_chsh_only_listed
964 enable_login_chown_vcs
965 enable_login_stat_mail
967 enable_require_password
968 enable_fs_paths_default
969 enable_fs_paths_extra
971 enable_makeinstall_chown
972 enable_makeinstall_setuid
974 ac_precious_vars='build_alias
990 # Initialize some variables set by options.
992 ac_init_version=false
993 ac_unrecognized_opts=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
1004 program_transform_name=s,x,x,
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir='${exec_prefix}/bin'
1019 sbindir='${exec_prefix}/sbin'
1020 libexecdir='${exec_prefix}/libexec'
1021 datarootdir='${prefix}/share'
1022 datadir='${datarootdir}'
1023 sysconfdir='${prefix}/etc'
1024 sharedstatedir='${prefix}/com'
1025 localstatedir='${prefix}/var'
1026 includedir='${prefix}/include'
1027 oldincludedir='/usr/include'
1028 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1029 infodir='${datarootdir}/info'
1034 libdir='${exec_prefix}/lib'
1035 localedir='${datarootdir}/locale'
1036 mandir='${datarootdir}/man'
1042 # If the previous option needs an argument, assign it.
1043 if test -n "$ac_prev"; then
1044 eval $ac_prev=\$ac_option
1050 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055 # Accept the important Cygnus configure options, so we can diagnose typos.
1057 case $ac_dashdash$ac_option in
1061 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1063 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1064 bindir=$ac_optarg ;;
1066 -build | --build | --buil | --bui | --bu)
1067 ac_prev=build_alias ;;
1068 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1069 build_alias=$ac_optarg ;;
1071 -cache-file | --cache-file | --cache-fil | --cache-fi \
1072 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1073 ac_prev=cache_file ;;
1074 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1075 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1076 cache_file=$ac_optarg ;;
1078 --config-cache | -C)
1079 cache_file=config.cache ;;
1081 -datadir | --datadir | --datadi | --datad)
1083 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1084 datadir=$ac_optarg ;;
1086 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1087 | --dataroo | --dataro | --datar)
1088 ac_prev=datarootdir ;;
1089 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1090 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1091 datarootdir=$ac_optarg ;;
1093 -disable-* | --disable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid feature name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "enable_$ac_useropt"
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1107 eval enable_$ac_useropt=no ;;
1109 -docdir | --docdir | --docdi | --doc | --do)
1111 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1112 docdir=$ac_optarg ;;
1114 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1116 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1117 dvidir=$ac_optarg ;;
1119 -enable-* | --enable-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid feature name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1128 "enable_$ac_useropt"
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1133 eval enable_$ac_useropt=\$ac_optarg ;;
1135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1137 | --exec | --exe | --ex)
1138 ac_prev=exec_prefix ;;
1139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1141 | --exec=* | --exe=* | --ex=*)
1142 exec_prefix=$ac_optarg ;;
1144 -gas | --gas | --ga | --g)
1145 # Obsolete; use --with-gas.
1148 -help | --help | --hel | --he | -h)
1149 ac_init_help=long ;;
1150 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1151 ac_init_help=recursive ;;
1152 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1153 ac_init_help=short ;;
1155 -host | --host | --hos | --ho)
1156 ac_prev=host_alias ;;
1157 -host=* | --host=* | --hos=* | --ho=*)
1158 host_alias=$ac_optarg ;;
1160 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1162 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1164 htmldir=$ac_optarg ;;
1166 -includedir | --includedir | --includedi | --included | --include \
1167 | --includ | --inclu | --incl | --inc)
1168 ac_prev=includedir ;;
1169 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1170 | --includ=* | --inclu=* | --incl=* | --inc=*)
1171 includedir=$ac_optarg ;;
1173 -infodir | --infodir | --infodi | --infod | --info | --inf)
1175 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1176 infodir=$ac_optarg ;;
1178 -libdir | --libdir | --libdi | --libd)
1180 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1181 libdir=$ac_optarg ;;
1183 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1184 | --libexe | --libex | --libe)
1185 ac_prev=libexecdir ;;
1186 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1187 | --libexe=* | --libex=* | --libe=*)
1188 libexecdir=$ac_optarg ;;
1190 -localedir | --localedir | --localedi | --localed | --locale)
1191 ac_prev=localedir ;;
1192 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1193 localedir=$ac_optarg ;;
1195 -localstatedir | --localstatedir | --localstatedi | --localstated \
1196 | --localstate | --localstat | --localsta | --localst | --locals)
1197 ac_prev=localstatedir ;;
1198 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1199 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1200 localstatedir=$ac_optarg ;;
1202 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1204 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1205 mandir=$ac_optarg ;;
1207 -nfp | --nfp | --nf)
1208 # Obsolete; use --without-fp.
1211 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1212 | --no-cr | --no-c | -n)
1215 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1216 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1219 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1220 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1221 | --oldin | --oldi | --old | --ol | --o)
1222 ac_prev=oldincludedir ;;
1223 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1224 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1225 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1226 oldincludedir=$ac_optarg ;;
1228 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1230 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1231 prefix=$ac_optarg ;;
1233 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1234 | --program-pre | --program-pr | --program-p)
1235 ac_prev=program_prefix ;;
1236 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1237 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1238 program_prefix=$ac_optarg ;;
1240 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1241 | --program-suf | --program-su | --program-s)
1242 ac_prev=program_suffix ;;
1243 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1244 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1245 program_suffix=$ac_optarg ;;
1247 -program-transform-name | --program-transform-name \
1248 | --program-transform-nam | --program-transform-na \
1249 | --program-transform-n | --program-transform- \
1250 | --program-transform | --program-transfor \
1251 | --program-transfo | --program-transf \
1252 | --program-trans | --program-tran \
1253 | --progr-tra | --program-tr | --program-t)
1254 ac_prev=program_transform_name ;;
1255 -program-transform-name=* | --program-transform-name=* \
1256 | --program-transform-nam=* | --program-transform-na=* \
1257 | --program-transform-n=* | --program-transform-=* \
1258 | --program-transform=* | --program-transfor=* \
1259 | --program-transfo=* | --program-transf=* \
1260 | --program-trans=* | --program-tran=* \
1261 | --progr-tra=* | --program-tr=* | --program-t=*)
1262 program_transform_name=$ac_optarg ;;
1264 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1266 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1267 pdfdir=$ac_optarg ;;
1269 -psdir | --psdir | --psdi | --psd | --ps)
1271 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1275 | -silent | --silent | --silen | --sile | --sil)
1278 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1280 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1282 sbindir=$ac_optarg ;;
1284 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1285 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1286 | --sharedst | --shareds | --shared | --share | --shar \
1288 ac_prev=sharedstatedir ;;
1289 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1290 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1291 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1293 sharedstatedir=$ac_optarg ;;
1295 -site | --site | --sit)
1297 -site=* | --site=* | --sit=*)
1300 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1302 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1303 srcdir=$ac_optarg ;;
1305 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1306 | --syscon | --sysco | --sysc | --sys | --sy)
1307 ac_prev=sysconfdir ;;
1308 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1309 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1310 sysconfdir=$ac_optarg ;;
1312 -target | --target | --targe | --targ | --tar | --ta | --t)
1313 ac_prev=target_alias ;;
1314 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1315 target_alias=$ac_optarg ;;
1317 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1320 -version | --version | --versio | --versi | --vers | -V)
1321 ac_init_version=: ;;
1324 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327 as_fn_error $? "invalid package name: $ac_useropt"
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1337 eval with_$ac_useropt=\$ac_optarg ;;
1339 -without-* | --without-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343 as_fn_error $? "invalid package name: $ac_useropt"
1344 ac_useropt_orig=$ac_useropt
1345 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1346 case $ac_user_opts in
1350 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1351 ac_unrecognized_sep=', ';;
1353 eval with_$ac_useropt=no ;;
1356 # Obsolete; use --with-x.
1359 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1360 | --x-incl | --x-inc | --x-in | --x-i)
1361 ac_prev=x_includes ;;
1362 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1363 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1364 x_includes=$ac_optarg ;;
1366 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1367 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1368 ac_prev=x_libraries ;;
1369 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1370 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1371 x_libraries=$ac_optarg ;;
1373 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1374 Try \`$0 --help' for more information"
1378 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1379 # Reject names that are not valid shell variable names.
1380 case $ac_envvar in #(
1381 '' | [0-9]* | *[!_$as_cr_alnum]* )
1382 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1384 eval $ac_envvar=\$ac_optarg
1385 export $ac_envvar ;;
1388 # FIXME: should be removed in autoconf 3.0.
1389 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1390 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1392 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1398 if test -n "$ac_prev"; then
1399 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1400 as_fn_error $? "missing argument to $ac_option"
1403 if test -n "$ac_unrecognized_opts"; then
1404 case $enable_option_checking in
1406 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1407 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1411 # Check all directory arguments for consistency.
1412 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1413 datadir sysconfdir sharedstatedir localstatedir includedir \
1414 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1415 libdir localedir mandir
1417 eval ac_val=\$$ac_var
1418 # Remove trailing slashes.
1421 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1422 eval $ac_var=\$ac_val;;
1424 # Be sure to have absolute directory names.
1426 [\\/$]* | ?:[\\/]* ) continue;;
1427 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1429 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1432 # There might be people who depend on the old broken behavior: `$host'
1433 # used to hold the argument of --host etc.
1434 # FIXME: To remove some day.
1437 target=$target_alias
1439 # FIXME: To remove some day.
1440 if test "x$host_alias" != x; then
1441 if test "x$build_alias" = x; then
1442 cross_compiling=maybe
1443 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1444 If a cross compiler is detected then cross compile mode will be used" >&2
1445 elif test "x$build_alias" != "x$host_alias"; then
1451 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1453 test "$silent" = yes && exec 6>/dev/null
1456 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1457 ac_ls_di=`ls -di .` &&
1458 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1459 as_fn_error $? "working directory cannot be determined"
1460 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1461 as_fn_error $? "pwd does not report name of working directory"
1464 # Find the source files, if location was not specified.
1465 if test -z "$srcdir"; then
1466 ac_srcdir_defaulted=yes
1467 # Try the directory containing this script, then the parent directory.
1468 ac_confdir=`$as_dirname -- "$as_myself" ||
1469 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1470 X"$as_myself" : 'X\(//\)[^/]' \| \
1471 X"$as_myself" : 'X\(//\)$' \| \
1472 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1473 $as_echo X"$as_myself" |
1474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1496 ac_srcdir_defaulted=no
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1499 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1500 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1502 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1504 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1506 # When building in place, set srcdir=.
1507 if test "$ac_abs_confdir" = "$ac_pwd"; then
1510 # Remove unnecessary trailing slashes from srcdir.
1511 # Double slashes in file names in object file debugging info
1512 # mess up M-x gdb in Emacs.
1514 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1516 for ac_var in $ac_precious_vars; do
1517 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1518 eval ac_env_${ac_var}_value=\$${ac_var}
1519 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1524 # Report the --help message.
1526 if test "$ac_init_help" = "long"; then
1527 # Omit some internal or obsolete options to make the list less imposing.
1528 # This message is too long to be a string in the A/UX 3.1 sh.
1530 \`configure' configures util-linux 2.20.1 to adapt to many kinds of systems.
1532 Usage: $0 [OPTION]... [VAR=VALUE]...
1534 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1535 VAR=VALUE. See below for descriptions of some of the useful variables.
1537 Defaults for the options are specified in brackets.
1540 -h, --help display this help and exit
1541 --help=short display options specific to this package
1542 --help=recursive display the short help of all the included packages
1543 -V, --version display version information and exit
1544 -q, --quiet, --silent do not print \`checking ...' messages
1545 --cache-file=FILE cache test results in FILE [disabled]
1546 -C, --config-cache alias for \`--cache-file=config.cache'
1547 -n, --no-create do not create output files
1548 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1550 Installation directories:
1551 --prefix=PREFIX install architecture-independent files in PREFIX
1552 [$ac_default_prefix]
1553 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1556 By default, \`make install' will install all the files in
1557 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1558 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1559 for instance \`--prefix=\$HOME'.
1561 For better control, use the options below.
1563 Fine tuning of the installation directories:
1564 --bindir=DIR user executables [EPREFIX/bin]
1565 --sbindir=DIR system admin executables [EPREFIX/sbin]
1566 --libexecdir=DIR program executables [EPREFIX/libexec]
1567 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1568 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1569 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1570 --libdir=DIR object code libraries [EPREFIX/lib]
1571 --includedir=DIR C header files [PREFIX/include]
1572 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1573 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1574 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1575 --infodir=DIR info documentation [DATAROOTDIR/info]
1576 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1577 --mandir=DIR man documentation [DATAROOTDIR/man]
1578 --docdir=DIR documentation root [DATAROOTDIR/doc/util-linux]
1579 --htmldir=DIR html documentation [DOCDIR]
1580 --dvidir=DIR dvi documentation [DOCDIR]
1581 --pdfdir=DIR pdf documentation [DOCDIR]
1582 --psdir=DIR ps documentation [DOCDIR]
1588 --program-prefix=PREFIX prepend PREFIX to installed program names
1589 --program-suffix=SUFFIX append SUFFIX to installed program names
1590 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1593 --build=BUILD configure for building on BUILD [guessed]
1594 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1598 if test -n "$ac_init_help"; then
1599 case $ac_init_help in
1600 short | recursive ) echo "Configuration of util-linux 2.20.1:";;
1605 --disable-option-checking ignore unrecognized --enable/--with options
1606 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1607 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1608 --enable-silent-rules less verbose build output (undo: `make V=1')
1609 --disable-silent-rules verbose build output (undo: `make V=0')
1610 --disable-dependency-tracking speeds up one-time build
1611 --enable-dependency-tracking do not reject slow dependency extractors
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-static[=PKGS] build static libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-libtool-lock avoid locking (might break parallel builds)
1617 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1618 --disable-largefile omit support for large files
1619 --enable-static-programs=LIST
1620 link static the programs in LIST (comma-separated,
1621 supported for losetup, mount, umount, fdisk, sfdisk,
1623 --disable-tls disable use of thread local support
1624 --disable-mount do not build mount utilities
1625 --disable-fsck do not build fsck
1626 --disable-partx do not build addpart, delpart, partx
1627 --disable-libuuid do not build libuuid and uuid utilities
1628 --disable-uuidd do not build the uuid daemon
1629 --disable-libblkid do not build libblkid and blkid utilities
1630 --disable-libmount do not build libmount
1631 --enable-libmount-mount link mount(8) with libmount (EXPERIMENTAL)
1632 --disable-mountpoint do not build mountpoint
1633 --disable-nls do not use Native Language Support
1634 --disable-rpath do not hardcode runtime library paths
1635 --enable-arch do build arch
1636 --enable-ddate do build ddate
1637 --disable-agetty do not build agetty
1638 --disable-cramfs do not build fsck.cramfs, mkfs.cramfs
1639 --disable-switch_root do not build switch_root
1640 --disable-pivot_root do not build pivot_root
1641 --disable-fallocate do not build fallocate
1642 --disable-unshare do not build unshare
1643 --enable-elvtune build elvtune (only works with 2.2 and 2.4 kernels)
1644 --enable-kill build kill
1645 --enable-last build last
1646 --enable-line build line
1647 --enable-mesg build mesg
1648 --enable-raw build raw
1649 --disable-rename do not build rename
1650 --enable-reset build reset
1651 --enable-login-utils build chfn, chsh, login, newgrp, vipw
1652 --disable-schedutils do not build chrt, ionice, teskset
1653 --disable-wall do not build wall
1654 --enable-write build write
1655 --disable-chsh-only-listed
1656 chsh: allow shells not in /etc/shells
1657 --enable-login-chown-vcs
1658 let login chown /dev/vcsN
1659 --enable-login-stat-mail
1660 let login stat() the mailbox
1661 --disable-pg-bell let pg not ring the bell on invalid keys
1662 --disable-require-password
1663 do not require the user to enter the password in
1665 --enable-fs-paths-default=paths
1666 default search path for fs helpers
1667 [/sbin:/sbin/fs.d:/sbin/fs]
1668 --enable-fs-paths-extra=paths
1669 additional search paths for fs helpers
1670 --disable-use-tty-group do not install wall and write setgid tty
1671 --disable-makeinstall-chown
1672 do not do chown-like operations during "make
1674 --disable-makeinstall-setuid
1675 do not do setuid chmod operations during "make
1679 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1680 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1681 --with-pic try to use only PIC/non-PIC objects [default=use
1683 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1684 --with-sysroot=DIR Search for dependent libraries within DIR
1685 (or the compiler's sysroot if not specified).
1686 --with-html-dir=PATH path to installed docs
1687 --with-gnu-ld assume the C compiler uses GNU ld default=no
1688 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1689 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1690 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1691 --without-libintl-prefix don't search for libintl in includedir and libdir
1692 --with-ncurses build with non-wide ncurses, default is wide version
1693 (--without-ncurses disables all ncurses(w) support)
1694 --with-slang compile cfdisk with slang
1695 --with-utempter compile script(1) with libutempter
1696 --without-pam compile login-utils without PAM support
1697 --with-selinux compile with SELinux support
1698 --with-audit compile with audit support
1700 Some influential environment variables:
1701 CC C compiler command
1702 CFLAGS C compiler flags
1703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1704 nonstandard directory <lib dir>
1705 LIBS libraries to pass to the linker, e.g. -l<library>
1706 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1707 you have headers in a nonstandard directory <include dir>
1709 PKG_CONFIG path to pkg-config utility
1711 directories to add to pkg-config's search path
1713 path overriding pkg-config's built-in search path
1714 SUID_CFLAGS CFLAGS used for binaries which are usually with the suid bit
1716 LDFLAGS used for binaries which are usually with the suid bit
1718 Use these variables to override the choices made by `configure' or to help
1719 it to find libraries and programs with nonstandard names/locations.
1721 Report bugs to <kzak@redhat.com>.
1726 if test "$ac_init_help" = "recursive"; then
1727 # If there are subdirs, report their specific --help.
1728 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1729 test -d "$ac_dir" ||
1730 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1738 # A ".." for each directory in $ac_dir_suffix.
1739 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1740 case $ac_top_builddir_sub in
1741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1745 ac_abs_top_builddir=$ac_pwd
1746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1747 # for backward compatibility:
1748 ac_top_builddir=$ac_top_build_prefix
1751 .) # We are building in place.
1753 ac_top_srcdir=$ac_top_builddir_sub
1754 ac_abs_top_srcdir=$ac_pwd ;;
1755 [\\/]* | ?:[\\/]* ) # Absolute name.
1756 ac_srcdir=$srcdir$ac_dir_suffix;
1757 ac_top_srcdir=$srcdir
1758 ac_abs_top_srcdir=$srcdir ;;
1760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1761 ac_top_srcdir=$ac_top_build_prefix$srcdir
1762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1766 cd "$ac_dir" || { ac_status=$?; continue; }
1767 # Check for guested configure.
1768 if test -f "$ac_srcdir/configure.gnu"; then
1770 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1771 elif test -f "$ac_srcdir/configure"; then
1773 $SHELL "$ac_srcdir/configure" --help=recursive
1775 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1777 cd "$ac_pwd" || { ac_status=$?; break; }
1781 test -n "$ac_init_help" && exit $ac_status
1782 if $ac_init_version; then
1784 util-linux configure 2.20.1
1785 generated by GNU Autoconf 2.68
1787 Copyright (C) 2010 Free Software Foundation, Inc.
1788 This configure script is free software; the Free Software Foundation
1789 gives unlimited permission to copy, distribute and modify it.
1794 ## ------------------------ ##
1795 ## Autoconf initialization. ##
1796 ## ------------------------ ##
1798 # ac_fn_c_try_compile LINENO
1799 # --------------------------
1800 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_compile ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 rm -f conftest.$ac_objext
1805 if { { ac_try="$ac_compile"
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_compile") 2>conftest.err
1814 if test -s conftest.err; then
1815 grep -v '^ *+' conftest.err >conftest.er1
1816 cat conftest.er1 >&5
1817 mv -f conftest.er1 conftest.err
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && {
1821 test -z "$ac_c_werror_flag" ||
1822 test ! -s conftest.err
1823 } && test -s conftest.$ac_objext; then :
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1834 } # ac_fn_c_try_compile
1836 # ac_fn_c_try_cpp LINENO
1837 # ----------------------
1838 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if { { ac_try="$ac_cpp conftest.$ac_ext"
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } > conftest.i && {
1858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1873 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876 # the include files in INCLUDES and setting the cache variable VAR
1878 ac_fn_c_check_header_mongrel ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if eval \${$3+:} false; then :
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1891 # Is the header compilable?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893 $as_echo_n "checking $2 usability... " >&6; }
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_header_compiler=yes
1902 ac_header_compiler=no
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906 $as_echo "$ac_header_compiler" >&6; }
1908 # Is the header present?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910 $as_echo_n "checking $2 presence... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1915 if ac_fn_c_try_cpp "$LINENO"; then :
1916 ac_header_preproc=yes
1918 ac_header_preproc=no
1920 rm -f conftest.err conftest.i conftest.$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922 $as_echo "$ac_header_preproc" >&6; }
1924 # So? What about this header?
1925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1936 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1940 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1943 ( $as_echo "## ------------------------------ ##
1944 ## Report this to kzak@redhat.com ##
1945 ## ------------------------------ ##"
1946 ) | sed "s/^/$as_me: WARNING: /" >&2
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1954 eval "$3=\$ac_header_compiler"
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 } # ac_fn_c_check_header_mongrel
1964 # ac_fn_c_try_run LINENO
1965 # ----------------------
1966 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1967 # that executables *can* be run.
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if { { ac_try="$ac_link"
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_link") 2>&5
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1982 { { case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_try") 2>&5
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; }; }; then :
1994 $as_echo "$as_me: program exited with status $ac_status" >&5
1995 $as_echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
1998 ac_retval=$ac_status
2000 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 as_fn_set_status $ac_retval
2006 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists and can be compiled using the include files in
2009 # INCLUDES, setting the cache variable VAR accordingly.
2010 ac_fn_c_check_header_compile ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2023 if ac_fn_c_try_compile "$LINENO"; then :
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 } # ac_fn_c_check_header_compile
2037 # ac_fn_c_try_link LINENO
2038 # -----------------------
2039 # Try to link conftest.$ac_ext, and return whether this succeeded.
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 rm -f conftest.$ac_objext conftest$ac_exeext
2044 if { { ac_try="$ac_link"
2046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2047 *) ac_try_echo=$ac_try;;
2049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2050 $as_echo "$ac_try_echo"; } >&5
2051 (eval "$ac_link") 2>conftest.err
2053 if test -s conftest.err; then
2054 grep -v '^ *+' conftest.err >conftest.er1
2055 cat conftest.er1 >&5
2056 mv -f conftest.er1 conftest.err
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; } && {
2060 test -z "$ac_c_werror_flag" ||
2061 test ! -s conftest.err
2062 } && test -s conftest$ac_exeext && {
2063 test "$cross_compiling" = yes ||
2064 $as_test_x conftest$ac_exeext
2068 $as_echo "$as_me: failed program was:" >&5
2069 sed 's/^/| /' conftest.$ac_ext >&5
2073 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2074 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2075 # interfere with the next link command; also delete a directory that is
2076 # left behind by Apple's compiler. We do this before executing the actions.
2077 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status $ac_retval
2081 } # ac_fn_c_try_link
2083 # ac_fn_c_check_func LINENO FUNC VAR
2084 # ----------------------------------
2085 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2086 ac_fn_c_check_func ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if eval \${$3+:} false; then :
2092 $as_echo_n "(cached) " >&6
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2098 #define $2 innocuous_$2
2100 /* System header to define __stub macros and hopefully few prototypes,
2101 which can conflict with char $2 (); below.
2102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2103 <limits.h> exists even on freestanding compilers. */
2106 # include <limits.h>
2108 # include <assert.h>
2113 /* Override any GCC internal prototype to avoid an error.
2114 Use char because int might match the return type of a GCC
2115 builtin and then its argument prototype would still apply. */
2120 /* The GNU C library defines this for functions which it implements
2121 to always fail with ENOSYS. Some functions are actually named
2122 something starting with __ and the normal name is an alias. */
2123 #if defined __stub_$2 || defined __stub___$2
2135 if ac_fn_c_try_link "$LINENO"; then :
2140 rm -f core conftest.err conftest.$ac_objext \
2141 conftest$ac_exeext conftest.$ac_ext
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148 } # ac_fn_c_check_func
2150 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2151 # ---------------------------------------------
2152 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2154 ac_fn_c_check_decl ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 as_decl_name=`echo $2|sed 's/ *(.*//'`
2158 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2160 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2170 #ifndef $as_decl_name
2172 (void) $as_decl_use;
2174 (void) $as_decl_name;
2182 if ac_fn_c_try_compile "$LINENO"; then :
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191 $as_echo "$ac_res" >&6; }
2192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194 } # ac_fn_c_check_decl
2196 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2197 # ----------------------------------------------------
2198 # Tries to find if the field MEMBER exists in type AGGR, after including
2199 # INCLUDES, setting cache variable VAR accordingly.
2200 ac_fn_c_check_member ()
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2204 $as_echo_n "checking for $2.$3... " >&6; }
2205 if eval \${$4+:} false; then :
2206 $as_echo_n "(cached) " >&6
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2221 if ac_fn_c_try_compile "$LINENO"; then :
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2231 if (sizeof ac_aggr.$3)
2237 if ac_fn_c_try_compile "$LINENO"; then :
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 } # ac_fn_c_check_member
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \${$3+:} false; then :
2263 $as_echo_n "(cached) " >&6
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2291 if ac_fn_c_try_compile "$LINENO"; then :
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2305 } # ac_fn_c_check_type
2306 cat >config.log <<_ACEOF
2307 This file contains any messages produced by compilers while
2308 running configure, to aid debugging if configure makes a mistake.
2310 It was created by util-linux $as_me 2.20.1, which was
2311 generated by GNU Autoconf 2.68. Invocation command line was
2323 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2324 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2325 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2326 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2327 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2329 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2330 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2332 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2333 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2334 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2335 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2336 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2337 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2338 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir=.
2347 $as_echo "PATH: $as_dir"
2363 # Keep a trace of the command line.
2364 # Strip out --no-create and --no-recursion so they do not pile up.
2365 # Strip out --silent because we don't want to record it for future runs.
2366 # Also quote any args containing shell meta-characters.
2367 # Make two passes to allow for proper duplicate-argument suppression.
2371 ac_must_keep_next=false
2377 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2379 | -silent | --silent | --silen | --sile | --sil)
2382 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2385 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2387 as_fn_append ac_configure_args1 " '$ac_arg'"
2388 if test $ac_must_keep_next = true; then
2389 ac_must_keep_next=false # Got value, back to normal.
2392 *=* | --config-cache | -C | -disable-* | --disable-* \
2393 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2394 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2395 | -with-* | --with-* | -without-* | --without-* | --x)
2396 case "$ac_configure_args0 " in
2397 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2400 -* ) ac_must_keep_next=true ;;
2403 as_fn_append ac_configure_args " '$ac_arg'"
2408 { ac_configure_args0=; unset ac_configure_args0;}
2409 { ac_configure_args1=; unset ac_configure_args1;}
2411 # When interrupted or exit'd, cleanup temporary files, and complete
2412 # config.log. We remove comments because anyway the quotes in there
2413 # would cause problems or look ugly.
2414 # WARNING: Use '\'' to represent an apostrophe within the trap.
2415 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2416 trap 'exit_status=$?
2417 # Save into config.log some information that might help in debugging.
2421 $as_echo "## ---------------- ##
2422 ## Cache variables. ##
2423 ## ---------------- ##"
2425 # The following way of writing the cache mishandles newlines in values,
2427 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2428 eval ac_val=\$$ac_var
2432 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2433 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2436 _ | IFS | as_nl) ;; #(
2437 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2438 *) { eval $ac_var=; unset $ac_var;} ;;
2443 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2444 *${as_nl}ac_space=\ *)
2446 "s/'\''/'\''\\\\'\'''\''/g;
2447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2450 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2457 $as_echo "## ----------------- ##
2458 ## Output variables. ##
2459 ## ----------------- ##"
2461 for ac_var in $ac_subst_vars
2463 eval ac_val=\$$ac_var
2465 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467 $as_echo "$ac_var='\''$ac_val'\''"
2471 if test -n "$ac_subst_files"; then
2472 $as_echo "## ------------------- ##
2473 ## File substitutions. ##
2474 ## ------------------- ##"
2476 for ac_var in $ac_subst_files
2478 eval ac_val=\$$ac_var
2480 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482 $as_echo "$ac_var='\''$ac_val'\''"
2487 if test -s confdefs.h; then
2488 $as_echo "## ----------- ##
2495 test "$ac_signal" != 0 &&
2496 $as_echo "$as_me: caught signal $ac_signal"
2497 $as_echo "$as_me: exit $exit_status"
2499 rm -f core *.core core.conftest.* &&
2500 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2503 for ac_signal in 1 2 13 15; do
2504 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2508 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2509 rm -f -r conftest* confdefs.h
2511 $as_echo "/* confdefs.h */" > confdefs.h
2513 # Predefined preprocessor variables.
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_NAME "$PACKAGE_NAME"
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_STRING "$PACKAGE_STRING"
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_URL "$PACKAGE_URL"
2540 # Let the site file select an alternate cache file if it wants to.
2541 # Prefer an explicitly selected file to automatically selected ones.
2544 if test -n "$CONFIG_SITE"; then
2545 # We do not want a PATH search for config.site.
2546 case $CONFIG_SITE in #((
2547 -*) ac_site_file1=./$CONFIG_SITE;;
2548 */*) ac_site_file1=$CONFIG_SITE;;
2549 *) ac_site_file1=./$CONFIG_SITE;;
2551 elif test "x$prefix" != xNONE; then
2552 ac_site_file1=$prefix/share/config.site
2553 ac_site_file2=$prefix/etc/config.site
2555 ac_site_file1=$ac_default_prefix/share/config.site
2556 ac_site_file2=$ac_default_prefix/etc/config.site
2558 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2560 test "x$ac_site_file" = xNONE && continue
2561 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2563 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2564 sed 's/^/| /' "$ac_site_file" >&5
2566 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2568 as_fn_error $? "failed to load site script $ac_site_file
2569 See \`config.log' for more details" "$LINENO" 5; }
2573 if test -r "$cache_file"; then
2574 # Some versions of bash will fail to source /dev/null (special files
2575 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2576 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2578 $as_echo "$as_me: loading cache $cache_file" >&6;}
2580 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2581 *) . "./$cache_file";;
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2586 $as_echo "$as_me: creating cache $cache_file" >&6;}
2590 # Check that the precious variables saved in the cache have kept the same
2592 ac_cache_corrupted=false
2593 for ac_var in $ac_precious_vars; do
2594 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2595 eval ac_new_set=\$ac_env_${ac_var}_set
2596 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2597 eval ac_new_val=\$ac_env_${ac_var}_value
2598 case $ac_old_set,$ac_new_set in
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2601 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2602 ac_cache_corrupted=: ;;
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2609 if test "x$ac_old_val" != "x$ac_new_val"; then
2610 # differences in whitespace do not lead to failure.
2611 ac_old_val_w=`echo x $ac_old_val`
2612 ac_new_val_w=`echo x $ac_new_val`
2613 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2616 ac_cache_corrupted=:
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2619 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2620 eval $ac_var=\$ac_old_val
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2623 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2625 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2628 # Pass precious variables to config.status.
2629 if test "$ac_new_set" = set; then
2631 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2632 *) ac_arg=$ac_var=$ac_new_val ;;
2634 case " $ac_configure_args " in
2635 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2636 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2640 if $ac_cache_corrupted; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2645 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647 ## -------------------- ##
2648 ## Main body of script. ##
2649 ## -------------------- ##
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 for ac_dir in config "$srcdir"/config; do
2663 if test -f "$ac_dir/install-sh"; then
2665 ac_install_sh="$ac_aux_dir/install-sh -c"
2667 elif test -f "$ac_dir/install.sh"; then
2669 ac_install_sh="$ac_aux_dir/install.sh -c"
2671 elif test -f "$ac_dir/shtool"; then
2673 ac_install_sh="$ac_aux_dir/shtool install -c"
2677 if test -z "$ac_aux_dir"; then
2678 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2681 # These three variables are undocumented and unsupported,
2682 # and are intended to be withdrawn in a future Autoconf release.
2683 # They can cause serious problems if a builder's source tree is in a directory
2684 # whose full name contains unusual characters.
2685 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2686 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2687 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2692 am__api_version='1.11'
2694 # Find a good install program. We prefer a C program (faster),
2695 # so one script is as good as another. But avoid the broken or
2696 # incompatible versions:
2697 # SysV /etc/install, /usr/sbin/install
2698 # SunOS /usr/etc/install
2699 # IRIX /sbin/install
2701 # AmigaOS /C/install, which installs bootblocks on floppy discs
2702 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2703 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2704 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2705 # OS/2's system install, which has a completely different semantic
2706 # ./install, which can be erroneously created by make from ./install.sh.
2707 # Reject install programs that cannot install multiple files.
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2709 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2710 if test -z "$INSTALL"; then
2711 if ${ac_cv_path_install+:} false; then :
2712 $as_echo_n "(cached) " >&6
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 test -z "$as_dir" && as_dir=.
2719 # Account for people who put trailing slashes in PATH elements.
2720 case $as_dir/ in #((
2721 ./ | .// | /[cC]/* | \
2722 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2723 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2726 # OSF1 and SCO ODT 3.0 have their own names for install.
2727 # Don't use installbsd from OSF since it installs stuff as root
2729 for ac_prog in ginstall scoinst install; do
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2732 if test $ac_prog = install &&
2733 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734 # AIX install. It has an incompatible calling convention.
2736 elif test $ac_prog = install &&
2737 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2738 # program-specific install script used by HP pwplus--don't use.
2741 rm -rf conftest.one conftest.two conftest.dir
2742 echo one > conftest.one
2743 echo two > conftest.two
2745 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2746 test -s conftest.one && test -s conftest.two &&
2747 test -s conftest.dir/conftest.one &&
2748 test -s conftest.dir/conftest.two
2750 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2763 rm -rf conftest.one conftest.two conftest.dir
2766 if test "${ac_cv_path_install+set}" = set; then
2767 INSTALL=$ac_cv_path_install
2769 # As a last resort, use the slow shell script. Don't cache a
2770 # value for INSTALL within a source directory, because that will
2771 # break other packages using the cache if that directory is
2772 # removed, or if the value is a relative name.
2773 INSTALL=$ac_install_sh
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2777 $as_echo "$INSTALL" >&6; }
2779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2780 # It thinks the first close brace ends the variable substitution.
2781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2788 $as_echo_n "checking whether build environment is sane... " >&6; }
2791 echo timestamp > conftest.file
2792 # Reject unsafe characters in $srcdir or the absolute working directory
2793 # name. Accept space and tab only in the latter.
2797 *[\\\"\#\$\&\'\`$am_lf]*)
2798 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2801 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2802 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2805 # Do `set' in a subshell so we don't clobber the current shell's
2806 # arguments. Must try -L first in case configure is actually a
2807 # symlink; some systems play weird games with the mod time of symlinks
2808 # (eg FreeBSD returns the mod time of the symlink's containing
2811 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2812 if test "$*" = "X"; then
2814 set X `ls -t "$srcdir/configure" conftest.file`
2817 if test "$*" != "X $srcdir/configure conftest.file" \
2818 && test "$*" != "X conftest.file $srcdir/configure"; then
2820 # If neither matched, then we have a broken ls. This can happen
2821 # if, for instance, CONFIG_SHELL is bash and it inherits a
2822 # broken ls alias from the environment. This has actually
2823 # happened. Such a system could not be considered "sane".
2824 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2825 alias in your environment" "$LINENO" 5
2828 test "$2" = conftest.file
2834 as_fn_error $? "newly created file is older than distributed files!
2835 Check your system clock" "$LINENO" 5
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2838 $as_echo "yes" >&6; }
2839 test "$program_prefix" != NONE &&
2840 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2841 # Use a double $ so make ignores it.
2842 test "$program_suffix" != NONE &&
2843 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2844 # Double any \ or $.
2845 # By default was `s,x,x', remove it if useless.
2846 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2847 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2849 # expand $ac_aux_dir to an absolute path
2850 am_aux_dir=`cd $ac_aux_dir && pwd`
2852 if test x"${MISSING+set}" != xset; then
2855 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2857 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2860 # Use eval to expand $SHELL
2861 if eval "$MISSING --run true"; then
2862 am_missing_run="$MISSING --run "
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2866 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2869 if test x"${install_sh}" != xset; then
2872 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2874 install_sh="\${SHELL} $am_aux_dir/install-sh"
2878 # Installed binaries are usually stripped using `strip' when the user
2879 # run `make install-strip'. However `strip' might not be the right
2880 # tool to use in cross-compilation environments, therefore Automake
2881 # will honor the `STRIP' environment variable to overrule this program.
2882 if test "$cross_compiling" != no; then
2883 if test -n "$ac_tool_prefix"; then
2884 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}strip; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_STRIP+:} false; then :
2889 $as_echo_n "(cached) " >&6
2891 if test -n "$STRIP"; then
2892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 STRIP=$ac_cv_prog_STRIP
2912 if test -n "$STRIP"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2914 $as_echo "$STRIP" >&6; }
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2922 if test -z "$ac_cv_prog_STRIP"; then
2924 # Extract the first word of "strip", so it can be a program name with args.
2925 set dummy strip; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2929 $as_echo_n "(cached) " >&6
2931 if test -n "$ac_ct_STRIP"; then
2932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_ac_ct_STRIP="strip"
2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2952 if test -n "$ac_ct_STRIP"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2954 $as_echo "$ac_ct_STRIP" >&6; }
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2957 $as_echo "no" >&6; }
2960 if test "x$ac_ct_STRIP" = x; then
2963 case $cross_compiling:$ac_tool_warned in
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2972 STRIP="$ac_cv_prog_STRIP"
2976 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2979 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2980 if test -z "$MKDIR_P"; then
2981 if ${ac_cv_path_mkdir+:} false; then :
2982 $as_echo_n "(cached) " >&6
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2988 test -z "$as_dir" && as_dir=.
2989 for ac_prog in mkdir gmkdir; do
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2992 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2993 'mkdir (GNU coreutils) '* | \
2994 'mkdir (coreutils) '* | \
2995 'mkdir (fileutils) '4.1*)
2996 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3006 test -d ./--version && rmdir ./--version
3007 if test "${ac_cv_path_mkdir+set}" = set; then
3008 MKDIR_P="$ac_cv_path_mkdir -p"
3010 # As a last resort, use the slow shell script. Don't cache a
3011 # value for MKDIR_P within a source directory, because that will
3012 # break other packages using the cache if that directory is
3013 # removed, or if the value is a relative name.
3014 MKDIR_P="$ac_install_sh -d"
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3018 $as_echo "$MKDIR_P" >&6; }
3022 [\\/$]* | ?:[\\/]*) ;;
3023 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3026 for ac_prog in gawk mawk nawk awk
3028 # Extract the first word of "$ac_prog", so it can be a program name with args.
3029 set dummy $ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if ${ac_cv_prog_AWK+:} false; then :
3033 $as_echo_n "(cached) " >&6
3035 if test -n "$AWK"; then
3036 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_AWK="$ac_prog"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056 if test -n "$AWK"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3058 $as_echo "$AWK" >&6; }
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3065 test -n "$AWK" && break
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3069 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3071 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3072 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3073 $as_echo_n "(cached) " >&6
3075 cat >conftest.make <<\_ACEOF
3078 @echo '@@@%%%=$(MAKE)=@@@%%%'
3080 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3081 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3083 eval ac_cv_prog_make_${ac_make}_set=yes;;
3085 eval ac_cv_prog_make_${ac_make}_set=no;;
3089 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3091 $as_echo "yes" >&6; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096 SET_MAKE="MAKE=${MAKE-make}"
3099 rm -rf .tst 2>/dev/null
3100 mkdir .tst 2>/dev/null
3101 if test -d .tst; then
3106 rmdir .tst 2>/dev/null
3108 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3109 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3110 # is not polluted with repeated "-I."
3111 am__isrc=' -I$(srcdir)'
3112 # test to see if srcdir already configured
3113 if test -f $srcdir/config.status; then
3114 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3118 # test whether we have cygpath
3119 if test -z "$CYGPATH_W"; then
3120 if (cygpath --version) >/dev/null 2>/dev/null; then
3121 CYGPATH_W='cygpath -w'
3128 # Define the identity of the package.
3129 PACKAGE='util-linux'
3133 cat >>confdefs.h <<_ACEOF
3134 #define PACKAGE "$PACKAGE"
3138 cat >>confdefs.h <<_ACEOF
3139 #define VERSION "$VERSION"
3142 # Some tools Automake needs.
3144 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3147 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3150 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3153 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3156 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3158 # We need awk for the "check" target. The system "awk" is bad on
3160 # Always define AMTAR for backward compatibility.
3162 AMTAR=${AMTAR-"${am_missing_run}tar"}
3164 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3171 # Check whether --enable-silent-rules was given.
3172 if test "${enable_silent_rules+set}" = set; then :
3173 enableval=$enable_silent_rules;
3176 case $enable_silent_rules in
3177 yes) AM_DEFAULT_VERBOSITY=0;;
3178 no) AM_DEFAULT_VERBOSITY=1;;
3179 *) AM_DEFAULT_VERBOSITY=0;;
3188 PACKAGE_VERSION_MAJOR=$(echo $PACKAGE_VERSION | awk -F. '{print $1}')
3189 PACKAGE_VERSION_MINOR=$(echo $PACKAGE_VERSION | awk -F. '{print $2}' \
3190 | awk -F- '{print $1}')
3191 PACKAGE_VERSION_RELEASE=0
3193 LIBBLKID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
3194 LIBBLKID_DATE="19-Oct-2011"
3198 LIBBLKID_VERSION_INFO=`expr $LIBBLKID_LT_MAJOR + $LIBBLKID_LT_MINOR`:$LIBBLKID_LT_MICRO:$LIBBLKID_LT_MINOR
3200 LIBUUID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
3204 LIBUUID_VERSION_INFO=`expr $LIBUUID_LT_MAJOR + $LIBUUID_LT_MINOR`:$LIBUUID_LT_MICRO:$LIBUUID_LT_MINOR
3206 LIBMOUNT_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
3210 LIBMOUNT_VERSION_INFO=`expr $LIBMOUNT_LT_MAJOR + $LIBMOUNT_LT_MINOR`:$LIBMOUNT_LT_MICRO:$LIBMOUNT_LT_MINOR
3212 # Check whether exec_prefix=/usr:
3213 case $exec_prefix:$prefix in
3214 NONE:NONE | NONE:/usr | /usr:*)
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: Default --exec-prefix detected." >&5
3216 $as_echo "$as_me: Default --exec-prefix detected." >&6;}
3218 '${exec_prefix}/bin') bindir=/bin
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: --bindir defaults to /bin" >&5
3220 $as_echo "$as_me: --bindir defaults to /bin" >&6;} ;;
3223 '${exec_prefix}/sbin') sbindir=/sbin
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: --sbindir defaults to /sbin" >&5
3225 $as_echo "$as_me: --sbindir defaults to /sbin" >&6;} ;;
3228 '${exec_prefix}/lib') libdir=/lib
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: --libdir defaults to /lib" >&5
3230 $as_echo "$as_me: --libdir defaults to /lib" >&6;} ;;
3234 libdirname=`basename "$libdir"`
3237 # The original default values of {bin,sbin,lib}dir
3238 usrbin_execdir='${exec_prefix}/bin'
3241 usrsbin_execdir='${exec_prefix}/sbin'
3244 usrlib_execdir='${exec_prefix}/'$libdirname
3247 DEPDIR="${am__leading_dot}deps"
3249 ac_config_commands="$ac_config_commands depfiles"
3252 am_make=${MAKE-make}
3253 cat > confinc << 'END'
3255 @echo this is the am__doit target
3258 # If we don't find an include directive, just comment out the code.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3260 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3264 # First try GNU make style include.
3265 echo "include confinc" > confmf
3266 # Ignore all kinds of additional output from `make'.
3267 case `$am_make -s -f confmf 2> /dev/null` in #(
3268 *the\ am__doit\ target*)
3274 # Now try BSD make style include.
3275 if test "$am__include" = "#"; then
3276 echo '.include "confinc"' > confmf
3277 case `$am_make -s -f confmf 2> /dev/null` in #(
3278 *the\ am__doit\ target*)
3279 am__include=.include
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3288 $as_echo "$_am_result" >&6; }
3289 rm -f confinc confmf
3291 # Check whether --enable-dependency-tracking was given.
3292 if test "${enable_dependency_tracking+set}" = set; then :
3293 enableval=$enable_dependency_tracking;
3296 if test "x$enable_dependency_tracking" != xno; then
3297 am_depcomp="$ac_aux_dir/depcomp"
3300 if test "x$enable_dependency_tracking" != xno; then
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_CC+:} false; then :
3320 $as_echo_n "(cached) " >&6
3322 if test -n "$CC"; then
3323 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 if test -n "$CC"; then
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 $as_echo "$CC" >&6; }
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3353 if test -z "$ac_cv_prog_CC"; then
3355 # Extract the first word of "gcc", so it can be a program name with args.
3356 set dummy gcc; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3360 $as_echo_n "(cached) " >&6
3362 if test -n "$ac_ct_CC"; then
3363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3372 ac_cv_prog_ac_ct_CC="gcc"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3383 if test -n "$ac_ct_CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385 $as_echo "$ac_ct_CC" >&6; }
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3391 if test "x$ac_ct_CC" = x; then
3394 case $cross_compiling:$ac_tool_warned in
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3398 ac_tool_warned=yes ;;
3406 if test -z "$CC"; then
3407 if test -n "$ac_tool_prefix"; then
3408 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}cc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_CC="${ac_tool_prefix}cc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3447 if test -z "$CC"; then
3448 # Extract the first word of "cc", so it can be a program name with args.
3449 set dummy cc; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_CC+:} false; then :
3453 $as_echo_n "(cached) " >&6
3455 if test -n "$CC"; then
3456 ac_cv_prog_CC="$CC" # Let the user override the test.
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3467 ac_prog_rejected=yes
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 if test $ac_prog_rejected = yes; then
3479 # We found a bogon in the path, so make sure we never use it.
3480 set dummy $ac_cv_prog_CC
3482 if test $# != 0; then
3483 # We chose a different compiler from the bogus one.
3484 # However, it has the same basename, so the bogon will be chosen
3485 # first if we set CC to just the basename; use the full file name.
3487 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3493 if test -n "$CC"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 $as_echo "$CC" >&6; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3503 if test -z "$CC"; then
3504 if test -n "$ac_tool_prefix"; then
3505 for ac_prog in cl.exe
3507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_prog_CC+:} false; then :
3512 $as_echo_n "(cached) " >&6
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 if test -n "$CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3544 test -n "$CC" && break
3547 if test -z "$CC"; then
3549 for ac_prog in cl.exe
3551 # Extract the first word of "$ac_prog", so it can be a program name with args.
3552 set dummy $ac_prog; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3556 $as_echo_n "(cached) " >&6
3558 if test -n "$ac_ct_CC"; then
3559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_ac_ct_CC="$ac_prog"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3579 if test -n "$ac_ct_CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581 $as_echo "$ac_ct_CC" >&6; }
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3588 test -n "$ac_ct_CC" && break
3591 if test "x$ac_ct_CC" = x; then
3594 case $cross_compiling:$ac_tool_warned in
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3607 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $? "no acceptable C compiler found in \$PATH
3610 See \`config.log' for more details" "$LINENO" 5; }
3612 # Provide some information about the compiler.
3613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3616 for ac_option in --version -v -V -qversion; do
3617 { { ac_try="$ac_compiler $ac_option >&5"
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3626 if test -s conftest.err; then
3628 ... rest of stderr output deleted ...
3629 10q' conftest.err >conftest.er1
3630 cat conftest.er1 >&5
3632 rm -f conftest.er1 conftest.err
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3648 ac_clean_files_save=$ac_clean_files
3649 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3650 # Try to create an executable without -o first, disregard a.out.
3651 # It will help us diagnose broken compilers, and finding out an intuition
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3654 $as_echo_n "checking whether the C compiler works... " >&6; }
3655 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3657 # The possible output files:
3658 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3661 for ac_file in $ac_files
3664 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3665 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3670 if { { ac_try="$ac_link_default"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link_default") 2>&5
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3682 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3683 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3684 # so that the user can short-circuit this test for compilers unknown to
3686 for ac_file in $ac_files ''
3688 test -f "$ac_file" || continue
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3693 # We found the default executable, but exeext='' is most
3697 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3699 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3701 # We set ac_cv_exeext here because the later test for it is not
3702 # safe: cross compilers may not add the suffix if given an `-o'
3703 # argument, so we may need to know it at that point already.
3704 # Even if this section looks crufty: it has the advantage of
3711 test "$ac_cv_exeext" = no && ac_cv_exeext=
3716 if test -z "$ac_file"; then :
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error 77 "C compiler cannot create executables
3725 See \`config.log' for more details" "$LINENO" 5; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3728 $as_echo "yes" >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3731 $as_echo_n "checking for C compiler default output file name... " >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3733 $as_echo "$ac_file" >&6; }
3734 ac_exeext=$ac_cv_exeext
3736 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3737 ac_clean_files=$ac_clean_files_save
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3739 $as_echo_n "checking for suffix of executables... " >&6; }
3740 if { { ac_try="$ac_link"
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747 (eval "$ac_link") 2>&5
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }; then :
3751 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3752 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3753 # work properly (i.e., refer to `conftest.exe'), while it won't with
3755 for ac_file in conftest.exe conftest conftest.*; do
3756 test -f "$ac_file" || continue
3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3759 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3768 See \`config.log' for more details" "$LINENO" 5; }
3770 rm -f conftest conftest$ac_cv_exeext
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3772 $as_echo "$ac_cv_exeext" >&6; }
3774 rm -f conftest.$ac_ext
3775 EXEEXT=$ac_cv_exeext
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3783 FILE *f = fopen ("conftest.out", "w");
3784 return ferror (f) || fclose (f) != 0;
3790 ac_clean_files="$ac_clean_files conftest.out"
3791 # Check that the compiler produces executables we can run. If not, either
3792 # the compiler is broken, or we cross compile.
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3794 $as_echo_n "checking whether we are cross compiling... " >&6; }
3795 if test "$cross_compiling" != yes; then
3796 { { ac_try="$ac_link"
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_link") 2>&5
3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806 test $ac_status = 0; }
3807 if { ac_try='./conftest$ac_cv_exeext'
3808 { { case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_try") 2>&5
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; }; then
3820 if test "$cross_compiling" = maybe; then
3823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825 as_fn_error $? "cannot run C compiled programs.
3826 If you meant to cross compile, use \`--host'.
3827 See \`config.log' for more details" "$LINENO" 5; }
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3832 $as_echo "$cross_compiling" >&6; }
3834 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3835 ac_clean_files=$ac_clean_files_save
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3837 $as_echo_n "checking for suffix of object files... " >&6; }
3838 if ${ac_cv_objext+:} false; then :
3839 $as_echo_n "(cached) " >&6
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3852 rm -f conftest.o conftest.obj
3853 if { { ac_try="$ac_compile"
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_compile") 2>&5
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }; then :
3864 for ac_file in conftest.o conftest.obj conftest.*; do
3865 test -f "$ac_file" || continue;
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3868 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3873 $as_echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error $? "cannot compute suffix of object files: cannot compile
3879 See \`config.log' for more details" "$LINENO" 5; }
3881 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3884 $as_echo "$ac_cv_objext" >&6; }
3885 OBJEXT=$ac_cv_objext
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3888 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3889 if ${ac_cv_c_compiler_gnu+:} false; then :
3890 $as_echo_n "(cached) " >&6
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3906 if ac_fn_c_try_compile "$LINENO"; then :
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3916 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3917 if test $ac_compiler_gnu = yes; then
3922 ac_test_CFLAGS=${CFLAGS+set}
3923 ac_save_CFLAGS=$CFLAGS
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3925 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3926 if ${ac_cv_prog_cc_g+:} false; then :
3927 $as_echo_n "(cached) " >&6
3929 ac_save_c_werror_flag=$ac_c_werror_flag
3930 ac_c_werror_flag=yes
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3944 if ac_fn_c_try_compile "$LINENO"; then :
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3959 if ac_fn_c_try_compile "$LINENO"; then :
3962 ac_c_werror_flag=$ac_save_c_werror_flag
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3975 if ac_fn_c_try_compile "$LINENO"; then :
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 ac_c_werror_flag=$ac_save_c_werror_flag
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3986 $as_echo "$ac_cv_prog_cc_g" >&6; }
3987 if test "$ac_test_CFLAGS" = set; then
3988 CFLAGS=$ac_save_CFLAGS
3989 elif test $ac_cv_prog_cc_g = yes; then
3990 if test "$GCC" = yes; then
3996 if test "$GCC" = yes; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4003 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4004 if ${ac_cv_prog_cc_c89+:} false; then :
4005 $as_echo_n "(cached) " >&6
4007 ac_cv_prog_cc_c89=no
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4013 #include <sys/types.h>
4014 #include <sys/stat.h>
4015 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4016 struct buf { int x; };
4017 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4018 static char *e (p, i)
4024 static char *f (char * (*g) (char **, int), char **p, ...)
4029 s = g (p, va_arg (v,int));
4034 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4035 function prototypes and stuff, but not '\xHH' hex character constants.
4036 These don't provoke an error unfortunately, instead are silently treated
4037 as 'x'. The following induces an error, until -std is added to get
4038 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4039 array size at least. It's necessary to write '\x00'==0 to get something
4040 that's true only with -std. */
4041 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4043 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4044 inside strings and character constants. */
4046 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4048 int test (int i, double x);
4049 struct s1 {int (*f) (int a);};
4050 struct s2 {int (*f) (double a);};
4051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4057 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4062 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4063 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4065 CC="$ac_save_CC $ac_arg"
4066 if ac_fn_c_try_compile "$LINENO"; then :
4067 ac_cv_prog_cc_c89=$ac_arg
4069 rm -f core conftest.err conftest.$ac_objext
4070 test "x$ac_cv_prog_cc_c89" != "xno" && break
4072 rm -f conftest.$ac_ext
4077 case "x$ac_cv_prog_cc_c89" in
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4080 $as_echo "none needed" >&6; } ;;
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4083 $as_echo "unsupported" >&6; } ;;
4085 CC="$CC $ac_cv_prog_cc_c89"
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4087 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4089 if test "x$ac_cv_prog_cc_c89" != xno; then :
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099 depcc="$CC" am_compiler_list=
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4102 $as_echo_n "checking dependency style of $depcc... " >&6; }
4103 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4104 $as_echo_n "(cached) " >&6
4106 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4107 # We make a subdir and do the tests there. Otherwise we can end up
4108 # making bogus files that we don't know about and never remove. For
4109 # instance it was reported that on HP-UX the gcc test will end up
4110 # making a dummy file named `D' -- because `-MD' means `put the output
4113 # Copy depcomp to subdir because otherwise we won't find it if we're
4114 # using a relative directory.
4115 cp "$am_depcomp" conftest.dir
4117 # We will build objects and dependencies in a subdirectory because
4118 # it helps to detect inapplicable dependency modes. For instance
4119 # both Tru64's cc and ICC support -MD to output dependencies as a
4120 # side effect of compilation, but ICC will put the dependencies in
4121 # the current directory while Tru64 will put them in the object
4125 am_cv_CC_dependencies_compiler_type=none
4126 if test "$am_compiler_list" = ""; then
4127 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4130 case " $depcc " in #(
4131 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4134 for depmode in $am_compiler_list; do
4135 # Setup a source with many dependencies, because some compilers
4136 # like to wrap large dependency lists on column 80 (with \), and
4137 # we should not choose a depcomp mode which is confused by this.
4139 # We need to recreate these files for each test, as the compiler may
4140 # overwrite some of them when testing with obscure command lines.
4141 # This happens at least with the AIX C compiler.
4143 for i in 1 2 3 4 5 6; do
4144 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4146 # Solaris 8's {/usr,}/bin/sh.
4147 touch sub/conftst$i.h
4149 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4151 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4152 # mode. It turns out that the SunPro C++ compiler does not properly
4153 # handle `-M -o', and we need to detect this. Also, some Intel
4154 # versions had trouble with output in subdirs
4155 am__obj=sub/conftest.${OBJEXT-o}
4156 am__minus_obj="-o $am__obj"
4159 # This depmode causes a compiler race in universal mode.
4160 test "$am__universal" = false || continue
4163 # after this tag, mechanisms are not by side-effect, so they'll
4164 # only be used when explicitly requested
4165 if test "x$enable_dependency_tracking" = xyes; then
4171 msvisualcpp | msvcmsys)
4172 # This compiler won't grok `-c -o', but also, the minuso test has
4173 # not run yet. These depmodes are late enough in the game, and
4174 # so weak that their functioning should not be impacted.
4175 am__obj=conftest.${OBJEXT-o}
4180 if depmode=$depmode \
4181 source=sub/conftest.c object=$am__obj \
4182 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4183 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4184 >/dev/null 2>conftest.err &&
4185 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4186 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4187 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4188 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4189 # icc doesn't choke on unknown options, it will just issue warnings
4190 # or remarks (even with -Werror). So we grep stderr for any message
4191 # that says an option was ignored or not supported.
4192 # When given -MP, icc 7.0 and 7.1 complain thusly:
4193 # icc: Command line warning: ignoring option '-M'; no argument required
4194 # The diagnosis changed in icc 8.0:
4195 # icc: Command line remark: option '-MP' not supported
4196 if (grep 'ignoring option' conftest.err ||
4197 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4198 am_cv_CC_dependencies_compiler_type=$depmode
4207 am_cv_CC_dependencies_compiler_type=none
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4212 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4213 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4216 test "x$enable_dependency_tracking" != xno \
4217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4219 am__fastdepCC_FALSE='#'
4221 am__fastdepCC_TRUE='#'
4222 am__fastdepCC_FALSE=
4226 if test "x$CC" != xcc; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4228 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4231 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4233 set dummy $CC; ac_cc=`$as_echo "$2" |
4234 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4235 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4236 $as_echo_n "(cached) " >&6
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4249 # Make sure it works both with $CC and with simple cc.
4250 # We do the test twice because some compilers refuse to overwrite an
4251 # existing .o file with -o, though they will create one.
4252 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4254 if { { case "(($ac_try" in
4255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259 $as_echo "$ac_try_echo"; } >&5
4260 (eval "$ac_try") 2>&5
4262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; } &&
4264 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269 $as_echo "$ac_try_echo"; } >&5
4270 (eval "$ac_try") 2>&5
4272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; };
4275 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4276 if test "x$CC" != xcc; then
4277 # Test first that cc exists at all.
4278 if { ac_try='cc -c conftest.$ac_ext >&5'
4279 { { case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_try") 2>&5
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; }; }; then
4289 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4291 if { { case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_try") 2>&5
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; } &&
4301 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_try") 2>&5
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; };
4315 # cc exists but doesn't like -o.
4316 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4321 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4323 rm -f core conftest*
4326 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4328 $as_echo "yes" >&6; }
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4333 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4337 # FIXME: we rely on the cache variable name because
4338 # there is no other way.
4340 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4341 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4342 if test "$am_t" != yes; then
4343 # Losing compiler, so override with the script.
4344 # FIXME: It is wrong to rewrite CC.
4345 # But if we don't then we get into trouble of one sort or another.
4346 # A longer-term fix would be to have automake use am__CC in this case,
4347 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4348 CC="$am_aux_dir/compile $CC"
4352 case $ac_cv_prog_cc_stdc in #(
4354 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4357 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4358 if ${ac_cv_prog_cc_c99+:} false; then :
4359 $as_echo_n "(cached) " >&6
4361 ac_cv_prog_cc_c99=no
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4366 #include <stdbool.h>
4371 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4372 #define debug(...) fprintf (stderr, __VA_ARGS__)
4373 #define showlist(...) puts (#__VA_ARGS__)
4374 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4376 test_varargs_macros (void)
4381 debug ("X = %d\n", x);
4382 showlist (The first, second, and third items.);
4383 report (x>y, "x is %d but y is %d", x, y);
4386 // Check long long types.
4387 #define BIG64 18446744073709551615ull
4388 #define BIG32 4294967295ul
4389 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4391 your preprocessor is broken;
4395 your preprocessor is broken;
4397 static long long int bignum = -9223372036854775807LL;
4398 static unsigned long long int ubignum = BIG64;
4400 struct incomplete_array
4408 const wchar_t *name;
4412 typedef const char *ccp;
4415 test_restrict (ccp restrict text)
4417 // See if C++-style comments work.
4418 // Iterate through items via the restricted pointer.
4419 // Also check for declarations in for loops.
4420 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4425 // Check varargs and va_copy.
4427 test_varargs (const char *format, ...)
4430 va_start (args, format);
4432 va_copy (args_copy, args);
4443 str = va_arg (args_copy, const char *);
4446 number = va_arg (args_copy, int);
4449 fnumber = va_arg (args_copy, double);
4464 _Bool success = false;
4467 if (test_restrict ("String literal") == 0)
4469 char *restrict newvar = "Another string";
4472 test_varargs ("s, d' f .", "string", 65, 34.234);
4473 test_varargs_macros ();
4475 // Check flexible array members.
4476 struct incomplete_array *ia =
4477 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4479 for (int i = 0; i < ia->datasize; ++i)
4480 ia->data[i] = i * 1.234;
4482 // Check named initializers.
4483 struct named_init ni = {
4485 .name = L"Test wide string",
4486 .average = 543.34343,
4491 int dynamic_array[ni.number];
4492 dynamic_array[ni.number - 1] = 543;
4494 // work around unused variable warnings
4495 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4496 || dynamic_array[ni.number - 1] != 543);
4502 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4504 CC="$ac_save_CC $ac_arg"
4505 if ac_fn_c_try_compile "$LINENO"; then :
4506 ac_cv_prog_cc_c99=$ac_arg
4508 rm -f core conftest.err conftest.$ac_objext
4509 test "x$ac_cv_prog_cc_c99" != "xno" && break
4511 rm -f conftest.$ac_ext
4516 case "x$ac_cv_prog_cc_c99" in
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4519 $as_echo "none needed" >&6; } ;;
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4522 $as_echo "unsupported" >&6; } ;;
4524 CC="$CC $ac_cv_prog_cc_c99"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4526 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4528 if test "x$ac_cv_prog_cc_c99" != xno; then :
4529 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4532 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4533 if ${ac_cv_prog_cc_c89+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 ac_cv_prog_cc_c89=no
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4542 #include <sys/types.h>
4543 #include <sys/stat.h>
4544 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4545 struct buf { int x; };
4546 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4547 static char *e (p, i)
4553 static char *f (char * (*g) (char **, int), char **p, ...)
4558 s = g (p, va_arg (v,int));
4563 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4564 function prototypes and stuff, but not '\xHH' hex character constants.
4565 These don't provoke an error unfortunately, instead are silently treated
4566 as 'x'. The following induces an error, until -std is added to get
4567 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4568 array size at least. It's necessary to write '\x00'==0 to get something
4569 that's true only with -std. */
4570 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4572 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4573 inside strings and character constants. */
4575 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4577 int test (int i, double x);
4578 struct s1 {int (*f) (int a);};
4579 struct s2 {int (*f) (double a);};
4580 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4586 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4591 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4592 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4594 CC="$ac_save_CC $ac_arg"
4595 if ac_fn_c_try_compile "$LINENO"; then :
4596 ac_cv_prog_cc_c89=$ac_arg
4598 rm -f core conftest.err conftest.$ac_objext
4599 test "x$ac_cv_prog_cc_c89" != "xno" && break
4601 rm -f conftest.$ac_ext
4606 case "x$ac_cv_prog_cc_c89" in
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4609 $as_echo "none needed" >&6; } ;;
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4612 $as_echo "unsupported" >&6; } ;;
4614 CC="$CC $ac_cv_prog_cc_c89"
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4616 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4618 if test "x$ac_cv_prog_cc_c89" != xno; then :
4619 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4621 ac_cv_prog_cc_stdc=no
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4628 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4629 if ${ac_cv_prog_cc_stdc+:} false; then :
4630 $as_echo_n "(cached) " >&6
4633 case $ac_cv_prog_cc_stdc in #(
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4636 $as_echo "unsupported" >&6; } ;; #(
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4639 $as_echo "none needed" >&6; } ;; #(
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4642 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4647 ac_cpp='$CPP $CPPFLAGS'
4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4652 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4653 # On Suns, sometimes $CPP names a directory.
4654 if test -n "$CPP" && test -d "$CPP"; then
4657 if test -z "$CPP"; then
4658 if ${ac_cv_prog_CPP+:} false; then :
4659 $as_echo_n "(cached) " >&6
4661 # Double quotes because CPP needs to be expanded
4662 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4665 for ac_c_preproc_warn_flag in '' yes
4667 # Use a header file that comes with gcc, so configuring glibc
4668 # with a fresh cross-compiler works.
4669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670 # <limits.h> exists even on freestanding compilers.
4671 # On the NeXT, cc -E runs the code through the compiler's parser,
4672 # not just through cpp. "Syntax error" is here to catch this case.
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4676 # include <limits.h>
4678 # include <assert.h>
4682 if ac_fn_c_try_cpp "$LINENO"; then :
4685 # Broken: fails on valid input.
4688 rm -f conftest.err conftest.i conftest.$ac_ext
4690 # OK, works on sane cases. Now check whether nonexistent headers
4691 # can be detected and how.
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694 #include <ac_nonexistent.h>
4696 if ac_fn_c_try_cpp "$LINENO"; then :
4697 # Broken: success on invalid input.
4700 # Passes both tests.
4704 rm -f conftest.err conftest.i conftest.$ac_ext
4707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4708 rm -f conftest.i conftest.err conftest.$ac_ext
4709 if $ac_preproc_ok; then :
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4722 $as_echo "$CPP" >&6; }
4724 for ac_c_preproc_warn_flag in '' yes
4726 # Use a header file that comes with gcc, so configuring glibc
4727 # with a fresh cross-compiler works.
4728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4729 # <limits.h> exists even on freestanding compilers.
4730 # On the NeXT, cc -E runs the code through the compiler's parser,
4731 # not just through cpp. "Syntax error" is here to catch this case.
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4735 # include <limits.h>
4737 # include <assert.h>
4741 if ac_fn_c_try_cpp "$LINENO"; then :
4744 # Broken: fails on valid input.
4747 rm -f conftest.err conftest.i conftest.$ac_ext
4749 # OK, works on sane cases. Now check whether nonexistent headers
4750 # can be detected and how.
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 #include <ac_nonexistent.h>
4755 if ac_fn_c_try_cpp "$LINENO"; then :
4756 # Broken: success on invalid input.
4759 # Passes both tests.
4763 rm -f conftest.err conftest.i conftest.$ac_ext
4766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4767 rm -f conftest.i conftest.err conftest.$ac_ext
4768 if $ac_preproc_ok; then :
4771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4773 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4774 See \`config.log' for more details" "$LINENO" 5; }
4778 ac_cpp='$CPP $CPPFLAGS'
4779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4785 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4786 if ${ac_cv_path_GREP+:} false; then :
4787 $as_echo_n "(cached) " >&6
4789 if test -z "$GREP"; then
4790 ac_path_GREP_found=false
4791 # Loop through the user's path and test for each of PROGNAME-LIST
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4796 test -z "$as_dir" && as_dir=.
4797 for ac_prog in grep ggrep; do
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4800 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4801 # Check for GNU ac_path_GREP and select it if it is found.
4802 # Check for GNU $ac_path_GREP
4803 case `"$ac_path_GREP" --version 2>&1` in
4805 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4808 $as_echo_n 0123456789 >"conftest.in"
4811 cat "conftest.in" "conftest.in" >"conftest.tmp"
4812 mv "conftest.tmp" "conftest.in"
4813 cp "conftest.in" "conftest.nl"
4814 $as_echo 'GREP' >> "conftest.nl"
4815 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4816 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4817 as_fn_arith $ac_count + 1 && ac_count=$as_val
4818 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4819 # Best one so far, save it but keep looking for a better one
4820 ac_cv_path_GREP="$ac_path_GREP"
4821 ac_path_GREP_max=$ac_count
4823 # 10*(2^10) chars as input seems more than enough
4824 test $ac_count -gt 10 && break
4826 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4829 $ac_path_GREP_found && break 3
4834 if test -z "$ac_cv_path_GREP"; then
4835 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4838 ac_cv_path_GREP=$GREP
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4843 $as_echo "$ac_cv_path_GREP" >&6; }
4844 GREP="$ac_cv_path_GREP"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4848 $as_echo_n "checking for egrep... " >&6; }
4849 if ${ac_cv_path_EGREP+:} false; then :
4850 $as_echo_n "(cached) " >&6
4852 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4853 then ac_cv_path_EGREP="$GREP -E"
4855 if test -z "$EGREP"; then
4856 ac_path_EGREP_found=false
4857 # Loop through the user's path and test for each of PROGNAME-LIST
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4862 test -z "$as_dir" && as_dir=.
4863 for ac_prog in egrep; do
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4866 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4867 # Check for GNU ac_path_EGREP and select it if it is found.
4868 # Check for GNU $ac_path_EGREP
4869 case `"$ac_path_EGREP" --version 2>&1` in
4871 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4874 $as_echo_n 0123456789 >"conftest.in"
4877 cat "conftest.in" "conftest.in" >"conftest.tmp"
4878 mv "conftest.tmp" "conftest.in"
4879 cp "conftest.in" "conftest.nl"
4880 $as_echo 'EGREP' >> "conftest.nl"
4881 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4883 as_fn_arith $ac_count + 1 && ac_count=$as_val
4884 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4885 # Best one so far, save it but keep looking for a better one
4886 ac_cv_path_EGREP="$ac_path_EGREP"
4887 ac_path_EGREP_max=$ac_count
4889 # 10*(2^10) chars as input seems more than enough
4890 test $ac_count -gt 10 && break
4892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4895 $ac_path_EGREP_found && break 3
4900 if test -z "$ac_cv_path_EGREP"; then
4901 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4904 ac_cv_path_EGREP=$EGREP
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4910 $as_echo "$ac_cv_path_EGREP" >&6; }
4911 EGREP="$ac_cv_path_EGREP"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4915 $as_echo_n "checking for ANSI C header files... " >&6; }
4916 if ${ac_cv_header_stdc+:} false; then :
4917 $as_echo_n "(cached) " >&6
4919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4920 /* end confdefs.h. */
4934 if ac_fn_c_try_compile "$LINENO"; then :
4935 ac_cv_header_stdc=yes
4937 ac_cv_header_stdc=no
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941 if test $ac_cv_header_stdc = yes; then
4942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949 $EGREP "memchr" >/dev/null 2>&1; then :
4952 ac_cv_header_stdc=no
4958 if test $ac_cv_header_stdc = yes; then
4959 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966 $EGREP "free" >/dev/null 2>&1; then :
4969 ac_cv_header_stdc=no
4975 if test $ac_cv_header_stdc = yes; then
4976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4977 if test "$cross_compiling" = yes; then :
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4984 #if ((' ' & 0x0FF) == 0x020)
4985 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4986 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4988 # define ISLOWER(c) \
4989 (('a' <= (c) && (c) <= 'i') \
4990 || ('j' <= (c) && (c) <= 'r') \
4991 || ('s' <= (c) && (c) <= 'z'))
4992 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4995 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5000 for (i = 0; i < 256; i++)
5001 if (XOR (islower (i), ISLOWER (i))
5002 || toupper (i) != TOUPPER (i))
5007 if ac_fn_c_try_run "$LINENO"; then :
5010 ac_cv_header_stdc=no
5012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5013 conftest.$ac_objext conftest.beam conftest.$ac_ext
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5019 $as_echo "$ac_cv_header_stdc" >&6; }
5020 if test $ac_cv_header_stdc = yes; then
5022 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5026 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5027 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5028 inttypes.h stdint.h unistd.h
5030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5031 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5033 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5034 cat >>confdefs.h <<_ACEOF
5035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5044 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5045 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5052 if test "$MINIX" = yes; then
5054 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5057 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5060 $as_echo "#define _MINIX 1" >>confdefs.h
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5066 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5067 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5068 $as_echo_n "(cached) " >&6
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5073 # define __EXTENSIONS__ 1
5074 $ac_includes_default
5083 if ac_fn_c_try_compile "$LINENO"; then :
5084 ac_cv_safe_to_define___extensions__=yes
5086 ac_cv_safe_to_define___extensions__=no
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5091 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5092 test $ac_cv_safe_to_define___extensions__ = yes &&
5093 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5095 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5097 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5099 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5101 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5105 # Make sure we can run config.sub.
5106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5107 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5110 $as_echo_n "checking build system type... " >&6; }
5111 if ${ac_cv_build+:} false; then :
5112 $as_echo_n "(cached) " >&6
5114 ac_build_alias=$build_alias
5115 test "x$ac_build_alias" = x &&
5116 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5117 test "x$ac_build_alias" = x &&
5118 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5119 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5120 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5124 $as_echo "$ac_cv_build" >&6; }
5125 case $ac_cv_build in
5127 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5130 ac_save_IFS=$IFS; IFS='-'
5136 # Remember, the first character of IFS is used to create $*,
5137 # except with old shells:
5140 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5144 $as_echo_n "checking host system type... " >&6; }
5145 if ${ac_cv_host+:} false; then :
5146 $as_echo_n "(cached) " >&6
5148 if test "x$host_alias" = x; then
5149 ac_cv_host=$ac_cv_build
5151 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5152 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5157 $as_echo "$ac_cv_host" >&6; }
5160 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5163 ac_save_IFS=$IFS; IFS='-'
5169 # Remember, the first character of IFS is used to create $*,
5170 # except with old shells:
5173 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5177 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5178 if ${ac_cv_c_const+:} false; then :
5179 $as_echo_n "(cached) " >&6
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5187 /* FIXME: Include the comments suggested by Paul. */
5189 /* Ultrix mips cc rejects this. */
5190 typedef int charset[2];
5192 /* SunOS 4.1.1 cc rejects this. */
5193 char const *const *pcpcc;
5195 /* NEC SVR4.0.2 mips cc rejects this. */
5196 struct point {int x, y;};
5197 static struct point const zero = {0,0};
5198 /* AIX XL C 1.02.0.0 rejects this.
5199 It does not let you subtract one const X* pointer from another in
5200 an arm of an if-expression whose if-part is not a constant
5202 const char *g = "string";
5203 pcpcc = &g + (g ? g-g : 0);
5204 /* HPUX 7.0 cc rejects these. */
5206 ppc = (char**) pcpcc;
5207 pcpcc = (char const *const *) ppc;
5208 { /* SCO 3.2v4 cc rejects this. */
5210 char const *s = 0 ? (char *) 0 : (char const *) 0;
5215 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5217 const int *foo = &x[0];
5220 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5221 typedef const int *iptr;
5225 { /* AIX XL C 1.02.0.0 rejects this saying
5226 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5227 struct s { int j; const int *ap[3]; };
5228 struct s *b; b->j = 5;
5230 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5234 return !cs[0] && !zero.x;
5241 if ac_fn_c_try_compile "$LINENO"; then :
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5249 $as_echo "$ac_cv_c_const" >&6; }
5250 if test $ac_cv_c_const = no; then
5252 $as_echo "#define const /**/" >>confdefs.h
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5257 $as_echo_n "checking for working volatile... " >&6; }
5258 if ${ac_cv_c_volatile+:} false; then :
5259 $as_echo_n "(cached) " >&6
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5269 int * volatile y = (int *) 0;
5275 if ac_fn_c_try_compile "$LINENO"; then :
5276 ac_cv_c_volatile=yes
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5283 $as_echo "$ac_cv_c_volatile" >&6; }
5284 if test $ac_cv_c_volatile = no; then
5286 $as_echo "#define volatile /**/" >>confdefs.h
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5291 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5292 if ${ac_cv_c_bigendian+:} false; then :
5293 $as_echo_n "(cached) " >&6
5295 ac_cv_c_bigendian=unknown
5296 # See if we're dealing with a universal compiler.
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 #ifndef __APPLE_CC__
5300 not a universal capable compiler
5305 if ac_fn_c_try_compile "$LINENO"; then :
5307 # Check for potential -arch flags. It is not universal unless
5308 # there are at least two -arch flags with different values.
5311 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5312 if test -n "$ac_prev"; then
5314 i?86 | x86_64 | ppc | ppc64)
5315 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5318 ac_cv_c_bigendian=universal
5324 elif test "x$ac_word" = "x-arch"; then
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 if test $ac_cv_c_bigendian = unknown; then
5331 # See if sys/param.h defines the BYTE_ORDER macro.
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <sys/types.h>
5335 #include <sys/param.h>
5340 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5341 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351 # It does; now see whether it defined to BIG_ENDIAN or not.
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 #include <sys/types.h>
5355 #include <sys/param.h>
5360 #if BYTE_ORDER != BIG_ENDIAN
5368 if ac_fn_c_try_compile "$LINENO"; then :
5369 ac_cv_c_bigendian=yes
5371 ac_cv_c_bigendian=no
5373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 if test $ac_cv_c_bigendian = unknown; then
5378 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5386 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395 # It does; now see whether it defined to _BIG_ENDIAN or not.
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5411 if ac_fn_c_try_compile "$LINENO"; then :
5412 ac_cv_c_bigendian=yes
5414 ac_cv_c_bigendian=no
5416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5420 if test $ac_cv_c_bigendian = unknown; then
5421 # Compile a test program.
5422 if test "$cross_compiling" = yes; then :
5423 # Try to guess by grepping values from an object file.
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 short int ascii_mm[] =
5427 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5428 short int ascii_ii[] =
5429 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5430 int use_ascii (int i) {
5431 return ascii_mm[i] + ascii_ii[i];
5433 short int ebcdic_ii[] =
5434 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5435 short int ebcdic_mm[] =
5436 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5437 int use_ebcdic (int i) {
5438 return ebcdic_mm[i] + ebcdic_ii[i];
5445 return use_ascii (foo) == use_ebcdic (foo);
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5452 ac_cv_c_bigendian=yes
5454 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5455 if test "$ac_cv_c_bigendian" = unknown; then
5456 ac_cv_c_bigendian=no
5458 # finding both strings is unlikely to happen, but who knows?
5459 ac_cv_c_bigendian=unknown
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467 $ac_includes_default
5472 /* Are we little or big endian? From Harbison&Steele. */
5476 char c[sizeof (long int)];
5479 return u.c[sizeof (long int) - 1] == 1;
5485 if ac_fn_c_try_run "$LINENO"; then :
5486 ac_cv_c_bigendian=no
5488 ac_cv_c_bigendian=yes
5490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5491 conftest.$ac_objext conftest.beam conftest.$ac_ext
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5497 $as_echo "$ac_cv_c_bigendian" >&6; }
5498 case $ac_cv_c_bigendian in #(
5500 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5506 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5510 as_fn_error $? "unknown endianness
5511 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5518 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5524 macro_revision='1.3293'
5538 ltmain="$ac_aux_dir/ltmain.sh"
5540 # Backslashify metacharacters that are still active within
5541 # double-quoted strings.
5542 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5544 # Same as above, but do not quote variable references.
5545 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5547 # Sed substitution to delay expansion of an escaped shell variable in a
5548 # double_quote_subst'ed string.
5549 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5551 # Sed substitution to delay expansion of an escaped single quote.
5552 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5554 # Sed substitution to avoid accidental globbing in evaled expressions
5555 no_glob_subst='s/\*/\\\*/g'
5557 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5558 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5559 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5562 $as_echo_n "checking how to print strings... " >&6; }
5563 # Test print first, because it will be a builtin if present.
5564 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5565 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5567 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5570 # Use this function as a fallback that always works.
5571 func_fallback_echo ()
5573 eval 'cat <<_LTECHO_EOF
5577 ECHO='func_fallback_echo'
5580 # func_echo_all arg...
5581 # Invoke $ECHO with all args, space-separated.
5588 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5589 $as_echo "printf" >&6; } ;;
5590 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5591 $as_echo "print -r" >&6; } ;;
5592 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5593 $as_echo "cat" >&6; } ;;
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5610 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5611 if ${ac_cv_path_SED+:} false; then :
5612 $as_echo_n "(cached) " >&6
5614 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5615 for ac_i in 1 2 3 4 5 6 7; do
5616 ac_script="$ac_script$as_nl$ac_script"
5618 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5619 { ac_script=; unset ac_script;}
5620 if test -z "$SED"; then
5621 ac_path_SED_found=false
5622 # Loop through the user's path and test for each of PROGNAME-LIST
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 test -z "$as_dir" && as_dir=.
5628 for ac_prog in sed gsed; do
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5631 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5632 # Check for GNU ac_path_SED and select it if it is found.
5633 # Check for GNU $ac_path_SED
5634 case `"$ac_path_SED" --version 2>&1` in
5636 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5639 $as_echo_n 0123456789 >"conftest.in"
5642 cat "conftest.in" "conftest.in" >"conftest.tmp"
5643 mv "conftest.tmp" "conftest.in"
5644 cp "conftest.in" "conftest.nl"
5645 $as_echo '' >> "conftest.nl"
5646 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5648 as_fn_arith $ac_count + 1 && ac_count=$as_val
5649 if test $ac_count -gt ${ac_path_SED_max-0}; then
5650 # Best one so far, save it but keep looking for a better one
5651 ac_cv_path_SED="$ac_path_SED"
5652 ac_path_SED_max=$ac_count
5654 # 10*(2^10) chars as input seems more than enough
5655 test $ac_count -gt 10 && break
5657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5660 $ac_path_SED_found && break 3
5665 if test -z "$ac_cv_path_SED"; then
5666 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5674 $as_echo "$ac_cv_path_SED" >&6; }
5675 SED="$ac_cv_path_SED"
5678 test -z "$SED" && SED=sed
5679 Xsed="$SED -e 1s/^X//"
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5692 $as_echo_n "checking for fgrep... " >&6; }
5693 if ${ac_cv_path_FGREP+:} false; then :
5694 $as_echo_n "(cached) " >&6
5696 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5697 then ac_cv_path_FGREP="$GREP -F"
5699 if test -z "$FGREP"; then
5700 ac_path_FGREP_found=false
5701 # Loop through the user's path and test for each of PROGNAME-LIST
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5706 test -z "$as_dir" && as_dir=.
5707 for ac_prog in fgrep; do
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5710 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5711 # Check for GNU ac_path_FGREP and select it if it is found.
5712 # Check for GNU $ac_path_FGREP
5713 case `"$ac_path_FGREP" --version 2>&1` in
5715 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5718 $as_echo_n 0123456789 >"conftest.in"
5721 cat "conftest.in" "conftest.in" >"conftest.tmp"
5722 mv "conftest.tmp" "conftest.in"
5723 cp "conftest.in" "conftest.nl"
5724 $as_echo 'FGREP' >> "conftest.nl"
5725 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5727 as_fn_arith $ac_count + 1 && ac_count=$as_val
5728 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5729 # Best one so far, save it but keep looking for a better one
5730 ac_cv_path_FGREP="$ac_path_FGREP"
5731 ac_path_FGREP_max=$ac_count
5733 # 10*(2^10) chars as input seems more than enough
5734 test $ac_count -gt 10 && break
5736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5739 $ac_path_FGREP_found && break 3
5744 if test -z "$ac_cv_path_FGREP"; then
5745 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5748 ac_cv_path_FGREP=$FGREP
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5754 $as_echo "$ac_cv_path_FGREP" >&6; }
5755 FGREP="$ac_cv_path_FGREP"
5758 test -z "$GREP" && GREP=grep
5778 # Check whether --with-gnu-ld was given.
5779 if test "${with_gnu_ld+set}" = set; then :
5780 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5786 if test "$GCC" = yes; then
5787 # Check if gcc -print-prog-name=ld gives a path.
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5789 $as_echo_n "checking for ld used by $CC... " >&6; }
5792 # gcc leaves a trailing carriage return which upsets mingw
5793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5798 # Accept absolute paths.
5800 re_direlt='/[^/][^/]*/\.\./'
5801 # Canonicalize the pathname of ld
5802 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5803 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5804 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5806 test -z "$LD" && LD="$ac_prog"
5809 # If it fails, then pretend we aren't using GCC.
5813 # If it is relative, then search for the first ld in PATH.
5817 elif test "$with_gnu_ld" = yes; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5819 $as_echo_n "checking for GNU ld... " >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5822 $as_echo_n "checking for non-GNU ld... " >&6; }
5824 if ${lt_cv_path_LD+:} false; then :
5825 $as_echo_n "(cached) " >&6
5827 if test -z "$LD"; then
5828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5829 for ac_dir in $PATH; do
5831 test -z "$ac_dir" && ac_dir=.
5832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5833 lt_cv_path_LD="$ac_dir/$ac_prog"
5834 # Check to see if the program is GNU ld. I'd rather use --version,
5835 # but apparently some variants of GNU ld only accept -v.
5836 # Break only if it was the GNU/non-GNU ld that we prefer.
5837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5838 *GNU* | *'with BFD'*)
5839 test "$with_gnu_ld" != no && break
5842 test "$with_gnu_ld" != yes && break
5849 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5854 if test -n "$LD"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5856 $as_echo "$LD" >&6; }
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5861 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5864 if ${lt_cv_prog_gnu_ld+:} false; then :
5865 $as_echo_n "(cached) " >&6
5867 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5868 case `$LD -v 2>&1 </dev/null` in
5869 *GNU* | *'with BFD'*)
5870 lt_cv_prog_gnu_ld=yes
5873 lt_cv_prog_gnu_ld=no
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5879 with_gnu_ld=$lt_cv_prog_gnu_ld
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5890 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5891 if ${lt_cv_path_NM+:} false; then :
5892 $as_echo_n "(cached) " >&6
5894 if test -n "$NM"; then
5895 # Let the user override the test.
5898 lt_nm_to_check="${ac_tool_prefix}nm"
5899 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5900 lt_nm_to_check="$lt_nm_to_check nm"
5902 for lt_tmp_nm in $lt_nm_to_check; do
5903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5904 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5906 test -z "$ac_dir" && ac_dir=.
5907 tmp_nm="$ac_dir/$lt_tmp_nm"
5908 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5909 # Check to see if the nm accepts a BSD-compat flag.
5910 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5911 # nm: unknown option "B" ignored
5912 # Tru64's nm complains that /dev/null is an invalid object file
5913 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5914 */dev/null* | *'Invalid file or object type'*)
5915 lt_cv_path_NM="$tmp_nm -B"
5919 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5921 lt_cv_path_NM="$tmp_nm -p"
5925 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5926 continue # so that we can try to find one that supports BSD flags
5935 : ${lt_cv_path_NM=no}
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5939 $as_echo "$lt_cv_path_NM" >&6; }
5940 if test "$lt_cv_path_NM" != "no"; then
5943 # Didn't find any BSD compatible name lister, look for dumpbin.
5944 if test -n "$DUMPBIN"; then :
5945 # Let the user override the test.
5947 if test -n "$ac_tool_prefix"; then
5948 for ac_prog in dumpbin "link -dump"
5950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_prog_DUMPBIN+:} false; then :
5955 $as_echo_n "(cached) " >&6
5957 if test -n "$DUMPBIN"; then
5958 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5977 DUMPBIN=$ac_cv_prog_DUMPBIN
5978 if test -n "$DUMPBIN"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5980 $as_echo "$DUMPBIN" >&6; }
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5987 test -n "$DUMPBIN" && break
5990 if test -z "$DUMPBIN"; then
5991 ac_ct_DUMPBIN=$DUMPBIN
5992 for ac_prog in dumpbin "link -dump"
5994 # Extract the first word of "$ac_prog", so it can be a program name with args.
5995 set dummy $ac_prog; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5999 $as_echo_n "(cached) " >&6
6001 if test -n "$ac_ct_DUMPBIN"; then
6002 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6021 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6022 if test -n "$ac_ct_DUMPBIN"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6024 $as_echo "$ac_ct_DUMPBIN" >&6; }
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6031 test -n "$ac_ct_DUMPBIN" && break
6034 if test "x$ac_ct_DUMPBIN" = x; then
6037 case $cross_compiling:$ac_tool_warned in
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6041 ac_tool_warned=yes ;;
6043 DUMPBIN=$ac_ct_DUMPBIN
6047 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6049 DUMPBIN="$DUMPBIN -symbols"
6057 if test "$DUMPBIN" != ":"; then
6061 test -z "$NM" && NM=nm
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6069 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6070 if ${lt_cv_nm_interface+:} false; then :
6071 $as_echo_n "(cached) " >&6
6073 lt_cv_nm_interface="BSD nm"
6074 echo "int some_variable = 0;" > conftest.$ac_ext
6075 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6076 (eval "$ac_compile" 2>conftest.err)
6077 cat conftest.err >&5
6078 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6079 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6080 cat conftest.err >&5
6081 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6082 cat conftest.out >&5
6083 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6084 lt_cv_nm_interface="MS dumpbin"
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6089 $as_echo "$lt_cv_nm_interface" >&6; }
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6092 $as_echo_n "checking whether ln -s works... " >&6; }
6094 if test "$LN_S" = "ln -s"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6096 $as_echo "yes" >&6; }
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6099 $as_echo "no, using $LN_S" >&6; }
6102 # find the maximum length of command line arguments
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6104 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6105 if ${lt_cv_sys_max_cmd_len+:} false; then :
6106 $as_echo_n "(cached) " >&6
6113 # On DJGPP, this test can blow up pretty badly due to problems in libc
6114 # (any single argument exceeding 2000 bytes causes a buffer overrun
6115 # during glob expansion). Even if it were fixed, the result of this
6116 # check would be larger than it should be.
6117 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6121 # Under GNU Hurd, this test is not required because there is
6122 # no limit to the length of command line arguments.
6123 # Libtool will interpret -1 as no limit whatsoever
6124 lt_cv_sys_max_cmd_len=-1;
6127 cygwin* | mingw* | cegcc*)
6128 # On Win9x/ME, this test blows up -- it succeeds, but takes
6129 # about 5 minutes as the teststring grows exponentially.
6130 # Worse, since 9x/ME are not pre-emptively multitasking,
6131 # you end up with a "frozen" computer, even though with patience
6132 # the test eventually succeeds (with a max line length of 256k).
6133 # Instead, let's just punt: use the minimum linelength reported by
6134 # all of the supported platforms: 8192 (on NT/2K/XP).
6135 lt_cv_sys_max_cmd_len=8192;
6139 # On MiNT this can take a long time and run out of memory.
6140 lt_cv_sys_max_cmd_len=8192;
6144 # On AmigaOS with pdksh, this test takes hours, literally.
6145 # So we just punt and use a minimum line length of 8192.
6146 lt_cv_sys_max_cmd_len=8192;
6149 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6150 # This has been around since 386BSD, at least. Likely further.
6151 if test -x /sbin/sysctl; then
6152 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6153 elif test -x /usr/sbin/sysctl; then
6154 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6156 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6158 # And add a safety zone
6159 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6164 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6165 lt_cv_sys_max_cmd_len=196608
6169 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6170 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6171 # nice to cause kernel panics so lets avoid the loop below.
6172 # First set a reasonable default.
6173 lt_cv_sys_max_cmd_len=16384
6175 if test -x /sbin/sysconfig; then
6176 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6177 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6182 lt_cv_sys_max_cmd_len=102400
6184 sysv5* | sco5v6* | sysv4.2uw2*)
6185 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6186 if test -n "$kargmax"; then
6187 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6189 lt_cv_sys_max_cmd_len=32768
6193 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6194 if test -n "$lt_cv_sys_max_cmd_len"; then
6195 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6198 # Make teststring a little bigger before we do anything with it.
6199 # a 1K string should be a reasonable start.
6200 for i in 1 2 3 4 5 6 7 8 ; do
6201 teststring=$teststring$teststring
6203 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6204 # If test is not a shell built-in, we'll probably end up computing a
6205 # maximum length that is only half of the actual maximum length, but
6207 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6208 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6209 test $i != 17 # 1/2 MB should be enough
6212 teststring=$teststring$teststring
6214 # Only check the string length outside the loop.
6215 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6217 # Add a significant safety factor because C++ compilers can tack on
6218 # massive amounts of additional arguments before passing them to the
6219 # linker. It appears as though 1/2 is a usable value.
6220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6227 if test -n $lt_cv_sys_max_cmd_len ; then
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6229 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6232 $as_echo "none" >&6; }
6234 max_cmd_len=$lt_cv_sys_max_cmd_len
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6246 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6247 # Try some XSI features
6250 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6252 && eval 'test $(( 1 + 1 )) -eq 2 \
6253 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6256 $as_echo "$xsi_shell" >&6; }
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6260 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6262 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6264 && lt_shell_append=yes
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6266 $as_echo "$lt_shell_append" >&6; }
6269 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6279 # test EBCDIC or ASCII
6280 case `echo X|tr X '\101'` in
6281 A) # ASCII based system
6282 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6283 lt_SP2NL='tr \040 \012'
6284 lt_NL2SP='tr \015\012 \040\040'
6286 *) # EBCDIC based system
6287 lt_SP2NL='tr \100 \n'
6288 lt_NL2SP='tr \r\n \100\100'
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6301 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6302 if ${lt_cv_to_host_file_cmd+:} false; then :
6303 $as_echo_n "(cached) " >&6
6308 *-*-mingw* ) # actually msys
6309 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6312 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6314 * ) # otherwise, assume *nix
6315 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6321 *-*-mingw* ) # actually msys
6322 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6325 lt_cv_to_host_file_cmd=func_convert_file_noop
6327 * ) # otherwise, assume *nix
6328 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6332 * ) # unhandled hosts (and "normal" native builds)
6333 lt_cv_to_host_file_cmd=func_convert_file_noop
6339 to_host_file_cmd=$lt_cv_to_host_file_cmd
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6341 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6348 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6349 if ${lt_cv_to_tool_file_cmd+:} false; then :
6350 $as_echo_n "(cached) " >&6
6352 #assume ordinary cross tools, or native build.
6353 lt_cv_to_tool_file_cmd=func_convert_file_noop
6357 *-*-mingw* ) # actually msys
6358 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6366 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6368 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6375 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6376 if ${lt_cv_ld_reload_flag+:} false; then :
6377 $as_echo_n "(cached) " >&6
6379 lt_cv_ld_reload_flag='-r'
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6382 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6383 reload_flag=$lt_cv_ld_reload_flag
6384 case $reload_flag in
6386 *) reload_flag=" $reload_flag" ;;
6388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6390 cygwin* | mingw* | pw32* | cegcc*)
6391 if test "$GCC" != yes; then
6396 if test "$GCC" = yes; then
6397 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6399 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_OBJDUMP+:} false; then :
6418 $as_echo_n "(cached) " >&6
6420 if test -n "$OBJDUMP"; then
6421 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440 OBJDUMP=$ac_cv_prog_OBJDUMP
6441 if test -n "$OBJDUMP"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6443 $as_echo "$OBJDUMP" >&6; }
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6451 if test -z "$ac_cv_prog_OBJDUMP"; then
6452 ac_ct_OBJDUMP=$OBJDUMP
6453 # Extract the first word of "objdump", so it can be a program name with args.
6454 set dummy objdump; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6458 $as_echo_n "(cached) " >&6
6460 if test -n "$ac_ct_OBJDUMP"; then
6461 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6481 if test -n "$ac_ct_OBJDUMP"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6483 $as_echo "$ac_ct_OBJDUMP" >&6; }
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6489 if test "x$ac_ct_OBJDUMP" = x; then
6492 case $cross_compiling:$ac_tool_warned in
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6498 OBJDUMP=$ac_ct_OBJDUMP
6501 OBJDUMP="$ac_cv_prog_OBJDUMP"
6504 test -z "$OBJDUMP" && OBJDUMP=objdump
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6515 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6516 if ${lt_cv_deplibs_check_method+:} false; then :
6517 $as_echo_n "(cached) " >&6
6519 lt_cv_file_magic_cmd='$MAGIC_CMD'
6520 lt_cv_file_magic_test_file=
6521 lt_cv_deplibs_check_method='unknown'
6522 # Need to set the preceding variable on all platforms that support
6523 # interlibrary dependencies.
6524 # 'none' -- dependencies not supported.
6525 # `unknown' -- same as none, but documents that we really don't know.
6526 # 'pass_all' -- all dependencies passed with no checks.
6527 # 'test_compile' -- check by making test program.
6528 # 'file_magic [[regex]]' -- check by looking for files in library path
6529 # which responds to the $file_magic_cmd with a given extended regex.
6530 # If you have `file' or equivalent on your system and you're not sure
6531 # whether `pass_all' will *always* work, you probably want this one.
6535 lt_cv_deplibs_check_method=pass_all
6539 lt_cv_deplibs_check_method=pass_all
6543 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6544 lt_cv_file_magic_cmd='/usr/bin/file -L'
6545 lt_cv_file_magic_test_file=/shlib/libc.so
6549 # func_win32_libid is a shell function defined in ltmain.sh
6550 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6551 lt_cv_file_magic_cmd='func_win32_libid'
6555 # Base MSYS/MinGW do not provide the 'file' command needed by
6556 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6557 # unless we find 'file', for example because we are cross-compiling.
6558 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6559 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6560 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6561 lt_cv_file_magic_cmd='func_win32_libid'
6563 # Keep this pattern in sync with the one in func_win32_libid.
6564 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6565 lt_cv_file_magic_cmd='$OBJDUMP -f'
6570 # use the weaker test based on 'objdump'. See mingw*.
6571 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6572 lt_cv_file_magic_cmd='$OBJDUMP -f'
6575 darwin* | rhapsody*)
6576 lt_cv_deplibs_check_method=pass_all
6579 freebsd* | dragonfly*)
6580 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6583 # Not sure whether the presence of OpenBSD here was a mistake.
6584 # Let's accept both of them until this is cleared up.
6585 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6586 lt_cv_file_magic_cmd=/usr/bin/file
6587 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6591 lt_cv_deplibs_check_method=pass_all
6596 lt_cv_deplibs_check_method=pass_all
6600 lt_cv_deplibs_check_method=pass_all
6603 hpux10.20* | hpux11*)
6604 lt_cv_file_magic_cmd=/usr/bin/file
6607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6608 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6611 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6612 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6616 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6622 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6626 irix5* | irix6* | nonstopux*)
6628 *-32|*"-32 ") libmagic=32-bit;;
6629 *-n32|*"-n32 ") libmagic=N32;;
6630 *-64|*"-64 ") libmagic=64-bit;;
6631 *) libmagic=never-match;;
6633 lt_cv_deplibs_check_method=pass_all
6636 # This must be Linux ELF.
6637 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6638 lt_cv_deplibs_check_method=pass_all
6642 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6651 lt_cv_file_magic_cmd=/usr/bin/file
6652 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6656 lt_cv_deplibs_check_method=pass_all
6660 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6667 osf3* | osf4* | osf5*)
6668 lt_cv_deplibs_check_method=pass_all
6672 lt_cv_deplibs_check_method=pass_all
6676 lt_cv_deplibs_check_method=pass_all
6679 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6680 lt_cv_deplibs_check_method=pass_all
6684 case $host_vendor in
6686 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]'
6687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6690 lt_cv_deplibs_check_method=pass_all
6693 lt_cv_file_magic_cmd='/bin/file'
6694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6697 lt_cv_file_magic_cmd='/bin/file'
6698 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6699 lt_cv_file_magic_test_file=/lib/libc.so
6702 lt_cv_deplibs_check_method=pass_all
6705 lt_cv_deplibs_check_method=pass_all
6711 lt_cv_deplibs_check_method=pass_all
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6717 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6721 if test "$build" = "$host"; then
6724 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6727 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6733 file_magic_cmd=$lt_cv_file_magic_cmd
6734 deplibs_check_method=$lt_cv_deplibs_check_method
6735 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6758 if test -n "$ac_tool_prefix"; then
6759 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6760 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if ${ac_cv_prog_DLLTOOL+:} false; then :
6764 $as_echo_n "(cached) " >&6
6766 if test -n "$DLLTOOL"; then
6767 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 DLLTOOL=$ac_cv_prog_DLLTOOL
6787 if test -n "$DLLTOOL"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6789 $as_echo "$DLLTOOL" >&6; }
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6797 if test -z "$ac_cv_prog_DLLTOOL"; then
6798 ac_ct_DLLTOOL=$DLLTOOL
6799 # Extract the first word of "dlltool", so it can be a program name with args.
6800 set dummy dlltool; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6804 $as_echo_n "(cached) " >&6
6806 if test -n "$ac_ct_DLLTOOL"; then
6807 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6827 if test -n "$ac_ct_DLLTOOL"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6829 $as_echo "$ac_ct_DLLTOOL" >&6; }
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6835 if test "x$ac_ct_DLLTOOL" = x; then
6838 case $cross_compiling:$ac_tool_warned in
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6842 ac_tool_warned=yes ;;
6844 DLLTOOL=$ac_ct_DLLTOOL
6847 DLLTOOL="$ac_cv_prog_DLLTOOL"
6850 test -z "$DLLTOOL" && DLLTOOL=dlltool
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6862 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6863 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6864 $as_echo_n "(cached) " >&6
6866 lt_cv_sharedlib_from_linklib_cmd='unknown'
6869 cygwin* | mingw* | pw32* | cegcc*)
6870 # two different shell functions defined in ltmain.sh
6871 # decide which to use based on capabilities of $DLLTOOL
6872 case `$DLLTOOL --help 2>&1` in
6873 *--identify-strict*)
6874 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6877 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6882 # fallback: assume linklib IS sharedlib
6883 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6889 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6890 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6891 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6899 if test -n "$ac_tool_prefix"; then
6902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_prog_AR+:} false; then :
6907 $as_echo_n "(cached) " >&6
6909 if test -n "$AR"; then
6910 ac_cv_prog_AR="$AR" # Let the user override the test.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930 if test -n "$AR"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6932 $as_echo "$AR" >&6; }
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6935 $as_echo "no" >&6; }
6939 test -n "$AR" && break
6942 if test -z "$AR"; then
6946 # Extract the first word of "$ac_prog", so it can be a program name with args.
6947 set dummy $ac_prog; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6951 $as_echo_n "(cached) " >&6
6953 if test -n "$ac_ct_AR"; then
6954 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_prog_ac_ct_AR="$ac_prog"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6973 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6974 if test -n "$ac_ct_AR"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6976 $as_echo "$ac_ct_AR" >&6; }
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6983 test -n "$ac_ct_AR" && break
6986 if test "x$ac_ct_AR" = x; then
6989 case $cross_compiling:$ac_tool_warned in
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993 ac_tool_warned=yes ;;
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7013 $as_echo_n "checking for archiver @FILE support... " >&6; }
7014 if ${lt_cv_ar_at_file+:} false; then :
7015 $as_echo_n "(cached) " >&6
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7029 if ac_fn_c_try_compile "$LINENO"; then :
7030 echo conftest.$ac_objext > conftest.lst
7031 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7033 (eval $lt_ar_try) 2>&5
7035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036 test $ac_status = 0; }
7037 if test "$ac_status" -eq 0; then
7038 # Ensure the archiver fails upon bogus file names.
7039 rm -f conftest.$ac_objext libconftest.a
7040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7041 (eval $lt_ar_try) 2>&5
7043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7044 test $ac_status = 0; }
7045 if test "$ac_status" -ne 0; then
7049 rm -f conftest.* libconftest.a
7052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7056 $as_echo "$lt_cv_ar_at_file" >&6; }
7058 if test "x$lt_cv_ar_at_file" = xno; then
7061 archiver_list_spec=$lt_cv_ar_at_file
7070 if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7072 set dummy ${ac_tool_prefix}strip; ac_word=$2
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7074 $as_echo_n "checking for $ac_word... " >&6; }
7075 if ${ac_cv_prog_STRIP+:} false; then :
7076 $as_echo_n "(cached) " >&6
7078 if test -n "$STRIP"; then
7079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 STRIP=$ac_cv_prog_STRIP
7099 if test -n "$STRIP"; then
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7101 $as_echo "$STRIP" >&6; }
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7104 $as_echo "no" >&6; }
7109 if test -z "$ac_cv_prog_STRIP"; then
7111 # Extract the first word of "strip", so it can be a program name with args.
7112 set dummy strip; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 if test -n "$ac_ct_STRIP"; then
7119 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir=.
7126 for ac_exec_ext in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_prog_ac_ct_STRIP="strip"
7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7139 if test -n "$ac_ct_STRIP"; then
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7141 $as_echo "$ac_ct_STRIP" >&6; }
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7144 $as_echo "no" >&6; }
7147 if test "x$ac_ct_STRIP" = x; then
7150 case $cross_compiling:$ac_tool_warned in
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7154 ac_tool_warned=yes ;;
7159 STRIP="$ac_cv_prog_STRIP"
7162 test -z "$STRIP" && STRIP=:
7169 if test -n "$ac_tool_prefix"; then
7170 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7171 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_RANLIB+:} false; then :
7175 $as_echo_n "(cached) " >&6
7177 if test -n "$RANLIB"; then
7178 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7187 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 RANLIB=$ac_cv_prog_RANLIB
7198 if test -n "$RANLIB"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7200 $as_echo "$RANLIB" >&6; }
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7208 if test -z "$ac_cv_prog_RANLIB"; then
7209 ac_ct_RANLIB=$RANLIB
7210 # Extract the first word of "ranlib", so it can be a program name with args.
7211 set dummy ranlib; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7215 $as_echo_n "(cached) " >&6
7217 if test -n "$ac_ct_RANLIB"; then
7218 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7227 ac_cv_prog_ac_ct_RANLIB="ranlib"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7238 if test -n "$ac_ct_RANLIB"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7240 $as_echo "$ac_ct_RANLIB" >&6; }
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7246 if test "x$ac_ct_RANLIB" = x; then
7249 case $cross_compiling:$ac_tool_warned in
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253 ac_tool_warned=yes ;;
7255 RANLIB=$ac_ct_RANLIB
7258 RANLIB="$ac_cv_prog_RANLIB"
7261 test -z "$RANLIB" && RANLIB=:
7268 # Determine commands to create old-style static archives.
7269 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7270 old_postinstall_cmds='chmod 644 $oldlib'
7271 old_postuninstall_cmds=
7273 if test -n "$RANLIB"; then
7276 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7279 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7282 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7287 lock_old_archive_extraction=yes ;;
7289 lock_old_archive_extraction=no ;;
7330 # If no C compiler was specified, use CC.
7333 # If no C compiler flags were specified, use CFLAGS.
7334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7336 # Allow CC to be a program name with arguments.
7340 # Check for command to grab the raw symbol name followed by C symbol from nm.
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7342 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7343 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7344 $as_echo_n "(cached) " >&6
7347 # These are sane defaults that work on at least a few old systems.
7348 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7350 # Character class describing NM global symbol codes.
7351 symcode='[BCDEGRST]'
7353 # Regexp to match symbols that can be accessed directly from C.
7354 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7356 # Define system-specific variables.
7361 cygwin* | mingw* | pw32* | cegcc*)
7362 symcode='[ABCDGISTW]'
7365 if test "$host_cpu" = ia64; then
7366 symcode='[ABCDEGRST]'
7370 symcode='[BCDEGRST]'
7373 symcode='[BCDEGQRST]'
7384 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7392 # If we're using GNU nm, then use its standard symbol codes.
7393 case `$NM -V 2>&1` in
7394 *GNU* | *'with BFD'*)
7395 symcode='[ABCDGIRSTW]' ;;
7398 # Transform an extracted symbol line into a proper C declaration.
7399 # Some systems (esp. on ia64) link data and code symbols differently,
7400 # so use this general approach.
7401 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7403 # Transform an extracted symbol line into symbol name and symbol address
7404 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7405 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'"
7407 # Handle CRLF in mingw tool chain
7411 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7415 # Try without a prefix underscore, then with it.
7416 for ac_symprfx in "" "_"; do
7418 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7419 symxfrm="\\1 $ac_symprfx\\2 \\2"
7421 # Write the raw and C identifiers.
7422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7423 # Fake it for dumpbin and say T for any non-static function
7424 # and D for any global variable.
7425 # Also find C++ and __fastcall symbols from MSVC++,
7426 # which start with @ or ?.
7427 lt_cv_sys_global_symbol_pipe="$AWK '"\
7428 " {last_section=section; section=\$ 3};"\
7429 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7430 " \$ 0!~/External *\|/{next};"\
7431 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7432 " {if(hide[section]) next};"\
7433 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7434 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7435 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7436 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7437 " ' prfx=^$ac_symprfx"
7439 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7441 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7443 # Check to see that the pipe works correctly.
7447 cat > conftest.$ac_ext <<_LT_EOF
7452 void nm_test_func(void);
7453 void nm_test_func(void){}
7457 int main(){nm_test_var='a';nm_test_func();return(0);}
7460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7461 (eval $ac_compile) 2>&5
7463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464 test $ac_status = 0; }; then
7465 # Now try to grab the symbols.
7467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7468 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7471 test $ac_status = 0; } && test -s "$nlist"; then
7472 # Try sorting and uniquifying the output.
7473 if sort "$nlist" | uniq > "$nlist"T; then
7474 mv -f "$nlist"T "$nlist"
7479 # Make sure that we snagged all the symbols we need.
7480 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7481 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7482 cat <<_LT_EOF > conftest.$ac_ext
7483 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7484 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7485 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7486 relocations are performed -- see ld's documentation on pseudo-relocs. */
7487 # define LT_DLSYM_CONST
7488 #elif defined(__osf__)
7489 /* This system does not cope well with relocations in const data. */
7490 # define LT_DLSYM_CONST
7492 # define LT_DLSYM_CONST const
7500 # Now generate the symbol file.
7501 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7503 cat <<_LT_EOF >> conftest.$ac_ext
7505 /* The mapping between symbol names and symbols. */
7506 LT_DLSYM_CONST struct {
7510 lt__PROGRAM__LTX_preloaded_symbols[] =
7512 { "@PROGRAM@", (void *) 0 },
7514 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7515 cat <<\_LT_EOF >> conftest.$ac_ext
7519 /* This works around a problem in FreeBSD linker */
7520 #ifdef FREEBSD_WORKAROUND
7521 static const void *lt_preloaded_setup() {
7522 return lt__PROGRAM__LTX_preloaded_symbols;
7530 # Now try linking the two files.
7531 mv conftest.$ac_objext conftstm.$ac_objext
7532 lt_globsym_save_LIBS=$LIBS
7533 lt_globsym_save_CFLAGS=$CFLAGS
7534 LIBS="conftstm.$ac_objext"
7535 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7537 (eval $ac_link) 2>&5
7539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7543 LIBS=$lt_globsym_save_LIBS
7544 CFLAGS=$lt_globsym_save_CFLAGS
7546 echo "cannot find nm_test_func in $nlist" >&5
7549 echo "cannot find nm_test_var in $nlist" >&5
7552 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7555 echo "$progname: failed program was:" >&5
7556 cat conftest.$ac_ext >&5
7558 rm -rf conftest* conftst*
7560 # Do not use the global_symbol_pipe unless it works.
7561 if test "$pipe_works" = yes; then
7564 lt_cv_sys_global_symbol_pipe=
7570 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7571 lt_cv_sys_global_symbol_to_cdecl=
7573 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7575 $as_echo "failed" >&6; }
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7578 $as_echo "ok" >&6; }
7581 # Response file support.
7582 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7583 nm_file_list_spec='@'
7584 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7585 nm_file_list_spec='@'
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7615 $as_echo_n "checking for sysroot... " >&6; }
7617 # Check whether --with-sysroot was given.
7618 if test "${with_sysroot+set}" = set; then :
7619 withval=$with_sysroot;
7626 case ${with_sysroot} in #(
7628 if test "$GCC" = yes; then
7629 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7633 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7639 $as_echo "${with_sysroot}" >&6; }
7640 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7645 $as_echo "${lt_sysroot:-no}" >&6; }
7651 # Check whether --enable-libtool-lock was given.
7652 if test "${enable_libtool_lock+set}" = set; then :
7653 enableval=$enable_libtool_lock;
7656 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7658 # Some flags need to be propagated to the compiler or linker for good
7662 # Find out which ABI we are using.
7663 echo 'int i;' > conftest.$ac_ext
7664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7665 (eval $ac_compile) 2>&5
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }; then
7669 case `/usr/bin/file conftest.$ac_objext` in
7681 # Find out which ABI we are using.
7682 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7684 (eval $ac_compile) 2>&5
7686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7687 test $ac_status = 0; }; then
7688 if test "$lt_cv_prog_gnu_ld" = yes; then
7689 case `/usr/bin/file conftest.$ac_objext` in
7691 LD="${LD-ld} -melf32bsmip"
7694 LD="${LD-ld} -melf32bmipn32"
7697 LD="${LD-ld} -melf64bmip"
7701 case `/usr/bin/file conftest.$ac_objext` in
7717 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7718 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7719 # Find out which ABI we are using.
7720 echo 'int i;' > conftest.$ac_ext
7721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7722 (eval $ac_compile) 2>&5
7724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7725 test $ac_status = 0; }; then
7726 case `/usr/bin/file conftest.o` in
7729 x86_64-*kfreebsd*-gnu)
7730 LD="${LD-ld} -m elf_i386_fbsd"
7733 LD="${LD-ld} -m elf_i386"
7735 ppc64-*linux*|powerpc64-*linux*)
7736 LD="${LD-ld} -m elf32ppclinux"
7739 LD="${LD-ld} -m elf_s390"
7742 LD="${LD-ld} -m elf32_sparc"
7748 x86_64-*kfreebsd*-gnu)
7749 LD="${LD-ld} -m elf_x86_64_fbsd"
7752 LD="${LD-ld} -m elf_x86_64"
7754 ppc*-*linux*|powerpc*-*linux*)
7755 LD="${LD-ld} -m elf64ppc"
7757 s390*-*linux*|s390*-*tpf*)
7758 LD="${LD-ld} -m elf64_s390"
7761 LD="${LD-ld} -m elf64_sparc"
7771 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7772 SAVE_CFLAGS="$CFLAGS"
7773 CFLAGS="$CFLAGS -belf"
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7775 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7776 if ${lt_cv_cc_needs_belf+:} false; then :
7777 $as_echo_n "(cached) " >&6
7780 ac_cpp='$CPP $CPPFLAGS'
7781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h. */
7796 if ac_fn_c_try_link "$LINENO"; then :
7797 lt_cv_cc_needs_belf=yes
7799 lt_cv_cc_needs_belf=no
7801 rm -f core conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7811 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7812 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7813 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7814 CFLAGS="$SAVE_CFLAGS"
7818 # Find out which ABI we are using.
7819 echo 'int i;' > conftest.$ac_ext
7820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7821 (eval $ac_compile) 2>&5
7823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7824 test $ac_status = 0; }; then
7825 case `/usr/bin/file conftest.o` in
7827 case $lt_cv_prog_gnu_ld in
7828 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7830 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7842 need_locks="$enable_libtool_lock"
7844 if test -n "$ac_tool_prefix"; then
7845 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7846 set dummy ${ac_tool_prefix}mt; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7850 $as_echo_n "(cached) " >&6
7852 if test -n "$MANIFEST_TOOL"; then
7853 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7873 if test -n "$MANIFEST_TOOL"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7875 $as_echo "$MANIFEST_TOOL" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7883 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7884 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7885 # Extract the first word of "mt", so it can be a program name with args.
7886 set dummy mt; ac_word=$2
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888 $as_echo_n "checking for $ac_word... " >&6; }
7889 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7890 $as_echo_n "(cached) " >&6
7892 if test -n "$ac_ct_MANIFEST_TOOL"; then
7893 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7913 if test -n "$ac_ct_MANIFEST_TOOL"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7915 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7921 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7924 case $cross_compiling:$ac_tool_warned in
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7928 ac_tool_warned=yes ;;
7930 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7933 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7936 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7938 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7939 if ${lt_cv_path_mainfest_tool+:} false; then :
7940 $as_echo_n "(cached) " >&6
7942 lt_cv_path_mainfest_tool=no
7943 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7944 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7945 cat conftest.err >&5
7946 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7947 lt_cv_path_mainfest_tool=yes
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7952 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7953 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7963 rhapsody* | darwin*)
7964 if test -n "$ac_tool_prefix"; then
7965 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7966 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7970 $as_echo_n "(cached) " >&6
7972 if test -n "$DSYMUTIL"; then
7973 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7982 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7993 if test -n "$DSYMUTIL"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7995 $as_echo "$DSYMUTIL" >&6; }
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }
8003 if test -z "$ac_cv_prog_DSYMUTIL"; then
8004 ac_ct_DSYMUTIL=$DSYMUTIL
8005 # Extract the first word of "dsymutil", so it can be a program name with args.
8006 set dummy dsymutil; ac_word=$2
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8008 $as_echo_n "checking for $ac_word... " >&6; }
8009 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8010 $as_echo_n "(cached) " >&6
8012 if test -n "$ac_ct_DSYMUTIL"; then
8013 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019 test -z "$as_dir" && as_dir=.
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8033 if test -n "$ac_ct_DSYMUTIL"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8035 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8041 if test "x$ac_ct_DSYMUTIL" = x; then
8044 case $cross_compiling:$ac_tool_warned in
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8048 ac_tool_warned=yes ;;
8050 DSYMUTIL=$ac_ct_DSYMUTIL
8053 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8056 if test -n "$ac_tool_prefix"; then
8057 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8058 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if ${ac_cv_prog_NMEDIT+:} false; then :
8062 $as_echo_n "(cached) " >&6
8064 if test -n "$NMEDIT"; then
8065 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8074 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 NMEDIT=$ac_cv_prog_NMEDIT
8085 if test -n "$NMEDIT"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8087 $as_echo "$NMEDIT" >&6; }
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8095 if test -z "$ac_cv_prog_NMEDIT"; then
8096 ac_ct_NMEDIT=$NMEDIT
8097 # Extract the first word of "nmedit", so it can be a program name with args.
8098 set dummy nmedit; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8102 $as_echo_n "(cached) " >&6
8104 if test -n "$ac_ct_NMEDIT"; then
8105 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 test -z "$as_dir" && as_dir=.
8112 for ac_exec_ext in '' $ac_executable_extensions; do
8113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8114 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8125 if test -n "$ac_ct_NMEDIT"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8127 $as_echo "$ac_ct_NMEDIT" >&6; }
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8133 if test "x$ac_ct_NMEDIT" = x; then
8136 case $cross_compiling:$ac_tool_warned in
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8140 ac_tool_warned=yes ;;
8142 NMEDIT=$ac_ct_NMEDIT
8145 NMEDIT="$ac_cv_prog_NMEDIT"
8148 if test -n "$ac_tool_prefix"; then
8149 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8150 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if ${ac_cv_prog_LIPO+:} false; then :
8154 $as_echo_n "(cached) " >&6
8156 if test -n "$LIPO"; then
8157 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8166 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 LIPO=$ac_cv_prog_LIPO
8177 if test -n "$LIPO"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8179 $as_echo "$LIPO" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8187 if test -z "$ac_cv_prog_LIPO"; then
8189 # Extract the first word of "lipo", so it can be a program name with args.
8190 set dummy lipo; ac_word=$2
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192 $as_echo_n "checking for $ac_word... " >&6; }
8193 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8194 $as_echo_n "(cached) " >&6
8196 if test -n "$ac_ct_LIPO"; then
8197 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 test -z "$as_dir" && as_dir=.
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8206 ac_cv_prog_ac_ct_LIPO="lipo"
8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8217 if test -n "$ac_ct_LIPO"; then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8219 $as_echo "$ac_ct_LIPO" >&6; }
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8225 if test "x$ac_ct_LIPO" = x; then
8228 case $cross_compiling:$ac_tool_warned in
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8232 ac_tool_warned=yes ;;
8237 LIPO="$ac_cv_prog_LIPO"
8240 if test -n "$ac_tool_prefix"; then
8241 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8242 set dummy ${ac_tool_prefix}otool; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_prog_OTOOL+:} false; then :
8246 $as_echo_n "(cached) " >&6
8248 if test -n "$OTOOL"; then
8249 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8258 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 OTOOL=$ac_cv_prog_OTOOL
8269 if test -n "$OTOOL"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8271 $as_echo "$OTOOL" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8279 if test -z "$ac_cv_prog_OTOOL"; then
8281 # Extract the first word of "otool", so it can be a program name with args.
8282 set dummy otool; ac_word=$2
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284 $as_echo_n "checking for $ac_word... " >&6; }
8285 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8286 $as_echo_n "(cached) " >&6
8288 if test -n "$ac_ct_OTOOL"; then
8289 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8298 ac_cv_prog_ac_ct_OTOOL="otool"
8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8308 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8309 if test -n "$ac_ct_OTOOL"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8311 $as_echo "$ac_ct_OTOOL" >&6; }
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8317 if test "x$ac_ct_OTOOL" = x; then
8320 case $cross_compiling:$ac_tool_warned in
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8324 ac_tool_warned=yes ;;
8329 OTOOL="$ac_cv_prog_OTOOL"
8332 if test -n "$ac_tool_prefix"; then
8333 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8334 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_OTOOL64+:} false; then :
8338 $as_echo_n "(cached) " >&6
8340 if test -n "$OTOOL64"; then
8341 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8350 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 OTOOL64=$ac_cv_prog_OTOOL64
8361 if test -n "$OTOOL64"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8363 $as_echo "$OTOOL64" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8371 if test -z "$ac_cv_prog_OTOOL64"; then
8372 ac_ct_OTOOL64=$OTOOL64
8373 # Extract the first word of "otool64", so it can be a program name with args.
8374 set dummy otool64; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8378 $as_echo_n "(cached) " >&6
8380 if test -n "$ac_ct_OTOOL64"; then
8381 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 test -z "$as_dir" && as_dir=.
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8390 ac_cv_prog_ac_ct_OTOOL64="otool64"
8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8401 if test -n "$ac_ct_OTOOL64"; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8403 $as_echo "$ac_ct_OTOOL64" >&6; }
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8409 if test "x$ac_ct_OTOOL64" = x; then
8412 case $cross_compiling:$ac_tool_warned in
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8416 ac_tool_warned=yes ;;
8418 OTOOL64=$ac_ct_OTOOL64
8421 OTOOL64="$ac_cv_prog_OTOOL64"
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8451 $as_echo_n "checking for -single_module linker flag... " >&6; }
8452 if ${lt_cv_apple_cc_single_mod+:} false; then :
8453 $as_echo_n "(cached) " >&6
8455 lt_cv_apple_cc_single_mod=no
8456 if test -z "${LT_MULTI_MODULE}"; then
8457 # By default we will add the -single_module flag. You can override
8458 # by either setting the environment variable LT_MULTI_MODULE
8459 # non-empty at configure time, or by adding -multi_module to the
8461 rm -rf libconftest.dylib*
8462 echo "int foo(void){return 1;}" > conftest.c
8463 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8464 -dynamiclib -Wl,-single_module conftest.c" >&5
8465 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8466 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8468 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8469 lt_cv_apple_cc_single_mod=yes
8471 cat conftest.err >&5
8473 rm -rf libconftest.dylib*
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8478 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8480 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8481 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8482 $as_echo_n "(cached) " >&6
8484 lt_cv_ld_exported_symbols_list=no
8485 save_LDFLAGS=$LDFLAGS
8486 echo "_main" > conftest.sym
8487 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8489 /* end confdefs.h. */
8499 if ac_fn_c_try_link "$LINENO"; then :
8500 lt_cv_ld_exported_symbols_list=yes
8502 lt_cv_ld_exported_symbols_list=no
8504 rm -f core conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 LDFLAGS="$save_LDFLAGS"
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8510 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8512 $as_echo_n "checking for -force_load linker flag... " >&6; }
8513 if ${lt_cv_ld_force_load+:} false; then :
8514 $as_echo_n "(cached) " >&6
8516 lt_cv_ld_force_load=no
8517 cat > conftest.c << _LT_EOF
8518 int forced_loaded() { return 2;}
8520 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8521 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8522 echo "$AR cru libconftest.a conftest.o" >&5
8523 $AR cru libconftest.a conftest.o 2>&5
8524 echo "$RANLIB libconftest.a" >&5
8525 $RANLIB libconftest.a 2>&5
8526 cat > conftest.c << _LT_EOF
8527 int main() { return 0;}
8529 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8530 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8532 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8533 lt_cv_ld_force_load=yes
8535 cat conftest.err >&5
8537 rm -f conftest.err libconftest.a conftest conftest.c
8538 rm -rf conftest.dSYM
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8542 $as_echo "$lt_cv_ld_force_load" >&6; }
8544 rhapsody* | darwin1.[012])
8545 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8547 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8548 darwin*) # darwin 5.x on
8549 # if running on 10.5 or later, the deployment target defaults
8550 # to the OS version, if on x86, and 10.4, the deployment
8551 # target defaults to 10.4. Don't you love it?
8552 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8553 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8554 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8556 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8558 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8562 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8563 _lt_dar_single_mod='$single_module'
8565 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8566 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8568 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8570 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8571 _lt_dsymutil='~$DSYMUTIL $lib || :'
8578 for ac_header in dlfcn.h
8580 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8582 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8583 cat >>confdefs.h <<_ACEOF
8584 #define HAVE_DLFCN_H 1
8605 # Check whether --enable-shared was given.
8606 if test "${enable_shared+set}" = set; then :
8607 enableval=$enable_shared; p=${PACKAGE-default}
8609 yes) enable_shared=yes ;;
8610 no) enable_shared=no ;;
8613 # Look at the argument we got. We use all the common list separators.
8614 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8615 for pkg in $enableval; do
8617 if test "X$pkg" = "X$p"; then
8636 # Check whether --enable-static was given.
8637 if test "${enable_static+set}" = set; then :
8638 enableval=$enable_static; p=${PACKAGE-default}
8640 yes) enable_static=yes ;;
8641 no) enable_static=no ;;
8644 # Look at the argument we got. We use all the common list separators.
8645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8646 for pkg in $enableval; do
8648 if test "X$pkg" = "X$p"; then
8668 # Check whether --with-pic was given.
8669 if test "${with_pic+set}" = set; then :
8670 withval=$with_pic; pic_mode="$withval"
8676 test -z "$pic_mode" && pic_mode=default
8684 # Check whether --enable-fast-install was given.
8685 if test "${enable_fast_install+set}" = set; then :
8686 enableval=$enable_fast_install; p=${PACKAGE-default}
8688 yes) enable_fast_install=yes ;;
8689 no) enable_fast_install=no ;;
8691 enable_fast_install=no
8692 # Look at the argument we got. We use all the common list separators.
8693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8694 for pkg in $enableval; do
8696 if test "X$pkg" = "X$p"; then
8697 enable_fast_install=yes
8704 enable_fast_install=yes
8717 # This can be used to rebuild libtool when needed
8718 LIBTOOL_DEPS="$ltmain"
8720 # Always use our own libtool.
8721 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8748 test -z "$LN_S" && LN_S="ln -s"
8763 if test -n "${ZSH_VERSION+set}" ; then
8764 setopt NO_GLOB_SUBST
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8768 $as_echo_n "checking for objdir... " >&6; }
8769 if ${lt_cv_objdir+:} false; then :
8770 $as_echo_n "(cached) " >&6
8772 rm -f .libs 2>/dev/null
8773 mkdir .libs 2>/dev/null
8774 if test -d .libs; then
8777 # MS-DOS does not allow filenames that begin with a dot.
8780 rmdir .libs 2>/dev/null
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8783 $as_echo "$lt_cv_objdir" >&6; }
8784 objdir=$lt_cv_objdir
8790 cat >>confdefs.h <<_ACEOF
8791 #define LT_OBJDIR "$lt_cv_objdir/"
8799 # AIX sometimes has problems with the GCC collect2 program. For some
8800 # reason, if we set the COLLECT_NAMES environment variable, the problems
8801 # vanish in a puff of smoke.
8802 if test "X${COLLECT_NAMES+set}" != Xset; then
8804 export COLLECT_NAMES
8811 can_build_shared=yes
8813 # All known linkers require a `.a' archive for static linking (except MSVC,
8814 # which needs '.lib').
8817 with_gnu_ld="$lt_cv_prog_gnu_ld"
8820 old_CFLAGS="$CFLAGS"
8822 # Set sane defaults for various variables
8823 test -z "$CC" && CC=cc
8824 test -z "$LTCC" && LTCC=$CC
8825 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8826 test -z "$LD" && LD=ld
8827 test -z "$ac_objext" && ac_objext=o
8829 for cc_temp in $compiler""; do
8831 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8832 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8837 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8840 # Only perform the check for file, if the check method requires it
8841 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8842 case $deplibs_check_method in
8844 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8846 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8847 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8848 $as_echo_n "(cached) " >&6
8852 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8855 lt_save_MAGIC_CMD="$MAGIC_CMD"
8856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8857 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8858 for ac_dir in $ac_dummy; do
8860 test -z "$ac_dir" && ac_dir=.
8861 if test -f $ac_dir/${ac_tool_prefix}file; then
8862 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8863 if test -n "$file_magic_test_file"; then
8864 case $deplibs_check_method in
8866 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8867 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8868 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8869 $EGREP "$file_magic_regex" > /dev/null; then
8874 *** Warning: the command libtool uses to detect shared libraries,
8875 *** $file_magic_cmd, produces output that libtool cannot recognize.
8876 *** The result is that libtool may fail to recognize shared libraries
8877 *** as such. This will affect the creation of libtool libraries that
8878 *** depend on shared libraries, but programs linked with such libtool
8879 *** libraries will work regardless of this problem. Nevertheless, you
8880 *** may want to report the problem to your system manager and/or to
8881 *** bug-libtool@gnu.org
8891 MAGIC_CMD="$lt_save_MAGIC_CMD"
8896 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8897 if test -n "$MAGIC_CMD"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8899 $as_echo "$MAGIC_CMD" >&6; }
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8902 $as_echo "no" >&6; }
8909 if test -z "$lt_cv_path_MAGIC_CMD"; then
8910 if test -n "$ac_tool_prefix"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8912 $as_echo_n "checking for file... " >&6; }
8913 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8914 $as_echo_n "(cached) " >&6
8918 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8921 lt_save_MAGIC_CMD="$MAGIC_CMD"
8922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8923 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8924 for ac_dir in $ac_dummy; do
8926 test -z "$ac_dir" && ac_dir=.
8927 if test -f $ac_dir/file; then
8928 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8929 if test -n "$file_magic_test_file"; then
8930 case $deplibs_check_method in
8932 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8933 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8934 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8935 $EGREP "$file_magic_regex" > /dev/null; then
8940 *** Warning: the command libtool uses to detect shared libraries,
8941 *** $file_magic_cmd, produces output that libtool cannot recognize.
8942 *** The result is that libtool may fail to recognize shared libraries
8943 *** as such. This will affect the creation of libtool libraries that
8944 *** depend on shared libraries, but programs linked with such libtool
8945 *** libraries will work regardless of this problem. Nevertheless, you
8946 *** may want to report the problem to your system manager and/or to
8947 *** bug-libtool@gnu.org
8957 MAGIC_CMD="$lt_save_MAGIC_CMD"
8962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8963 if test -n "$MAGIC_CMD"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8965 $as_echo "$MAGIC_CMD" >&6; }
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8981 # Use C for the default configuration in the libtool script
8985 ac_cpp='$CPP $CPPFLAGS'
8986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8991 # Source file extension for C test sources.
8994 # Object file extension for compiled C test sources.
8998 # Code to be used in simple compile tests
8999 lt_simple_compile_test_code="int some_variable = 0;"
9001 # Code to be used in simple link tests
9002 lt_simple_link_test_code='int main(){return(0);}'
9010 # If no C compiler was specified, use CC.
9013 # If no C compiler flags were specified, use CFLAGS.
9014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9016 # Allow CC to be a program name with arguments.
9019 # Save the default compiler, since it gets overwritten when the other
9020 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9021 compiler_DEFAULT=$CC
9023 # save warnings/boilerplate of simple test code
9024 ac_outfile=conftest.$ac_objext
9025 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9026 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9027 _lt_compiler_boilerplate=`cat conftest.err`
9030 ac_outfile=conftest.$ac_objext
9031 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9032 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9033 _lt_linker_boilerplate=`cat conftest.err`
9038 ## There is no encapsulation within the following macros, do not change
9039 ## the running order or otherwise move them around unless you know exactly
9040 ## what you are doing...
9041 if test -n "$compiler"; then
9043 lt_prog_compiler_no_builtin_flag=
9045 if test "$GCC" = yes; then
9046 case $cc_basename in
9048 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9050 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9054 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9055 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9056 $as_echo_n "(cached) " >&6
9058 lt_cv_prog_compiler_rtti_exceptions=no
9059 ac_outfile=conftest.$ac_objext
9060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9061 lt_compiler_flag="-fno-rtti -fno-exceptions"
9062 # Insert the option either (1) after the last *FLAGS variable, or
9063 # (2) before a word containing "conftest.", or (3) at the end.
9064 # Note that $ac_compile itself does not contain backslashes and begins
9065 # with a dollar sign (not a hyphen), so the echo should work correctly.
9066 # The option is referenced via a variable to avoid confusing sed.
9067 lt_compile=`echo "$ac_compile" | $SED \
9068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9070 -e 's:$: $lt_compiler_flag:'`
9071 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9072 (eval "$lt_compile" 2>conftest.err)
9074 cat conftest.err >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 if (exit $ac_status) && test -s "$ac_outfile"; then
9077 # The compiler can only warn and ignore the option if not recognized
9078 # So say no if there are warnings other than the usual output.
9079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9082 lt_cv_prog_compiler_rtti_exceptions=yes
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9089 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9091 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9092 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9104 lt_prog_compiler_wl=
9105 lt_prog_compiler_pic=
9106 lt_prog_compiler_static=
9109 if test "$GCC" = yes; then
9110 lt_prog_compiler_wl='-Wl,'
9111 lt_prog_compiler_static='-static'
9115 # All AIX code is PIC.
9116 if test "$host_cpu" = ia64; then
9117 # AIX 5 now supports IA64 processor
9118 lt_prog_compiler_static='-Bstatic'
9125 # see comment about AmigaOS4 .so support
9126 lt_prog_compiler_pic='-fPIC'
9129 # FIXME: we need at least 68020 code to build shared libraries, but
9130 # adding the `-m68020' flag to GCC prevents building anything better,
9132 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9137 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9138 # PIC is the default for these OSes.
9141 mingw* | cygwin* | pw32* | os2* | cegcc*)
9142 # This hack is so that the source file can tell whether it is being
9143 # built for inclusion in a dll (and should export symbols for example).
9144 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9145 # (--disable-auto-import) libraries
9146 lt_prog_compiler_pic='-DDLL_EXPORT'
9149 darwin* | rhapsody*)
9150 # PIC is the default on this platform
9151 # Common symbols not allowed in MH_DYLIB files
9152 lt_prog_compiler_pic='-fno-common'
9156 # PIC is the default for Haiku.
9157 # The "-static" flag exists, but is broken.
9158 lt_prog_compiler_static=
9162 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9163 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9164 # sets the default TLS model and affects inlining.
9170 lt_prog_compiler_pic='-fPIC'
9176 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9177 # Instead, we relocate shared libraries at runtime.
9181 # Just because we use GCC doesn't mean we suddenly get shared libraries
9182 # on systems that don't support them.
9183 lt_prog_compiler_can_build_shared=no
9188 # QNX uses GNU C++, but need to define -shared option too, otherwise
9190 lt_prog_compiler_pic='-fPIC -shared'
9194 if test -d /usr/nec; then
9195 lt_prog_compiler_pic=-Kconform_pic
9200 lt_prog_compiler_pic='-fPIC'
9204 case $cc_basename in
9205 nvcc*) # Cuda Compiler Driver 2.2
9206 lt_prog_compiler_wl='-Xlinker '
9207 lt_prog_compiler_pic='-Xcompiler -fPIC'
9211 # PORTME Check for flag to pass linker flags through the system compiler.
9214 lt_prog_compiler_wl='-Wl,'
9215 if test "$host_cpu" = ia64; then
9216 # AIX 5 now supports IA64 processor
9217 lt_prog_compiler_static='-Bstatic'
9219 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9223 mingw* | cygwin* | pw32* | os2* | cegcc*)
9224 # This hack is so that the source file can tell whether it is being
9225 # built for inclusion in a dll (and should export symbols for example).
9226 lt_prog_compiler_pic='-DDLL_EXPORT'
9229 hpux9* | hpux10* | hpux11*)
9230 lt_prog_compiler_wl='-Wl,'
9231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9238 lt_prog_compiler_pic='+Z'
9241 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9242 lt_prog_compiler_static='${wl}-a ${wl}archive'
9245 irix5* | irix6* | nonstopux*)
9246 lt_prog_compiler_wl='-Wl,'
9247 # PIC (with -KPIC) is the default.
9248 lt_prog_compiler_static='-non_shared'
9251 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9252 case $cc_basename in
9253 # old Intel for x86_64 which still supported -KPIC.
9255 lt_prog_compiler_wl='-Wl,'
9256 lt_prog_compiler_pic='-KPIC'
9257 lt_prog_compiler_static='-static'
9259 # icc used to be incompatible with GCC.
9260 # ICC 10 doesn't accept -KPIC any more.
9262 lt_prog_compiler_wl='-Wl,'
9263 lt_prog_compiler_pic='-fPIC'
9264 lt_prog_compiler_static='-static'
9266 # Lahey Fortran 8.1.
9268 lt_prog_compiler_wl='-Wl,'
9269 lt_prog_compiler_pic='--shared'
9270 lt_prog_compiler_static='--static'
9273 # NAG Fortran compiler
9274 lt_prog_compiler_wl='-Wl,-Wl,,'
9275 lt_prog_compiler_pic='-PIC'
9276 lt_prog_compiler_static='-Bstatic'
9278 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9279 # Portland Group compilers (*not* the Pentium gcc compiler,
9280 # which looks to be a dead project)
9281 lt_prog_compiler_wl='-Wl,'
9282 lt_prog_compiler_pic='-fpic'
9283 lt_prog_compiler_static='-Bstatic'
9286 lt_prog_compiler_wl='-Wl,'
9287 # All Alpha code is PIC.
9288 lt_prog_compiler_static='-non_shared'
9290 xl* | bgxl* | bgf* | mpixl*)
9291 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9292 lt_prog_compiler_wl='-Wl,'
9293 lt_prog_compiler_pic='-qpic'
9294 lt_prog_compiler_static='-qstaticlink'
9297 case `$CC -V 2>&1 | sed 5q` in
9298 *Sun\ F* | *Sun*Fortran*)
9299 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9300 lt_prog_compiler_pic='-KPIC'
9301 lt_prog_compiler_static='-Bstatic'
9302 lt_prog_compiler_wl=''
9306 lt_prog_compiler_pic='-KPIC'
9307 lt_prog_compiler_static='-Bstatic'
9308 lt_prog_compiler_wl='-Wl,'
9316 lt_prog_compiler_pic='-KPIC'
9317 lt_prog_compiler_static='-Bstatic'
9321 # QNX uses GNU C++, but need to define -shared option too, otherwise
9323 lt_prog_compiler_pic='-fPIC -shared'
9326 osf3* | osf4* | osf5*)
9327 lt_prog_compiler_wl='-Wl,'
9328 # All OSF/1 code is PIC.
9329 lt_prog_compiler_static='-non_shared'
9333 lt_prog_compiler_static='-non_shared'
9337 lt_prog_compiler_pic='-KPIC'
9338 lt_prog_compiler_static='-Bstatic'
9339 case $cc_basename in
9340 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9341 lt_prog_compiler_wl='-Qoption ld ';;
9343 lt_prog_compiler_wl='-Wl,';;
9348 lt_prog_compiler_wl='-Qoption ld '
9349 lt_prog_compiler_pic='-PIC'
9350 lt_prog_compiler_static='-Bstatic'
9353 sysv4 | sysv4.2uw2* | sysv4.3*)
9354 lt_prog_compiler_wl='-Wl,'
9355 lt_prog_compiler_pic='-KPIC'
9356 lt_prog_compiler_static='-Bstatic'
9360 if test -d /usr/nec ;then
9361 lt_prog_compiler_pic='-Kconform_pic'
9362 lt_prog_compiler_static='-Bstatic'
9366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9367 lt_prog_compiler_wl='-Wl,'
9368 lt_prog_compiler_pic='-KPIC'
9369 lt_prog_compiler_static='-Bstatic'
9373 lt_prog_compiler_wl='-Wl,'
9374 lt_prog_compiler_can_build_shared=no
9378 lt_prog_compiler_pic='-pic'
9379 lt_prog_compiler_static='-Bstatic'
9383 lt_prog_compiler_can_build_shared=no
9389 # For platforms which do not support PIC, -DPIC is meaningless:
9391 lt_prog_compiler_pic=
9394 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9399 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9400 if ${lt_cv_prog_compiler_pic+:} false; then :
9401 $as_echo_n "(cached) " >&6
9403 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9406 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9407 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9410 # Check to make sure the PIC flag actually works.
9412 if test -n "$lt_prog_compiler_pic"; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9414 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9415 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9416 $as_echo_n "(cached) " >&6
9418 lt_cv_prog_compiler_pic_works=no
9419 ac_outfile=conftest.$ac_objext
9420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9421 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9422 # Insert the option either (1) after the last *FLAGS variable, or
9423 # (2) before a word containing "conftest.", or (3) at the end.
9424 # Note that $ac_compile itself does not contain backslashes and begins
9425 # with a dollar sign (not a hyphen), so the echo should work correctly.
9426 # The option is referenced via a variable to avoid confusing sed.
9427 lt_compile=`echo "$ac_compile" | $SED \
9428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9430 -e 's:$: $lt_compiler_flag:'`
9431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9432 (eval "$lt_compile" 2>conftest.err)
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 if (exit $ac_status) && test -s "$ac_outfile"; then
9437 # The compiler can only warn and ignore the option if not recognized
9438 # So say no if there are warnings other than the usual output.
9439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9442 lt_cv_prog_compiler_pic_works=yes
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9449 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9451 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9452 case $lt_prog_compiler_pic in
9454 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9457 lt_prog_compiler_pic=
9458 lt_prog_compiler_can_build_shared=no
9474 # Check to make sure the static flag actually works.
9476 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9478 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9479 if ${lt_cv_prog_compiler_static_works+:} false; then :
9480 $as_echo_n "(cached) " >&6
9482 lt_cv_prog_compiler_static_works=no
9483 save_LDFLAGS="$LDFLAGS"
9484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9485 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9487 # The linker can only warn and ignore the option if not recognized
9488 # So say no if there are warnings
9489 if test -s conftest.err; then
9490 # Append any errors to the config.log.
9491 cat conftest.err 1>&5
9492 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9494 if diff conftest.exp conftest.er2 >/dev/null; then
9495 lt_cv_prog_compiler_static_works=yes
9498 lt_cv_prog_compiler_static_works=yes
9502 LDFLAGS="$save_LDFLAGS"
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9506 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9508 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9511 lt_prog_compiler_static=
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9521 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9522 if ${lt_cv_prog_compiler_c_o+:} false; then :
9523 $as_echo_n "(cached) " >&6
9525 lt_cv_prog_compiler_c_o=no
9526 $RM -r conftest 2>/dev/null
9530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9532 lt_compiler_flag="-o out/conftest2.$ac_objext"
9533 # Insert the option either (1) after the last *FLAGS variable, or
9534 # (2) before a word containing "conftest.", or (3) at the end.
9535 # Note that $ac_compile itself does not contain backslashes and begins
9536 # with a dollar sign (not a hyphen), so the echo should work correctly.
9537 lt_compile=`echo "$ac_compile" | $SED \
9538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9540 -e 's:$: $lt_compiler_flag:'`
9541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9542 (eval "$lt_compile" 2>out/conftest.err)
9544 cat out/conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9548 # The compiler can only warn and ignore the option if not recognized
9549 # So say no if there are warnings
9550 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9553 lt_cv_prog_compiler_c_o=yes
9558 # SGI C++ compiler will create directory out/ii_files/ for
9559 # template instantiation
9560 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9561 $RM out/* && rmdir out
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9568 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9576 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9577 if ${lt_cv_prog_compiler_c_o+:} false; then :
9578 $as_echo_n "(cached) " >&6
9580 lt_cv_prog_compiler_c_o=no
9581 $RM -r conftest 2>/dev/null
9585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587 lt_compiler_flag="-o out/conftest2.$ac_objext"
9588 # Insert the option either (1) after the last *FLAGS variable, or
9589 # (2) before a word containing "conftest.", or (3) at the end.
9590 # Note that $ac_compile itself does not contain backslashes and begins
9591 # with a dollar sign (not a hyphen), so the echo should work correctly.
9592 lt_compile=`echo "$ac_compile" | $SED \
9593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9595 -e 's:$: $lt_compiler_flag:'`
9596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9597 (eval "$lt_compile" 2>out/conftest.err)
9599 cat out/conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9603 # The compiler can only warn and ignore the option if not recognized
9604 # So say no if there are warnings
9605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9606 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9607 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9608 lt_cv_prog_compiler_c_o=yes
9613 # SGI C++ compiler will create directory out/ii_files/ for
9614 # template instantiation
9615 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9616 $RM out/* && rmdir out
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9623 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9628 hard_links="nottested"
9629 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9630 # do not overwrite the value of need_locks provided by the user
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9632 $as_echo_n "checking if we can lock with hard links... " >&6; }
9635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9637 ln conftest.a conftest.b 2>&5 || hard_links=no
9638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9640 $as_echo "$hard_links" >&6; }
9641 if test "$hard_links" = no; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9643 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9656 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9659 allow_undefined_flag=
9660 always_export_symbols=no
9662 archive_expsym_cmds=
9663 compiler_needs_object=no
9664 enable_shared_with_static_runtimes=no
9665 export_dynamic_flag_spec=
9666 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9667 hardcode_automatic=no
9669 hardcode_direct_absolute=no
9670 hardcode_libdir_flag_spec=
9671 hardcode_libdir_flag_spec_ld=
9672 hardcode_libdir_separator=
9674 hardcode_shlibpath_var=unsupported
9676 link_all_deplibs=unknown
9679 old_archive_from_new_cmds=
9680 old_archive_from_expsyms_cmds=
9681 thread_safe_flag_spec=
9682 whole_archive_flag_spec=
9683 # include_expsyms should be a list of space-separated symbols to be *always*
9684 # included in the symbol list
9686 # exclude_expsyms can be an extended regexp of symbols to exclude
9687 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9688 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9689 # as well as any symbol that contains `d'.
9690 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9691 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9692 # platforms (ab)use it in PIC code, but their linkers get confused if
9693 # the symbol is explicitly referenced. Since portable code cannot
9694 # rely on this symbol name, it's probably fine to never include it in
9695 # preloaded symbol tables.
9696 # Exclude shared library initialization/finalization symbols.
9697 extract_expsyms_cmds=
9700 cygwin* | mingw* | pw32* | cegcc*)
9701 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9702 # When not using gcc, we currently assume that we are using
9703 # Microsoft Visual C++.
9704 if test "$GCC" != yes; then
9709 # we just hope/assume this is gcc and not c89 (= MSVC++)
9719 # On some targets, GNU ld is compatible enough with the native linker
9720 # that we're better off using the native interface for both.
9721 lt_use_gnu_ld_interface=no
9722 if test "$with_gnu_ld" = yes; then
9725 # The AIX port of GNU ld has always aspired to compatibility
9726 # with the native linker. However, as the warning in the GNU ld
9727 # block says, versions before 2.19.5* couldn't really create working
9728 # shared libraries, regardless of the interface used.
9729 case `$LD -v 2>&1` in
9730 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9731 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9732 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9734 lt_use_gnu_ld_interface=yes
9739 lt_use_gnu_ld_interface=yes
9744 if test "$lt_use_gnu_ld_interface" = yes; then
9745 # If archive_cmds runs LD, not CC, wlarc should be empty
9748 # Set some defaults for GNU ld with shared library support. These
9749 # are reset later if shared libraries are not supported. Putting them
9750 # here allows them to be overridden if necessary.
9751 runpath_var=LD_RUN_PATH
9752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9753 export_dynamic_flag_spec='${wl}--export-dynamic'
9754 # ancient GNU ld didn't support --whole-archive et. al.
9755 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9756 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9758 whole_archive_flag_spec=
9760 supports_anon_versioning=no
9761 case `$LD -v 2>&1` in
9762 *GNU\ gold*) supports_anon_versioning=yes ;;
9763 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9764 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9765 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9766 *\ 2.11.*) ;; # other 2.11 versions
9767 *) supports_anon_versioning=yes ;;
9770 # See if GNU ld supports shared libraries.
9773 # On AIX/PPC, the GNU linker is very broken
9774 if test "$host_cpu" != ia64; then
9778 *** Warning: the GNU linker, at least up to release 2.19, is reported
9779 *** to be unable to reliably create shared libraries on AIX.
9780 *** Therefore, libtool is disabling shared libraries support. If you
9781 *** really care for shared libraries, you may want to install binutils
9782 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9783 *** You will then need to restart the configuration process.
9792 # see comment about AmigaOS4 .so support
9793 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9794 archive_expsym_cmds=''
9797 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)'
9798 hardcode_libdir_flag_spec='-L$libdir'
9799 hardcode_minus_L=yes
9805 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9806 allow_undefined_flag=unsupported
9807 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9808 # support --undefined. This deserves some investigation. FIXME
9809 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9815 cygwin* | mingw* | pw32* | cegcc*)
9816 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9817 # as there is no search path for DLLs.
9818 hardcode_libdir_flag_spec='-L$libdir'
9819 export_dynamic_flag_spec='${wl}--export-all-symbols'
9820 allow_undefined_flag=unsupported
9821 always_export_symbols=no
9822 enable_shared_with_static_runtimes=yes
9823 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9824 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9826 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9828 # If the export-symbols file already is a .def file (1st line
9829 # is EXPORTS), use it as is; otherwise, prepend...
9830 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9831 cp $export_symbols $output_objdir/$soname.def;
9833 echo EXPORTS > $output_objdir/$soname.def;
9834 cat $export_symbols >> $output_objdir/$soname.def;
9836 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9843 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9844 link_all_deplibs=yes
9849 hardcode_shlibpath_var=no
9850 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9851 export_dynamic_flag_spec='${wl}-E'
9852 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9853 # Instead, shared libraries are loaded at an image base (0x10000000 by
9854 # default) and relocated if they conflict, which is a slow very memory
9855 # consuming and fragmenting process. To avoid this, we pick a random,
9856 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9857 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9858 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9859 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'
9862 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9864 if test "$host_os" = linux-dietlibc; then
9865 case $cc_basename in
9866 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9869 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9870 && test "$tmp_diet" = no
9872 tmp_addflag=' $pic_flag'
9873 tmp_sharedflag='-shared'
9874 case $cc_basename,$host_cpu in
9875 pgcc*) # Portland Group C compiler
9876 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9877 tmp_addflag=' $pic_flag'
9879 pgf77* | pgf90* | pgf95* | pgfortran*)
9880 # Portland Group f77 and f90 compilers
9881 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9882 tmp_addflag=' $pic_flag -Mnomain' ;;
9883 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9884 tmp_addflag=' -i_dynamic' ;;
9885 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9886 tmp_addflag=' -i_dynamic -nofor_main' ;;
9887 ifc* | ifort*) # Intel Fortran compiler
9888 tmp_addflag=' -nofor_main' ;;
9889 lf95*) # Lahey Fortran 8.1
9890 whole_archive_flag_spec=
9891 tmp_sharedflag='--shared' ;;
9892 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9893 tmp_sharedflag='-qmkshrobj'
9895 nvcc*) # Cuda Compiler Driver 2.2
9896 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9897 compiler_needs_object=yes
9900 case `$CC -V 2>&1 | sed 5q` in
9901 *Sun\ C*) # Sun C 5.9
9902 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9903 compiler_needs_object=yes
9904 tmp_sharedflag='-G' ;;
9905 *Sun\ F*) # Sun Fortran 8.3
9906 tmp_sharedflag='-G' ;;
9908 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9910 if test "x$supports_anon_versioning" = xyes; then
9911 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9912 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9913 echo "local: *; };" >> $output_objdir/$libname.ver~
9914 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9917 case $cc_basename in
9918 xlf* | bgf* | bgxlf* | mpixlf*)
9919 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9920 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9921 hardcode_libdir_flag_spec=
9922 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9923 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9924 if test "x$supports_anon_versioning" = xyes; then
9925 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9926 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9927 echo "local: *; };" >> $output_objdir/$libname.ver~
9928 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9939 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9943 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9948 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9952 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9953 *** create shared libraries on Solaris systems. Therefore, libtool
9954 *** is disabling shared libraries support. We urge you to upgrade GNU
9955 *** binutils to release 2.9.1 or newer. Another option is to modify
9956 *** your PATH or compiler configuration so that the native linker is
9957 *** used, and then restart.
9960 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9969 case `$LD -v 2>&1` in
9970 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9974 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9975 *** reliably create shared libraries on SCO systems. Therefore, libtool
9976 *** is disabling shared libraries support. We urge you to upgrade GNU
9977 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9978 *** your PATH or compiler configuration so that the native linker is
9979 *** used, and then restart.
9984 # For security reasons, it is highly recommended that you always
9985 # use absolute paths for naming shared libraries, and exclude the
9986 # DT_RUNPATH tag from executables and libraries. But doing so
9987 # requires that you compile everything twice, which is a pain.
9988 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9991 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10000 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10002 hardcode_direct=yes
10003 hardcode_shlibpath_var=no
10007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10008 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10009 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10016 if test "$ld_shlibs" = no; then
10018 hardcode_libdir_flag_spec=
10019 export_dynamic_flag_spec=
10020 whole_archive_flag_spec=
10023 # PORTME fill in a description of your system's linker (not GNU ld)
10026 allow_undefined_flag=unsupported
10027 always_export_symbols=yes
10028 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'
10029 # Note: this linker hardcodes the directories in LIBPATH if there
10030 # are no directories specified by -L.
10031 hardcode_minus_L=yes
10032 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10033 # Neither direct hardcoding nor static linking is supported with a
10035 hardcode_direct=unsupported
10040 if test "$host_cpu" = ia64; then
10041 # On IA64, the linker does run time linking by default, so we don't
10042 # have to do anything special.
10043 aix_use_runtimelinking=no
10044 exp_sym_flag='-Bexport'
10047 # If we're using GNU nm, then we don't want the "-C" option.
10048 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10049 # Also, AIX nm treats weak defined symbols like other global
10050 # defined symbols, whereas GNU nm marks them as "W".
10051 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10052 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10054 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'
10056 aix_use_runtimelinking=no
10058 # Test if we are trying to use run time linking or normal
10059 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10060 # need to do runtime linking.
10061 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10062 for ld_flag in $LDFLAGS; do
10063 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10064 aix_use_runtimelinking=yes
10071 exp_sym_flag='-bexport'
10072 no_entry_flag='-bnoentry'
10075 # When large executables or shared objects are built, AIX ld can
10076 # have problems creating the table of contents. If linking a library
10077 # or program results in "error TOC overflow" add -mminimal-toc to
10078 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10079 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10082 hardcode_direct=yes
10083 hardcode_direct_absolute=yes
10084 hardcode_libdir_separator=':'
10085 link_all_deplibs=yes
10086 file_list_spec='${wl}-f,'
10088 if test "$GCC" = yes; then
10089 case $host_os in aix4.[012]|aix4.[012].*)
10090 # We only want to do this on AIX 4.2 and lower, the check
10091 # below for broken collect2 doesn't work under 4.3+
10092 collect2name=`${CC} -print-prog-name=collect2`
10093 if test -f "$collect2name" &&
10094 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10096 # We have reworked collect2
10099 # We have old collect2
10100 hardcode_direct=unsupported
10101 # It fails to find uninstalled libraries when the uninstalled
10102 # path is not listed in the libpath. Setting hardcode_minus_L
10103 # to unsupported forces relinking
10104 hardcode_minus_L=yes
10105 hardcode_libdir_flag_spec='-L$libdir'
10106 hardcode_libdir_separator=
10110 shared_flag='-shared'
10111 if test "$aix_use_runtimelinking" = yes; then
10112 shared_flag="$shared_flag "'${wl}-G'
10116 if test "$host_cpu" = ia64; then
10117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10118 # chokes on -Wl,-G. The following line is correct:
10121 if test "$aix_use_runtimelinking" = yes; then
10122 shared_flag='${wl}-G'
10124 shared_flag='${wl}-bM:SRE'
10129 export_dynamic_flag_spec='${wl}-bexpall'
10130 # It seems that -bexpall does not export symbols beginning with
10131 # underscore (_), so it is better to generate a list of symbols to export.
10132 always_export_symbols=yes
10133 if test "$aix_use_runtimelinking" = yes; then
10134 # Warning - without using the other runtime loading flags (-brtl),
10135 # -berok will link without error, but may produce a broken library.
10136 allow_undefined_flag='-berok'
10137 # Determine the default libpath from the value encoded in an
10138 # empty executable.
10139 if test "${lt_cv_aix_libpath+set}" = set; then
10140 aix_libpath=$lt_cv_aix_libpath
10142 if ${lt_cv_aix_libpath_+:} false; then :
10143 $as_echo_n "(cached) " >&6
10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10146 /* end confdefs.h. */
10156 if ac_fn_c_try_link "$LINENO"; then :
10158 lt_aix_libpath_sed='
10159 /Import File Strings/,/^$/ {
10161 s/^0 *\([^ ]*\) *$/\1/
10165 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10166 # Check for a 64-bit object if we didn't find anything.
10167 if test -z "$lt_cv_aix_libpath_"; then
10168 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10171 rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10173 if test -z "$lt_cv_aix_libpath_"; then
10174 lt_cv_aix_libpath_="/usr/lib:/lib"
10179 aix_libpath=$lt_cv_aix_libpath_
10182 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10183 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10185 if test "$host_cpu" = ia64; then
10186 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10187 allow_undefined_flag="-z nodefs"
10188 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"
10190 # Determine the default libpath from the value encoded in an
10191 # empty executable.
10192 if test "${lt_cv_aix_libpath+set}" = set; then
10193 aix_libpath=$lt_cv_aix_libpath
10195 if ${lt_cv_aix_libpath_+:} false; then :
10196 $as_echo_n "(cached) " >&6
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10209 if ac_fn_c_try_link "$LINENO"; then :
10211 lt_aix_libpath_sed='
10212 /Import File Strings/,/^$/ {
10214 s/^0 *\([^ ]*\) *$/\1/
10218 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10219 # Check for a 64-bit object if we didn't find anything.
10220 if test -z "$lt_cv_aix_libpath_"; then
10221 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 if test -z "$lt_cv_aix_libpath_"; then
10227 lt_cv_aix_libpath_="/usr/lib:/lib"
10232 aix_libpath=$lt_cv_aix_libpath_
10235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10236 # Warning - without using the other run time loading flags,
10237 # -berok will link without error, but may produce a broken library.
10238 no_undefined_flag=' ${wl}-bernotok'
10239 allow_undefined_flag=' ${wl}-berok'
10240 if test "$with_gnu_ld" = yes; then
10241 # We only use this code for GNU lds that support --whole-archive.
10242 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10244 # Exported symbols can be pulled into shared objects from archives
10245 whole_archive_flag_spec='$convenience'
10247 archive_cmds_need_lc=yes
10248 # This is similar to how AIX traditionally builds its shared libraries.
10249 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'
10257 # see comment about AmigaOS4 .so support
10258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259 archive_expsym_cmds=''
10262 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)'
10263 hardcode_libdir_flag_spec='-L$libdir'
10264 hardcode_minus_L=yes
10270 export_dynamic_flag_spec=-rdynamic
10273 cygwin* | mingw* | pw32* | cegcc*)
10274 # When not using gcc, we currently assume that we are using
10275 # Microsoft Visual C++.
10276 # hardcode_libdir_flag_spec is actually meaningless, as there is
10277 # no search path for DLLs.
10278 case $cc_basename in
10281 hardcode_libdir_flag_spec=' '
10282 allow_undefined_flag=unsupported
10283 always_export_symbols=yes
10285 # Tell ltmain to make .lib files, not .a files.
10287 # Tell ltmain to make .dll files, not .so files.
10289 # FIXME: Setting linknames here is a bad hack.
10290 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10291 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10292 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10294 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10296 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10298 # The linker will not automatically build a static lib if we build a DLL.
10299 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10300 enable_shared_with_static_runtimes=yes
10301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10303 old_postinstall_cmds='chmod 644 $oldlib'
10304 postlink_cmds='lt_outputfile="@OUTPUT@"~
10305 lt_tool_outputfile="@TOOL_OUTPUT@"~
10306 case $lt_outputfile in
10309 lt_outputfile="$lt_outputfile.exe"
10310 lt_tool_outputfile="$lt_tool_outputfile.exe"
10313 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10314 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10315 $RM "$lt_outputfile.manifest";
10319 # Assume MSVC wrapper
10320 hardcode_libdir_flag_spec=' '
10321 allow_undefined_flag=unsupported
10322 # Tell ltmain to make .lib files, not .a files.
10324 # Tell ltmain to make .dll files, not .so files.
10326 # FIXME: Setting linknames here is a bad hack.
10327 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10328 # The linker will automatically build a .lib file if we build a DLL.
10329 old_archive_from_new_cmds='true'
10330 # FIXME: Should let the user specify the lib program.
10331 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10332 enable_shared_with_static_runtimes=yes
10337 darwin* | rhapsody*)
10340 archive_cmds_need_lc=no
10342 hardcode_automatic=yes
10343 hardcode_shlibpath_var=unsupported
10344 if test "$lt_cv_ld_force_load" = "yes"; then
10345 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10347 whole_archive_flag_spec=''
10349 link_all_deplibs=yes
10350 allow_undefined_flag="$_lt_dar_allow_undefined"
10351 case $cc_basename in
10352 ifort*) _lt_dar_can_shared=yes ;;
10353 *) _lt_dar_can_shared=$GCC ;;
10355 if test "$_lt_dar_can_shared" = "yes"; then
10356 output_verbose_link_cmd=func_echo_all
10357 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10358 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10359 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}"
10360 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}"
10369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_libdir_flag_spec='-L$libdir'
10371 hardcode_shlibpath_var=no
10378 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10379 # support. Future versions do this automatically, but an explicit c++rt0.o
10380 # does not break anything, and helps significantly (at the cost of a little
10383 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10384 hardcode_libdir_flag_spec='-R$libdir'
10385 hardcode_direct=yes
10386 hardcode_shlibpath_var=no
10389 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10392 hardcode_direct=yes
10393 hardcode_minus_L=yes
10394 hardcode_shlibpath_var=no
10397 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10398 freebsd* | dragonfly*)
10399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10400 hardcode_libdir_flag_spec='-R$libdir'
10401 hardcode_direct=yes
10402 hardcode_shlibpath_var=no
10406 if test "$GCC" = yes; then
10407 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10409 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'
10411 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10412 hardcode_libdir_separator=:
10413 hardcode_direct=yes
10415 # hardcode_minus_L: Not really in the search PATH,
10416 # but as the default location of the library.
10417 hardcode_minus_L=yes
10418 export_dynamic_flag_spec='${wl}-E'
10422 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10423 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10427 if test "$with_gnu_ld" = no; then
10428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10429 hardcode_libdir_flag_spec_ld='+b $libdir'
10430 hardcode_libdir_separator=:
10431 hardcode_direct=yes
10432 hardcode_direct_absolute=yes
10433 export_dynamic_flag_spec='${wl}-E'
10434 # hardcode_minus_L: Not really in the search PATH,
10435 # but as the default location of the library.
10436 hardcode_minus_L=yes
10441 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10444 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10447 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10456 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10463 # Older versions of the 11.00 compiler do not understand -b yet
10464 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10466 $as_echo_n "checking if $CC understands -b... " >&6; }
10467 if ${lt_cv_prog_compiler__b+:} false; then :
10468 $as_echo_n "(cached) " >&6
10470 lt_cv_prog_compiler__b=no
10471 save_LDFLAGS="$LDFLAGS"
10472 LDFLAGS="$LDFLAGS -b"
10473 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10474 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10475 # The linker can only warn and ignore the option if not recognized
10476 # So say no if there are warnings
10477 if test -s conftest.err; then
10478 # Append any errors to the config.log.
10479 cat conftest.err 1>&5
10480 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10481 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10482 if diff conftest.exp conftest.er2 >/dev/null; then
10483 lt_cv_prog_compiler__b=yes
10486 lt_cv_prog_compiler__b=yes
10490 LDFLAGS="$save_LDFLAGS"
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10494 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10496 if test x"$lt_cv_prog_compiler__b" = xyes; then
10497 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10499 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10505 if test "$with_gnu_ld" = no; then
10506 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10507 hardcode_libdir_separator=:
10512 hardcode_shlibpath_var=no
10515 hardcode_direct=yes
10516 hardcode_direct_absolute=yes
10517 export_dynamic_flag_spec='${wl}-E'
10519 # hardcode_minus_L: Not really in the search PATH,
10520 # but as the default location of the library.
10521 hardcode_minus_L=yes
10527 irix5* | irix6* | nonstopux*)
10528 if test "$GCC" = yes; then
10529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10530 # Try to use the -exported_symbol ld option, if it does not
10531 # work, assume that -exports_file does not work either and
10532 # implicitly export all symbols.
10533 # This should be the same for all languages, so no per-tag cache variable.
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10535 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10536 if ${lt_cv_irix_exported_symbol+:} false; then :
10537 $as_echo_n "(cached) " >&6
10539 save_LDFLAGS="$LDFLAGS"
10540 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10543 int foo (void) { return 0; }
10545 if ac_fn_c_try_link "$LINENO"; then :
10546 lt_cv_irix_exported_symbol=yes
10548 lt_cv_irix_exported_symbol=no
10550 rm -f core conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 LDFLAGS="$save_LDFLAGS"
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10555 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10556 if test "$lt_cv_irix_exported_symbol" = yes; then
10557 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10563 archive_cmds_need_lc='no'
10564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10565 hardcode_libdir_separator=:
10567 link_all_deplibs=yes
10571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10574 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10576 hardcode_libdir_flag_spec='-R$libdir'
10577 hardcode_direct=yes
10578 hardcode_shlibpath_var=no
10582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583 hardcode_direct=yes
10584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10585 hardcode_libdir_separator=:
10586 hardcode_shlibpath_var=no
10593 if test -f /usr/libexec/ld.so; then
10594 hardcode_direct=yes
10595 hardcode_shlibpath_var=no
10596 hardcode_direct_absolute=yes
10597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10598 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10599 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10600 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10601 export_dynamic_flag_spec='${wl}-E'
10604 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10605 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10606 hardcode_libdir_flag_spec='-R$libdir'
10609 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10610 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10620 hardcode_libdir_flag_spec='-L$libdir'
10621 hardcode_minus_L=yes
10622 allow_undefined_flag=unsupported
10623 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'
10624 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10628 if test "$GCC" = yes; then
10629 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10630 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10632 allow_undefined_flag=' -expect_unresolved \*'
10633 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10635 archive_cmds_need_lc='no'
10636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10637 hardcode_libdir_separator=:
10640 osf4* | osf5*) # as osf3* with the addition of -msym flag
10641 if test "$GCC" = yes; then
10642 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10643 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10646 allow_undefined_flag=' -expect_unresolved \*'
10647 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10648 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~
10649 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10651 # Both c and cxx compiler support -rpath directly
10652 hardcode_libdir_flag_spec='-rpath $libdir'
10654 archive_cmds_need_lc='no'
10655 hardcode_libdir_separator=:
10659 no_undefined_flag=' -z defs'
10660 if test "$GCC" = yes; then
10662 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10664 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10666 case `$CC -V 2>&1` in
10669 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10670 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10671 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10675 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10676 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10677 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10681 hardcode_libdir_flag_spec='-R$libdir'
10682 hardcode_shlibpath_var=no
10684 solaris2.[0-5] | solaris2.[0-5].*) ;;
10686 # The compiler driver will combine and reorder linker options,
10687 # but understands `-z linker_flag'. GCC discards it without `$wl',
10688 # but is careful enough not to reorder.
10689 # Supported since Solaris 2.6 (maybe 2.5.1?)
10690 if test "$GCC" = yes; then
10691 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10693 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10697 link_all_deplibs=yes
10701 if test "x$host_vendor" = xsequent; then
10702 # Use $CC to link under sequent, because it throws in some extra .o
10703 # files that make .init and .fini sections work.
10704 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10706 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10708 hardcode_libdir_flag_spec='-L$libdir'
10709 hardcode_direct=yes
10710 hardcode_minus_L=yes
10711 hardcode_shlibpath_var=no
10715 case $host_vendor in
10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10718 hardcode_direct=yes # is this really true???
10721 ## LD is ld it makes a PLAMLIB
10722 ## CC just makes a GrossModule.
10723 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10724 reload_cmds='$CC -r -o $output$reload_objs'
10728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10732 runpath_var='LD_RUN_PATH'
10733 hardcode_shlibpath_var=no
10737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738 hardcode_shlibpath_var=no
10739 export_dynamic_flag_spec='-Bexport'
10743 if test -d /usr/nec; then
10744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10745 hardcode_shlibpath_var=no
10746 runpath_var=LD_RUN_PATH
10747 hardcode_runpath_var=yes
10752 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10753 no_undefined_flag='${wl}-z,text'
10754 archive_cmds_need_lc=no
10755 hardcode_shlibpath_var=no
10756 runpath_var='LD_RUN_PATH'
10758 if test "$GCC" = yes; then
10759 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10767 sysv5* | sco3.2v5* | sco5v6*)
10768 # Note: We can NOT use -z defs as we might desire, because we do not
10769 # link with -lc, and that would cause any symbols used from libc to
10770 # always be unresolved, which means just about no library would
10771 # ever link correctly. If we're not using GNU ld we use -z text
10772 # though, which does catch some bad symbols but isn't as heavy-handed
10774 no_undefined_flag='${wl}-z,text'
10775 allow_undefined_flag='${wl}-z,nodefs'
10776 archive_cmds_need_lc=no
10777 hardcode_shlibpath_var=no
10778 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10779 hardcode_libdir_separator=':'
10780 link_all_deplibs=yes
10781 export_dynamic_flag_spec='${wl}-Bexport'
10782 runpath_var='LD_RUN_PATH'
10784 if test "$GCC" = yes; then
10785 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10788 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10795 hardcode_libdir_flag_spec='-L$libdir'
10796 hardcode_shlibpath_var=no
10804 if test x$host_vendor = xsni; then
10806 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10807 export_dynamic_flag_spec='${wl}-Blargedynsym'
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10814 $as_echo "$ld_shlibs" >&6; }
10815 test "$ld_shlibs" = no && can_build_shared=no
10817 with_gnu_ld=$with_gnu_ld
10834 # Do we need to explicitly link libc?
10836 case "x$archive_cmds_need_lc" in
10838 # Assume -lc should be added
10839 archive_cmds_need_lc=yes
10841 if test "$enable_shared" = yes && test "$GCC" = yes; then
10842 case $archive_cmds in
10844 # FIXME: we may have to deal with multi-command sequences.
10847 # Test whether the compiler implicitly links with -lc since on some
10848 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10849 # to ld, don't add -lc before -lgcc.
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10851 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10852 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10853 $as_echo_n "(cached) " >&6
10856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10859 (eval $ac_compile) 2>&5
10861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10862 test $ac_status = 0; } 2>conftest.err; then
10865 libobjs=conftest.$ac_objext
10867 wl=$lt_prog_compiler_wl
10868 pic_flag=$lt_prog_compiler_pic
10874 lt_save_allow_undefined_flag=$allow_undefined_flag
10875 allow_undefined_flag=
10876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10877 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10880 test $ac_status = 0; }
10882 lt_cv_archive_cmds_need_lc=no
10884 lt_cv_archive_cmds_need_lc=yes
10886 allow_undefined_flag=$lt_save_allow_undefined_flag
10888 cat conftest.err 1>&5
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10894 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10895 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11059 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11061 if test "$GCC" = yes; then
11063 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11064 *) lt_awk_arg="/^libraries:/" ;;
11067 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11068 *) lt_sed_strip_eq="s,=/,/,g" ;;
11070 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11071 case $lt_search_path_spec in
11073 # if the path contains ";" then we assume it to be the separator
11074 # otherwise default to the standard path separator (i.e. ":") - it is
11075 # assumed that no part of a normal pathname contains ";" but that should
11076 # okay in the real world where ";" in dirpaths is itself problematic.
11077 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11080 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11083 # Ok, now we have the path, separated by spaces, we can step through it
11084 # and add multilib dir if necessary.
11085 lt_tmp_lt_search_path_spec=
11086 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11087 for lt_sys_path in $lt_search_path_spec; do
11088 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11089 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11091 test -d "$lt_sys_path" && \
11092 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11095 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11096 BEGIN {RS=" "; FS="/|\n";} {
11099 for (lt_i = NF; lt_i > 0; lt_i--) {
11100 if ($lt_i != "" && $lt_i != ".") {
11101 if ($lt_i == "..") {
11104 if (lt_count == 0) {
11105 lt_foo="/" $lt_i lt_foo;
11112 if (lt_foo != "") { lt_freq[lt_foo]++; }
11113 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11115 # AWK program above erroneously prepends '/' to C:/dos/paths
11118 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11119 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11121 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11123 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11125 library_names_spec=
11126 libname_spec='lib$name'
11130 postuninstall_cmds=
11134 shlibpath_overrides_runpath=unknown
11136 dynamic_linker="$host_os ld.so"
11137 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11138 need_lib_prefix=unknown
11139 hardcode_into_libs=no
11141 # when you set need_version to no, make sure it does not cause -set_version
11142 # flags to be left without arguments
11143 need_version=unknown
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11149 shlibpath_var=LIBPATH
11151 # AIX 3 has no versioning support, so we append a major version to the name.
11152 soname_spec='${libname}${release}${shared_ext}$major'
11159 hardcode_into_libs=yes
11160 if test "$host_cpu" = ia64; then
11161 # AIX 5 supports IA64
11162 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11163 shlibpath_var=LD_LIBRARY_PATH
11165 # With GCC up to 2.95.x, collect2 would create an import file
11166 # for dependence libraries. The import file would start with
11167 # the line `#! .'. This would cause the generated library to
11168 # depend on `.', always an invalid library. This was fixed in
11169 # development snapshots of GCC prior to 3.0.
11171 aix4 | aix4.[01] | aix4.[01].*)
11172 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11174 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11177 can_build_shared=no
11181 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11182 # soname into executable. Probably we can add versioning support to
11183 # collect2, so additional links can be useful in future.
11184 if test "$aix_use_runtimelinking" = yes; then
11185 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11186 # instead of lib<name>.a to let people know that these are not
11187 # typical AIX shared libraries.
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 # We preserve .a as extension for shared libraries through AIX4.2
11191 # and later when we are not doing run time linking.
11192 library_names_spec='${libname}${release}.a $libname.a'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11195 shlibpath_var=LIBPATH
11202 # Since July 2007 AmigaOS4 officially supports .so libraries.
11203 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 library_names_spec='$libname.ixlibrary $libname.a'
11208 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11209 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11215 library_names_spec='${libname}${shared_ext}'
11216 dynamic_linker="$host_os ld.so"
11217 shlibpath_var=LIBRARY_PATH
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224 soname_spec='${libname}${release}${shared_ext}$major'
11225 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11228 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11229 # the default ld.so.conf also contains /usr/contrib/lib and
11230 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11231 # libtool to hard-code these into programs
11234 cygwin* | mingw* | pw32* | cegcc*)
11235 version_type=windows
11240 case $GCC,$cc_basename in
11243 library_names_spec='$libname.dll.a'
11244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11245 postinstall_cmds='base_file=`basename \${file}`~
11246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11247 dldir=$destdir/`dirname \$dlpath`~
11248 test -d \$dldir || mkdir -p \$dldir~
11249 $install_prog $dir/$dlname \$dldir/$dlname~
11250 chmod a+x \$dldir/$dlname~
11251 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11252 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11254 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11255 dlpath=$dir/\$dldll~
11257 shlibpath_overrides_runpath=yes
11261 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11262 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11264 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11267 # MinGW DLLs use traditional 'lib' prefix
11268 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11271 # pw32 DLLs use 'pw' prefix rather than 'lib'
11272 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11275 dynamic_linker='Win32 ld.exe'
11280 libname_spec='$name'
11281 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11282 library_names_spec='${libname}.dll.lib'
11286 sys_lib_search_path_spec=
11289 for lt_path in $LIB
11292 # Let DOS variable expansion print the short 8.3 style file name.
11293 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11294 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11297 # Convert to MSYS style.
11298 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11301 # Convert to unix form, then to dos form, then back to unix form
11302 # but this time dos style (no spaces!) so that the unix form looks
11303 # like /cygdrive/c/PROGRA~1:/cygdr...
11304 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11305 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11306 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11309 sys_lib_search_path_spec="$LIB"
11310 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11311 # It is most probably a Windows format PATH.
11312 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11314 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11316 # FIXME: find the short name or the path components, as spaces are
11317 # common. (e.g. "Program Files" -> "PROGRA~1")
11321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11322 postinstall_cmds='base_file=`basename \${file}`~
11323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11324 dldir=$destdir/`dirname \$dlpath`~
11325 test -d \$dldir || mkdir -p \$dldir~
11326 $install_prog $dir/$dlname \$dldir/$dlname'
11327 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11328 dlpath=$dir/\$dldll~
11330 shlibpath_overrides_runpath=yes
11331 dynamic_linker='Win32 link.exe'
11335 # Assume MSVC wrapper
11336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11337 dynamic_linker='Win32 ld.exe'
11340 # FIXME: first we should search . and the directory the executable is in
11344 darwin* | rhapsody*)
11345 dynamic_linker="$host_os dyld"
11346 version_type=darwin
11349 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11350 soname_spec='${libname}${release}${major}$shared_ext'
11351 shlibpath_overrides_runpath=yes
11352 shlibpath_var=DYLD_LIBRARY_PATH
11353 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11355 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11356 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11364 soname_spec='${libname}${release}${shared_ext}$major'
11365 shlibpath_var=LD_LIBRARY_PATH
11372 freebsd* | dragonfly*)
11373 # DragonFly does not have aout. When/if they implement a new
11374 # versioning mechanism, adjust this.
11375 if test -x /usr/bin/objformat; then
11376 objformat=`/usr/bin/objformat`
11379 freebsd[123]*) objformat=aout ;;
11380 *) objformat=elf ;;
11383 version_type=freebsd-$objformat
11384 case $version_type in
11386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11395 shlibpath_var=LD_LIBRARY_PATH
11398 shlibpath_overrides_runpath=yes
11400 freebsd3.[01]* | freebsdelf3.[01]*)
11401 shlibpath_overrides_runpath=yes
11402 hardcode_into_libs=yes
11404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11406 shlibpath_overrides_runpath=no
11407 hardcode_into_libs=yes
11409 *) # from 4.6 on, and DragonFly
11410 shlibpath_overrides_runpath=yes
11411 hardcode_into_libs=yes
11420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11421 soname_spec='${libname}${release}${shared_ext}$major'
11422 shlibpath_var=LD_LIBRARY_PATH
11423 hardcode_into_libs=yes
11430 dynamic_linker="$host_os runtime_loader"
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 shlibpath_var=LIBRARY_PATH
11434 shlibpath_overrides_runpath=yes
11435 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11436 hardcode_into_libs=yes
11439 hpux9* | hpux10* | hpux11*)
11440 # Give a soname corresponding to the major version so that dld.sl refuses to
11441 # link against other versions.
11448 hardcode_into_libs=yes
11449 dynamic_linker="$host_os dld.so"
11450 shlibpath_var=LD_LIBRARY_PATH
11451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453 soname_spec='${libname}${release}${shared_ext}$major'
11454 if test "X$HPUX_IA64_MODE" = X32; then
11455 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11457 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11463 hardcode_into_libs=yes
11464 dynamic_linker="$host_os dld.sl"
11465 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11470 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11474 dynamic_linker="$host_os dld.sl"
11475 shlibpath_var=SHLIB_PATH
11476 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478 soname_spec='${libname}${release}${shared_ext}$major'
11481 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11482 postinstall_cmds='chmod 555 $lib'
11483 # or fails outright, so override atomically:
11484 install_override_mode=555
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11492 soname_spec='${libname}${release}${shared_ext}$major'
11493 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11494 shlibpath_var=LD_LIBRARY_PATH
11495 shlibpath_overrides_runpath=no
11496 hardcode_into_libs=yes
11499 irix5* | irix6* | nonstopux*)
11501 nonstopux*) version_type=nonstopux ;;
11503 if test "$lt_cv_prog_gnu_ld" = yes; then
11511 soname_spec='${libname}${release}${shared_ext}$major'
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11514 irix5* | nonstopux*)
11515 libsuff= shlibsuff=
11518 case $LD in # libtool.m4 will add one of these switches to LD
11519 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11520 libsuff= shlibsuff= libmagic=32-bit;;
11521 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11522 libsuff=32 shlibsuff=N32 libmagic=N32;;
11523 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11524 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11525 *) libsuff= shlibsuff= libmagic=never-match;;
11529 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11530 shlibpath_overrides_runpath=no
11531 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11532 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11533 hardcode_into_libs=yes
11536 # No shared lib support for Linux oldld, aout, or coff.
11537 linux*oldld* | linux*aout* | linux*coff*)
11541 # This must be Linux ELF.
11542 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11549 shlibpath_var=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath=no
11552 # Some binutils ld are patched to set DT_RUNPATH
11553 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11554 $as_echo_n "(cached) " >&6
11556 lt_cv_shlibpath_overrides_runpath=no
11557 save_LDFLAGS=$LDFLAGS
11558 save_libdir=$libdir
11559 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11560 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11572 if ac_fn_c_try_link "$LINENO"; then :
11573 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11574 lt_cv_shlibpath_overrides_runpath=yes
11577 rm -f core conftest.err conftest.$ac_objext \
11578 conftest$ac_exeext conftest.$ac_ext
11579 LDFLAGS=$save_LDFLAGS
11580 libdir=$save_libdir
11584 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11586 # This implies no fast_install, which is unacceptable.
11587 # Some rework will be needed to allow for fast_install
11588 # before this can be enabled.
11589 hardcode_into_libs=yes
11591 # Add ABI-specific directories to the system library path.
11592 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11594 # Append ld.so.conf contents to the search path
11595 if test -f /etc/ld.so.conf; then
11596 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11597 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11601 # We used to test for /lib/ld.so.1 and disable shared libraries on
11602 # powerpc, because MkLinux only supported shared libraries with the
11603 # GNU dynamic linker. Since this was broken with cross compilers,
11604 # most powerpc-linux boxes support dynamic linking these days and
11605 # people can always --disable-shared, the test was removed, and we
11606 # assume the GNU/Linux dynamic linker is in use.
11607 dynamic_linker='GNU/Linux ld.so'
11614 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11617 dynamic_linker='NetBSD (a.out) ld.so'
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 dynamic_linker='NetBSD ld.elf_so'
11623 shlibpath_var=LD_LIBRARY_PATH
11624 shlibpath_overrides_runpath=yes
11625 hardcode_into_libs=yes
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 shlibpath_overrides_runpath=yes
11639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640 soname_spec='${libname}${release}${shared_ext}$major'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=no
11643 hardcode_into_libs=yes
11644 dynamic_linker='ldqnx.so'
11649 sys_lib_dlsearch_path_spec="/usr/lib"
11651 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11653 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11654 *) need_version=no ;;
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11661 openbsd2.[89] | openbsd2.[89].*)
11662 shlibpath_overrides_runpath=no
11665 shlibpath_overrides_runpath=yes
11669 shlibpath_overrides_runpath=yes
11674 libname_spec='$name'
11677 library_names_spec='$libname${shared_ext} $libname.a'
11678 dynamic_linker='OS/2 ld.exe'
11679 shlibpath_var=LIBPATH
11682 osf3* | osf4* | osf5*)
11686 soname_spec='${libname}${release}${shared_ext}$major'
11687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688 shlibpath_var=LD_LIBRARY_PATH
11689 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11690 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11703 shlibpath_var=LD_LIBRARY_PATH
11704 shlibpath_overrides_runpath=yes
11705 hardcode_into_libs=yes
11706 # ldd complains unless libraries are executable
11707 postinstall_cmds='chmod +x $lib'
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 shlibpath_overrides_runpath=yes
11716 if test "$with_gnu_ld" = yes; then
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11725 soname_spec='${libname}${release}${shared_ext}$major'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 case $host_vendor in
11729 shlibpath_overrides_runpath=no
11731 runpath_var=LD_RUN_PATH
11739 shlibpath_overrides_runpath=no
11740 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11746 if test -d /usr/nec ;then
11748 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11749 soname_spec='$libname${shared_ext}.$major'
11750 shlibpath_var=LD_LIBRARY_PATH
11754 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11755 version_type=freebsd-elf
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=yes
11762 hardcode_into_libs=yes
11763 if test "$with_gnu_ld" = yes; then
11764 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11766 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11769 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11773 sys_lib_dlsearch_path_spec='/usr/lib'
11777 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 shlibpath_overrides_runpath=no
11784 hardcode_into_libs=yes
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 soname_spec='${libname}${release}${shared_ext}$major'
11791 shlibpath_var=LD_LIBRARY_PATH
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11799 $as_echo "$dynamic_linker" >&6; }
11800 test "$dynamic_linker" = no && can_build_shared=no
11802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11803 if test "$GCC" = yes; then
11804 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11807 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11808 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11810 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11811 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11906 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11908 if test -n "$hardcode_libdir_flag_spec" ||
11909 test -n "$runpath_var" ||
11910 test "X$hardcode_automatic" = "Xyes" ; then
11912 # We can hardcode non-existent directories.
11913 if test "$hardcode_direct" != no &&
11914 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11915 # have to relink, otherwise we might link with an installed library
11916 # when we should be linking with a yet-to-be-installed one
11917 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11918 test "$hardcode_minus_L" != no; then
11919 # Linking always hardcodes the temporary library directory.
11920 hardcode_action=relink
11922 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11923 hardcode_action=immediate
11926 # We cannot hardcode anything, or else we can only hardcode existing
11928 hardcode_action=unsupported
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11931 $as_echo "$hardcode_action" >&6; }
11933 if test "$hardcode_action" = relink ||
11934 test "$inherit_rpath" = yes; then
11935 # Fast installation is not supported
11936 enable_fast_install=no
11937 elif test "$shlibpath_overrides_runpath" = yes ||
11938 test "$enable_shared" = no; then
11939 # Fast installation is not necessary
11940 enable_fast_install=needless
11948 if test "x$enable_dlopen" != xyes; then
11949 enable_dlopen=unknown
11950 enable_dlopen_self=unknown
11951 enable_dlopen_self_static=unknown
11958 lt_cv_dlopen="load_add_on"
11960 lt_cv_dlopen_self=yes
11963 mingw* | pw32* | cegcc*)
11964 lt_cv_dlopen="LoadLibrary"
11969 lt_cv_dlopen="dlopen"
11974 # if libdl is installed we need to link against it
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11977 if ${ac_cv_lib_dl_dlopen+:} false; then :
11978 $as_echo_n "(cached) " >&6
11980 ac_check_lib_save_LIBS=$LIBS
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983 /* end confdefs.h. */
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
12000 if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dl_dlopen=yes
12003 ac_cv_lib_dl_dlopen=no
12005 rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12015 lt_cv_dlopen="dyld"
12017 lt_cv_dlopen_self=yes
12024 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12025 if test "x$ac_cv_func_shl_load" = xyes; then :
12026 lt_cv_dlopen="shl_load"
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12029 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12030 if ${ac_cv_lib_dld_shl_load+:} false; then :
12031 $as_echo_n "(cached) " >&6
12033 ac_check_lib_save_LIBS=$LIBS
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12048 return shl_load ();
12053 if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_dld_shl_load=yes
12056 ac_cv_lib_dld_shl_load=no
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12063 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12064 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12065 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12067 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12068 if test "x$ac_cv_func_dlopen" = xyes; then :
12069 lt_cv_dlopen="dlopen"
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12072 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12073 if ${ac_cv_lib_dl_dlopen+:} false; then :
12074 $as_echo_n "(cached) " >&6
12076 ac_check_lib_save_LIBS=$LIBS
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12096 if ac_fn_c_try_link "$LINENO"; then :
12097 ac_cv_lib_dl_dlopen=yes
12099 ac_cv_lib_dl_dlopen=no
12101 rm -f core conftest.err conftest.$ac_objext \
12102 conftest$ac_exeext conftest.$ac_ext
12103 LIBS=$ac_check_lib_save_LIBS
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12107 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12111 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12112 if ${ac_cv_lib_svld_dlopen+:} false; then :
12113 $as_echo_n "(cached) " >&6
12115 ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lsvld $LIBS"
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12120 /* Override any GCC internal prototype to avoid an error.
12121 Use char because int might match the return type of a GCC
12122 builtin and then its argument prototype would still apply. */
12135 if ac_fn_c_try_link "$LINENO"; then :
12136 ac_cv_lib_svld_dlopen=yes
12138 ac_cv_lib_svld_dlopen=no
12140 rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12142 LIBS=$ac_check_lib_save_LIBS
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12145 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12146 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12150 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12151 if ${ac_cv_lib_dld_dld_link+:} false; then :
12152 $as_echo_n "(cached) " >&6
12154 ac_check_lib_save_LIBS=$LIBS
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12159 /* Override any GCC internal prototype to avoid an error.
12160 Use char because int might match the return type of a GCC
12161 builtin and then its argument prototype would still apply. */
12169 return dld_link ();
12174 if ac_fn_c_try_link "$LINENO"; then :
12175 ac_cv_lib_dld_dld_link=yes
12177 ac_cv_lib_dld_dld_link=no
12179 rm -f core conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12184 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12185 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12186 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12207 if test "x$lt_cv_dlopen" != xno; then
12213 case $lt_cv_dlopen in
12215 save_CPPFLAGS="$CPPFLAGS"
12216 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12218 save_LDFLAGS="$LDFLAGS"
12219 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12222 LIBS="$lt_cv_dlopen_libs $LIBS"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12225 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12226 if ${lt_cv_dlopen_self+:} false; then :
12227 $as_echo_n "(cached) " >&6
12229 if test "$cross_compiling" = yes; then :
12230 lt_cv_dlopen_self=cross
12232 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12233 lt_status=$lt_dlunknown
12234 cat > conftest.$ac_ext <<_LT_EOF
12235 #line $LINENO "configure"
12236 #include "confdefs.h"
12245 # define LT_DLGLOBAL RTLD_GLOBAL
12248 # define LT_DLGLOBAL DL_GLOBAL
12250 # define LT_DLGLOBAL 0
12254 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12255 find out it does not work in some platform. */
12256 #ifndef LT_DLLAZY_OR_NOW
12258 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12261 # define LT_DLLAZY_OR_NOW DL_LAZY
12264 # define LT_DLLAZY_OR_NOW RTLD_NOW
12267 # define LT_DLLAZY_OR_NOW DL_NOW
12269 # define LT_DLLAZY_OR_NOW 0
12276 /* When -fvisbility=hidden is used, assume the code has been annotated
12277 correspondingly for the symbols needed. */
12278 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12279 int fnord () __attribute__((visibility("default")));
12282 int fnord () { return 42; }
12285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12286 int status = $lt_dlunknown;
12290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12293 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12294 else puts (dlerror ());
12296 /* dlclose (self); */
12304 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12305 (eval $ac_link) 2>&5
12307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12309 (./conftest; exit; ) >&5 2>/dev/null
12311 case x$lt_status in
12312 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12313 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12314 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12317 # compilation failed
12318 lt_cv_dlopen_self=no
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12326 $as_echo "$lt_cv_dlopen_self" >&6; }
12328 if test "x$lt_cv_dlopen_self" = xyes; then
12329 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12331 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12332 if ${lt_cv_dlopen_self_static+:} false; then :
12333 $as_echo_n "(cached) " >&6
12335 if test "$cross_compiling" = yes; then :
12336 lt_cv_dlopen_self_static=cross
12338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12339 lt_status=$lt_dlunknown
12340 cat > conftest.$ac_ext <<_LT_EOF
12341 #line $LINENO "configure"
12342 #include "confdefs.h"
12351 # define LT_DLGLOBAL RTLD_GLOBAL
12354 # define LT_DLGLOBAL DL_GLOBAL
12356 # define LT_DLGLOBAL 0
12360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12361 find out it does not work in some platform. */
12362 #ifndef LT_DLLAZY_OR_NOW
12364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12367 # define LT_DLLAZY_OR_NOW DL_LAZY
12370 # define LT_DLLAZY_OR_NOW RTLD_NOW
12373 # define LT_DLLAZY_OR_NOW DL_NOW
12375 # define LT_DLLAZY_OR_NOW 0
12382 /* When -fvisbility=hidden is used, assume the code has been annotated
12383 correspondingly for the symbols needed. */
12384 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12385 int fnord () __attribute__((visibility("default")));
12388 int fnord () { return 42; }
12391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12392 int status = $lt_dlunknown;
12396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12399 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12400 else puts (dlerror ());
12402 /* dlclose (self); */
12410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12411 (eval $ac_link) 2>&5
12413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12415 (./conftest; exit; ) >&5 2>/dev/null
12417 case x$lt_status in
12418 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12419 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12420 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12423 # compilation failed
12424 lt_cv_dlopen_self_static=no
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12432 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12435 CPPFLAGS="$save_CPPFLAGS"
12436 LDFLAGS="$save_LDFLAGS"
12441 case $lt_cv_dlopen_self in
12442 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12443 *) enable_dlopen_self=unknown ;;
12446 case $lt_cv_dlopen_self_static in
12447 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12448 *) enable_dlopen_self_static=unknown ;;
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12471 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12472 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12473 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12474 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12476 $as_echo "yes" >&6; }
12478 # FIXME - insert some real tests, host_os isn't really good enough
12481 if test -n "$STRIP" ; then
12482 striplib="$STRIP -x"
12483 old_striplib="$STRIP -S"
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12485 $as_echo "yes" >&6; }
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; }
12509 # Report which library types will actually be built
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12511 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12513 $as_echo "$can_build_shared" >&6; }
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12516 $as_echo_n "checking whether to build shared libraries... " >&6; }
12517 test "$can_build_shared" = "no" && enable_shared=no
12519 # On AIX, shared libraries and static libraries use the same namespace, and
12520 # are all built from PIC.
12523 test "$enable_shared" = yes && enable_static=no
12524 if test -n "$RANLIB"; then
12525 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12526 postinstall_cmds='$RANLIB $lib'
12531 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12532 test "$enable_shared" = yes && enable_static=no
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12537 $as_echo "$enable_shared" >&6; }
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12540 $as_echo_n "checking whether to build static libraries... " >&6; }
12541 # Make sure either enable_shared or enable_static is yes.
12542 test "$enable_shared" = yes || enable_static=yes
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12544 $as_echo "$enable_static" >&6; }
12551 ac_cpp='$CPP $CPPFLAGS'
12552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12570 ac_config_commands="$ac_config_commands libtool"
12575 # Only expand once:
12586 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12587 if test -n "$ac_tool_prefix"; then
12588 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12589 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12591 $as_echo_n "checking for $ac_word... " >&6; }
12592 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12593 $as_echo_n "(cached) " >&6
12595 case $PKG_CONFIG in
12597 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12607 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12619 if test -n "$PKG_CONFIG"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12621 $as_echo "$PKG_CONFIG" >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12629 if test -z "$ac_cv_path_PKG_CONFIG"; then
12630 ac_pt_PKG_CONFIG=$PKG_CONFIG
12631 # Extract the first word of "pkg-config", so it can be a program name with args.
12632 set dummy pkg-config; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12636 $as_echo_n "(cached) " >&6
12638 case $ac_pt_PKG_CONFIG in
12640 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12647 test -z "$as_dir" && as_dir=.
12648 for ac_exec_ext in '' $ac_executable_extensions; do
12649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12650 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12662 if test -n "$ac_pt_PKG_CONFIG"; then
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12664 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12670 if test "x$ac_pt_PKG_CONFIG" = x; then
12673 case $cross_compiling:$ac_tool_warned in
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12677 ac_tool_warned=yes ;;
12679 PKG_CONFIG=$ac_pt_PKG_CONFIG
12682 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12686 if test -n "$PKG_CONFIG"; then
12687 _pkg_min_version=0.9.0
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12689 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12690 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12692 $as_echo "yes" >&6; }
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695 $as_echo "no" >&6; }
12702 # Check whether --with-html-dir was given.
12703 if test "${with_html_dir+set}" = set; then :
12704 withval=$with_html_dir;
12706 with_html_dir='${datadir}/gtk-doc/html'
12709 HTML_DIR="$with_html_dir"
12712 # Check whether --enable-gtk-doc was given.
12713 if test "${enable_gtk_doc+set}" = set; then :
12714 enableval=$enable_gtk_doc;
12720 if test x$enable_gtk_doc = xyes; then
12721 if test -n "$PKG_CONFIG" && \
12722 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.10\""; } >&5
12723 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.10") 2>&5
12725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12726 test $ac_status = 0; }; then
12729 as_fn_error $? "You need to have gtk-doc >= 1.10 installed to build gtk-doc" "$LINENO" 5
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12734 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12736 $as_echo "$enable_gtk_doc" >&6; }
12738 for ac_prog in gtkdoc-check
12740 # Extract the first word of "$ac_prog", so it can be a program name with args.
12741 set dummy $ac_prog; ac_word=$2
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12743 $as_echo_n "checking for $ac_word... " >&6; }
12744 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12745 $as_echo_n "(cached) " >&6
12747 case $GTKDOC_CHECK in
12749 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12759 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12770 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12771 if test -n "$GTKDOC_CHECK"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12773 $as_echo "$GTKDOC_CHECK" >&6; }
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12780 test -n "$GTKDOC_CHECK" && break
12784 if test x$enable_gtk_doc = xyes; then
12785 ENABLE_GTK_DOC_TRUE=
12786 ENABLE_GTK_DOC_FALSE='#'
12788 ENABLE_GTK_DOC_TRUE='#'
12789 ENABLE_GTK_DOC_FALSE=
12792 if test -n "$LIBTOOL"; then
12793 GTK_DOC_USE_LIBTOOL_TRUE=
12794 GTK_DOC_USE_LIBTOOL_FALSE='#'
12796 GTK_DOC_USE_LIBTOOL_TRUE='#'
12797 GTK_DOC_USE_LIBTOOL_FALSE=
12801 # Extract the first word of "xsltproc", so it can be a program name with args.
12802 set dummy xsltproc; ac_word=$2
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12804 $as_echo_n "checking for $ac_word... " >&6; }
12805 if ${ac_cv_path_XSLTPROC+:} false; then :
12806 $as_echo_n "(cached) " >&6
12810 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12814 for as_dir in $PATH
12817 test -z "$as_dir" && as_dir=.
12818 for ac_exec_ext in '' $ac_executable_extensions; do
12819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12820 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12831 XSLTPROC=$ac_cv_path_XSLTPROC
12832 if test -n "$XSLTPROC"; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12834 $as_echo "$XSLTPROC" >&6; }
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837 $as_echo "no" >&6; }
12848 if test "x$linux_os" = xyes; then
12857 # Extract the first word of "perl", so it can be a program name with args.
12858 set dummy perl; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if ${ac_cv_path_PERL+:} false; then :
12862 $as_echo_n "(cached) " >&6
12866 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887 PERL=$ac_cv_path_PERL
12888 if test -n "$PERL"; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12890 $as_echo "$PERL" >&6; }
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12898 # Check whether --enable-largefile was given.
12899 if test "${enable_largefile+set}" = set; then :
12900 enableval=$enable_largefile;
12903 if test "$enable_largefile" != no; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12906 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12907 if ${ac_cv_sys_largefile_CC+:} false; then :
12908 $as_echo_n "(cached) " >&6
12910 ac_cv_sys_largefile_CC=no
12911 if test "$GCC" != yes; then
12914 # IRIX 6.2 and later do not support large files by default,
12915 # so use the C compiler's -n32 option if that helps.
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918 #include <sys/types.h>
12919 /* Check that off_t can represent 2**63 - 1 correctly.
12920 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12921 since some C++ compilers masquerading as C compilers
12922 incorrectly reject 9223372036854775807. */
12923 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12924 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12925 && LARGE_OFF_T % 2147483647 == 1)
12935 if ac_fn_c_try_compile "$LINENO"; then :
12938 rm -f core conftest.err conftest.$ac_objext
12940 if ac_fn_c_try_compile "$LINENO"; then :
12941 ac_cv_sys_largefile_CC=' -n32'; break
12943 rm -f core conftest.err conftest.$ac_objext
12947 rm -f conftest.$ac_ext
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12951 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12952 if test "$ac_cv_sys_largefile_CC" != no; then
12953 CC=$CC$ac_cv_sys_largefile_CC
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12957 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12958 if ${ac_cv_sys_file_offset_bits+:} false; then :
12959 $as_echo_n "(cached) " >&6
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964 #include <sys/types.h>
12965 /* Check that off_t can represent 2**63 - 1 correctly.
12966 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12967 since some C++ compilers masquerading as C compilers
12968 incorrectly reject 9223372036854775807. */
12969 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12970 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12971 && LARGE_OFF_T % 2147483647 == 1)
12981 if ac_fn_c_try_compile "$LINENO"; then :
12982 ac_cv_sys_file_offset_bits=no; break
12984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12987 #define _FILE_OFFSET_BITS 64
12988 #include <sys/types.h>
12989 /* Check that off_t can represent 2**63 - 1 correctly.
12990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12991 since some C++ compilers masquerading as C compilers
12992 incorrectly reject 9223372036854775807. */
12993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12995 && LARGE_OFF_T % 2147483647 == 1)
13005 if ac_fn_c_try_compile "$LINENO"; then :
13006 ac_cv_sys_file_offset_bits=64; break
13008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13009 ac_cv_sys_file_offset_bits=unknown
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13014 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13015 case $ac_cv_sys_file_offset_bits in #(
13018 cat >>confdefs.h <<_ACEOF
13019 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13024 if test $ac_cv_sys_file_offset_bits = unknown; then
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13026 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13027 if ${ac_cv_sys_large_files+:} false; then :
13028 $as_echo_n "(cached) " >&6
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 #include <sys/types.h>
13034 /* Check that off_t can represent 2**63 - 1 correctly.
13035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13036 since some C++ compilers masquerading as C compilers
13037 incorrectly reject 9223372036854775807. */
13038 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13040 && LARGE_OFF_T % 2147483647 == 1)
13050 if ac_fn_c_try_compile "$LINENO"; then :
13051 ac_cv_sys_large_files=no; break
13053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13056 #define _LARGE_FILES 1
13057 #include <sys/types.h>
13058 /* Check that off_t can represent 2**63 - 1 correctly.
13059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13060 since some C++ compilers masquerading as C compilers
13061 incorrectly reject 9223372036854775807. */
13062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13064 && LARGE_OFF_T % 2147483647 == 1)
13074 if ac_fn_c_try_compile "$LINENO"; then :
13075 ac_cv_sys_large_files=1; break
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 ac_cv_sys_large_files=unknown
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13083 $as_echo "$ac_cv_sys_large_files" >&6; }
13084 case $ac_cv_sys_large_files in #(
13087 cat >>confdefs.h <<_ACEOF
13088 #define _LARGE_FILES $ac_cv_sys_large_files
13097 for ac_header in linux/compiler.h linux/blkpg.h linux/major.h
13099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13100 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
13101 #ifdef HAVE_LINUX_COMPILER_H
13102 #include <linux/compiler.h>
13106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13107 cat >>confdefs.h <<_ACEOF
13108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13115 for ac_header in err.h \
13133 rpcsvc/nfs_prot.h \
13157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13158 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13159 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13160 cat >>confdefs.h <<_ACEOF
13161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13169 for ac_header in linux/raw.h
13171 ac_fn_c_check_header_mongrel "$LINENO" "linux/raw.h" "ac_cv_header_linux_raw_h" "$ac_includes_default"
13172 if test "x$ac_cv_header_linux_raw_h" = xyes; then :
13173 cat >>confdefs.h <<_ACEOF
13174 #define HAVE_LINUX_RAW_H 1
13198 for ac_header in langinfo.h
13200 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
13201 if test "x$ac_cv_header_langinfo_h" = xyes; then :
13202 cat >>confdefs.h <<_ACEOF
13203 #define HAVE_LANGINFO_H 1
13206 HAVE_LANGINFO_TRUE=
13207 HAVE_LANGINFO_FALSE='#'
13209 HAVE_LANGINFO_TRUE='#'
13210 HAVE_LANGINFO_FALSE=
13215 HAVE_LANGINFO_TRUE=
13216 HAVE_LANGINFO_FALSE='#'
13218 HAVE_LANGINFO_TRUE='#'
13219 HAVE_LANGINFO_FALSE=
13228 ac_fn_c_check_decl "$LINENO" "_NL_TIME_WEEK_1STDAY" "ac_cv_have_decl__NL_TIME_WEEK_1STDAY" "#include <langinfo.h>
13230 if test "x$ac_cv_have_decl__NL_TIME_WEEK_1STDAY" = xyes; then :
13236 cat >>confdefs.h <<_ACEOF
13237 #define HAVE_DECL__NL_TIME_WEEK_1STDAY $ac_have_decl
13241 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
13243 if test "x$ac_cv_have_decl_llseek" = xyes; then :
13245 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
13250 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
13251 #define _LARGEFILE64_SOURCE
13252 #include <unistd.h>
13254 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
13256 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
13261 for ac_func in inet_aton \
13268 get_current_dir_name \
13298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13299 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13300 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13301 cat >>confdefs.h <<_ACEOF
13302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13309 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13310 if ${ac_cv_sys_largefile_source+:} false; then :
13311 $as_echo_n "(cached) " >&6
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13316 #include <sys/types.h> /* for off_t */
13321 int (*fp) (FILE *, off_t, int) = fseeko;
13322 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13327 if ac_fn_c_try_link "$LINENO"; then :
13328 ac_cv_sys_largefile_source=no; break
13330 rm -f core conftest.err conftest.$ac_objext \
13331 conftest$ac_exeext conftest.$ac_ext
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334 #define _LARGEFILE_SOURCE 1
13335 #include <sys/types.h> /* for off_t */
13340 int (*fp) (FILE *, off_t, int) = fseeko;
13341 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13346 if ac_fn_c_try_link "$LINENO"; then :
13347 ac_cv_sys_largefile_source=1; break
13349 rm -f core conftest.err conftest.$ac_objext \
13350 conftest$ac_exeext conftest.$ac_ext
13351 ac_cv_sys_largefile_source=unknown
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13356 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13357 case $ac_cv_sys_largefile_source in #(
13360 cat >>confdefs.h <<_ACEOF
13361 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13367 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13368 # in glibc 2.1.3, but that breaks too many other things.
13369 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13370 if test $ac_cv_sys_largefile_source != unknown; then
13372 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13377 for ac_func in openat fstatat unlinkat
13379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13380 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13381 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13382 cat >>confdefs.h <<_ACEOF
13383 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13392 for ac_func in ioperm iopl
13394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13395 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13396 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13397 cat >>confdefs.h <<_ACEOF
13398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13404 if test "x$have_io" = xyes -o "x$linux_os" = xyes; then
13405 BUILD_HWCLOCK_TRUE=
13406 BUILD_HWCLOCK_FALSE='#'
13408 BUILD_HWCLOCK_TRUE='#'
13409 BUILD_HWCLOCK_FALSE=
13413 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13414 #include <sys/socket.h>
13416 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13418 cat >>confdefs.h <<_ACEOF
13419 #define HAVE_SA_LEN 1
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13427 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13428 if ${ac_cv_search_gethostbyname+:} false; then :
13429 $as_echo_n "(cached) " >&6
13431 ac_func_search_save_LIBS=$LIBS
13432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433 /* end confdefs.h. */
13435 /* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
13441 char gethostbyname ();
13445 return gethostbyname ();
13450 for ac_lib in '' nsl; do
13451 if test -z "$ac_lib"; then
13452 ac_res="none required"
13455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13457 if ac_fn_c_try_link "$LINENO"; then :
13458 ac_cv_search_gethostbyname=$ac_res
13460 rm -f core conftest.err conftest.$ac_objext \
13462 if ${ac_cv_search_gethostbyname+:} false; then :
13466 if ${ac_cv_search_gethostbyname+:} false; then :
13469 ac_cv_search_gethostbyname=no
13471 rm conftest.$ac_ext
13472 LIBS=$ac_func_search_save_LIBS
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13475 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13476 ac_res=$ac_cv_search_gethostbyname
13477 if test "$ac_res" != no; then :
13478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13479 if test x"$ac_cv_search_gethostbyname" != x"none required"; then
13480 SOCKET_LIBS="$SOCKET_LIBS -lnsl";
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13485 $as_echo_n "checking for library containing socket... " >&6; }
13486 if ${ac_cv_search_socket+:} false; then :
13487 $as_echo_n "(cached) " >&6
13489 ac_func_search_save_LIBS=$LIBS
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h. */
13493 /* Override any GCC internal prototype to avoid an error.
13494 Use char because int might match the return type of a GCC
13495 builtin and then its argument prototype would still apply. */
13508 for ac_lib in '' socket; do
13509 if test -z "$ac_lib"; then
13510 ac_res="none required"
13513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13515 if ac_fn_c_try_link "$LINENO"; then :
13516 ac_cv_search_socket=$ac_res
13518 rm -f core conftest.err conftest.$ac_objext \
13520 if ${ac_cv_search_socket+:} false; then :
13524 if ${ac_cv_search_socket+:} false; then :
13527 ac_cv_search_socket=no
13529 rm conftest.$ac_ext
13530 LIBS=$ac_func_search_save_LIBS
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13533 $as_echo "$ac_cv_search_socket" >&6; }
13534 ac_res=$ac_cv_search_socket
13535 if test "$ac_res" != no; then :
13536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13537 if test x"$ac_cv_search_socket" != x"none required"; then
13538 SOCKET_LIBS="$SOCKET_LIBS -lsocket";
13546 for ac_func in dirfd
13548 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
13549 if test "x$ac_cv_func_dirfd" = xyes; then :
13550 cat >>confdefs.h <<_ACEOF
13551 #define HAVE_DIRFD 1
13559 if test x"$have_dirfd" = xno ; then
13560 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
13561 #include <dirent.h>
13563 if test "x$ac_cv_have_decl_dirfd" = xyes; then :
13569 cat >>confdefs.h <<_ACEOF
13570 #define HAVE_DECL_DIRFD $ac_have_decl
13572 if test $ac_have_decl = 1; then :
13581 if test x"$have_dirfd" = xno ; then
13582 ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" "#include <sys/types.h>
13583 #include <dirent.h>
13585 if test "x$ac_cv_member_DIR_dd_fd" = xyes; then :
13587 cat >>confdefs.h <<_ACEOF
13588 #define HAVE_DIR_DD_FD 1
13598 case "$have_dirfd:$have_ddfd" in
13600 as_fn_error $? "cannot find a method to get filedescriptor of directory" "$LINENO" 5 ;;
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
13605 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
13606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13607 /* end confdefs.h. */
13612 program_invocation_short_name = "test";
13617 if ac_fn_c_try_compile "$LINENO"; then :
13619 $as_echo "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13622 $as_echo "yes" >&6; }
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625 $as_echo "no" >&6; }
13627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined" >&5
13630 $as_echo_n "checking whether __progname is defined... " >&6; }
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13633 extern char *__progname;
13637 if (*__progname == 0) return;
13642 if ac_fn_c_try_link "$LINENO"; then :
13644 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13647 $as_echo "yes" >&6; }
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13652 rm -f core conftest.err conftest.$ac_objext \
13653 conftest$ac_exeext conftest.$ac_ext
13657 # Check whether --enable-static-programs was given.
13658 if test "${enable_static_programs+set}" = set; then :
13659 enableval=$enable_static_programs;
13663 case $enable_static_programs in
13664 yes) enable_static_programs=losetup,mount,umount,fdisk,sfdisk,blkid ;;
13665 no) enable_static_programs= ;;
13669 case ,$enable_static_programs, in
13670 *,losetup,*) static_losetup=yes ;;
13672 if test "x$static_losetup" = xyes; then
13673 HAVE_STATIC_LOSETUP_TRUE=
13674 HAVE_STATIC_LOSETUP_FALSE='#'
13676 HAVE_STATIC_LOSETUP_TRUE='#'
13677 HAVE_STATIC_LOSETUP_FALSE=
13681 case ,$enable_static_programs, in
13682 *,mount,*) static_mount=yes ;;
13684 if test "x$static_mount" = xyes; then
13685 HAVE_STATIC_MOUNT_TRUE=
13686 HAVE_STATIC_MOUNT_FALSE='#'
13688 HAVE_STATIC_MOUNT_TRUE='#'
13689 HAVE_STATIC_MOUNT_FALSE=
13693 case ,$enable_static_programs, in
13694 *,umount,*) static_umount=yes ;;
13696 if test "x$static_umount" = xyes; then
13697 HAVE_STATIC_UMOUNT_TRUE=
13698 HAVE_STATIC_UMOUNT_FALSE='#'
13700 HAVE_STATIC_UMOUNT_TRUE='#'
13701 HAVE_STATIC_UMOUNT_FALSE=
13705 case ,$enable_static_programs, in
13706 *,fdisk,*) static_fdisk=yes ;;
13708 if test "x$static_fdisk" = xyes; then
13709 HAVE_STATIC_FDISK_TRUE=
13710 HAVE_STATIC_FDISK_FALSE='#'
13712 HAVE_STATIC_FDISK_TRUE='#'
13713 HAVE_STATIC_FDISK_FALSE=
13717 case ,$enable_static_programs, in
13718 *,sfdisk,*) static_sfdisk=yes ;;
13720 if test "x$static_sfdisk" = xyes; then
13721 HAVE_STATIC_SFDISK_TRUE=
13722 HAVE_STATIC_SFDISK_FALSE='#'
13724 HAVE_STATIC_SFDISK_TRUE='#'
13725 HAVE_STATIC_SFDISK_FALSE=
13729 case ,$enable_static_programs, in
13730 *,blkid,*) static_blkid=yes ;;
13732 if test "x$static_blkid" = xyes; then
13733 HAVE_STATIC_BLKID_TRUE=
13734 HAVE_STATIC_BLKID_FALSE='#'
13736 HAVE_STATIC_BLKID_TRUE='#'
13737 HAVE_STATIC_BLKID_FALSE=
13755 # Check whether --enable-tls was given.
13756 if test "${enable_tls+set}" = set; then :
13757 enableval=$enable_tls;
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
13764 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
13765 if ${ax_cv_have_tls+:} false; then :
13766 $as_echo_n "(cached) " >&6
13769 if test "$cross_compiling" = yes; then :
13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h. */
13772 __thread int a; int b; int main() { return a = b; }
13774 if ac_fn_c_try_link "$LINENO"; then :
13775 chktls_save_LDFLAGS="$LDFLAGS"
13778 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
13781 chktls_save_CFLAGS="$CFLAGS"
13782 CFLAGS="-fPIC $CFLAGS"
13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13784 /* end confdefs.h. */
13785 int f() { return 0; }
13787 if ac_fn_c_try_link "$LINENO"; then :
13788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h. */
13790 __thread int a; int b; int f() { return a = b; }
13792 if ac_fn_c_try_link "$LINENO"; then :
13797 rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext conftest.$ac_ext
13802 rm -f core conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
13804 CFLAGS="$chktls_save_CFLAGS"
13805 LDFLAGS="$chktls_save_LDFLAGS"
13809 rm -f core conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext conftest.$ac_ext
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 __thread int a; int b; int main() { return a = b; }
13818 if ac_fn_c_try_run "$LINENO"; then :
13819 chktls_save_LDFLAGS="$LDFLAGS"
13820 LDFLAGS="-static $LDFLAGS"
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13823 int main() { return 0; }
13825 if ac_fn_c_try_link "$LINENO"; then :
13826 if test "$cross_compiling" = yes; then :
13827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13829 as_fn_error $? "cannot run test program while cross compiling
13830 See \`config.log' for more details" "$LINENO" 5; }
13832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h. */
13834 __thread int a; int b; int main() { return a = b; }
13836 if ac_fn_c_try_run "$LINENO"; then :
13841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13842 conftest.$ac_objext conftest.beam conftest.$ac_ext
13848 rm -f core conftest.err conftest.$ac_objext \
13849 conftest$ac_exeext conftest.$ac_ext
13850 LDFLAGS="$chktls_save_LDFLAGS"
13851 if test $ax_cv_have_tls = yes; then
13852 chktls_save_CFLAGS="$CFLAGS"
13853 thread_CFLAGS=failed
13854 for flag in '' '-pthread' '-lpthread'; do
13855 CFLAGS="$flag $chktls_save_CFLAGS"
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h. */
13858 #include <pthread.h>
13859 void *g(void *d) { return NULL; }
13863 pthread_t t; pthread_create(&t,NULL,g,NULL);
13868 if ac_fn_c_try_link "$LINENO"; then :
13869 thread_CFLAGS="$flag"
13871 rm -f core conftest.err conftest.$ac_objext \
13872 conftest$ac_exeext conftest.$ac_ext
13873 if test "X$thread_CFLAGS" != Xfailed; then
13877 CFLAGS="$chktls_save_CFLAGS"
13878 if test "X$thread_CFLAGS" != Xfailed; then
13879 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
13880 if test "$cross_compiling" = yes; then :
13881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13883 as_fn_error $? "cannot run test program while cross compiling
13884 See \`config.log' for more details" "$LINENO" 5; }
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888 #include <pthread.h>
13890 static int *a_in_other_thread;
13892 thread_func (void *arg)
13894 a_in_other_thread = &a;
13901 void *thread_retval;
13902 int *a_in_main_thread;
13903 if (pthread_create (&thread, (pthread_attr_t *)0,
13904 thread_func, (void *)0))
13906 a_in_main_thread = &a;
13907 if (pthread_join (thread, &thread_retval))
13909 return (a_in_other_thread == a_in_main_thread);
13914 if ac_fn_c_try_run "$LINENO"; then :
13919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13920 conftest.$ac_objext conftest.beam conftest.$ac_ext
13923 CFLAGS="$chktls_save_CFLAGS"
13929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13930 conftest.$ac_objext conftest.beam conftest.$ac_ext
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_tls" >&5
13935 $as_echo "$ax_cv_have_tls" >&6; }
13937 if test "$enable_tls $ax_cv_have_tls" = "yes yes"; then
13939 $as_echo "#define HAVE_TLS 1" >>confdefs.h
13944 # Check whether --enable-mount was given.
13945 if test "${enable_mount+set}" = set; then :
13946 enableval=$enable_mount;
13953 if test "x$enable_mount" = xcheck; then
13954 if test "x$linux_os" = xno; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build mount utilities" >&5
13956 $as_echo "$as_me: WARNING: non-linux system; do not build mount utilities" >&2;}
13959 elif test "x$enable_mount" = xno; then
13962 if test "x$build_mount" = xyes; then
13964 BUILD_MOUNT_FALSE='#'
13966 BUILD_MOUNT_TRUE='#'
13972 # Check whether --enable-fsck was given.
13973 if test "${enable_fsck+set}" = set; then :
13974 enableval=$enable_fsck;
13980 if test "x$enable_fsck" = xyes; then
13982 BUILD_FSCK_FALSE='#'
13984 BUILD_FSCK_TRUE='#'
13990 # Check whether --enable-partx was given.
13991 if test "${enable_partx+set}" = set; then :
13992 enableval=$enable_partx;
13999 if test "x$enable_partx" = xcheck; then
14000 if test "x$linux_os" = xno; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build partx utilities" >&5
14002 $as_echo "$as_me: WARNING: non-linux system; do not build partx utilities" >&2;}
14005 elif test "x$enable_partx" = xno; then
14008 if test "x$build_partx" = xyes; then
14010 BUILD_PARTX_FALSE='#'
14012 BUILD_PARTX_TRUE='#'
14018 # Check whether --enable-libuuid was given.
14019 if test "${enable_libuuid+set}" = set; then :
14020 enableval=$enable_libuuid;
14028 if test "x$enable_libuuid" = xyes; then
14029 BUILD_LIBUUID_TRUE=
14030 BUILD_LIBUUID_FALSE='#'
14032 BUILD_LIBUUID_TRUE='#'
14033 BUILD_LIBUUID_FALSE=
14037 if test "x$enable_libuuid" = xyes; then
14039 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: uuid library is not found; mkswap(8) will not generate UUIDs" >&5
14043 $as_echo "$as_me: WARNING: uuid library is not found; mkswap(8) will not generate UUIDs" >&2;}
14047 # Check whether --enable-uuidd was given.
14048 if test "${enable_uuidd+set}" = set; then :
14049 enableval=$enable_uuidd;
14056 case "$enable_uuidd:$enable_libuuid" in
14058 as_fn_error $? "cannot enable uuidd when libuuid is disabled" "$LINENO" 5 ;;
14060 enable_uuidd=$enable_libuuid ;;
14062 if test "x$enable_uuidd" = xyes; then
14064 $as_echo "#define HAVE_UUIDD 1" >>confdefs.h
14067 if test "x$enable_uuidd" = xyes; then
14069 BUILD_UUIDD_FALSE='#'
14071 BUILD_UUIDD_TRUE='#'
14077 # Check whether --enable-libblkid was given.
14078 if test "${enable_libblkid+set}" = set; then :
14079 enableval=$enable_libblkid;
14081 enable_libblkid=yes
14088 if test "x$enable_libblkid" = xyes; then
14089 BUILD_LIBBLKID_TRUE=
14090 BUILD_LIBBLKID_FALSE='#'
14092 BUILD_LIBBLKID_TRUE='#'
14093 BUILD_LIBBLKID_FALSE=
14097 cat >>confdefs.h <<_ACEOF
14098 #define LIBBLKID_VERSION "$LIBBLKID_VERSION"
14102 cat >>confdefs.h <<_ACEOF
14103 #define LIBBLKID_DATE "$LIBBLKID_DATE"
14107 if test "x$enable_libblkid" = xyes; then
14109 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
14112 if test "x$build_mount" = xyes; then
14113 as_fn_error $? "libblkid is needed to build util-linux mount" "$LINENO" 5
14115 if test "x$enable_fsck" = xyes; then
14116 as_fn_error $? "libblkid is needed to build util-linux fsck" "$LINENO" 5
14118 if test "x$build_partx" = xyes; then
14119 as_fn_error $? "libblkid is needed to build util-linux partx" "$LINENO" 5
14124 # Check whether --enable-libmount was given.
14125 if test "${enable_libmount+set}" = set; then :
14126 enableval=$enable_libmount;
14128 enable_libmount=check
14133 if test "x$enable_libmount" = xcheck; then
14134 if test "x$linux_os" = xno; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build libmount" >&5
14136 $as_echo "$as_me: WARNING: non-linux system; do not build libmount" >&2;}
14139 elif test "x$enable_libmount" = xno; then
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking needed scanf type modifiers" >&5
14145 $as_echo_n "checking needed scanf type modifiers... " >&6; }
14146 if ${scanf_cv_type_modifier+:} false; then :
14147 $as_echo_n "(cached) " >&6
14149 if test "$cross_compiling" = yes; then :
14150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14152 as_fn_error $? "cannot run test program while cross compiling
14153 See \`config.log' for more details" "$LINENO" 5; }
14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h. */
14157 # include <stdio.h>
14162 i = sscanf("x", "%ms", &s);
14168 if ac_fn_c_try_run "$LINENO"; then :
14169 scanf_cv_type_modifier=ms
14171 if test "$cross_compiling" = yes; then :
14172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14174 as_fn_error $? "cannot run test program while cross compiling
14175 See \`config.log' for more details" "$LINENO" 5; }
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179 # include <stdio.h>
14184 i = sscanf("x", "%as", &s);
14190 if ac_fn_c_try_run "$LINENO"; then :
14191 scanf_cv_type_modifier=as
14193 scanf_cv_type_modifier=no
14196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14197 conftest.$ac_objext conftest.beam conftest.$ac_ext
14202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14203 conftest.$ac_objext conftest.beam conftest.$ac_ext
14210 case "$scanf_cv_type_modifier" in
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (%ms) yes" >&5
14213 $as_echo "(%ms) yes" >&6; }
14215 $as_echo "#define HAVE_SCANF_MS_MODIFIER 1" >>confdefs.h
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (%as) yes" >&5
14219 $as_echo "(%as) yes" >&6; }
14221 $as_echo "#define HAVE_SCANF_AS_MODIFIER 1" >>confdefs.h
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14226 if "x$build_libmount" = xyes; then
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: %as or %ms for sscanf() not found; do not build libmount" >&5
14228 $as_echo "$as_me: WARNING: %as or %ms for sscanf() not found; do not build libmount" >&2;}
14234 case "$enable_libblkid:$build_libmount" in
14236 as_fn_error $? "cannot enable libmount when libblkid is disabled" "$LINENO" 5 ;;
14242 cat >>confdefs.h <<_ACEOF
14243 #define LIBMOUNT_VERSION "$LIBMOUNT_VERSION"
14246 if test "x$build_libmount" = xyes; then
14247 BUILD_LIBMOUNT_TRUE=
14248 BUILD_LIBMOUNT_FALSE='#'
14250 BUILD_LIBMOUNT_TRUE='#'
14251 BUILD_LIBMOUNT_FALSE=
14256 # Check whether --enable-libmount-mount was given.
14257 if test "${enable_libmount_mount+set}" = set; then :
14258 enableval=$enable_libmount_mount;
14260 enable_libmount_mount=no
14265 case "$build_libmount:$enable_libmount_mount" in
14267 as_fn_error $? "cannot link mount(8) with libmount when libmount is disabled" "$LINENO" 5 ;;
14270 $as_echo "#define HAVE_LIBMOUNT_MOUNT 1" >>confdefs.h
14273 if test "x$enable_libmount_mount" = xyes; then
14274 BUILD_LIBMOUNT_MOUNT_TRUE=
14275 BUILD_LIBMOUNT_MOUNT_FALSE='#'
14277 BUILD_LIBMOUNT_MOUNT_TRUE='#'
14278 BUILD_LIBMOUNT_MOUNT_FALSE=
14283 # Check whether --enable-mountpoint was given.
14284 if test "${enable_mountpoint+set}" = set; then :
14285 enableval=$enable_mountpoint;
14287 enable_mountpoint=check
14292 build_mountpoint=yes
14293 if test "x$enable_mountpoint" = xcheck; then
14294 if test "x$build_libmount" = xno; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libmount disabled; do not build mountpoint" >&5
14296 $as_echo "$as_me: WARNING: libmount disabled; do not build mountpoint" >&2;}
14297 build_mountpoint=no
14299 elif test "x$enable_mountpoint" = xno; then
14300 build_mountpoint=no
14303 case "$build_libmount:$build_mountpoint" in
14305 as_fn_error $? "cannot enable mountpoint when libmount is disabled" "$LINENO" 5 ;;
14307 if test "x$build_mountpoint" = xyes; then
14308 BUILD_MOUNTPOINT_TRUE=
14309 BUILD_MOUNTPOINT_FALSE='#'
14311 BUILD_MOUNTPOINT_TRUE='#'
14312 BUILD_MOUNTPOINT_FALSE=
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
14321 $as_echo_n "checking for openpty in -lutil... " >&6; }
14322 if ${ac_cv_lib_util_openpty+:} false; then :
14323 $as_echo_n "(cached) " >&6
14325 ac_check_lib_save_LIBS=$LIBS
14326 LIBS="-lutil $LIBS"
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14330 /* Override any GCC internal prototype to avoid an error.
14331 Use char because int might match the return type of a GCC
14332 builtin and then its argument prototype would still apply. */
14345 if ac_fn_c_try_link "$LINENO"; then :
14346 ac_cv_lib_util_openpty=yes
14348 ac_cv_lib_util_openpty=no
14350 rm -f core conftest.err conftest.$ac_objext \
14351 conftest$ac_exeext conftest.$ac_ext
14352 LIBS=$ac_check_lib_save_LIBS
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
14355 $as_echo "$ac_cv_lib_util_openpty" >&6; }
14356 if test "x$ac_cv_lib_util_openpty" = xyes; then :
14357 cat >>confdefs.h <<_ACEOF
14358 #define HAVE_LIBUTIL 1
14361 LIBS="-lutil $LIBS"
14367 if test $have_util = yes; then
14369 HAVE_UTIL_FALSE='#'
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetnum in -ltermcap" >&5
14380 $as_echo_n "checking for tgetnum in -ltermcap... " >&6; }
14381 if ${ac_cv_lib_termcap_tgetnum+:} false; then :
14382 $as_echo_n "(cached) " >&6
14384 ac_check_lib_save_LIBS=$LIBS
14385 LIBS="-ltermcap $LIBS"
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14389 /* Override any GCC internal prototype to avoid an error.
14390 Use char because int might match the return type of a GCC
14391 builtin and then its argument prototype would still apply. */
14404 if ac_fn_c_try_link "$LINENO"; then :
14405 ac_cv_lib_termcap_tgetnum=yes
14407 ac_cv_lib_termcap_tgetnum=no
14409 rm -f core conftest.err conftest.$ac_objext \
14410 conftest$ac_exeext conftest.$ac_ext
14411 LIBS=$ac_check_lib_save_LIBS
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetnum" >&5
14414 $as_echo "$ac_cv_lib_termcap_tgetnum" >&6; }
14415 if test "x$ac_cv_lib_termcap_tgetnum" = xyes; then :
14416 cat >>confdefs.h <<_ACEOF
14417 #define HAVE_LIBTERMCAP 1
14420 LIBS="-ltermcap $LIBS"
14426 if test $have_termcap = yes; then
14428 HAVE_TERMCAP_FALSE='#'
14430 HAVE_TERMCAP_TRUE='#'
14431 HAVE_TERMCAP_FALSE=
14439 if test -n "$ac_aux_dir"; then
14440 case "$ac_aux_dir" in
14441 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
14442 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
14445 if test -z "$MKINSTALLDIRS"; then
14446 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14452 $as_echo_n "checking whether NLS is requested... " >&6; }
14453 # Check whether --enable-nls was given.
14454 if test "${enable_nls+set}" = set; then :
14455 enableval=$enable_nls; USE_NLS=$enableval
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14461 $as_echo "$USE_NLS" >&6; }
14468 # Prepare PATH_SEPARATOR.
14469 # The user is always right.
14470 if test "${PATH_SEPARATOR+set}" != set; then
14471 echo "#! /bin/sh" >conf$$.sh
14472 echo "exit 0" >>conf$$.sh
14474 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14482 # Find out how to test for executable files. Don't use a zero-byte file,
14483 # as systems may use methods other than mode bits to determine executability.
14484 cat >conf$$.file <<_ASEOF
14488 chmod +x conf$$.file
14489 if test -x conf$$.file >/dev/null 2>&1; then
14490 ac_executable_p="test -x"
14492 ac_executable_p="test -f"
14496 # Extract the first word of "msgfmt", so it can be a program name with args.
14497 set dummy msgfmt; ac_word=$2
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14499 $as_echo_n "checking for $ac_word... " >&6; }
14500 if ${ac_cv_path_MSGFMT+:} false; then :
14501 $as_echo_n "(cached) " >&6
14505 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14508 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14509 for ac_dir in $PATH; do
14511 test -z "$ac_dir" && ac_dir=.
14512 for ac_exec_ext in '' $ac_executable_extensions; do
14513 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14514 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
14515 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14516 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14523 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14527 MSGFMT="$ac_cv_path_MSGFMT"
14528 if test "$MSGFMT" != ":"; then
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14530 $as_echo "$MSGFMT" >&6; }
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14533 $as_echo "no" >&6; }
14536 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14537 set dummy gmsgfmt; ac_word=$2
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14539 $as_echo_n "checking for $ac_word... " >&6; }
14540 if ${ac_cv_path_GMSGFMT+:} false; then :
14541 $as_echo_n "(cached) " >&6
14545 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14549 for as_dir in $PATH
14552 test -z "$as_dir" && as_dir=.
14553 for ac_exec_ext in '' $ac_executable_extensions; do
14554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14555 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14563 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14567 GMSGFMT=$ac_cv_path_GMSGFMT
14568 if test -n "$GMSGFMT"; then
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14570 $as_echo "$GMSGFMT" >&6; }
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14573 $as_echo "no" >&6; }
14579 # Prepare PATH_SEPARATOR.
14580 # The user is always right.
14581 if test "${PATH_SEPARATOR+set}" != set; then
14582 echo "#! /bin/sh" >conf$$.sh
14583 echo "exit 0" >>conf$$.sh
14585 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14593 # Find out how to test for executable files. Don't use a zero-byte file,
14594 # as systems may use methods other than mode bits to determine executability.
14595 cat >conf$$.file <<_ASEOF
14599 chmod +x conf$$.file
14600 if test -x conf$$.file >/dev/null 2>&1; then
14601 ac_executable_p="test -x"
14603 ac_executable_p="test -f"
14607 # Extract the first word of "xgettext", so it can be a program name with args.
14608 set dummy xgettext; ac_word=$2
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14610 $as_echo_n "checking for $ac_word... " >&6; }
14611 if ${ac_cv_path_XGETTEXT+:} false; then :
14612 $as_echo_n "(cached) " >&6
14614 case "$XGETTEXT" in
14616 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14619 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14620 for ac_dir in $PATH; do
14622 test -z "$ac_dir" && ac_dir=.
14623 for ac_exec_ext in '' $ac_executable_extensions; do
14624 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14625 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14626 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14627 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14634 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14638 XGETTEXT="$ac_cv_path_XGETTEXT"
14639 if test "$XGETTEXT" != ":"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14641 $as_echo "$XGETTEXT" >&6; }
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14644 $as_echo "no" >&6; }
14650 # Prepare PATH_SEPARATOR.
14651 # The user is always right.
14652 if test "${PATH_SEPARATOR+set}" != set; then
14653 echo "#! /bin/sh" >conf$$.sh
14654 echo "exit 0" >>conf$$.sh
14656 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14664 # Find out how to test for executable files. Don't use a zero-byte file,
14665 # as systems may use methods other than mode bits to determine executability.
14666 cat >conf$$.file <<_ASEOF
14670 chmod +x conf$$.file
14671 if test -x conf$$.file >/dev/null 2>&1; then
14672 ac_executable_p="test -x"
14674 ac_executable_p="test -f"
14678 # Extract the first word of "msgmerge", so it can be a program name with args.
14679 set dummy msgmerge; ac_word=$2
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14681 $as_echo_n "checking for $ac_word... " >&6; }
14682 if ${ac_cv_path_MSGMERGE+:} false; then :
14683 $as_echo_n "(cached) " >&6
14685 case "$MSGMERGE" in
14687 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14690 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14691 for ac_dir in $PATH; do
14693 test -z "$ac_dir" && ac_dir=.
14694 for ac_exec_ext in '' $ac_executable_extensions; do
14695 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14696 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
14697 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14704 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14708 MSGMERGE="$ac_cv_path_MSGMERGE"
14709 if test "$MSGMERGE" != ":"; then
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14711 $as_echo "$MSGMERGE" >&6; }
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714 $as_echo "no" >&6; }
14718 if test "$GMSGFMT" != ":"; then
14719 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
14720 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14723 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
14725 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
14730 if test "$XGETTEXT" != ":"; then
14731 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14732 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
14736 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
14742 ac_config_commands="$ac_config_commands default-1"
14746 if test "X$prefix" = "XNONE"; then
14747 acl_final_prefix="$ac_default_prefix"
14749 acl_final_prefix="$prefix"
14751 if test "X$exec_prefix" = "XNONE"; then
14752 acl_final_exec_prefix='${prefix}'
14754 acl_final_exec_prefix="$exec_prefix"
14756 acl_save_prefix="$prefix"
14757 prefix="$acl_final_prefix"
14758 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14759 prefix="$acl_save_prefix"
14762 # Check whether --with-gnu-ld was given.
14763 if test "${with_gnu_ld+set}" = set; then :
14764 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14769 # Prepare PATH_SEPARATOR.
14770 # The user is always right.
14771 if test "${PATH_SEPARATOR+set}" != set; then
14772 echo "#! /bin/sh" >conf$$.sh
14773 echo "exit 0" >>conf$$.sh
14775 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14783 if test "$GCC" = yes; then
14784 # Check if gcc -print-prog-name=ld gives a path.
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14786 $as_echo_n "checking for ld used by GCC... " >&6; }
14789 # gcc leaves a trailing carriage return which upsets mingw
14790 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14792 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14795 # Accept absolute paths.
14796 [\\/]* | [A-Za-z]:[\\/]*)
14797 re_direlt='/[^/][^/]*/\.\./'
14798 # Canonicalize the path of ld
14799 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14800 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14801 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14803 test -z "$LD" && LD="$ac_prog"
14806 # If it fails, then pretend we aren't using GCC.
14810 # If it is relative, then search for the first ld in PATH.
14811 with_gnu_ld=unknown
14814 elif test "$with_gnu_ld" = yes; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14816 $as_echo_n "checking for GNU ld... " >&6; }
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14819 $as_echo_n "checking for non-GNU ld... " >&6; }
14821 if ${acl_cv_path_LD+:} false; then :
14822 $as_echo_n "(cached) " >&6
14824 if test -z "$LD"; then
14825 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14826 for ac_dir in $PATH; do
14827 test -z "$ac_dir" && ac_dir=.
14828 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14829 acl_cv_path_LD="$ac_dir/$ac_prog"
14830 # Check to see if the program is GNU ld. I'd rather use --version,
14831 # but apparently some GNU ld's only accept -v.
14832 # Break only if it was the GNU/non-GNU ld that we prefer.
14833 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14834 *GNU* | *'with BFD'*)
14835 test "$with_gnu_ld" != no && break ;;
14837 test "$with_gnu_ld" != yes && break ;;
14843 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14847 LD="$acl_cv_path_LD"
14848 if test -n "$LD"; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14850 $as_echo "$LD" >&6; }
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853 $as_echo "no" >&6; }
14855 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14857 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14858 if ${acl_cv_prog_gnu_ld+:} false; then :
14859 $as_echo_n "(cached) " >&6
14861 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14862 case `$LD -v 2>&1 </dev/null` in
14863 *GNU* | *'with BFD'*)
14864 acl_cv_prog_gnu_ld=yes ;;
14866 acl_cv_prog_gnu_ld=no ;;
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14870 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14871 with_gnu_ld=$acl_cv_prog_gnu_ld
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14876 $as_echo_n "checking for shared library run path origin... " >&6; }
14877 if ${acl_cv_rpath+:} false; then :
14878 $as_echo_n "(cached) " >&6
14881 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14882 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14884 rm -f ./conftest.sh
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14889 $as_echo "$acl_cv_rpath" >&6; }
14891 libext="$acl_cv_libext"
14892 shlibext="$acl_cv_shlibext"
14893 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14894 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14895 hardcode_direct="$acl_cv_hardcode_direct"
14896 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14897 # Check whether --enable-rpath was given.
14898 if test "${enable_rpath+set}" = set; then :
14899 enableval=$enable_rpath; :
14913 acl_save_prefix="$prefix"
14914 prefix="$acl_final_prefix"
14915 acl_save_exec_prefix="$exec_prefix"
14916 exec_prefix="$acl_final_exec_prefix"
14918 eval additional_includedir=\"$includedir\"
14919 eval additional_libdir=\"$libdir\"
14921 exec_prefix="$acl_save_exec_prefix"
14922 prefix="$acl_save_prefix"
14925 # Check whether --with-libiconv-prefix was given.
14926 if test "${with_libiconv_prefix+set}" = set; then :
14927 withval=$with_libiconv_prefix;
14928 if test "X$withval" = "Xno"; then
14931 if test "X$withval" = "X"; then
14933 acl_save_prefix="$prefix"
14934 prefix="$acl_final_prefix"
14935 acl_save_exec_prefix="$exec_prefix"
14936 exec_prefix="$acl_final_exec_prefix"
14938 eval additional_includedir=\"$includedir\"
14939 eval additional_libdir=\"$libdir\"
14941 exec_prefix="$acl_save_exec_prefix"
14942 prefix="$acl_save_prefix"
14945 additional_includedir="$withval/include"
14946 additional_libdir="$withval/lib"
14957 names_already_handled=
14958 names_next_round='iconv '
14959 while test -n "$names_next_round"; do
14960 names_this_round="$names_next_round"
14962 for name in $names_this_round; do
14964 for n in $names_already_handled; do
14965 if test "$n" = "$name"; then
14966 already_handled=yes
14970 if test -z "$already_handled"; then
14971 names_already_handled="$names_already_handled $name"
14972 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14973 eval value=\"\$HAVE_LIB$uppername\"
14974 if test -n "$value"; then
14975 if test "$value" = yes; then
14976 eval value=\"\$LIB$uppername\"
14977 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14978 eval value=\"\$LTLIB$uppername\"
14979 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14988 if test $use_additional = yes; then
14989 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14990 found_dir="$additional_libdir"
14991 found_so="$additional_libdir/lib$name.$shlibext"
14992 if test -f "$additional_libdir/lib$name.la"; then
14993 found_la="$additional_libdir/lib$name.la"
14996 if test -f "$additional_libdir/lib$name.$libext"; then
14997 found_dir="$additional_libdir"
14998 found_a="$additional_libdir/lib$name.$libext"
14999 if test -f "$additional_libdir/lib$name.la"; then
15000 found_la="$additional_libdir/lib$name.la"
15005 if test "X$found_dir" = "X"; then
15006 for x in $LDFLAGS $LTLIBICONV; do
15008 acl_save_prefix="$prefix"
15009 prefix="$acl_final_prefix"
15010 acl_save_exec_prefix="$exec_prefix"
15011 exec_prefix="$acl_final_exec_prefix"
15013 exec_prefix="$acl_save_exec_prefix"
15014 prefix="$acl_save_prefix"
15018 dir=`echo "X$x" | sed -e 's/^X-L//'`
15019 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15021 found_so="$dir/lib$name.$shlibext"
15022 if test -f "$dir/lib$name.la"; then
15023 found_la="$dir/lib$name.la"
15026 if test -f "$dir/lib$name.$libext"; then
15028 found_a="$dir/lib$name.$libext"
15029 if test -f "$dir/lib$name.la"; then
15030 found_la="$dir/lib$name.la"
15036 if test "X$found_dir" != "X"; then
15041 if test "X$found_dir" != "X"; then
15042 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15043 if test "X$found_so" != "X"; then
15044 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15045 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15048 for x in $ltrpathdirs; do
15049 if test "X$x" = "X$found_dir"; then
15054 if test -z "$haveit"; then
15055 ltrpathdirs="$ltrpathdirs $found_dir"
15057 if test "$hardcode_direct" = yes; then
15058 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15060 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15061 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15063 for x in $rpathdirs; do
15064 if test "X$x" = "X$found_dir"; then
15069 if test -z "$haveit"; then
15070 rpathdirs="$rpathdirs $found_dir"
15074 for x in $LDFLAGS $LIBICONV; do
15076 acl_save_prefix="$prefix"
15077 prefix="$acl_final_prefix"
15078 acl_save_exec_prefix="$exec_prefix"
15079 exec_prefix="$acl_final_exec_prefix"
15081 exec_prefix="$acl_save_exec_prefix"
15082 prefix="$acl_save_prefix"
15084 if test "X$x" = "X-L$found_dir"; then
15089 if test -z "$haveit"; then
15090 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15092 if test "$hardcode_minus_L" != no; then
15093 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15095 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15101 if test "X$found_a" != "X"; then
15102 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15104 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15107 additional_includedir=
15108 case "$found_dir" in
15110 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15111 additional_includedir="$basedir/include"
15114 if test "X$additional_includedir" != "X"; then
15115 if test "X$additional_includedir" != "X/usr/include"; then
15117 if test "X$additional_includedir" = "X/usr/local/include"; then
15118 if test -n "$GCC"; then
15120 linux*) haveit=yes;;
15124 if test -z "$haveit"; then
15125 for x in $CPPFLAGS $INCICONV; do
15127 acl_save_prefix="$prefix"
15128 prefix="$acl_final_prefix"
15129 acl_save_exec_prefix="$exec_prefix"
15130 exec_prefix="$acl_final_exec_prefix"
15132 exec_prefix="$acl_save_exec_prefix"
15133 prefix="$acl_save_prefix"
15135 if test "X$x" = "X-I$additional_includedir"; then
15140 if test -z "$haveit"; then
15141 if test -d "$additional_includedir"; then
15142 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15148 if test -n "$found_la"; then
15149 save_libdir="$libdir"
15150 case "$found_la" in
15151 */* | *\\*) . "$found_la" ;;
15152 *) . "./$found_la" ;;
15154 libdir="$save_libdir"
15155 for dep in $dependency_libs; do
15158 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15159 if test "X$additional_libdir" != "X/usr/lib"; then
15161 if test "X$additional_libdir" = "X/usr/local/lib"; then
15162 if test -n "$GCC"; then
15164 linux*) haveit=yes;;
15168 if test -z "$haveit"; then
15170 for x in $LDFLAGS $LIBICONV; do
15172 acl_save_prefix="$prefix"
15173 prefix="$acl_final_prefix"
15174 acl_save_exec_prefix="$exec_prefix"
15175 exec_prefix="$acl_final_exec_prefix"
15177 exec_prefix="$acl_save_exec_prefix"
15178 prefix="$acl_save_prefix"
15180 if test "X$x" = "X-L$additional_libdir"; then
15185 if test -z "$haveit"; then
15186 if test -d "$additional_libdir"; then
15187 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15191 for x in $LDFLAGS $LTLIBICONV; do
15193 acl_save_prefix="$prefix"
15194 prefix="$acl_final_prefix"
15195 acl_save_exec_prefix="$exec_prefix"
15196 exec_prefix="$acl_final_exec_prefix"
15198 exec_prefix="$acl_save_exec_prefix"
15199 prefix="$acl_save_prefix"
15201 if test "X$x" = "X-L$additional_libdir"; then
15206 if test -z "$haveit"; then
15207 if test -d "$additional_libdir"; then
15208 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15215 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15216 if test "$enable_rpath" != no; then
15218 for x in $rpathdirs; do
15219 if test "X$x" = "X$dir"; then
15224 if test -z "$haveit"; then
15225 rpathdirs="$rpathdirs $dir"
15228 for x in $ltrpathdirs; do
15229 if test "X$x" = "X$dir"; then
15234 if test -z "$haveit"; then
15235 ltrpathdirs="$ltrpathdirs $dir"
15240 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15243 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15246 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15247 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15253 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15254 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15260 if test "X$rpathdirs" != "X"; then
15261 if test -n "$hardcode_libdir_separator"; then
15263 for found_dir in $rpathdirs; do
15264 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15266 acl_save_libdir="$libdir"
15268 eval flag=\"$hardcode_libdir_flag_spec\"
15269 libdir="$acl_save_libdir"
15270 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15272 for found_dir in $rpathdirs; do
15273 acl_save_libdir="$libdir"
15274 libdir="$found_dir"
15275 eval flag=\"$hardcode_libdir_flag_spec\"
15276 libdir="$acl_save_libdir"
15277 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15281 if test "X$ltrpathdirs" != "X"; then
15282 for found_dir in $ltrpathdirs; do
15283 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15305 $as_echo_n "checking whether NLS is requested... " >&6; }
15306 # Check whether --enable-nls was given.
15307 if test "${enable_nls+set}" = set; then :
15308 enableval=$enable_nls; USE_NLS=$enableval
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15314 $as_echo "$USE_NLS" >&6; }
15323 if test "$USE_NLS" = "yes"; then
15324 gt_use_preinstalled_gnugettext=no
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15332 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15333 if ${gt_cv_func_gnugettext1_libc+:} false; then :
15334 $as_echo_n "(cached) " >&6
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15338 #include <libintl.h>
15339 extern int _nl_msg_cat_cntr;
15340 extern int *_nl_domain_bindings;
15344 bindtextdomain ("", "");
15345 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
15350 if ac_fn_c_try_link "$LINENO"; then :
15351 gt_cv_func_gnugettext1_libc=yes
15353 gt_cv_func_gnugettext1_libc=no
15355 rm -f core conftest.err conftest.$ac_objext \
15356 conftest$ac_exeext conftest.$ac_ext
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
15359 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
15361 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
15367 am_save_CPPFLAGS="$CPPFLAGS"
15369 for element in $INCICONV; do
15371 for x in $CPPFLAGS; do
15373 acl_save_prefix="$prefix"
15374 prefix="$acl_final_prefix"
15375 acl_save_exec_prefix="$exec_prefix"
15376 exec_prefix="$acl_final_exec_prefix"
15378 exec_prefix="$acl_save_exec_prefix"
15379 prefix="$acl_save_prefix"
15381 if test "X$x" = "X$element"; then
15386 if test -z "$haveit"; then
15387 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15393 $as_echo_n "checking for iconv... " >&6; }
15394 if ${am_cv_func_iconv+:} false; then :
15395 $as_echo_n "(cached) " >&6
15398 am_cv_func_iconv="no, consider installing GNU libiconv"
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15402 #include <stdlib.h>
15407 iconv_t cd = iconv_open("","");
15408 iconv(cd,NULL,NULL,NULL,NULL);
15414 if ac_fn_c_try_link "$LINENO"; then :
15415 am_cv_func_iconv=yes
15417 rm -f core conftest.err conftest.$ac_objext \
15418 conftest$ac_exeext conftest.$ac_ext
15419 if test "$am_cv_func_iconv" != yes; then
15420 am_save_LIBS="$LIBS"
15421 LIBS="$LIBS $LIBICONV"
15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h. */
15424 #include <stdlib.h>
15429 iconv_t cd = iconv_open("","");
15430 iconv(cd,NULL,NULL,NULL,NULL);
15436 if ac_fn_c_try_link "$LINENO"; then :
15437 am_cv_lib_iconv=yes
15438 am_cv_func_iconv=yes
15440 rm -f core conftest.err conftest.$ac_objext \
15441 conftest$ac_exeext conftest.$ac_ext
15442 LIBS="$am_save_LIBS"
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15447 $as_echo "$am_cv_func_iconv" >&6; }
15448 if test "$am_cv_func_iconv" = yes; then
15450 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15453 if test "$am_cv_lib_iconv" = yes; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15455 $as_echo_n "checking how to link with libiconv... " >&6; }
15456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15457 $as_echo "$LIBICONV" >&6; }
15459 CPPFLAGS="$am_save_CPPFLAGS"
15471 acl_save_prefix="$prefix"
15472 prefix="$acl_final_prefix"
15473 acl_save_exec_prefix="$exec_prefix"
15474 exec_prefix="$acl_final_exec_prefix"
15476 eval additional_includedir=\"$includedir\"
15477 eval additional_libdir=\"$libdir\"
15479 exec_prefix="$acl_save_exec_prefix"
15480 prefix="$acl_save_prefix"
15483 # Check whether --with-libintl-prefix was given.
15484 if test "${with_libintl_prefix+set}" = set; then :
15485 withval=$with_libintl_prefix;
15486 if test "X$withval" = "Xno"; then
15489 if test "X$withval" = "X"; then
15491 acl_save_prefix="$prefix"
15492 prefix="$acl_final_prefix"
15493 acl_save_exec_prefix="$exec_prefix"
15494 exec_prefix="$acl_final_exec_prefix"
15496 eval additional_includedir=\"$includedir\"
15497 eval additional_libdir=\"$libdir\"
15499 exec_prefix="$acl_save_exec_prefix"
15500 prefix="$acl_save_prefix"
15503 additional_includedir="$withval/include"
15504 additional_libdir="$withval/lib"
15515 names_already_handled=
15516 names_next_round='intl '
15517 while test -n "$names_next_round"; do
15518 names_this_round="$names_next_round"
15520 for name in $names_this_round; do
15522 for n in $names_already_handled; do
15523 if test "$n" = "$name"; then
15524 already_handled=yes
15528 if test -z "$already_handled"; then
15529 names_already_handled="$names_already_handled $name"
15530 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15531 eval value=\"\$HAVE_LIB$uppername\"
15532 if test -n "$value"; then
15533 if test "$value" = yes; then
15534 eval value=\"\$LIB$uppername\"
15535 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15536 eval value=\"\$LTLIB$uppername\"
15537 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15546 if test $use_additional = yes; then
15547 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15548 found_dir="$additional_libdir"
15549 found_so="$additional_libdir/lib$name.$shlibext"
15550 if test -f "$additional_libdir/lib$name.la"; then
15551 found_la="$additional_libdir/lib$name.la"
15554 if test -f "$additional_libdir/lib$name.$libext"; then
15555 found_dir="$additional_libdir"
15556 found_a="$additional_libdir/lib$name.$libext"
15557 if test -f "$additional_libdir/lib$name.la"; then
15558 found_la="$additional_libdir/lib$name.la"
15563 if test "X$found_dir" = "X"; then
15564 for x in $LDFLAGS $LTLIBINTL; do
15566 acl_save_prefix="$prefix"
15567 prefix="$acl_final_prefix"
15568 acl_save_exec_prefix="$exec_prefix"
15569 exec_prefix="$acl_final_exec_prefix"
15571 exec_prefix="$acl_save_exec_prefix"
15572 prefix="$acl_save_prefix"
15576 dir=`echo "X$x" | sed -e 's/^X-L//'`
15577 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15579 found_so="$dir/lib$name.$shlibext"
15580 if test -f "$dir/lib$name.la"; then
15581 found_la="$dir/lib$name.la"
15584 if test -f "$dir/lib$name.$libext"; then
15586 found_a="$dir/lib$name.$libext"
15587 if test -f "$dir/lib$name.la"; then
15588 found_la="$dir/lib$name.la"
15594 if test "X$found_dir" != "X"; then
15599 if test "X$found_dir" != "X"; then
15600 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15601 if test "X$found_so" != "X"; then
15602 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15603 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15606 for x in $ltrpathdirs; do
15607 if test "X$x" = "X$found_dir"; then
15612 if test -z "$haveit"; then
15613 ltrpathdirs="$ltrpathdirs $found_dir"
15615 if test "$hardcode_direct" = yes; then
15616 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15618 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15619 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15621 for x in $rpathdirs; do
15622 if test "X$x" = "X$found_dir"; then
15627 if test -z "$haveit"; then
15628 rpathdirs="$rpathdirs $found_dir"
15632 for x in $LDFLAGS $LIBINTL; do
15634 acl_save_prefix="$prefix"
15635 prefix="$acl_final_prefix"
15636 acl_save_exec_prefix="$exec_prefix"
15637 exec_prefix="$acl_final_exec_prefix"
15639 exec_prefix="$acl_save_exec_prefix"
15640 prefix="$acl_save_prefix"
15642 if test "X$x" = "X-L$found_dir"; then
15647 if test -z "$haveit"; then
15648 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15650 if test "$hardcode_minus_L" != no; then
15651 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15653 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15659 if test "X$found_a" != "X"; then
15660 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15662 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15665 additional_includedir=
15666 case "$found_dir" in
15668 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15669 additional_includedir="$basedir/include"
15672 if test "X$additional_includedir" != "X"; then
15673 if test "X$additional_includedir" != "X/usr/include"; then
15675 if test "X$additional_includedir" = "X/usr/local/include"; then
15676 if test -n "$GCC"; then
15678 linux*) haveit=yes;;
15682 if test -z "$haveit"; then
15683 for x in $CPPFLAGS $INCINTL; do
15685 acl_save_prefix="$prefix"
15686 prefix="$acl_final_prefix"
15687 acl_save_exec_prefix="$exec_prefix"
15688 exec_prefix="$acl_final_exec_prefix"
15690 exec_prefix="$acl_save_exec_prefix"
15691 prefix="$acl_save_prefix"
15693 if test "X$x" = "X-I$additional_includedir"; then
15698 if test -z "$haveit"; then
15699 if test -d "$additional_includedir"; then
15700 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15706 if test -n "$found_la"; then
15707 save_libdir="$libdir"
15708 case "$found_la" in
15709 */* | *\\*) . "$found_la" ;;
15710 *) . "./$found_la" ;;
15712 libdir="$save_libdir"
15713 for dep in $dependency_libs; do
15716 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15717 if test "X$additional_libdir" != "X/usr/lib"; then
15719 if test "X$additional_libdir" = "X/usr/local/lib"; then
15720 if test -n "$GCC"; then
15722 linux*) haveit=yes;;
15726 if test -z "$haveit"; then
15728 for x in $LDFLAGS $LIBINTL; do
15730 acl_save_prefix="$prefix"
15731 prefix="$acl_final_prefix"
15732 acl_save_exec_prefix="$exec_prefix"
15733 exec_prefix="$acl_final_exec_prefix"
15735 exec_prefix="$acl_save_exec_prefix"
15736 prefix="$acl_save_prefix"
15738 if test "X$x" = "X-L$additional_libdir"; then
15743 if test -z "$haveit"; then
15744 if test -d "$additional_libdir"; then
15745 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15749 for x in $LDFLAGS $LTLIBINTL; do
15751 acl_save_prefix="$prefix"
15752 prefix="$acl_final_prefix"
15753 acl_save_exec_prefix="$exec_prefix"
15754 exec_prefix="$acl_final_exec_prefix"
15756 exec_prefix="$acl_save_exec_prefix"
15757 prefix="$acl_save_prefix"
15759 if test "X$x" = "X-L$additional_libdir"; then
15764 if test -z "$haveit"; then
15765 if test -d "$additional_libdir"; then
15766 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15773 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15774 if test "$enable_rpath" != no; then
15776 for x in $rpathdirs; do
15777 if test "X$x" = "X$dir"; then
15782 if test -z "$haveit"; then
15783 rpathdirs="$rpathdirs $dir"
15786 for x in $ltrpathdirs; do
15787 if test "X$x" = "X$dir"; then
15792 if test -z "$haveit"; then
15793 ltrpathdirs="$ltrpathdirs $dir"
15798 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15801 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15804 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15805 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15811 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15812 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15818 if test "X$rpathdirs" != "X"; then
15819 if test -n "$hardcode_libdir_separator"; then
15821 for found_dir in $rpathdirs; do
15822 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15824 acl_save_libdir="$libdir"
15826 eval flag=\"$hardcode_libdir_flag_spec\"
15827 libdir="$acl_save_libdir"
15828 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15830 for found_dir in $rpathdirs; do
15831 acl_save_libdir="$libdir"
15832 libdir="$found_dir"
15833 eval flag=\"$hardcode_libdir_flag_spec\"
15834 libdir="$acl_save_libdir"
15835 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15839 if test "X$ltrpathdirs" != "X"; then
15840 for found_dir in $ltrpathdirs; do
15841 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15846 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15847 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
15848 $as_echo_n "(cached) " >&6
15850 gt_save_CPPFLAGS="$CPPFLAGS"
15851 CPPFLAGS="$CPPFLAGS $INCINTL"
15852 gt_save_LIBS="$LIBS"
15853 LIBS="$LIBS $LIBINTL"
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856 #include <libintl.h>
15857 extern int _nl_msg_cat_cntr;
15862 const char *_nl_expand_alias ();
15866 bindtextdomain ("", "");
15867 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15872 if ac_fn_c_try_link "$LINENO"; then :
15873 gt_cv_func_gnugettext1_libintl=yes
15875 gt_cv_func_gnugettext1_libintl=no
15877 rm -f core conftest.err conftest.$ac_objext \
15878 conftest$ac_exeext conftest.$ac_ext
15879 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
15880 LIBS="$LIBS $LIBICONV"
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883 #include <libintl.h>
15884 extern int _nl_msg_cat_cntr;
15889 const char *_nl_expand_alias ();
15893 bindtextdomain ("", "");
15894 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
15899 if ac_fn_c_try_link "$LINENO"; then :
15900 LIBINTL="$LIBINTL $LIBICONV"
15901 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15902 gt_cv_func_gnugettext1_libintl=yes
15905 rm -f core conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15908 CPPFLAGS="$gt_save_CPPFLAGS"
15909 LIBS="$gt_save_LIBS"
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
15912 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
15915 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
15916 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
15917 && test "$PACKAGE" != gettext-runtime \
15918 && test "$PACKAGE" != gettext-tools; }; then
15919 gt_use_preinstalled_gnugettext=yes
15928 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15929 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15931 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15939 $as_echo_n "checking whether to use NLS... " >&6; }
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15941 $as_echo "$USE_NLS" >&6; }
15942 if test "$USE_NLS" = "yes"; then
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15944 $as_echo_n "checking where the gettext function comes from... " >&6; }
15945 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15946 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
15947 gt_source="external libintl"
15952 gt_source="included intl directory"
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15955 $as_echo "$gt_source" >&6; }
15958 if test "$USE_NLS" = "yes"; then
15960 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15961 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15963 $as_echo_n "checking how to link with libintl... " >&6; }
15964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15965 $as_echo "$LIBINTL" >&6; }
15967 for element in $INCINTL; do
15969 for x in $CPPFLAGS; do
15971 acl_save_prefix="$prefix"
15972 prefix="$acl_final_prefix"
15973 acl_save_exec_prefix="$exec_prefix"
15974 exec_prefix="$acl_final_exec_prefix"
15976 exec_prefix="$acl_save_exec_prefix"
15977 prefix="$acl_save_prefix"
15979 if test "X$x" = "X$element"; then
15984 if test -z "$haveit"; then
15985 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15992 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15995 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16004 INTLLIBS="$LIBINTL"
16011 if test -d "$srcdir/po"
16013 ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'`
16015 ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES fa fi fr gl gu he hi hr hu hy id is it ja ka kn ko ku lo lt lv mk ml mr ms my nb nl nn no nso or pa pl pt_BR pt ro ru si sk sl sq sr@Latn sr sv ta te th tr uk ur vi zh_CN zh_TW zu"
16019 # Check whether --with-ncurses was given.
16020 if test "${with_ncurses+set}" = set; then :
16021 withval=$with_ncurses;
16029 HAVE_NCURSES_FALSE='#'
16031 HAVE_NCURSES_TRUE='#'
16032 HAVE_NCURSES_FALSE=
16036 if test "x$with_ncurses" != xno; then
16038 for ac_header in ncurses.h ncurses/ncurses.h
16040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16041 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16043 cat >>confdefs.h <<_ACEOF
16044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16047 if test "x$with_ncurses" = xauto; then
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
16052 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
16053 if ${ac_cv_lib_ncursesw_initscr+:} false; then :
16054 $as_echo_n "(cached) " >&6
16056 ac_check_lib_save_LIBS=$LIBS
16057 LIBS="-lncursesw $LIBS"
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16061 /* Override any GCC internal prototype to avoid an error.
16062 Use char because int might match the return type of a GCC
16063 builtin and then its argument prototype would still apply. */
16076 if ac_fn_c_try_link "$LINENO"; then :
16077 ac_cv_lib_ncursesw_initscr=yes
16079 ac_cv_lib_ncursesw_initscr=no
16081 rm -f core conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16083 LIBS=$ac_check_lib_save_LIBS
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
16086 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
16087 if test "x$ac_cv_lib_ncursesw_initscr" = xyes; then :
16088 cat >>confdefs.h <<_ACEOF
16089 #define HAVE_LIBNCURSESW 1
16092 LIBS="-lncursesw $LIBS"
16098 if test $have_ncurses = yes; then
16100 HAVE_NCURSES_FALSE='#'
16102 HAVE_NCURSES_TRUE='#'
16103 HAVE_NCURSES_FALSE=
16107 if test "x$have_ncurses" = xyes; then
16108 for ac_header in ncursesw/ncurses.h
16110 ac_fn_c_check_header_mongrel "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default"
16111 if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes; then :
16112 cat >>confdefs.h <<_ACEOF
16113 #define HAVE_NCURSESW_NCURSES_H 1
16120 NCURSES_LIBS="-lncursesw"
16123 if test "x$have_ncurses" = xno; then
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
16128 $as_echo_n "checking for initscr in -lncurses... " >&6; }
16129 if ${ac_cv_lib_ncurses_initscr+:} false; then :
16130 $as_echo_n "(cached) " >&6
16132 ac_check_lib_save_LIBS=$LIBS
16133 LIBS="-lncurses $LIBS"
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16137 /* Override any GCC internal prototype to avoid an error.
16138 Use char because int might match the return type of a GCC
16139 builtin and then its argument prototype would still apply. */
16152 if ac_fn_c_try_link "$LINENO"; then :
16153 ac_cv_lib_ncurses_initscr=yes
16155 ac_cv_lib_ncurses_initscr=no
16157 rm -f core conftest.err conftest.$ac_objext \
16158 conftest$ac_exeext conftest.$ac_ext
16159 LIBS=$ac_check_lib_save_LIBS
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
16162 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
16163 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then :
16164 cat >>confdefs.h <<_ACEOF
16165 #define HAVE_LIBNCURSES 1
16168 LIBS="-lncurses $LIBS"
16174 if test $have_ncurses = yes; then
16176 HAVE_NCURSES_FALSE='#'
16178 HAVE_NCURSES_TRUE='#'
16179 HAVE_NCURSES_FALSE=
16183 if test "x$have_ncurses" = xyes; then
16184 NCURSES_LIBS="-lncurses"
16192 if test "x$have_ncurses" = xno; then
16193 as_fn_error $? "ncurses or ncursesw selected, but library not found (--without-ncurses to disable)" "$LINENO" 5
16200 # Check whether --with-slang was given.
16201 if test "${with_slang+set}" = set; then :
16202 withval=$with_slang;
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
16211 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
16212 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
16213 $as_echo_n "(cached) " >&6
16215 ac_check_lib_save_LIBS=$LIBS
16216 LIBS="-ltinfo $LIBS"
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16220 /* Override any GCC internal prototype to avoid an error.
16221 Use char because int might match the return type of a GCC
16222 builtin and then its argument prototype would still apply. */
16235 if ac_fn_c_try_link "$LINENO"; then :
16236 ac_cv_lib_tinfo_tgetent=yes
16238 ac_cv_lib_tinfo_tgetent=no
16240 rm -f core conftest.err conftest.$ac_objext \
16241 conftest$ac_exeext conftest.$ac_ext
16242 LIBS=$ac_check_lib_save_LIBS
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
16245 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
16246 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
16250 if test "x$have_tinfo" = xyes; then
16252 HAVE_TINFO_FALSE='#'
16254 HAVE_TINFO_TRUE='#'
16260 if test "x$with_slang" = xyes; then
16261 for ac_header in slang.h slang/slang.h
16263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16264 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16265 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16266 cat >>confdefs.h <<_ACEOF
16267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16274 for ac_header in slcurses.h slang/slcurses.h
16276 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16277 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
16278 #ifdef HAVE_SLANG_H
16280 #elif defined(HAVE_SLANG_SLANG_H)
16281 #include <slang/slang.h>
16285 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16286 cat >>confdefs.h <<_ACEOF
16287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16294 if test "x$use_slang" = xno; then
16295 as_fn_error $? "slang selected but slcurses.h not found" "$LINENO" 5
16298 if test "x$use_slang" = xyes; then
16300 USE_SLANG_FALSE='#'
16309 # Check whether --with-utempter was given.
16310 if test "${with_utempter+set}" = set; then :
16311 withval=$with_utempter;
16318 if test "x$with_utempter" = xyes; then
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utempter_add_record in -lutempter" >&5
16323 $as_echo_n "checking for utempter_add_record in -lutempter... " >&6; }
16324 if ${ac_cv_lib_utempter_utempter_add_record+:} false; then :
16325 $as_echo_n "(cached) " >&6
16327 ac_check_lib_save_LIBS=$LIBS
16328 LIBS="-lutempter $LIBS"
16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h. */
16332 /* Override any GCC internal prototype to avoid an error.
16333 Use char because int might match the return type of a GCC
16334 builtin and then its argument prototype would still apply. */
16338 char utempter_add_record ();
16342 return utempter_add_record ();
16347 if ac_fn_c_try_link "$LINENO"; then :
16348 ac_cv_lib_utempter_utempter_add_record=yes
16350 ac_cv_lib_utempter_utempter_add_record=no
16352 rm -f core conftest.err conftest.$ac_objext \
16353 conftest$ac_exeext conftest.$ac_ext
16354 LIBS=$ac_check_lib_save_LIBS
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_utempter_utempter_add_record" >&5
16357 $as_echo "$ac_cv_lib_utempter_utempter_add_record" >&6; }
16358 if test "x$ac_cv_lib_utempter_utempter_add_record" = xyes; then :
16359 cat >>confdefs.h <<_ACEOF
16360 #define HAVE_LIBUTEMPTER 1
16363 LIBS="-lutempter $LIBS"
16369 if test $have_utempter = yes; then
16370 HAVE_UTEMPTER_TRUE=
16371 HAVE_UTEMPTER_FALSE='#'
16373 HAVE_UTEMPTER_TRUE='#'
16374 HAVE_UTEMPTER_FALSE=
16378 if test "x$have_utempter" = xno; then
16379 as_fn_error $? "utempter selected but libutempter not found" "$LINENO" 5
16383 HAVE_UTEMPTER_TRUE=
16384 HAVE_UTEMPTER_FALSE='#'
16386 HAVE_UTEMPTER_TRUE='#'
16387 HAVE_UTEMPTER_FALSE=
16392 # on Solaris, you can't mix and match standards, since we use c99
16393 # aparently at this stage, XOPEN_SOURCE will conflict. As workaround,
16394 # check for crypt.h and use that without XOPEN_SOURCE.
16395 for ac_header in crypt.h
16397 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
16398 if test "x$ac_cv_header_crypt_h" = xyes; then :
16399 cat >>confdefs.h <<_ACEOF
16400 #define HAVE_CRYPT_H 1
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h. */
16410 #ifdef HAVE_CRYPT_H
16413 #define _XOPEN_SOURCE
16414 #include <unistd.h>
16421 char *c = crypt("abc","pw");
16427 if ac_fn_c_try_link "$LINENO"; then :
16431 LIBS="$LIBS -lcrypt"
16432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433 /* end confdefs.h. */
16435 #ifdef HAVE_CRYPT_H
16438 #define _XOPEN_SOURCE
16439 #include <unistd.h>
16446 char *c = crypt("abc","pw");
16452 if ac_fn_c_try_compile "$LINENO"; then :
16455 $as_echo "#define NEED_LIBCRYPT 1" >>confdefs.h
16461 as_fn_error $? "crypt() is not available" "$LINENO" 5
16464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16467 rm -f core conftest.err conftest.$ac_objext \
16468 conftest$ac_exeext conftest.$ac_ext
16470 if test "x$need_libcrypt" = xyes; then
16471 NEED_LIBCRYPT_TRUE=
16472 NEED_LIBCRYPT_FALSE='#'
16474 NEED_LIBCRYPT_TRUE='#'
16475 NEED_LIBCRYPT_FALSE=
16479 ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
16480 #include <sys/sem.h>
16483 if test "x$ac_cv_type_union_semun" = xyes; then :
16485 cat >>confdefs.h <<_ACEOF
16486 #define HAVE_UNION_SEMUN 1
16492 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
16493 if test "x$ac_cv_type_loff_t" = xyes; then :
16495 cat >>confdefs.h <<_ACEOF
16496 #define HAVE_LOFF_T 1
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16508 #include <wctype.h>
16518 if (w == WEOF) exit(1);
16526 if ac_fn_c_try_compile "$LINENO"; then :
16528 $as_echo "#define HAVE_WIDECHAR 1" >>confdefs.h
16532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall pivot_root" >&5
16545 $as_echo_n "checking for syscall pivot_root... " >&6; }
16546 if ${util_cv_syscall_pivot_root+:} false; then :
16547 $as_echo_n "(cached) " >&6
16549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h. */
16552 #include <sys/syscall.h>
16553 #include <unistd.h>
16558 int test = SYS_pivot_root;
16563 if ac_fn_c_try_compile "$LINENO"; then :
16564 syscall=SYS_pivot_root
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16569 #include <sys/syscall.h>
16570 #include <unistd.h>
16575 int test = _NR_pivot_root;
16580 if ac_fn_c_try_compile "$LINENO"; then :
16581 syscall=_NR_pivot_root
16585 if test "x$linux_os" = xyes; then
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598 util_cv_syscall_pivot_root=$syscall
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_pivot_root" >&5
16602 $as_echo "$util_cv_syscall_pivot_root" >&6; }
16603 if test "x$util_cv_syscall_pivot_root" != xno; then
16604 HAVE_PIVOT_ROOT_TRUE=
16605 HAVE_PIVOT_ROOT_FALSE='#'
16607 HAVE_PIVOT_ROOT_TRUE='#'
16608 HAVE_PIVOT_ROOT_FALSE=
16611 case $util_cv_syscall_pivot_root in #(
16612 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall pivot_root." >&5
16613 $as_echo "$as_me: WARNING: Unable to detect syscall pivot_root." >&2;} ;;
16616 cat >>confdefs.h <<_ACEOF
16617 #define SYS_pivot_root $util_cv_syscall_pivot_root
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall sched_getaffinity" >&5
16625 $as_echo_n "checking for syscall sched_getaffinity... " >&6; }
16626 if ${util_cv_syscall_sched_getaffinity+:} false; then :
16627 $as_echo_n "(cached) " >&6
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16632 #include <sys/syscall.h>
16633 #include <unistd.h>
16638 int test = SYS_sched_getaffinity;
16643 if ac_fn_c_try_compile "$LINENO"; then :
16644 syscall=SYS_sched_getaffinity
16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h. */
16649 #include <sys/syscall.h>
16650 #include <unistd.h>
16655 int test = _NR_sched_getaffinity;
16660 if ac_fn_c_try_compile "$LINENO"; then :
16661 syscall=_NR_sched_getaffinity
16665 if test "x$linux_os" = xyes; then
16672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16678 util_cv_syscall_sched_getaffinity=$syscall
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_sched_getaffinity" >&5
16682 $as_echo "$util_cv_syscall_sched_getaffinity" >&6; }
16683 if test "x$util_cv_syscall_sched_getaffinity" != xno; then
16684 HAVE_SCHED_GETAFFINITY_TRUE=
16685 HAVE_SCHED_GETAFFINITY_FALSE='#'
16687 HAVE_SCHED_GETAFFINITY_TRUE='#'
16688 HAVE_SCHED_GETAFFINITY_FALSE=
16691 case $util_cv_syscall_sched_getaffinity in #(
16692 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall sched_getaffinity." >&5
16693 $as_echo "$as_me: WARNING: Unable to detect syscall sched_getaffinity." >&2;} ;;
16696 cat >>confdefs.h <<_ACEOF
16697 #define SYS_sched_getaffinity $util_cv_syscall_sched_getaffinity
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall ioprio_set" >&5
16705 $as_echo_n "checking for syscall ioprio_set... " >&6; }
16706 if ${util_cv_syscall_ioprio_set+:} false; then :
16707 $as_echo_n "(cached) " >&6
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16712 #include <sys/syscall.h>
16713 #include <unistd.h>
16718 int test = SYS_ioprio_set;
16723 if ac_fn_c_try_compile "$LINENO"; then :
16724 syscall=SYS_ioprio_set
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16729 #include <sys/syscall.h>
16730 #include <unistd.h>
16735 int test = _NR_ioprio_set;
16740 if ac_fn_c_try_compile "$LINENO"; then :
16741 syscall=_NR_ioprio_set
16745 if test "x$linux_os" = xyes; then
16748 alpha) syscall="442" ;; #(
16749 i*86) syscall="289" ;; #(
16750 ia64*) syscall="1274" ;; #(
16751 powerpc*) syscall="273" ;; #(
16752 s390*) syscall="282" ;; #(
16753 sparc*) syscall="196" ;; #(
16754 sh*) syscall="288" ;; #(
16755 x86_64*) syscall="251" ;;
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16766 util_cv_syscall_ioprio_set=$syscall
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_ioprio_set" >&5
16770 $as_echo "$util_cv_syscall_ioprio_set" >&6; }
16771 if test "x$util_cv_syscall_ioprio_set" != xno; then
16772 HAVE_IOPRIO_SET_TRUE=
16773 HAVE_IOPRIO_SET_FALSE='#'
16775 HAVE_IOPRIO_SET_TRUE='#'
16776 HAVE_IOPRIO_SET_FALSE=
16779 case $util_cv_syscall_ioprio_set in #(
16780 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall ioprio_set." >&5
16781 $as_echo "$as_me: WARNING: Unable to detect syscall ioprio_set." >&2;} ;;
16784 cat >>confdefs.h <<_ACEOF
16785 #define SYS_ioprio_set $util_cv_syscall_ioprio_set
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall ioprio_get" >&5
16793 $as_echo_n "checking for syscall ioprio_get... " >&6; }
16794 if ${util_cv_syscall_ioprio_get+:} false; then :
16795 $as_echo_n "(cached) " >&6
16797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16798 /* end confdefs.h. */
16800 #include <sys/syscall.h>
16801 #include <unistd.h>
16806 int test = SYS_ioprio_get;
16811 if ac_fn_c_try_compile "$LINENO"; then :
16812 syscall=SYS_ioprio_get
16814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16815 /* end confdefs.h. */
16817 #include <sys/syscall.h>
16818 #include <unistd.h>
16823 int test = _NR_ioprio_get;
16828 if ac_fn_c_try_compile "$LINENO"; then :
16829 syscall=_NR_ioprio_get
16833 if test "x$linux_os" = xyes; then
16836 alpha) syscall="443" ;; #(
16837 i*86) syscall="290" ;; #(
16838 ia64*) syscall="1275" ;; #(
16839 powerpc*) syscall="274" ;; #(
16840 s390*) syscall="283" ;; #(
16841 sparc*) syscall="218" ;; #(
16842 sh*) syscall="289" ;; #(
16843 x86_64*) syscall="252" ;;
16848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854 util_cv_syscall_ioprio_get=$syscall
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_ioprio_get" >&5
16858 $as_echo "$util_cv_syscall_ioprio_get" >&6; }
16859 if test "x$util_cv_syscall_ioprio_get" != xno; then
16860 HAVE_IOPRIO_GET_TRUE=
16861 HAVE_IOPRIO_GET_FALSE='#'
16863 HAVE_IOPRIO_GET_TRUE='#'
16864 HAVE_IOPRIO_GET_FALSE=
16867 case $util_cv_syscall_ioprio_get in #(
16868 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall ioprio_get." >&5
16869 $as_echo "$as_me: WARNING: Unable to detect syscall ioprio_get." >&2;} ;;
16872 cat >>confdefs.h <<_ACEOF
16873 #define SYS_ioprio_get $util_cv_syscall_ioprio_get
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall fallocate" >&5
16882 $as_echo_n "checking for syscall fallocate... " >&6; }
16883 if ${util_cv_syscall_fallocate+:} false; then :
16884 $as_echo_n "(cached) " >&6
16886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16887 /* end confdefs.h. */
16889 #include <sys/syscall.h>
16890 #include <unistd.h>
16895 int test = SYS_fallocate;
16900 if ac_fn_c_try_compile "$LINENO"; then :
16901 syscall=SYS_fallocate
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16906 #include <sys/syscall.h>
16907 #include <unistd.h>
16912 int test = _NR_fallocate;
16917 if ac_fn_c_try_compile "$LINENO"; then :
16918 syscall=_NR_fallocate
16922 if test "x$linux_os" = xyes; then
16929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935 util_cv_syscall_fallocate=$syscall
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_fallocate" >&5
16939 $as_echo "$util_cv_syscall_fallocate" >&6; }
16940 if test "x$util_cv_syscall_fallocate" != xno; then
16941 HAVE_FALLOCATE_TRUE=
16942 HAVE_FALLOCATE_FALSE='#'
16944 HAVE_FALLOCATE_TRUE='#'
16945 HAVE_FALLOCATE_FALSE=
16948 case $util_cv_syscall_fallocate in #(
16949 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall fallocate." >&5
16950 $as_echo "$as_me: WARNING: Unable to detect syscall fallocate." >&2;} ;;
16953 cat >>confdefs.h <<_ACEOF
16954 #define SYS_fallocate $util_cv_syscall_fallocate
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid fallocate() function" >&5
16961 $as_echo_n "checking for valid fallocate() function... " >&6; }
16962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963 /* end confdefs.h. */
16966 #ifdef HAVE_UNISTD_H
16967 # include <unistd.h>
16969 #ifdef HAVE_SYS_TYPES_H
16970 # include <sys/types.h>
16972 #ifdef HAVE_LINUX_FALLOC_H
16973 # include <linux/falloc.h>
16975 #ifdef HAVE_FCNTL_H
16976 # include <fcntl.h>
16985 ret = fallocate(0, FALLOC_FL_KEEP_SIZE, 0xfffffffful, 0xfffffffful);
16995 if ac_fn_c_try_link "$LINENO"; then :
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16998 $as_echo "yes" >&6; }
17000 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005 $as_echo "no" >&6; }
17007 rm -f core conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syscall unshare" >&5
17013 $as_echo_n "checking for syscall unshare... " >&6; }
17014 if ${util_cv_syscall_unshare+:} false; then :
17015 $as_echo_n "(cached) " >&6
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17020 #include <sys/syscall.h>
17021 #include <unistd.h>
17026 int test = SYS_unshare;
17031 if ac_fn_c_try_compile "$LINENO"; then :
17032 syscall=SYS_unshare
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17037 #include <sys/syscall.h>
17038 #include <unistd.h>
17043 int test = _NR_unshare;
17048 if ac_fn_c_try_compile "$LINENO"; then :
17049 syscall=_NR_unshare
17053 if test "x$linux_os" = xyes; then
17060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17066 util_cv_syscall_unshare=$syscall
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $util_cv_syscall_unshare" >&5
17070 $as_echo "$util_cv_syscall_unshare" >&6; }
17071 if test "x$util_cv_syscall_unshare" != xno; then
17073 HAVE_UNSHARE_FALSE='#'
17075 HAVE_UNSHARE_TRUE='#'
17076 HAVE_UNSHARE_FALSE=
17079 case $util_cv_syscall_unshare in #(
17080 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to detect syscall unshare." >&5
17081 $as_echo "$as_me: WARNING: Unable to detect syscall unshare." >&2;} ;;
17084 cat >>confdefs.h <<_ACEOF
17085 #define SYS_unshare $util_cv_syscall_unshare
17090 for ac_func in unshare
17092 ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare"
17093 if test "x$ac_cv_func_unshare" = xyes; then :
17094 cat >>confdefs.h <<_ACEOF
17095 #define HAVE_UNSHARE 1
17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103 /* end confdefs.h. */
17106 #include <unistd.h>
17113 struct tm *tm = localtime(0);
17114 if (a == -1) /* false */
17115 sleep(tm->tm_gmtoff);
17121 if ac_fn_c_try_compile "$LINENO"; then :
17123 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
17127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17129 ac_fn_c_check_member "$LINENO" "struct termios" "c_line" "ac_cv_member_struct_termios_c_line" "#include <termios.h>
17131 if test "x$ac_cv_member_struct_termios_c_line" = xyes; then :
17133 cat >>confdefs.h <<_ACEOF
17134 #define HAVE_STRUCT_TERMIOS_C_LINE 1
17141 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "#include <sys/stat.h>
17143 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
17145 cat >>confdefs.h <<_ACEOF
17146 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
17153 ac_fn_c_check_decl "$LINENO" "UNAME26" "ac_cv_have_decl_UNAME26" "#include <linux/personality.h>
17155 if test "x$ac_cv_have_decl_UNAME26" = xyes; then :
17161 cat >>confdefs.h <<_ACEOF
17162 #define HAVE_DECL_UNAME26 $ac_have_decl
17164 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <linux/personality.h>
17166 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
17172 cat >>confdefs.h <<_ACEOF
17173 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
17175 ac_fn_c_check_decl "$LINENO" "FDPIC_FUNCPTRS" "ac_cv_have_decl_FDPIC_FUNCPTRS" "#include <linux/personality.h>
17177 if test "x$ac_cv_have_decl_FDPIC_FUNCPTRS" = xyes; then :
17183 cat >>confdefs.h <<_ACEOF
17184 #define HAVE_DECL_FDPIC_FUNCPTRS $ac_have_decl
17186 ac_fn_c_check_decl "$LINENO" "MMAP_PAGE_ZERO" "ac_cv_have_decl_MMAP_PAGE_ZERO" "#include <linux/personality.h>
17188 if test "x$ac_cv_have_decl_MMAP_PAGE_ZERO" = xyes; then :
17194 cat >>confdefs.h <<_ACEOF
17195 #define HAVE_DECL_MMAP_PAGE_ZERO $ac_have_decl
17197 ac_fn_c_check_decl "$LINENO" "ADDR_COMPAT_LAYOUT" "ac_cv_have_decl_ADDR_COMPAT_LAYOUT" "#include <linux/personality.h>
17199 if test "x$ac_cv_have_decl_ADDR_COMPAT_LAYOUT" = xyes; then :
17205 cat >>confdefs.h <<_ACEOF
17206 #define HAVE_DECL_ADDR_COMPAT_LAYOUT $ac_have_decl
17208 ac_fn_c_check_decl "$LINENO" "READ_IMPLIES_EXEC" "ac_cv_have_decl_READ_IMPLIES_EXEC" "#include <linux/personality.h>
17210 if test "x$ac_cv_have_decl_READ_IMPLIES_EXEC" = xyes; then :
17216 cat >>confdefs.h <<_ACEOF
17217 #define HAVE_DECL_READ_IMPLIES_EXEC $ac_have_decl
17219 ac_fn_c_check_decl "$LINENO" "ADDR_LIMIT_32BIT" "ac_cv_have_decl_ADDR_LIMIT_32BIT" "#include <linux/personality.h>
17221 if test "x$ac_cv_have_decl_ADDR_LIMIT_32BIT" = xyes; then :
17227 cat >>confdefs.h <<_ACEOF
17228 #define HAVE_DECL_ADDR_LIMIT_32BIT $ac_have_decl
17230 ac_fn_c_check_decl "$LINENO" "WHOLE_SECONDS" "ac_cv_have_decl_WHOLE_SECONDS" "#include <linux/personality.h>
17232 if test "x$ac_cv_have_decl_WHOLE_SECONDS" = xyes; then :
17238 cat >>confdefs.h <<_ACEOF
17239 #define HAVE_DECL_WHOLE_SECONDS $ac_have_decl
17241 ac_fn_c_check_decl "$LINENO" "STICKY_TIMEOUTS" "ac_cv_have_decl_STICKY_TIMEOUTS" "#include <linux/personality.h>
17243 if test "x$ac_cv_have_decl_STICKY_TIMEOUTS" = xyes; then :
17249 cat >>confdefs.h <<_ACEOF
17250 #define HAVE_DECL_STICKY_TIMEOUTS $ac_have_decl
17252 ac_fn_c_check_decl "$LINENO" "ADDR_LIMIT_3GB" "ac_cv_have_decl_ADDR_LIMIT_3GB" "#include <linux/personality.h>
17254 if test "x$ac_cv_have_decl_ADDR_LIMIT_3GB" = xyes; then :
17260 cat >>confdefs.h <<_ACEOF
17261 #define HAVE_DECL_ADDR_LIMIT_3GB $ac_have_decl
17265 for ac_header in sys/swap.h
17267 ac_fn_c_check_header_mongrel "$LINENO" "sys/swap.h" "ac_cv_header_sys_swap_h" "$ac_includes_default"
17268 if test "x$ac_cv_header_sys_swap_h" = xyes; then :
17269 cat >>confdefs.h <<_ACEOF
17270 #define HAVE_SYS_SWAP_H 1
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17281 #ifdef HAVE_SYS_SWAP_H
17282 # include <sys/swap.h>
17284 #include <unistd.h>
17289 swapon("/dev/null", 0);
17294 if ac_fn_c_try_compile "$LINENO"; then :
17296 $as_echo "#define SWAPON_HAS_TWO_ARGS 1" >>confdefs.h
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: Your libc thinks that swapon has 1 arg only." >&5
17301 $as_echo "$as_me: Your libc thinks that swapon has 1 arg only." >&6;}
17304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17307 ac_fn_c_check_type "$LINENO" "cpu_set_t" "ac_cv_type_cpu_set_t" "
17311 if test "x$ac_cv_type_cpu_set_t" = xyes; then :
17313 cat >>confdefs.h <<_ACEOF
17314 #define HAVE_CPU_SET_T 1
17321 if test "x$have_cpu_set_t" = xyes; then
17322 HAVE_CPU_SET_T_TRUE=
17323 HAVE_CPU_SET_T_FALSE='#'
17325 HAVE_CPU_SET_T_TRUE='#'
17326 HAVE_CPU_SET_T_FALSE=
17330 ac_fn_c_check_decl "$LINENO" "CPU_ALLOC" "ac_cv_have_decl_CPU_ALLOC" "
17334 if test "x$ac_cv_have_decl_CPU_ALLOC" = xyes; then :
17340 cat >>confdefs.h <<_ACEOF
17341 #define HAVE_DECL_CPU_ALLOC $ac_have_decl
17351 i?86-*) cpu_I86=true ;;
17353 if test "x$cpu_I86" = xtrue; then
17365 x86_64*) cpu_86_64=true ;;
17367 if test "x$cpu_86_64" = xtrue; then
17369 ARCH_86_64_FALSE='#'
17371 ARCH_86_64_TRUE='#'
17379 ia64*) cpu_IA64=true ;;
17381 if test "x$cpu_IA64" = xtrue; then
17383 ARCH_IA64_FALSE='#'
17393 s390*) cpu_S390=true ;;
17395 if test "x$cpu_S390" = xtrue; then
17397 ARCH_S390_FALSE='#'
17407 sparc*) cpu_SPARC=true ;;
17409 if test "x$cpu_SPARC" = xtrue; then
17411 ARCH_SPARC_FALSE='#'
17413 ARCH_SPARC_TRUE='#'
17421 ppc*|powerpc*) cpu_PPC=true ;;
17423 if test "x$cpu_PPC" = xtrue; then
17435 m68*) cpu_M68K=true ;;
17437 if test "x$cpu_M68K" = xtrue; then
17439 ARCH_M68K_FALSE='#'
17449 mips*) cpu_MIPS=true ;;
17451 if test "x$cpu_MIPS" = xtrue; then
17453 ARCH_MIPS_FALSE='#'
17463 hppa*) cpu_HPPA=true ;;
17465 if test "x$cpu_HPPA" = xtrue; then
17467 ARCH_HPPA_FALSE='#'
17475 # Check whether --enable-arch was given.
17476 if test "${enable_arch+set}" = set; then :
17477 enableval=$enable_arch;
17483 if test "x$enable_arch" = xyes; then
17485 BUILD_ARCH_FALSE='#'
17487 BUILD_ARCH_TRUE='#'
17492 # Check whether --enable-ddate was given.
17493 if test "${enable_ddate+set}" = set; then :
17494 enableval=$enable_ddate;
17500 if test "x$enable_ddate" = xyes; then
17502 BUILD_DDATE_FALSE='#'
17504 BUILD_DDATE_TRUE='#'
17509 # Check whether --enable-agetty was given.
17510 if test "${enable_agetty+set}" = set; then :
17511 enableval=$enable_agetty;
17517 if test "x$enable_agetty" = xyes; then
17519 BUILD_AGETTY_FALSE='#'
17521 BUILD_AGETTY_TRUE='#'
17522 BUILD_AGETTY_FALSE=
17526 # Check whether --enable-cramfs was given.
17527 if test "${enable_cramfs+set}" = set; then :
17528 enableval=$enable_cramfs;
17530 enable_cramfs=check
17535 if test "x$enable_cramfs" = xno; then
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
17540 $as_echo_n "checking for crc32 in -lz... " >&6; }
17541 if ${ac_cv_lib_z_crc32+:} false; then :
17542 $as_echo_n "(cached) " >&6
17544 ac_check_lib_save_LIBS=$LIBS
17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547 /* end confdefs.h. */
17549 /* Override any GCC internal prototype to avoid an error.
17550 Use char because int might match the return type of a GCC
17551 builtin and then its argument prototype would still apply. */
17564 if ac_fn_c_try_link "$LINENO"; then :
17565 ac_cv_lib_z_crc32=yes
17567 ac_cv_lib_z_crc32=no
17569 rm -f core conftest.err conftest.$ac_objext \
17570 conftest$ac_exeext conftest.$ac_ext
17571 LIBS=$ac_check_lib_save_LIBS
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
17574 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17575 if test "x$ac_cv_lib_z_crc32" = xyes; then :
17576 cat >>confdefs.h <<_ACEOF
17577 #define HAVE_LIBZ 1
17586 case $enable_cramfs:$build_cramfs in
17587 yes:no) as_fn_error $? "cramfs selected but libz not found" "$LINENO" 5;;
17590 if test "x$build_cramfs" = xyes; then
17592 BUILD_CRAMFS_FALSE='#'
17594 BUILD_CRAMFS_TRUE='#'
17595 BUILD_CRAMFS_FALSE=
17600 if test "x$have_openat" = xno; then
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: openat() function not found; do not build lsblk" >&5
17602 $as_echo "$as_me: WARNING: openat() function not found; do not build lsblk" >&2;}
17604 elif test "x$linux_os" = xno; then
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build lsblk" >&5
17606 $as_echo "$as_me: WARNING: non-linux system; do not build lsblk" >&2;}
17609 if test "x$build_lsblk" = xyes; then
17611 BUILD_LSBLK_FALSE='#'
17613 BUILD_LSBLK_TRUE='#'
17618 # Check whether --enable-switch_root was given.
17619 if test "${enable_switch_root+set}" = set; then :
17620 enableval=$enable_switch_root;
17622 enable_switch_root=check
17626 if test "x$enable_switch_root" = xno; then
17627 build_switch_root=no
17629 build_switch_root=yes
17630 case $enable_switch_root:$linux_os in
17631 yes:no) as_fn_error $? "switch_root selected for non-linux system" "$LINENO" 5;;
17632 check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build switch_root" >&5
17633 $as_echo "$as_me: WARNING: non-linux system; do not build switch_root" >&2;}
17634 build_switch_root=no;;
17636 if test "x$build_switch_root" = xyes; then
17637 case $enable_switch_root:$have_openat in
17638 yes:no) as_fn_error $? "switch_root selected but openat() function not found" "$LINENO" 5;;
17639 check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: openat() function not found; do not build switch_root" >&5
17640 $as_echo "$as_me: WARNING: openat() function not found; do not build switch_root" >&2;}
17641 build_switch_root=no;;
17645 if test "x$build_switch_root" = xyes; then
17646 BUILD_SWITCH_ROOT_TRUE=
17647 BUILD_SWITCH_ROOT_FALSE='#'
17649 BUILD_SWITCH_ROOT_TRUE='#'
17650 BUILD_SWITCH_ROOT_FALSE=
17655 # Check whether --enable-pivot_root was given.
17656 if test "${enable_pivot_root+set}" = set; then :
17657 enableval=$enable_pivot_root;
17659 enable_pivot_root=check
17663 if test "x$enable_pivot_root" = xno; then
17664 build_pivot_root=no
17666 build_pivot_root=yes
17667 case $enable_pivot_root:$linux_os in
17668 yes:no) as_fn_error $? "pivot_root selected for non-linux system" "$LINENO" 5;;
17669 check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build pivot_root" >&5
17670 $as_echo "$as_me: WARNING: non-linux system; do not build pivot_root" >&2;}
17671 build_pivot_root=no;;
17673 if test "x$build_pivot_root" = xyes; then
17674 case $enable_pivot_root:$util_cv_syscall_pivot_root in
17675 yes:no) as_fn_error $? "pivot_root selected but pivot_root syscall not found" "$LINENO" 5;;
17676 check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pivot_root syscall not found; do not build pivot_root" >&5
17677 $as_echo "$as_me: WARNING: pivot_root syscall not found; do not build pivot_root" >&2;}
17678 build_pivot_root=no;;
17682 if test "x$build_pivot_root" = xyes; then
17683 BUILD_PIVOT_ROOT_TRUE=
17684 BUILD_PIVOT_ROOT_FALSE='#'
17686 BUILD_PIVOT_ROOT_TRUE='#'
17687 BUILD_PIVOT_ROOT_FALSE=
17692 # Check whether --enable-fallocate was given.
17693 if test "${enable_fallocate+set}" = set; then :
17694 enableval=$enable_fallocate;
17696 enable_fallocate=check
17700 if test "x$enable_fallocate" = xno; then
17703 build_fallocate=yes
17704 case $enable_fallocate:$linux_os in
17705 yes:no) as_fn_error $? "fallocate selected for non-linux system" "$LINENO" 5;;
17706 check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build fallocate" >&5
17707 $as_echo "$as_me: WARNING: non-linux system; do not build fallocate" >&2;}
17708 build_fallocate=no;;
17710 if test "x$build_fallocate" = xyes; then
17711 case $enable_fallocate:$util_cv_syscall_fallocate in
17712 yes:no) as_fn_error $? "fallocate selected but fallocate syscall not found" "$LINENO" 5;;
17713 check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fallocate syscall not found; do not build fallocate" >&5
17714 $as_echo "$as_me: WARNING: fallocate syscall not found; do not build fallocate" >&2;}
17715 build_fallocate=no;;
17719 if test "x$build_fallocate" = xyes; then
17720 BUILD_FALLOCATE_TRUE=
17721 BUILD_FALLOCATE_FALSE='#'
17723 BUILD_FALLOCATE_TRUE='#'
17724 BUILD_FALLOCATE_FALSE=
17729 # Check whether --enable-unshare was given.
17730 if test "${enable_unshare+set}" = set; then :
17731 enableval=$enable_unshare;
17733 enable_unshare=check
17737 if test "x$enable_unshare" = xno; then
17741 case $enable_unshare:$linux_os in
17742 yes:no) as_fn_error $? "unshare selected for non-linux system" "$LINENO" 5;;
17743 check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: non-linux system; do not build unshare" >&5
17744 $as_echo "$as_me: WARNING: non-linux system; do not build unshare" >&2;}
17747 if test "x$build_unshare" = xyes; then
17748 case $enable_unshare:$util_cv_syscall_unshare in
17749 yes:no) as_fn_error $? "unshare selected but unshare syscall not found" "$LINENO" 5;;
17750 check:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unshare syscall not found; do not build unshare" >&5
17751 $as_echo "$as_me: WARNING: unshare syscall not found; do not build unshare" >&2;}
17756 if test "x$build_unshare" = xyes; then
17757 BUILD_UNSHARE_TRUE=
17758 BUILD_UNSHARE_FALSE='#'
17760 BUILD_UNSHARE_TRUE='#'
17761 BUILD_UNSHARE_FALSE=
17767 # Check whether --enable-elvtune was given.
17768 if test "${enable_elvtune+set}" = set; then :
17769 enableval=$enable_elvtune;
17775 if test "x$enable_elvtune" = xyes; then
17776 BUILD_ELVTUNE_TRUE=
17777 BUILD_ELVTUNE_FALSE='#'
17779 BUILD_ELVTUNE_TRUE='#'
17780 BUILD_ELVTUNE_FALSE=
17784 # Check whether --enable-kill was given.
17785 if test "${enable_kill+set}" = set; then :
17786 enableval=$enable_kill;
17792 if test "x$enable_kill" = xyes; then
17794 BUILD_KILL_FALSE='#'
17796 BUILD_KILL_TRUE='#'
17802 # Check whether --enable-last was given.
17803 if test "${enable_last+set}" = set; then :
17804 enableval=$enable_last;
17810 if test "x$enable_last" = xyes; then
17812 BUILD_LAST_FALSE='#'
17814 BUILD_LAST_TRUE='#'
17819 # Check whether --enable-line was given.
17820 if test "${enable_line+set}" = set; then :
17821 enableval=$enable_line;
17827 if test "x$enable_line" = xyes; then
17829 BUILD_LINE_FALSE='#'
17831 BUILD_LINE_TRUE='#'
17836 # Check whether --enable-mesg was given.
17837 if test "${enable_mesg+set}" = set; then :
17838 enableval=$enable_mesg;
17844 if test "x$enable_mesg" = xyes; then
17846 BUILD_MESG_FALSE='#'
17848 BUILD_MESG_TRUE='#'
17854 # Check whether --enable-raw was given.
17855 if test "${enable_raw+set}" = set; then :
17856 enableval=$enable_raw;
17862 if test "x$enable_raw" = xyes; then
17864 BUILD_RAW_FALSE='#'
17872 # Check whether --enable-rename was given.
17873 if test "${enable_rename+set}" = set; then :
17874 enableval=$enable_rename;
17880 if test "x$enable_rename" = xyes; then
17882 BUILD_RENAME_FALSE='#'
17884 BUILD_RENAME_TRUE='#'
17885 BUILD_RENAME_FALSE=
17890 # Check whether --enable-reset was given.
17891 if test "${enable_reset+set}" = set; then :
17892 enableval=$enable_reset;
17898 if test "x$enable_reset" = xyes; then
17900 BUILD_RESET_FALSE='#'
17902 BUILD_RESET_TRUE='#'
17908 # Check whether --enable-login-utils was given.
17909 if test "${enable_login_utils+set}" = set; then :
17910 enableval=$enable_login_utils;
17912 enable_login_utils=no
17916 if test "x$enable_login_utils" = xyes; then
17917 BUILD_LOGIN_UTILS_TRUE=
17918 BUILD_LOGIN_UTILS_FALSE='#'
17920 BUILD_LOGIN_UTILS_TRUE='#'
17921 BUILD_LOGIN_UTILS_FALSE=
17926 # Check whether --with-pam was given.
17927 if test "${with_pam+set}" = set; then :
17940 if test "x$enable_login_utils" = xyes && test "x$with_pam" != xno; then
17941 for ac_header in security/pam_misc.h
17943 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "$ac_includes_default"
17944 if test "x$ac_cv_header_security_pam_misc_h" = xyes; then :
17945 cat >>confdefs.h <<_ACEOF
17946 #define HAVE_SECURITY_PAM_MISC_H 1
17957 if test "x$with_pam" = xyes; then
17958 as_fn_error $? "PAM selected but security/pam_misc.h not found" "$LINENO" 5
17968 # Check whether --with-selinux was given.
17969 if test "${with_selinux+set}" = set; then :
17970 withval=$with_selinux;
17977 if test "x$with_selinux" = xno; then
17980 HAVE_SELINUX_FALSE='#'
17982 HAVE_SELINUX_TRUE='#'
17983 HAVE_SELINUX_FALSE=
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprevcon in -lselinux" >&5
17991 $as_echo_n "checking for getprevcon in -lselinux... " >&6; }
17992 if ${ac_cv_lib_selinux_getprevcon+:} false; then :
17993 $as_echo_n "(cached) " >&6
17995 ac_check_lib_save_LIBS=$LIBS
17996 LIBS="-lselinux $LIBS"
17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
18000 /* Override any GCC internal prototype to avoid an error.
18001 Use char because int might match the return type of a GCC
18002 builtin and then its argument prototype would still apply. */
18006 char getprevcon ();
18010 return getprevcon ();
18015 if ac_fn_c_try_link "$LINENO"; then :
18016 ac_cv_lib_selinux_getprevcon=yes
18018 ac_cv_lib_selinux_getprevcon=no
18020 rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
18022 LIBS=$ac_check_lib_save_LIBS
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_getprevcon" >&5
18025 $as_echo "$ac_cv_lib_selinux_getprevcon" >&6; }
18026 if test "x$ac_cv_lib_selinux_getprevcon" = xyes; then :
18027 cat >>confdefs.h <<_ACEOF
18028 #define HAVE_LIBSELINUX 1
18031 LIBS="-lselinux $LIBS"
18037 if test $have_selinux = yes; then
18039 HAVE_SELINUX_FALSE='#'
18041 HAVE_SELINUX_TRUE='#'
18042 HAVE_SELINUX_FALSE=
18046 case "$with_selinux:$have_selinux" in
18047 yes:no) as_fn_error $? "SELinux selected but libselinux not found" "$LINENO" 5;;
18051 if test "x$have_selinux" = xyes; then
18052 SELINUX_LIBS="-lselinux -lsepol"
18053 SELINUX_LIBS_STATIC="-lselinux -lsepol"
18054 old_LDFLAGS="$LDFLAGS"
18055 LDFLAGS="$LDFLAGS $SELINUX_LIBS"
18056 # This function is missing in old libselinux 1.xx versions
18057 for ac_func in security_get_initial_context
18059 ac_fn_c_check_func "$LINENO" "security_get_initial_context" "ac_cv_func_security_get_initial_context"
18060 if test "x$ac_cv_func_security_get_initial_context" = xyes; then :
18061 cat >>confdefs.h <<_ACEOF
18062 #define HAVE_SECURITY_GET_INITIAL_CONTEXT 1
18068 LDFLAGS="$old_LDFLAGS"
18074 # Check whether --with-audit was given.
18075 if test "${with_audit+set}" = set; then :
18076 withval=$with_audit;
18083 if test "x$with_audit" = xno; then
18086 HAVE_AUDIT_FALSE='#'
18088 HAVE_AUDIT_TRUE='#'
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_message in -laudit" >&5
18097 $as_echo_n "checking for audit_log_user_message in -laudit... " >&6; }
18098 if ${ac_cv_lib_audit_audit_log_user_message+:} false; then :
18099 $as_echo_n "(cached) " >&6
18101 ac_check_lib_save_LIBS=$LIBS
18102 LIBS="-laudit $LIBS"
18103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104 /* end confdefs.h. */
18106 /* Override any GCC internal prototype to avoid an error.
18107 Use char because int might match the return type of a GCC
18108 builtin and then its argument prototype would still apply. */
18112 char audit_log_user_message ();
18116 return audit_log_user_message ();
18121 if ac_fn_c_try_link "$LINENO"; then :
18122 ac_cv_lib_audit_audit_log_user_message=yes
18124 ac_cv_lib_audit_audit_log_user_message=no
18126 rm -f core conftest.err conftest.$ac_objext \
18127 conftest$ac_exeext conftest.$ac_ext
18128 LIBS=$ac_check_lib_save_LIBS
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_message" >&5
18131 $as_echo "$ac_cv_lib_audit_audit_log_user_message" >&6; }
18132 if test "x$ac_cv_lib_audit_audit_log_user_message" = xyes; then :
18133 cat >>confdefs.h <<_ACEOF
18134 #define HAVE_LIBAUDIT 1
18137 LIBS="-laudit $LIBS"
18143 if test $have_audit = yes; then
18145 HAVE_AUDIT_FALSE='#'
18147 HAVE_AUDIT_TRUE='#'
18152 case "$with_audit:$have_audit" in
18154 as_fn_error $? "Audit selected but libaudit not found (or doesn't support audit_log_user_message())" "$LINENO" 5
18159 # Check whether --enable-schedutils was given.
18160 if test "${enable_schedutils+set}" = set; then :
18161 enableval=$enable_schedutils;
18163 enable_schedutils=yes
18167 if test "x$enable_schedutils" = xyes; then
18168 BUILD_SCHEDUTILS_TRUE=
18169 BUILD_SCHEDUTILS_FALSE='#'
18171 BUILD_SCHEDUTILS_TRUE='#'
18172 BUILD_SCHEDUTILS_FALSE=
18177 # Check whether --enable-wall was given.
18178 if test "${enable_wall+set}" = set; then :
18179 enableval=$enable_wall;
18185 if test "x$enable_wall" = xyes; then
18187 BUILD_WALL_FALSE='#'
18189 BUILD_WALL_TRUE='#'
18195 # Check whether --enable-write was given.
18196 if test "${enable_write+set}" = set; then :
18197 enableval=$enable_write;
18203 if test "x$enable_write" = xyes; then
18205 BUILD_WRITE_FALSE='#'
18207 BUILD_WRITE_TRUE='#'
18213 # Check whether --enable-chsh-only-listed was given.
18214 if test "${enable_chsh_only_listed+set}" = set; then :
18215 enableval=$enable_chsh_only_listed;
18217 enable_chsh_only_listed=yes
18222 if test "x$enable_chsh_only_listed" = xyes; then
18224 $as_echo "#define ONLY_LISTED_SHELLS 1" >>confdefs.h
18229 # Check whether --enable-login-chown-vcs was given.
18230 if test "${enable_login_chown_vcs+set}" = set; then :
18231 enableval=$enable_login_chown_vcs;
18233 enable_login_chown_vcs=no
18238 if test "x$enable_login_chown_vcs" = xyes; then
18240 $as_echo "#define LOGIN_CHOWN_VCS 1" >>confdefs.h
18245 # Check whether --enable-login-stat-mail was given.
18246 if test "${enable_login_stat_mail+set}" = set; then :
18247 enableval=$enable_login_stat_mail;
18249 enable_login_stat_mail=no
18254 if test "x$enable_login_stat_mail" = xyes; then
18256 $as_echo "#define LOGIN_STAT_MAIL 1" >>confdefs.h
18261 # Check whether --enable-pg-bell was given.
18262 if test "${enable_pg_bell+set}" = set; then :
18263 enableval=$enable_pg_bell;
18270 if test "x$enable_pg_bell" = xyes; then
18272 $as_echo "#define PG_BELL 1" >>confdefs.h
18277 # Check whether --enable-require-password was given.
18278 if test "${enable_require_password+set}" = set; then :
18279 enableval=$enable_require_password;
18281 enable_require_password=yes
18286 if test "x$enable_require_password" = xyes; then
18288 $as_echo "#define REQUIRE_PASSWORD 1" >>confdefs.h
18294 # Check whether --enable-fs-paths-default was given.
18295 if test "${enable_fs_paths_default+set}" = set; then :
18296 enableval=$enable_fs_paths_default; case "$enableval" in
18297 yes) fs_paths_defaults="/sbin:/sbin/fs.d:/sbin/fs" ;;
18298 no) fs_paths_defaults="" ;;
18299 *) fs_paths_defaults="$enableval" ;;
18302 fs_paths_defaults="/sbin:/sbin/fs.d:/sbin/fs"
18306 # Check whether --enable-fs-paths-extra was given.
18307 if test "${enable_fs_paths_extra+set}" = set; then :
18308 enableval=$enable_fs_paths_extra; case "$enableval" in
18309 yes|no) fs_paths_extra="" ;;
18310 *) fs_paths_extra="$enableval" ;;
18317 fs_paths="$fs_paths_defaults"
18318 if test "x$fs_paths_extra" != "x"; then
18319 if test "x$fs_paths" != "x"; then
18320 fs_paths="${fs_paths}:"
18322 fs_paths="${fs_paths}${fs_paths_extra}"
18325 cat >>confdefs.h <<_ACEOF
18326 #define FS_SEARCH_PATH "$fs_paths"
18331 # Check whether --enable-use-tty-group was given.
18332 if test "${enable_use_tty_group+set}" = set; then :
18333 enableval=$enable_use_tty_group;
18335 enable_use_tty_group=yes
18339 if test "x$enable_use_tty_group" = xyes; then
18340 USE_TTY_GROUP_TRUE=
18341 USE_TTY_GROUP_FALSE='#'
18343 USE_TTY_GROUP_TRUE='#'
18344 USE_TTY_GROUP_FALSE=
18348 if test "x$enable_use_tty_group" = xyes; then
18350 $as_echo "#define USE_TTY_GROUP 1" >>confdefs.h
18354 # Check whether --enable-makeinstall-chown was given.
18355 if test "${enable_makeinstall_chown+set}" = set; then :
18356 enableval=$enable_makeinstall_chown;
18358 enable_makeinstall_chown=yes
18362 if test "x$enable_makeinstall_chown" = xyes; then
18363 MAKEINSTALL_DO_CHOWN_TRUE=
18364 MAKEINSTALL_DO_CHOWN_FALSE='#'
18366 MAKEINSTALL_DO_CHOWN_TRUE='#'
18367 MAKEINSTALL_DO_CHOWN_FALSE=
18371 # Check whether --enable-makeinstall-setuid was given.
18372 if test "${enable_makeinstall_setuid+set}" = set; then :
18373 enableval=$enable_makeinstall_setuid;
18375 enable_makeinstall_setuid=yes
18379 if test "x$enable_makeinstall_setuid" = xyes; then
18380 MAKEINSTALL_DO_SETUID_TRUE=
18381 MAKEINSTALL_DO_SETUID_FALSE='#'
18383 MAKEINSTALL_DO_SETUID_TRUE='#'
18384 MAKEINSTALL_DO_SETUID_FALSE=
18395 ac_config_headers="$ac_config_headers config.h"
18398 ac_config_files="$ac_config_files disk-utils/Makefile fdisk/Makefile fsck/Makefile getopt/Makefile hwclock/Makefile include/Makefile lib/Makefile login-utils/Makefile Makefile man/ru/Makefile misc-utils/chkdupexe:misc-utils/chkdupexe.pl misc-utils/Makefile mount/Makefile partx/Makefile po/Makefile.in schedutils/Makefile libblkid/blkid.pc libblkid/Makefile libblkid/docs/Makefile libblkid/docs/version.xml libblkid/src/Makefile libblkid/src/blkid.h libblkid/src/superblocks/Makefile libblkid/src/topology/Makefile libblkid/src/partitions/Makefile libblkid/samples/Makefile libmount/mount.pc libmount/Makefile libmount/src/Makefile libmount/src/libmount.h libmount/docs/Makefile libmount/docs/version.xml libmount/samples/Makefile libuuid/uuid.pc libuuid/Makefile libuuid/man/Makefile libuuid/src/Makefile sys-utils/Makefile term-utils/Makefile tests/commands.sh tests/helpers/Makefile tests/Makefile text-utils/Makefile"
18402 cat >confcache <<\_ACEOF
18403 # This file is a shell script that caches the results of configure
18404 # tests run on this system so they can be shared between configure
18405 # scripts and configure runs, see configure's option --config-cache.
18406 # It is not useful on other systems. If it contains results you don't
18407 # want to keep, you may remove or edit it.
18409 # config.status only pays attention to the cache file if you give it
18410 # the --recheck option to rerun configure.
18412 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18413 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18414 # following values.
18418 # The following way of writing the cache mishandles newlines in values,
18419 # but we know of no workaround that is simple, portable, and efficient.
18420 # So, we kill variables containing newlines.
18421 # Ultrix sh set writes to stderr and can't be redirected directly,
18422 # and sets the high bit in the cache file unless we assign to the vars.
18424 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18425 eval ac_val=\$$ac_var
18429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18430 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18433 _ | IFS | as_nl) ;; #(
18434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18435 *) { eval $ac_var=; unset $ac_var;} ;;
18441 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18442 *${as_nl}ac_space=\ *)
18443 # `set' does not quote correctly, so add quotes: double-quote
18444 # substitution turns \\\\ into \\, and sed turns \\ into \.
18447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18450 # `set' quotes correctly as required by POSIX, so do not add quotes.
18451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18460 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18462 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18464 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18465 if test -w "$cache_file"; then
18466 if test "x$cache_file" != "x/dev/null"; then
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18468 $as_echo "$as_me: updating cache $cache_file" >&6;}
18469 if test ! -f "$cache_file" || test -h "$cache_file"; then
18470 cat confcache >"$cache_file"
18472 case $cache_file in #(
18474 mv -f confcache "$cache_file"$$ &&
18475 mv -f "$cache_file"$$ "$cache_file" ;; #(
18477 mv -f confcache "$cache_file" ;;
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18483 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18489 # Let make expand exec_prefix.
18490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18492 DEFS=-DHAVE_CONFIG_H
18497 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18498 # 1. Remove the extension, and $U if already installed.
18499 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18500 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18501 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18502 # will be set to the directory where LIBOBJS objects are built.
18503 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18504 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18506 LIBOBJS=$ac_libobjs
18508 LTLIBOBJS=$ac_ltlibobjs
18511 if test -n "$EXEEXT"; then
18513 am__EXEEXT_FALSE='#'
18515 am__EXEEXT_TRUE='#'
18519 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18520 as_fn_error $? "conditional \"AMDEP\" was never defined.
18521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18523 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18524 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18528 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
18529 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
18530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18532 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
18533 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
18534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18536 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
18537 as_fn_error $? "conditional \"LINUX\" was never defined.
18538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18540 if test -z "${HAVE_RAW_TRUE}" && test -z "${HAVE_RAW_FALSE}"; then
18541 as_fn_error $? "conditional \"HAVE_RAW\" was never defined.
18542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18544 if test -z "${HAVE_RAW_TRUE}" && test -z "${HAVE_RAW_FALSE}"; then
18545 as_fn_error $? "conditional \"HAVE_RAW\" was never defined.
18546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18548 if test -z "${HAVE_LANGINFO_TRUE}" && test -z "${HAVE_LANGINFO_FALSE}"; then
18549 as_fn_error $? "conditional \"HAVE_LANGINFO\" was never defined.
18550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18552 if test -z "${HAVE_LANGINFO_TRUE}" && test -z "${HAVE_LANGINFO_FALSE}"; then
18553 as_fn_error $? "conditional \"HAVE_LANGINFO\" was never defined.
18554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18556 if test -z "${BUILD_HWCLOCK_TRUE}" && test -z "${BUILD_HWCLOCK_FALSE}"; then
18557 as_fn_error $? "conditional \"BUILD_HWCLOCK\" was never defined.
18558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18560 if test -z "${HAVE_STATIC_LOSETUP_TRUE}" && test -z "${HAVE_STATIC_LOSETUP_FALSE}"; then
18561 as_fn_error $? "conditional \"HAVE_STATIC_LOSETUP\" was never defined.
18562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18564 if test -z "${HAVE_STATIC_MOUNT_TRUE}" && test -z "${HAVE_STATIC_MOUNT_FALSE}"; then
18565 as_fn_error $? "conditional \"HAVE_STATIC_MOUNT\" was never defined.
18566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18568 if test -z "${HAVE_STATIC_UMOUNT_TRUE}" && test -z "${HAVE_STATIC_UMOUNT_FALSE}"; then
18569 as_fn_error $? "conditional \"HAVE_STATIC_UMOUNT\" was never defined.
18570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18572 if test -z "${HAVE_STATIC_FDISK_TRUE}" && test -z "${HAVE_STATIC_FDISK_FALSE}"; then
18573 as_fn_error $? "conditional \"HAVE_STATIC_FDISK\" was never defined.
18574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18576 if test -z "${HAVE_STATIC_SFDISK_TRUE}" && test -z "${HAVE_STATIC_SFDISK_FALSE}"; then
18577 as_fn_error $? "conditional \"HAVE_STATIC_SFDISK\" was never defined.
18578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18580 if test -z "${HAVE_STATIC_BLKID_TRUE}" && test -z "${HAVE_STATIC_BLKID_FALSE}"; then
18581 as_fn_error $? "conditional \"HAVE_STATIC_BLKID\" was never defined.
18582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18584 if test -z "${BUILD_MOUNT_TRUE}" && test -z "${BUILD_MOUNT_FALSE}"; then
18585 as_fn_error $? "conditional \"BUILD_MOUNT\" was never defined.
18586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18588 if test -z "${BUILD_FSCK_TRUE}" && test -z "${BUILD_FSCK_FALSE}"; then
18589 as_fn_error $? "conditional \"BUILD_FSCK\" was never defined.
18590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18592 if test -z "${BUILD_PARTX_TRUE}" && test -z "${BUILD_PARTX_FALSE}"; then
18593 as_fn_error $? "conditional \"BUILD_PARTX\" was never defined.
18594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18596 if test -z "${BUILD_LIBUUID_TRUE}" && test -z "${BUILD_LIBUUID_FALSE}"; then
18597 as_fn_error $? "conditional \"BUILD_LIBUUID\" was never defined.
18598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18600 if test -z "${BUILD_UUIDD_TRUE}" && test -z "${BUILD_UUIDD_FALSE}"; then
18601 as_fn_error $? "conditional \"BUILD_UUIDD\" was never defined.
18602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18604 if test -z "${BUILD_LIBBLKID_TRUE}" && test -z "${BUILD_LIBBLKID_FALSE}"; then
18605 as_fn_error $? "conditional \"BUILD_LIBBLKID\" was never defined.
18606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18608 if test -z "${BUILD_LIBMOUNT_TRUE}" && test -z "${BUILD_LIBMOUNT_FALSE}"; then
18609 as_fn_error $? "conditional \"BUILD_LIBMOUNT\" was never defined.
18610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18612 if test -z "${BUILD_LIBMOUNT_MOUNT_TRUE}" && test -z "${BUILD_LIBMOUNT_MOUNT_FALSE}"; then
18613 as_fn_error $? "conditional \"BUILD_LIBMOUNT_MOUNT\" was never defined.
18614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18616 if test -z "${BUILD_MOUNTPOINT_TRUE}" && test -z "${BUILD_MOUNTPOINT_FALSE}"; then
18617 as_fn_error $? "conditional \"BUILD_MOUNTPOINT\" was never defined.
18618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18620 if test -z "${HAVE_UTIL_TRUE}" && test -z "${HAVE_UTIL_FALSE}"; then
18621 as_fn_error $? "conditional \"HAVE_UTIL\" was never defined.
18622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18624 if test -z "${HAVE_TERMCAP_TRUE}" && test -z "${HAVE_TERMCAP_FALSE}"; then
18625 as_fn_error $? "conditional \"HAVE_TERMCAP\" was never defined.
18626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18628 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
18629 as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
18630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18632 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
18633 as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
18634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18636 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
18637 as_fn_error $? "conditional \"HAVE_NCURSES\" was never defined.
18638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18640 if test -z "${HAVE_TINFO_TRUE}" && test -z "${HAVE_TINFO_FALSE}"; then
18641 as_fn_error $? "conditional \"HAVE_TINFO\" was never defined.
18642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18644 if test -z "${USE_SLANG_TRUE}" && test -z "${USE_SLANG_FALSE}"; then
18645 as_fn_error $? "conditional \"USE_SLANG\" was never defined.
18646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18648 if test -z "${HAVE_UTEMPTER_TRUE}" && test -z "${HAVE_UTEMPTER_FALSE}"; then
18649 as_fn_error $? "conditional \"HAVE_UTEMPTER\" was never defined.
18650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18652 if test -z "${HAVE_UTEMPTER_TRUE}" && test -z "${HAVE_UTEMPTER_FALSE}"; then
18653 as_fn_error $? "conditional \"HAVE_UTEMPTER\" was never defined.
18654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18656 if test -z "${NEED_LIBCRYPT_TRUE}" && test -z "${NEED_LIBCRYPT_FALSE}"; then
18657 as_fn_error $? "conditional \"NEED_LIBCRYPT\" was never defined.
18658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18660 if test -z "${HAVE_PIVOT_ROOT_TRUE}" && test -z "${HAVE_PIVOT_ROOT_FALSE}"; then
18661 as_fn_error $? "conditional \"HAVE_PIVOT_ROOT\" was never defined.
18662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18664 if test -z "${HAVE_SCHED_GETAFFINITY_TRUE}" && test -z "${HAVE_SCHED_GETAFFINITY_FALSE}"; then
18665 as_fn_error $? "conditional \"HAVE_SCHED_GETAFFINITY\" was never defined.
18666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18668 if test -z "${HAVE_IOPRIO_SET_TRUE}" && test -z "${HAVE_IOPRIO_SET_FALSE}"; then
18669 as_fn_error $? "conditional \"HAVE_IOPRIO_SET\" was never defined.
18670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18672 if test -z "${HAVE_IOPRIO_GET_TRUE}" && test -z "${HAVE_IOPRIO_GET_FALSE}"; then
18673 as_fn_error $? "conditional \"HAVE_IOPRIO_GET\" was never defined.
18674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18676 if test -z "${HAVE_FALLOCATE_TRUE}" && test -z "${HAVE_FALLOCATE_FALSE}"; then
18677 as_fn_error $? "conditional \"HAVE_FALLOCATE\" was never defined.
18678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18680 if test -z "${HAVE_UNSHARE_TRUE}" && test -z "${HAVE_UNSHARE_FALSE}"; then
18681 as_fn_error $? "conditional \"HAVE_UNSHARE\" was never defined.
18682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18684 if test -z "${HAVE_CPU_SET_T_TRUE}" && test -z "${HAVE_CPU_SET_T_FALSE}"; then
18685 as_fn_error $? "conditional \"HAVE_CPU_SET_T\" was never defined.
18686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18688 if test -z "${ARCH_I86_TRUE}" && test -z "${ARCH_I86_FALSE}"; then
18689 as_fn_error $? "conditional \"ARCH_I86\" was never defined.
18690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18692 if test -z "${ARCH_86_64_TRUE}" && test -z "${ARCH_86_64_FALSE}"; then
18693 as_fn_error $? "conditional \"ARCH_86_64\" was never defined.
18694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18696 if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
18697 as_fn_error $? "conditional \"ARCH_IA64\" was never defined.
18698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18700 if test -z "${ARCH_S390_TRUE}" && test -z "${ARCH_S390_FALSE}"; then
18701 as_fn_error $? "conditional \"ARCH_S390\" was never defined.
18702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18704 if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
18705 as_fn_error $? "conditional \"ARCH_SPARC\" was never defined.
18706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18708 if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
18709 as_fn_error $? "conditional \"ARCH_PPC\" was never defined.
18710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18712 if test -z "${ARCH_M68K_TRUE}" && test -z "${ARCH_M68K_FALSE}"; then
18713 as_fn_error $? "conditional \"ARCH_M68K\" was never defined.
18714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18716 if test -z "${ARCH_MIPS_TRUE}" && test -z "${ARCH_MIPS_FALSE}"; then
18717 as_fn_error $? "conditional \"ARCH_MIPS\" was never defined.
18718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18720 if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
18721 as_fn_error $? "conditional \"ARCH_HPPA\" was never defined.
18722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18724 if test -z "${BUILD_ARCH_TRUE}" && test -z "${BUILD_ARCH_FALSE}"; then
18725 as_fn_error $? "conditional \"BUILD_ARCH\" was never defined.
18726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18728 if test -z "${BUILD_DDATE_TRUE}" && test -z "${BUILD_DDATE_FALSE}"; then
18729 as_fn_error $? "conditional \"BUILD_DDATE\" was never defined.
18730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18732 if test -z "${BUILD_AGETTY_TRUE}" && test -z "${BUILD_AGETTY_FALSE}"; then
18733 as_fn_error $? "conditional \"BUILD_AGETTY\" was never defined.
18734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18736 if test -z "${BUILD_CRAMFS_TRUE}" && test -z "${BUILD_CRAMFS_FALSE}"; then
18737 as_fn_error $? "conditional \"BUILD_CRAMFS\" was never defined.
18738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18740 if test -z "${BUILD_LSBLK_TRUE}" && test -z "${BUILD_LSBLK_FALSE}"; then
18741 as_fn_error $? "conditional \"BUILD_LSBLK\" was never defined.
18742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18744 if test -z "${BUILD_SWITCH_ROOT_TRUE}" && test -z "${BUILD_SWITCH_ROOT_FALSE}"; then
18745 as_fn_error $? "conditional \"BUILD_SWITCH_ROOT\" was never defined.
18746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18748 if test -z "${BUILD_PIVOT_ROOT_TRUE}" && test -z "${BUILD_PIVOT_ROOT_FALSE}"; then
18749 as_fn_error $? "conditional \"BUILD_PIVOT_ROOT\" was never defined.
18750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18752 if test -z "${BUILD_FALLOCATE_TRUE}" && test -z "${BUILD_FALLOCATE_FALSE}"; then
18753 as_fn_error $? "conditional \"BUILD_FALLOCATE\" was never defined.
18754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18756 if test -z "${BUILD_UNSHARE_TRUE}" && test -z "${BUILD_UNSHARE_FALSE}"; then
18757 as_fn_error $? "conditional \"BUILD_UNSHARE\" was never defined.
18758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18760 if test -z "${BUILD_ELVTUNE_TRUE}" && test -z "${BUILD_ELVTUNE_FALSE}"; then
18761 as_fn_error $? "conditional \"BUILD_ELVTUNE\" was never defined.
18762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18764 if test -z "${BUILD_KILL_TRUE}" && test -z "${BUILD_KILL_FALSE}"; then
18765 as_fn_error $? "conditional \"BUILD_KILL\" was never defined.
18766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18768 if test -z "${BUILD_LAST_TRUE}" && test -z "${BUILD_LAST_FALSE}"; then
18769 as_fn_error $? "conditional \"BUILD_LAST\" was never defined.
18770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18772 if test -z "${BUILD_LINE_TRUE}" && test -z "${BUILD_LINE_FALSE}"; then
18773 as_fn_error $? "conditional \"BUILD_LINE\" was never defined.
18774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18776 if test -z "${BUILD_MESG_TRUE}" && test -z "${BUILD_MESG_FALSE}"; then
18777 as_fn_error $? "conditional \"BUILD_MESG\" was never defined.
18778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18780 if test -z "${BUILD_RAW_TRUE}" && test -z "${BUILD_RAW_FALSE}"; then
18781 as_fn_error $? "conditional \"BUILD_RAW\" was never defined.
18782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18784 if test -z "${BUILD_RENAME_TRUE}" && test -z "${BUILD_RENAME_FALSE}"; then
18785 as_fn_error $? "conditional \"BUILD_RENAME\" was never defined.
18786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18788 if test -z "${BUILD_RESET_TRUE}" && test -z "${BUILD_RESET_FALSE}"; then
18789 as_fn_error $? "conditional \"BUILD_RESET\" was never defined.
18790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18792 if test -z "${BUILD_LOGIN_UTILS_TRUE}" && test -z "${BUILD_LOGIN_UTILS_FALSE}"; then
18793 as_fn_error $? "conditional \"BUILD_LOGIN_UTILS\" was never defined.
18794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18796 if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
18797 as_fn_error $? "conditional \"HAVE_PAM\" was never defined.
18798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18800 if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
18801 as_fn_error $? "conditional \"HAVE_PAM\" was never defined.
18802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18804 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
18805 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
18806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18808 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
18809 as_fn_error $? "conditional \"HAVE_SELINUX\" was never defined.
18810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18812 if test -z "${HAVE_AUDIT_TRUE}" && test -z "${HAVE_AUDIT_FALSE}"; then
18813 as_fn_error $? "conditional \"HAVE_AUDIT\" was never defined.
18814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18816 if test -z "${HAVE_AUDIT_TRUE}" && test -z "${HAVE_AUDIT_FALSE}"; then
18817 as_fn_error $? "conditional \"HAVE_AUDIT\" was never defined.
18818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18820 if test -z "${BUILD_SCHEDUTILS_TRUE}" && test -z "${BUILD_SCHEDUTILS_FALSE}"; then
18821 as_fn_error $? "conditional \"BUILD_SCHEDUTILS\" was never defined.
18822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18824 if test -z "${BUILD_WALL_TRUE}" && test -z "${BUILD_WALL_FALSE}"; then
18825 as_fn_error $? "conditional \"BUILD_WALL\" was never defined.
18826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18828 if test -z "${BUILD_WRITE_TRUE}" && test -z "${BUILD_WRITE_FALSE}"; then
18829 as_fn_error $? "conditional \"BUILD_WRITE\" was never defined.
18830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18832 if test -z "${USE_TTY_GROUP_TRUE}" && test -z "${USE_TTY_GROUP_FALSE}"; then
18833 as_fn_error $? "conditional \"USE_TTY_GROUP\" was never defined.
18834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18836 if test -z "${MAKEINSTALL_DO_CHOWN_TRUE}" && test -z "${MAKEINSTALL_DO_CHOWN_FALSE}"; then
18837 as_fn_error $? "conditional \"MAKEINSTALL_DO_CHOWN\" was never defined.
18838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18840 if test -z "${MAKEINSTALL_DO_SETUID_TRUE}" && test -z "${MAKEINSTALL_DO_SETUID_FALSE}"; then
18841 as_fn_error $? "conditional \"MAKEINSTALL_DO_SETUID\" was never defined.
18842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18845 : "${CONFIG_STATUS=./config.status}"
18847 ac_clean_files_save=$ac_clean_files
18848 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18850 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18852 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18854 # Generated by $as_me.
18855 # Run this file to recreate the current configuration.
18856 # Compiler output produced by configure, useful for debugging
18857 # configure, is in config.log if it exists.
18860 ac_cs_recheck=false
18863 SHELL=\${CONFIG_SHELL-$SHELL}
18866 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18867 ## -------------------- ##
18868 ## M4sh Initialization. ##
18869 ## -------------------- ##
18871 # Be more Bourne compatible
18872 DUALCASE=1; export DUALCASE # for MKS sh
18873 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18876 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18877 # is contrary to our usage. Disable this feature.
18878 alias -g '${1+"$@"}'='"$@"'
18879 setopt NO_GLOB_SUBST
18881 case `(set -o) 2>/dev/null` in #(
18893 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18894 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18895 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18896 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18897 # Prefer a ksh shell builtin over an external printf program on Solaris,
18898 # but without wasting forks for bash or zsh.
18899 if test -z "$BASH_VERSION$ZSH_VERSION" \
18900 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18901 as_echo='print -r --'
18902 as_echo_n='print -rn --'
18903 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18904 as_echo='printf %s\n'
18905 as_echo_n='printf %s'
18907 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18908 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18909 as_echo_n='/usr/ucb/echo -n'
18911 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18912 as_echo_n_body='eval
18916 expr "X$arg" : "X\\(.*\\)$as_nl";
18917 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18919 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18921 export as_echo_n_body
18922 as_echo_n='sh -c $as_echo_n_body as_echo'
18924 export as_echo_body
18925 as_echo='sh -c $as_echo_body as_echo'
18928 # The user is always right.
18929 if test "${PATH_SEPARATOR+set}" != set; then
18931 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18932 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18939 # We need space, tab and new line, in precisely that order. Quoting is
18940 # there to prevent editors from complaining about space-tab.
18941 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18942 # splitting by setting IFS to empty value.)
18945 # Find who we are. Look in the path if we contain no directory separator.
18948 *[\\/]* ) as_myself=$0 ;;
18949 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18950 for as_dir in $PATH
18953 test -z "$as_dir" && as_dir=.
18954 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18960 # We did not find ourselves, most probably we were run as `sh COMMAND'
18961 # in which case we are not to be found in the path.
18962 if test "x$as_myself" = x; then
18965 if test ! -f "$as_myself"; then
18966 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18970 # Unset variables that we do not need and which cause bugs (e.g. in
18971 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18972 # suppresses any "Segmentation fault" message there. '((' could
18973 # trigger a bug in pdksh 5.2.14.
18974 for as_var in BASH_ENV ENV MAIL MAILPATH
18975 do eval test x\${$as_var+set} = xset \
18976 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18989 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18992 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18993 # ----------------------------------------
18994 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18995 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18996 # script with STATUS, using 1 if that was 0.
18999 as_status=$1; test $as_status -eq 0 && as_status=1
19001 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19002 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19004 $as_echo "$as_me: error: $2" >&2
19005 as_fn_exit $as_status
19009 # as_fn_set_status STATUS
19010 # -----------------------
19011 # Set $? to STATUS, without forking.
19012 as_fn_set_status ()
19015 } # as_fn_set_status
19017 # as_fn_exit STATUS
19018 # -----------------
19019 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19023 as_fn_set_status $1
19029 # Portably unset VAR.
19032 { eval $1=; unset $1;}
19034 as_unset=as_fn_unset
19035 # as_fn_append VAR VALUE
19036 # ----------------------
19037 # Append the text in VALUE to the end of the definition contained in VAR. Take
19038 # advantage of any shell optimizations that allow amortized linear growth over
19039 # repeated appends, instead of the typical quadratic growth present in naive
19041 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19042 eval 'as_fn_append ()
19053 # as_fn_arith ARG...
19054 # ------------------
19055 # Perform arithmetic evaluation on the ARGs, and store the result in the
19056 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19057 # must be portable across $(()) and expr.
19058 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19059 eval 'as_fn_arith ()
19066 as_val=`expr "$@" || test $? -eq 1`
19071 if expr a : '\(a\)' >/dev/null 2>&1 &&
19072 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19078 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19079 as_basename=basename
19084 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19090 as_me=`$as_basename -- "$0" ||
19091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19092 X"$0" : 'X\(//\)$' \| \
19093 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19095 sed '/^.*\/\([^/][^/]*\)\/*$/{
19109 # Avoid depending upon Character Ranges.
19110 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19111 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19112 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19113 as_cr_digits='0123456789'
19114 as_cr_alnum=$as_cr_Letters$as_cr_digits
19116 ECHO_C= ECHO_N= ECHO_T=
19117 case `echo -n x` in #(((((
19119 case `echo 'xy\c'` in
19120 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19122 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19129 rm -f conf$$ conf$$.exe conf$$.file
19130 if test -d conf$$.dir; then
19131 rm -f conf$$.dir/conf$$.file
19134 mkdir conf$$.dir 2>/dev/null
19136 if (echo >conf$$.file) 2>/dev/null; then
19137 if ln -s conf$$.file conf$$ 2>/dev/null; then
19139 # ... but there are two gotchas:
19140 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19141 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19142 # In both cases, we have to default to `cp -p'.
19143 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19145 elif ln conf$$.file conf$$ 2>/dev/null; then
19153 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19154 rmdir conf$$.dir 2>/dev/null
19159 # Create "$as_dir" as a directory, including parents if necessary.
19164 -*) as_dir=./$as_dir;;
19166 test -d "$as_dir" || eval $as_mkdir_p || {
19170 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19171 *) as_qdir=$as_dir;;
19173 as_dirs="'$as_qdir' $as_dirs"
19174 as_dir=`$as_dirname -- "$as_dir" ||
19175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19176 X"$as_dir" : 'X\(//\)[^/]' \| \
19177 X"$as_dir" : 'X\(//\)$' \| \
19178 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19179 $as_echo X"$as_dir" |
19180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19184 /^X\(\/\/\)[^/].*/{
19197 test -d "$as_dir" && break
19199 test -z "$as_dirs" || eval "mkdir $as_dirs"
19200 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19204 if mkdir -p . 2>/dev/null; then
19205 as_mkdir_p='mkdir -p "$as_dir"'
19207 test -d ./-p && rmdir ./-p
19211 if test -x / >/dev/null 2>&1; then
19212 as_test_x='test -x'
19214 if ls -dL / >/dev/null 2>&1; then
19221 if test -d "$1"; then
19227 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19228 ???[sx]*):;;*)false;;esac;fi
19232 as_executable_p=$as_test_x
19234 # Sed expression to map a string onto a valid CPP name.
19235 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19237 # Sed expression to map a string onto a valid variable name.
19238 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19242 ## ----------------------------------- ##
19243 ## Main body of $CONFIG_STATUS script. ##
19244 ## ----------------------------------- ##
19246 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19249 # Save the log message, to keep $0 and so on meaningful, and to
19250 # report actual input values of CONFIG_FILES etc. instead of their
19251 # values after options handling.
19253 This file was extended by util-linux $as_me 2.20.1, which was
19254 generated by GNU Autoconf 2.68. Invocation command line was
19256 CONFIG_FILES = $CONFIG_FILES
19257 CONFIG_HEADERS = $CONFIG_HEADERS
19258 CONFIG_LINKS = $CONFIG_LINKS
19259 CONFIG_COMMANDS = $CONFIG_COMMANDS
19262 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19267 case $ac_config_files in *"
19268 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19271 case $ac_config_headers in *"
19272 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19277 # Files that config.status was made for.
19278 config_files="$ac_config_files"
19279 config_headers="$ac_config_headers"
19280 config_commands="$ac_config_commands"
19284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19286 \`$as_me' instantiates files and other configuration actions
19287 from templates according to the current configuration. Unless the files
19288 and actions are specified as TAGs, all are instantiated by default.
19290 Usage: $0 [OPTION]... [TAG]...
19292 -h, --help print this help, then exit
19293 -V, --version print version number and configuration settings, then exit
19294 --config print configuration, then exit
19295 -q, --quiet, --silent
19296 do not print progress messages
19297 -d, --debug don't remove temporary files
19298 --recheck update $as_me by reconfiguring in the same conditions
19299 --file=FILE[:TEMPLATE]
19300 instantiate the configuration file FILE
19301 --header=FILE[:TEMPLATE]
19302 instantiate the configuration header FILE
19304 Configuration files:
19307 Configuration headers:
19310 Configuration commands:
19313 Report bugs to <kzak@redhat.com>."
19316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19317 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19319 util-linux config.status 2.20.1
19320 configured by $0, generated by GNU Autoconf 2.68,
19321 with options \\"\$ac_cs_config\\"
19323 Copyright (C) 2010 Free Software Foundation, Inc.
19324 This config.status script is free software; the Free Software Foundation
19325 gives unlimited permission to copy, distribute and modify it."
19332 test -n "\$AWK" || AWK=awk
19335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19336 # The default lists apply if the user does not specify any file.
19342 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19343 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19359 # Handling of the options.
19360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19363 $as_echo "$ac_cs_version"; exit ;;
19364 --config | --confi | --conf | --con | --co | --c )
19365 $as_echo "$ac_cs_config"; exit ;;
19366 --debug | --debu | --deb | --de | --d | -d )
19368 --file | --fil | --fi | --f )
19371 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19372 '') as_fn_error $? "missing file argument" ;;
19374 as_fn_append CONFIG_FILES " '$ac_optarg'"
19375 ac_need_defaults=false;;
19376 --header | --heade | --head | --hea )
19379 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19381 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19382 ac_need_defaults=false;;
19384 # Conflict between --help and --header
19385 as_fn_error $? "ambiguous option: \`$1'
19386 Try \`$0 --help' for more information.";;
19387 --help | --hel | -h )
19388 $as_echo "$ac_cs_usage"; exit ;;
19389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19390 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19393 # This is an error.
19394 -*) as_fn_error $? "unrecognized option: \`$1'
19395 Try \`$0 --help' for more information." ;;
19397 *) as_fn_append ac_config_targets " $1"
19398 ac_need_defaults=false ;;
19404 ac_configure_extra_args=
19406 if $ac_cs_silent; then
19408 ac_configure_extra_args="$ac_configure_extra_args --silent"
19412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19413 if \$ac_cs_recheck; then
19414 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19416 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19417 CONFIG_SHELL='$SHELL'
19418 export CONFIG_SHELL
19423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19428 ## Running $as_me. ##
19434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19438 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19441 # The HP-UX ksh and POSIX shell print the target directory to stdout
19442 # if CDPATH is set.
19443 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19445 sed_quote_subst='$sed_quote_subst'
19446 double_quote_subst='$double_quote_subst'
19447 delay_variable_subst='$delay_variable_subst'
19448 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19449 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19450 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19451 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19452 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19453 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19454 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19455 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19456 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19457 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19458 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19459 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19460 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19461 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19462 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19463 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19464 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19465 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19466 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19467 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19468 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19469 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19470 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19471 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19472 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19473 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19474 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19475 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19476 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19477 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19478 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19479 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19480 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19481 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19482 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19483 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19484 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19485 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19486 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19487 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19488 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19489 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19490 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19491 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19492 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19493 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19494 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19495 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19496 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19497 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19498 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19499 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19500 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19501 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19502 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19503 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
19504 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19505 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19506 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19507 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19508 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19509 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19510 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19511 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19512 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19513 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19514 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19515 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19516 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19517 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19518 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19519 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19520 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19521 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19522 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19523 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19524 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19525 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19526 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19527 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19528 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19529 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19530 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19531 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19532 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19533 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19534 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19535 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19536 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19537 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19538 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
19539 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19540 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19541 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19542 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19543 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19544 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19545 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19546 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19547 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19548 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19549 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19550 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19551 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19552 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19553 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19554 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19555 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19556 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19557 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19558 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19559 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19560 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19561 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19562 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19563 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19564 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19565 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19566 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19567 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19568 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19569 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19570 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19571 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19572 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19573 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19574 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19575 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19576 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19577 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19580 LTCFLAGS='$LTCFLAGS'
19581 compiler='$compiler_DEFAULT'
19583 # A function that is used when there is no print builtin or printf.
19584 func_fallback_echo ()
19586 eval 'cat <<_LTECHO_EOF
19591 # Quote evaled strings.
19605 deplibs_check_method \
19610 sharedlib_from_linklib_cmd \
19613 archiver_list_spec \
19619 lt_cv_sys_global_symbol_pipe \
19620 lt_cv_sys_global_symbol_to_cdecl \
19621 lt_cv_sys_global_symbol_to_c_name_address \
19622 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19623 nm_file_list_spec \
19624 lt_prog_compiler_no_builtin_flag \
19625 lt_prog_compiler_pic \
19626 lt_prog_compiler_wl \
19627 lt_prog_compiler_static \
19628 lt_cv_prog_compiler_c_o \
19637 export_dynamic_flag_spec \
19638 whole_archive_flag_spec \
19639 compiler_needs_object \
19641 allow_undefined_flag \
19642 no_undefined_flag \
19643 hardcode_libdir_flag_spec \
19644 hardcode_libdir_flag_spec_ld \
19645 hardcode_libdir_separator \
19649 variables_saved_for_relink \
19651 library_names_spec \
19653 install_override_mode \
19657 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19658 *[\\\\\\\`\\"\\\$]*)
19659 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19662 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19667 # Double-quote double-evaled strings.
19668 for var in reload_cmds \
19669 old_postinstall_cmds \
19670 old_postuninstall_cmds \
19672 extract_expsyms_cmds \
19673 old_archive_from_new_cmds \
19674 old_archive_from_expsyms_cmds \
19676 archive_expsym_cmds \
19678 module_expsym_cmds \
19679 export_symbols_cmds \
19683 postuninstall_cmds \
19685 sys_lib_search_path_spec \
19686 sys_lib_dlsearch_path_spec; do
19687 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19688 *[\\\\\\\`\\"\\\$]*)
19689 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19692 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19697 ac_aux_dir='$ac_aux_dir'
19698 xsi_shell='$xsi_shell'
19699 lt_shell_append='$lt_shell_append'
19701 # See if we are running on zsh, and set the options which allow our
19702 # commands through without removal of \ escapes INIT.
19703 if test -n "\${ZSH_VERSION+set}" ; then
19704 setopt NO_GLOB_SUBST
19710 TIMESTAMP='$TIMESTAMP'
19716 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19717 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19719 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19720 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19721 LINGUAS="${LINGUAS-%UNSET%}"
19726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19728 # Handling of arguments.
19729 for ac_config_target in $ac_config_targets
19731 case $ac_config_target in
19732 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19733 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19734 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
19735 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19736 "disk-utils/Makefile") CONFIG_FILES="$CONFIG_FILES disk-utils/Makefile" ;;
19737 "fdisk/Makefile") CONFIG_FILES="$CONFIG_FILES fdisk/Makefile" ;;
19738 "fsck/Makefile") CONFIG_FILES="$CONFIG_FILES fsck/Makefile" ;;
19739 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
19740 "hwclock/Makefile") CONFIG_FILES="$CONFIG_FILES hwclock/Makefile" ;;
19741 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19742 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19743 "login-utils/Makefile") CONFIG_FILES="$CONFIG_FILES login-utils/Makefile" ;;
19744 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19745 "man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
19746 "misc-utils/chkdupexe") CONFIG_FILES="$CONFIG_FILES misc-utils/chkdupexe:misc-utils/chkdupexe.pl" ;;
19747 "misc-utils/Makefile") CONFIG_FILES="$CONFIG_FILES misc-utils/Makefile" ;;
19748 "mount/Makefile") CONFIG_FILES="$CONFIG_FILES mount/Makefile" ;;
19749 "partx/Makefile") CONFIG_FILES="$CONFIG_FILES partx/Makefile" ;;
19750 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19751 "schedutils/Makefile") CONFIG_FILES="$CONFIG_FILES schedutils/Makefile" ;;
19752 "libblkid/blkid.pc") CONFIG_FILES="$CONFIG_FILES libblkid/blkid.pc" ;;
19753 "libblkid/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/Makefile" ;;
19754 "libblkid/docs/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/docs/Makefile" ;;
19755 "libblkid/docs/version.xml") CONFIG_FILES="$CONFIG_FILES libblkid/docs/version.xml" ;;
19756 "libblkid/src/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/src/Makefile" ;;
19757 "libblkid/src/blkid.h") CONFIG_FILES="$CONFIG_FILES libblkid/src/blkid.h" ;;
19758 "libblkid/src/superblocks/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/src/superblocks/Makefile" ;;
19759 "libblkid/src/topology/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/src/topology/Makefile" ;;
19760 "libblkid/src/partitions/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/src/partitions/Makefile" ;;
19761 "libblkid/samples/Makefile") CONFIG_FILES="$CONFIG_FILES libblkid/samples/Makefile" ;;
19762 "libmount/mount.pc") CONFIG_FILES="$CONFIG_FILES libmount/mount.pc" ;;
19763 "libmount/Makefile") CONFIG_FILES="$CONFIG_FILES libmount/Makefile" ;;
19764 "libmount/src/Makefile") CONFIG_FILES="$CONFIG_FILES libmount/src/Makefile" ;;
19765 "libmount/src/libmount.h") CONFIG_FILES="$CONFIG_FILES libmount/src/libmount.h" ;;
19766 "libmount/docs/Makefile") CONFIG_FILES="$CONFIG_FILES libmount/docs/Makefile" ;;
19767 "libmount/docs/version.xml") CONFIG_FILES="$CONFIG_FILES libmount/docs/version.xml" ;;
19768 "libmount/samples/Makefile") CONFIG_FILES="$CONFIG_FILES libmount/samples/Makefile" ;;
19769 "libuuid/uuid.pc") CONFIG_FILES="$CONFIG_FILES libuuid/uuid.pc" ;;
19770 "libuuid/Makefile") CONFIG_FILES="$CONFIG_FILES libuuid/Makefile" ;;
19771 "libuuid/man/Makefile") CONFIG_FILES="$CONFIG_FILES libuuid/man/Makefile" ;;
19772 "libuuid/src/Makefile") CONFIG_FILES="$CONFIG_FILES libuuid/src/Makefile" ;;
19773 "sys-utils/Makefile") CONFIG_FILES="$CONFIG_FILES sys-utils/Makefile" ;;
19774 "term-utils/Makefile") CONFIG_FILES="$CONFIG_FILES term-utils/Makefile" ;;
19775 "tests/commands.sh") CONFIG_FILES="$CONFIG_FILES tests/commands.sh" ;;
19776 "tests/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES tests/helpers/Makefile" ;;
19777 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19778 "text-utils/Makefile") CONFIG_FILES="$CONFIG_FILES text-utils/Makefile" ;;
19780 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19785 # If the user did not use the arguments to specify the items to instantiate,
19786 # then the envvar interface is used. Set only those that are not.
19787 # We use the long form for the default assignment because of an extremely
19788 # bizarre bug on SunOS 4.1.3.
19789 if $ac_need_defaults; then
19790 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19791 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19792 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19795 # Have a temporary directory for convenience. Make it in the build tree
19796 # simply because there is no reason against having it here, and in addition,
19797 # creating and moving files from /tmp can sometimes cause problems.
19798 # Hook for its removal unless debugging.
19799 # Note that there is a small window in which the directory will not be cleaned:
19800 # after its creation but before its name has been assigned to `$tmp'.
19804 trap 'exit_status=$?
19805 : "${ac_tmp:=$tmp}"
19806 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19808 trap 'as_fn_exit 1' 1 2 13 15
19810 # Create a (secure) tmp directory for tmp files.
19813 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19817 tmp=./conf$$-$RANDOM
19818 (umask 077 && mkdir "$tmp")
19819 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19822 # Set up the scripts for CONFIG_FILES section.
19823 # No need to generate them if there are no CONFIG_FILES.
19824 # This happens for instance with `./config.status config.h'.
19825 if test -n "$CONFIG_FILES"; then
19828 ac_cr=`echo X | tr X '\015'`
19829 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19830 # But we know of no other shell where ac_cr would be empty at this
19831 # point, so we can use a bashism as a fallback.
19832 if test "x$ac_cr" = x; then
19833 eval ac_cr=\$\'\\r\'
19835 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19836 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19839 ac_cs_awk_cr=$ac_cr
19842 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19847 echo "cat >conf$$subs.awk <<_ACEOF" &&
19848 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19850 } >conf$$subs.sh ||
19851 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19852 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19854 for ac_last_try in false false false false false :; do
19855 . ./conf$$subs.sh ||
19856 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19858 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19859 if test $ac_delim_n = $ac_delim_num; then
19861 elif $ac_last_try; then
19862 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19864 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19867 rm -f conf$$subs.sh
19869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19870 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19874 s/^/S["/; s/!.*/"]=/
19884 s/\(.\{148\}\)..*/\1/
19886 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19898 s/\(.\{148\}\)..*/\1/
19900 s/["\\]/\\&/g; s/^/"/; s/$/"/
19904 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19909 ' <conf$$subs.awk | sed '
19914 ' >>$CONFIG_STATUS || ac_write_fail=1
19915 rm -f conf$$subs.awk
19916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19918 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19919 for (key in S) S_is_set[key] = 1
19925 nfields = split(line, field, "@")
19927 len = length(field[1])
19928 for (i = 2; i < nfields; i++) {
19930 keylen = length(key)
19931 if (S_is_set[key]) {
19933 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19934 len += length(value) + length(field[++i])
19945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19946 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19947 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19950 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19951 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19954 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19955 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19956 # trailing colons and then remove the whole line if VPATH becomes empty
19957 # (actually we leave an empty line to preserve line numbers).
19958 if test "x$srcdir" = x.; then
19959 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19978 fi # test -n "$CONFIG_FILES"
19980 # Set up the scripts for CONFIG_HEADERS section.
19981 # No need to generate them if there are no CONFIG_HEADERS.
19982 # This happens for instance with `./config.status Makefile'.
19983 if test -n "$CONFIG_HEADERS"; then
19984 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19988 # Transform confdefs.h into an awk script `defines.awk', embedded as
19989 # here-document in config.status, that substitutes the proper values into
19990 # config.h.in to produce config.h.
19992 # Create a delimiter string that does not exist in confdefs.h, to ease
19993 # handling of long lines.
19995 for ac_last_try in false false :; do
19996 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19997 if test -z "$ac_tt"; then
19999 elif $ac_last_try; then
20000 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20002 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20006 # For the awk script, D is an array of macro values keyed by name,
20007 # likewise P contains macro parameters if any. Preserve backslash
20008 # newline sequences.
20010 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20012 s/.\{148\}/&'"$ac_delim"'/g
20015 s/^[ ]*#[ ]*define[ ][ ]*/ /
20022 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20024 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20028 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20029 D["\1"]=" \3\\\\\\n"\\/p
20031 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20036 s/.\{148\}/&'"$ac_delim"'/g
20041 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20044 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20046 ' <confdefs.h | sed '
20047 s/'"$ac_delim"'/"\\\
20048 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20051 for (key in D) D_is_set[key] = 1
20054 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20056 split(line, arg, " ")
20057 if (arg[1] == "#") {
20061 defundef = substr(arg[1], 2)
20064 split(mac1, mac2, "(") #)
20066 prefix = substr(line, 1, index(line, defundef) - 1)
20067 if (D_is_set[macro]) {
20068 # Preserve the white space surrounding the "#".
20069 print prefix "define", macro P[macro] D[macro]
20072 # Replace #undef with comments. This is necessary, for example,
20073 # in the case of _POSIX_SOURCE, which is predefined and required
20074 # on some systems where configure will not decide to define it.
20075 if (defundef == "undef") {
20076 print "/*", prefix defundef, macro, "*/"
20084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20085 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20086 fi # test -n "$CONFIG_HEADERS"
20089 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20094 :[FHLC]) ac_mode=$ac_tag; continue;;
20096 case $ac_mode$ac_tag in
20098 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20099 :[FH]-) ac_tag=-:-;;
20100 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20117 -) ac_f="$ac_tmp/stdin";;
20118 *) # Look for the file first in the build tree, then in the source tree
20119 # (if the path is not absolute). The absolute path cannot be DOS-style,
20120 # because $ac_f cannot contain `:'.
20124 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20126 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20128 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20129 as_fn_append ac_file_inputs " '$ac_f'"
20132 # Let's still pretend it is `configure' which instantiates (i.e., don't
20133 # use $as_me), people would be surprised to read:
20134 # /* config.h. Generated by config.status. */
20135 configure_input='Generated from '`
20136 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20138 if test x"$ac_file" != x-; then
20139 configure_input="$ac_file. $configure_input"
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20141 $as_echo "$as_me: creating $ac_file" >&6;}
20143 # Neutralize special characters interpreted by sed in replacement strings.
20144 case $configure_input in #(
20145 *\&* | *\|* | *\\* )
20146 ac_sed_conf_input=`$as_echo "$configure_input" |
20147 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20148 *) ac_sed_conf_input=$configure_input;;
20152 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20158 ac_dir=`$as_dirname -- "$ac_file" ||
20159 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20160 X"$ac_file" : 'X\(//\)[^/]' \| \
20161 X"$ac_file" : 'X\(//\)$' \| \
20162 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20163 $as_echo X"$ac_file" |
20164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20168 /^X\(\/\/\)[^/].*/{
20181 as_dir="$ac_dir"; as_fn_mkdir_p
20185 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20187 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20188 # A ".." for each directory in $ac_dir_suffix.
20189 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20190 case $ac_top_builddir_sub in
20191 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20192 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20195 ac_abs_top_builddir=$ac_pwd
20196 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20197 # for backward compatibility:
20198 ac_top_builddir=$ac_top_build_prefix
20201 .) # We are building in place.
20203 ac_top_srcdir=$ac_top_builddir_sub
20204 ac_abs_top_srcdir=$ac_pwd ;;
20205 [\\/]* | ?:[\\/]* ) # Absolute name.
20206 ac_srcdir=$srcdir$ac_dir_suffix;
20207 ac_top_srcdir=$srcdir
20208 ac_abs_top_srcdir=$srcdir ;;
20209 *) # Relative name.
20210 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20211 ac_top_srcdir=$ac_top_build_prefix$srcdir
20212 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20214 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20224 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20225 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20227 ac_MKDIR_P=$MKDIR_P
20229 [\\/$]* | ?:[\\/]* ) ;;
20230 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20235 # If the template does not know about datarootdir, expand it.
20236 # FIXME: This hack should be removed a few years after 2.60.
20237 ac_datarootdir_hack=; ac_datarootdir_seen=
20248 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20249 *datarootdir*) ac_datarootdir_seen=yes;;
20250 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20252 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20255 ac_datarootdir_hack='
20256 s&@datadir@&$datadir&g
20257 s&@docdir@&$docdir&g
20258 s&@infodir@&$infodir&g
20259 s&@localedir@&$localedir&g
20260 s&@mandir@&$mandir&g
20261 s&\\\${datarootdir}&$datarootdir&g' ;;
20265 # Neutralize VPATH when `$srcdir' = `.'.
20266 # Shell code in configure.ac might set extrasub.
20267 # FIXME: do we really want to maintain this feature?
20268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20269 ac_sed_extra="$ac_vpsub
20272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20275 s|@configure_input@|$ac_sed_conf_input|;t t
20276 s&@top_builddir@&$ac_top_builddir_sub&;t t
20277 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20278 s&@srcdir@&$ac_srcdir&;t t
20279 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20280 s&@top_srcdir@&$ac_top_srcdir&;t t
20281 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20282 s&@builddir@&$ac_builddir&;t t
20283 s&@abs_builddir@&$ac_abs_builddir&;t t
20284 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20285 s&@INSTALL@&$ac_INSTALL&;t t
20286 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20287 $ac_datarootdir_hack
20289 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20290 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20293 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20294 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20295 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20297 which seems to be undefined. Please make sure it is defined" >&5
20298 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20299 which seems to be undefined. Please make sure it is defined" >&2;}
20301 rm -f "$ac_tmp/stdin"
20303 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20304 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20312 if test x"$ac_file" != x-; then
20314 $as_echo "/* $configure_input */" \
20315 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20316 } >"$ac_tmp/config.h" \
20317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20318 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20320 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20323 mv "$ac_tmp/config.h" "$ac_file" \
20324 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20327 $as_echo "/* $configure_input */" \
20328 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20329 || as_fn_error $? "could not create -" "$LINENO" 5
20331 # Compute "$ac_file"'s index in $config_headers.
20334 for _am_header in $config_headers :; do
20335 case $_am_header in
20336 $_am_arg | $_am_arg:* )
20339 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20342 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20343 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20344 X"$_am_arg" : 'X\(//\)[^/]' \| \
20345 X"$_am_arg" : 'X\(//\)$' \| \
20346 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20347 $as_echo X"$_am_arg" |
20348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20352 /^X\(\/\/\)[^/].*/{
20364 s/.*/./; q'`/stamp-h$_am_stamp_count
20367 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20368 $as_echo "$as_me: executing $ac_file commands" >&6;}
20373 case $ac_file$ac_mode in
20374 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20375 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20376 # are listed without --file. Let's play safe and only enable the eval
20377 # if we detect the quoting.
20378 case $CONFIG_FILES in
20379 *\'*) eval set x "$CONFIG_FILES" ;;
20380 *) set x $CONFIG_FILES ;;
20385 # Strip MF so we end up with the name of the file.
20386 mf=`echo "$mf" | sed -e 's/:.*$//'`
20387 # Check whether this is an Automake generated Makefile or not.
20388 # We used to match only the files named `Makefile.in', but
20389 # some people rename them; so instead we look at the file content.
20390 # Grep'ing the first line is not enough: some people post-process
20391 # each Makefile.in and add a new line on top of each file to say so.
20392 # Grep'ing the whole file is not good either: AIX grep has a line
20393 # limit of 2048, but all sed's we know have understand at least 4000.
20394 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20395 dirpart=`$as_dirname -- "$mf" ||
20396 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20397 X"$mf" : 'X\(//\)[^/]' \| \
20398 X"$mf" : 'X\(//\)$' \| \
20399 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20405 /^X\(\/\/\)[^/].*/{
20421 # Extract the definition of DEPDIR, am__include, and am__quote
20422 # from the Makefile without running `make'.
20423 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20424 test -z "$DEPDIR" && continue
20425 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20426 test -z "am__include" && continue
20427 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20428 # When using ansi2knr, U may be empty or an underscore; expand it
20429 U=`sed -n 's/^U = //p' < "$mf"`
20430 # Find all dependency output files, they are included files with
20431 # $(DEPDIR) in their names. We invoke sed twice because it is the
20432 # simplest approach to changing $(DEPDIR) to its actual value in the
20434 for file in `sed -n "
20435 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20436 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20437 # Make sure the directory exists.
20438 test -f "$dirpart/$file" && continue
20439 fdir=`$as_dirname -- "$file" ||
20440 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20441 X"$file" : 'X\(//\)[^/]' \| \
20442 X"$file" : 'X\(//\)$' \| \
20443 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20444 $as_echo X"$file" |
20445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20449 /^X\(\/\/\)[^/].*/{
20462 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20463 # echo "creating $dirpart/$file"
20464 echo '# dummy' > "$dirpart/$file"
20471 # See if we are running on zsh, and set the options which allow our
20472 # commands through without removal of \ escapes.
20473 if test -n "${ZSH_VERSION+set}" ; then
20474 setopt NO_GLOB_SUBST
20477 cfgfile="${ofile}T"
20478 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20481 cat <<_LT_EOF >> "$cfgfile"
20484 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20485 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20487 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20489 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20490 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
20492 # Written by Gordon Matzigkeit, 1996
20494 # This file is part of GNU Libtool.
20496 # GNU Libtool is free software; you can redistribute it and/or
20497 # modify it under the terms of the GNU General Public License as
20498 # published by the Free Software Foundation; either version 2 of
20499 # the License, or (at your option) any later version.
20501 # As a special exception to the GNU General Public License,
20502 # if you distribute this file as part of a program or library that
20503 # is built using GNU Libtool, you may include this file under the
20504 # same distribution terms that you use for the rest of that program.
20506 # GNU Libtool is distributed in the hope that it will be useful,
20507 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20508 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20509 # GNU General Public License for more details.
20511 # You should have received a copy of the GNU General Public License
20512 # along with GNU Libtool; see the file COPYING. If not, a copy
20513 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20514 # obtained by writing to the Free Software Foundation, Inc.,
20515 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20518 # The names of the tagged configurations supported by this script.
20521 # ### BEGIN LIBTOOL CONFIG
20523 # Which release of libtool.m4 was used?
20524 macro_version=$macro_version
20525 macro_revision=$macro_revision
20527 # Whether or not to build shared libraries.
20528 build_libtool_libs=$enable_shared
20530 # Whether or not to build static libraries.
20531 build_old_libs=$enable_static
20533 # What type of objects to build.
20536 # Whether or not to optimize for fast installation.
20537 fast_install=$enable_fast_install
20539 # Shell to use when invoking shell scripts.
20542 # An echo program that protects backslashes.
20546 host_alias=$host_alias
20550 # The build system.
20551 build_alias=$build_alias
20555 # A sed program that does not truncate output.
20558 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20559 Xsed="\$SED -e 1s/^X//"
20561 # A grep program that handles long lines.
20567 # A literal string matcher.
20570 # A BSD- or MS-compatible name lister.
20573 # Whether we need soft or hard links.
20576 # What is the maximum length of a command?
20577 max_cmd_len=$max_cmd_len
20579 # Object file audit (normally "o").
20582 # Executable file audit (normally "").
20585 # whether the shell understands "unset".
20588 # turn spaces into newlines.
20591 # turn newlines into spaces.
20594 # convert \$build file names to \$host format.
20595 to_host_file_cmd=$lt_cv_to_host_file_cmd
20597 # convert \$build files to toolchain format.
20598 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20600 # An object symbol dumper.
20601 OBJDUMP=$lt_OBJDUMP
20603 # Method to check whether dependent libraries are shared objects.
20604 deplibs_check_method=$lt_deplibs_check_method
20606 # Command to use when deplibs_check_method = "file_magic".
20607 file_magic_cmd=$lt_file_magic_cmd
20609 # How to find potential files when deplibs_check_method = "file_magic".
20610 file_magic_glob=$lt_file_magic_glob
20612 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20613 want_nocaseglob=$lt_want_nocaseglob
20615 # DLL creation program.
20616 DLLTOOL=$lt_DLLTOOL
20618 # Command to associate shared and link libraries.
20619 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20624 # Flags to create an archive.
20625 AR_FLAGS=$lt_AR_FLAGS
20627 # How to feed a file listing to the archiver.
20628 archiver_list_spec=$lt_archiver_list_spec
20630 # A symbol stripping program.
20633 # Commands used to install an old-style archive.
20635 old_postinstall_cmds=$lt_old_postinstall_cmds
20636 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20638 # Whether to use a lock for old archive extraction.
20639 lock_old_archive_extraction=$lock_old_archive_extraction
20644 # LTCC compiler flags.
20645 LTCFLAGS=$lt_CFLAGS
20647 # Take the output of nm and produce a listing of raw symbols and C names.
20648 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20650 # Transform the output of nm in a proper C declaration.
20651 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20653 # Transform the output of nm in a C name address pair.
20654 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20656 # Transform the output of nm in a C name address pair when lib prefix is needed.
20657 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20659 # Specify filename containing input files for \$NM.
20660 nm_file_list_spec=$lt_nm_file_list_spec
20662 # The root where to search for dependent libraries,and in which our libraries should be installed.
20663 lt_sysroot=$lt_sysroot
20665 # The name of the directory that contains temporary libtool files.
20668 # Used to examine libraries when file_magic_cmd begins with "file".
20669 MAGIC_CMD=$MAGIC_CMD
20671 # Must we lock files when doing compilation?
20672 need_locks=$lt_need_locks
20675 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20677 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20678 DSYMUTIL=$lt_DSYMUTIL
20680 # Tool to change global to local symbols on Mac OS X.
20683 # Tool to manipulate fat objects and archives on Mac OS X.
20686 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20689 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20690 OTOOL64=$lt_OTOOL64
20692 # Old archive audit (normally "a").
20695 # Shared library audit (normally ".so").
20696 shrext_cmds=$lt_shrext_cmds
20698 # The commands to extract the exported symbol list from a shared archive.
20699 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20701 # Variables whose values should be saved in libtool wrapper scripts and
20702 # restored at link time.
20703 variables_saved_for_relink=$lt_variables_saved_for_relink
20705 # Do we need the "lib" prefix for modules?
20706 need_lib_prefix=$need_lib_prefix
20708 # Do we need a version for libraries?
20709 need_version=$need_version
20711 # Library versioning type.
20712 version_type=$version_type
20714 # Shared library runtime path variable.
20715 runpath_var=$runpath_var
20717 # Shared library path variable.
20718 shlibpath_var=$shlibpath_var
20720 # Is shlibpath searched before the hard-coded library search path?
20721 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20723 # Format of library name prefix.
20724 libname_spec=$lt_libname_spec
20726 # List of archive names. First name is the real one, the rest are links.
20727 # The last name is the one that the linker finds with -lNAME
20728 library_names_spec=$lt_library_names_spec
20730 # The coded name of the library, if different from the real name.
20731 soname_spec=$lt_soname_spec
20733 # Permission mode override for installation of shared libraries.
20734 install_override_mode=$lt_install_override_mode
20736 # Command to use after installation of a shared archive.
20737 postinstall_cmds=$lt_postinstall_cmds
20739 # Command to use after uninstallation of a shared archive.
20740 postuninstall_cmds=$lt_postuninstall_cmds
20742 # Commands used to finish a libtool library installation in a directory.
20743 finish_cmds=$lt_finish_cmds
20745 # As "finish_cmds", except a single script fragment to be evaled but
20747 finish_eval=$lt_finish_eval
20749 # Whether we should hardcode library paths into libraries.
20750 hardcode_into_libs=$hardcode_into_libs
20752 # Compile-time system search path for libraries.
20753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20755 # Run-time system search path for libraries.
20756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20758 # Whether dlopen is supported.
20759 dlopen_support=$enable_dlopen
20761 # Whether dlopen of programs is supported.
20762 dlopen_self=$enable_dlopen_self
20764 # Whether dlopen of statically linked programs is supported.
20765 dlopen_self_static=$enable_dlopen_self_static
20767 # Commands to strip libraries.
20768 old_striplib=$lt_old_striplib
20769 striplib=$lt_striplib
20772 # The linker used to build libraries.
20775 # How to create reloadable object files.
20776 reload_flag=$lt_reload_flag
20777 reload_cmds=$lt_reload_cmds
20779 # Commands used to build an old-style archive.
20780 old_archive_cmds=$lt_old_archive_cmds
20782 # A language specific compiler.
20785 # Is the compiler the GNU compiler?
20788 # Compiler flag to turn off builtin functions.
20789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20791 # Additional compiler flags for building library objects.
20792 pic_flag=$lt_lt_prog_compiler_pic
20794 # How to pass a linker flag through the compiler.
20795 wl=$lt_lt_prog_compiler_wl
20797 # Compiler flag to prevent dynamic linking.
20798 link_static_flag=$lt_lt_prog_compiler_static
20800 # Does compiler simultaneously support -c and -o options?
20801 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20803 # Whether or not to add -lc for building shared libraries.
20804 build_libtool_need_lc=$archive_cmds_need_lc
20806 # Whether or not to disallow shared libs when runtime libs are static.
20807 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20809 # Compiler flag to allow reflexive dlopens.
20810 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20812 # Compiler flag to generate shared objects directly from archives.
20813 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20815 # Whether the compiler copes with passing no objects directly.
20816 compiler_needs_object=$lt_compiler_needs_object
20818 # Create an old-style archive from a shared archive.
20819 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20821 # Create a temporary old-style archive to link instead of a shared archive.
20822 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20824 # Commands used to build a shared archive.
20825 archive_cmds=$lt_archive_cmds
20826 archive_expsym_cmds=$lt_archive_expsym_cmds
20828 # Commands used to build a loadable module if different from building
20829 # a shared archive.
20830 module_cmds=$lt_module_cmds
20831 module_expsym_cmds=$lt_module_expsym_cmds
20833 # Whether we are building with GNU ld or not.
20834 with_gnu_ld=$lt_with_gnu_ld
20836 # Flag that allows shared libraries with undefined symbols to be built.
20837 allow_undefined_flag=$lt_allow_undefined_flag
20839 # Flag that enforces no undefined symbols.
20840 no_undefined_flag=$lt_no_undefined_flag
20842 # Flag to hardcode \$libdir into a binary during linking.
20843 # This must work even if \$libdir does not exist
20844 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20846 # If ld is used when linking, flag to hardcode \$libdir into a binary
20847 # during linking. This must work even if \$libdir does not exist.
20848 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20850 # Whether we need a single "-rpath" flag with a separated argument.
20851 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20853 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20854 # DIR into the resulting binary.
20855 hardcode_direct=$hardcode_direct
20857 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20858 # DIR into the resulting binary and the resulting library dependency is
20859 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20860 # library is relocated.
20861 hardcode_direct_absolute=$hardcode_direct_absolute
20863 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20864 # into the resulting binary.
20865 hardcode_minus_L=$hardcode_minus_L
20867 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20868 # into the resulting binary.
20869 hardcode_shlibpath_var=$hardcode_shlibpath_var
20871 # Set to "yes" if building a shared library automatically hardcodes DIR
20872 # into the library and all subsequent libraries and executables linked
20874 hardcode_automatic=$hardcode_automatic
20876 # Set to yes if linker adds runtime paths of dependent libraries
20877 # to runtime path list.
20878 inherit_rpath=$inherit_rpath
20880 # Whether libtool must link a program against all its dependency libraries.
20881 link_all_deplibs=$link_all_deplibs
20883 # Set to "yes" if exported symbols are required.
20884 always_export_symbols=$always_export_symbols
20886 # The commands to list exported symbols.
20887 export_symbols_cmds=$lt_export_symbols_cmds
20889 # Symbols that should not be listed in the preloaded symbols.
20890 exclude_expsyms=$lt_exclude_expsyms
20892 # Symbols that must always be exported.
20893 include_expsyms=$lt_include_expsyms
20895 # Commands necessary for linking programs (against libraries) with templates.
20896 prelink_cmds=$lt_prelink_cmds
20898 # Commands necessary for finishing linking programs.
20899 postlink_cmds=$lt_postlink_cmds
20901 # Specify filename containing input files.
20902 file_list_spec=$lt_file_list_spec
20904 # How to hardcode a shared library path into an executable.
20905 hardcode_action=$hardcode_action
20907 # ### END LIBTOOL CONFIG
20913 cat <<\_LT_EOF >> "$cfgfile"
20914 # AIX sometimes has problems with the GCC collect2 program. For some
20915 # reason, if we set the COLLECT_NAMES environment variable, the problems
20916 # vanish in a puff of smoke.
20917 if test "X${COLLECT_NAMES+set}" != Xset; then
20919 export COLLECT_NAMES
20926 ltmain="$ac_aux_dir/ltmain.sh"
20929 # We use sed instead of cat because bash on DJGPP gets confused if
20930 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20931 # text mode, it properly converts lines to CR/LF. This bash problem
20932 # is reportedly fixed, but why not run on old versions too?
20933 sed '$q' "$ltmain" >> "$cfgfile" \
20934 || (rm -f "$cfgfile"; exit 1)
20936 if test x"$xsi_shell" = xyes; then
20937 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20941 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20942 \ * ) func_dirname_result="${3}" ;;\
20944 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20945 && mv -f "$cfgfile.tmp" "$cfgfile" \
20946 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20947 test 0 -eq $? || _lt_function_replace_fail=:
20950 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20953 \ func_basename_result="${1##*/}"\
20954 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20955 && mv -f "$cfgfile.tmp" "$cfgfile" \
20956 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20957 test 0 -eq $? || _lt_function_replace_fail=:
20960 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20961 func_dirname_and_basename ()\
20964 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20965 \ * ) func_dirname_result="${3}" ;;\
20967 \ func_basename_result="${1##*/}"\
20968 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20969 && mv -f "$cfgfile.tmp" "$cfgfile" \
20970 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20971 test 0 -eq $? || _lt_function_replace_fail=:
20974 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20977 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20978 \ # positional parameters, so assign one to ordinary parameter first.\
20979 \ func_stripname_result=${3}\
20980 \ func_stripname_result=${func_stripname_result#"${1}"}\
20981 \ func_stripname_result=${func_stripname_result%"${2}"}\
20982 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20983 && mv -f "$cfgfile.tmp" "$cfgfile" \
20984 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20985 test 0 -eq $? || _lt_function_replace_fail=:
20988 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20989 func_split_long_opt ()\
20991 \ func_split_long_opt_name=${1%%=*}\
20992 \ func_split_long_opt_arg=${1#*=}\
20993 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20994 && mv -f "$cfgfile.tmp" "$cfgfile" \
20995 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20996 test 0 -eq $? || _lt_function_replace_fail=:
20999 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21000 func_split_short_opt ()\
21002 \ func_split_short_opt_arg=${1#??}\
21003 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21004 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21005 && mv -f "$cfgfile.tmp" "$cfgfile" \
21006 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21007 test 0 -eq $? || _lt_function_replace_fail=:
21010 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21014 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21015 \ *) func_lo2o_result=${1} ;;\
21017 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21018 && mv -f "$cfgfile.tmp" "$cfgfile" \
21019 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21020 test 0 -eq $? || _lt_function_replace_fail=:
21023 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21026 func_xform_result=${1%.*}.lo\
21027 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21028 && mv -f "$cfgfile.tmp" "$cfgfile" \
21029 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21030 test 0 -eq $? || _lt_function_replace_fail=:
21033 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21036 func_arith_result=$(( $* ))\
21037 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21038 && mv -f "$cfgfile.tmp" "$cfgfile" \
21039 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21040 test 0 -eq $? || _lt_function_replace_fail=:
21043 sed -e '/^func_len ()$/,/^} # func_len /c\
21046 func_len_result=${#1}\
21047 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21048 && mv -f "$cfgfile.tmp" "$cfgfile" \
21049 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21050 test 0 -eq $? || _lt_function_replace_fail=:
21054 if test x"$lt_shell_append" = xyes; then
21055 sed -e '/^func_append ()$/,/^} # func_append /c\
21058 eval "${1}+=\\${2}"\
21059 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21060 && mv -f "$cfgfile.tmp" "$cfgfile" \
21061 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21062 test 0 -eq $? || _lt_function_replace_fail=:
21065 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21066 func_append_quoted ()\
21068 \ func_quote_for_eval "${2}"\
21069 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21070 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21071 && mv -f "$cfgfile.tmp" "$cfgfile" \
21072 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21073 test 0 -eq $? || _lt_function_replace_fail=:
21076 # Save a `func_append' function call where possible by direct use of '+='
21077 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21078 && mv -f "$cfgfile.tmp" "$cfgfile" \
21079 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21080 test 0 -eq $? || _lt_function_replace_fail=:
21082 # Save a `func_append' function call even when '+=' is not available
21083 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21084 && mv -f "$cfgfile.tmp" "$cfgfile" \
21085 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21086 test 0 -eq $? || _lt_function_replace_fail=:
21089 if test x"$_lt_function_replace_fail" = x":"; then
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21091 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21095 mv -f "$cfgfile" "$ofile" ||
21096 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21101 for ac_file in $CONFIG_FILES; do
21102 # Support "outfile[:infile[:infile...]]"
21104 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21106 # PO directories have a Makefile.in generated from Makefile.in.in.
21107 case "$ac_file" in */Makefile.in)
21108 # Adjust a relative srcdir.
21109 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
21110 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
21111 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
21112 # In autoconf-2.13 it is called $ac_given_srcdir.
21113 # In autoconf-2.50 it is called $srcdir.
21114 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
21115 case "$ac_given_srcdir" in
21116 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
21117 /*) top_srcdir="$ac_given_srcdir" ;;
21118 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
21120 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
21121 rm -f "$ac_dir/POTFILES"
21122 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
21123 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
21124 POMAKEFILEDEPS="POTFILES.in"
21125 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
21126 # on $ac_dir but don't depend on user-specified configuration
21128 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
21129 # The LINGUAS file contains the set of available languages.
21130 if test -n "$OBSOLETE_ALL_LINGUAS"; then
21131 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
21133 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
21134 # Hide the ALL_LINGUAS assigment from automake.
21135 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
21136 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
21138 # The set of available languages was given in configure.in.
21139 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
21142 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
21143 # Compute UPDATEPOFILES
21144 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
21145 # Compute DUMMYPOFILES
21146 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
21148 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
21149 case "$ac_given_srcdir" in
21151 *) srcdirpre='$(srcdir)/' ;;
21157 for lang in $ALL_LINGUAS; do
21158 POFILES="$POFILES $srcdirpre$lang.po"
21159 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
21160 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
21161 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
21163 # CATALOGS depends on both $ac_dir and the user's LINGUAS
21164 # environment variable.
21166 if test -n "$ALL_LINGUAS"; then
21167 for presentlang in $ALL_LINGUAS; do
21169 if test "%UNSET%" != "$LINGUAS"; then
21170 desiredlanguages="$LINGUAS"
21172 desiredlanguages="$ALL_LINGUAS"
21174 for desiredlang in $desiredlanguages; do
21175 # Use the presentlang catalog if desiredlang is
21176 # a. equal to presentlang, or
21177 # b. a variant of presentlang (because in this case,
21178 # presentlang can be used as a fallback for messages
21179 # which are not translated in the desiredlang catalog).
21180 case "$desiredlang" in
21181 "$presentlang"*) useit=yes;;
21184 if test $useit = yes; then
21185 INST_LINGUAS="$INST_LINGUAS $presentlang"
21190 if test -n "$INST_LINGUAS"; then
21191 for lang in $INST_LINGUAS; do
21192 CATALOGS="$CATALOGS $lang.gmo"
21195 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
21196 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
21197 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
21198 if test -f "$f"; then
21200 *.orig | *.bak | *~) ;;
21201 *) cat "$f" >> "$ac_dir/Makefile" ;;
21216 ac_clean_files=$ac_clean_files_save
21218 test $ac_write_fail = 0 ||
21219 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21222 # configure is writing to config.log, and then calls config.status.
21223 # config.status does its own redirection, appending to config.log.
21224 # Unfortunately, on DOS this fails, as config.log is still kept open
21225 # by configure, so config.status won't be able to write to it; its
21226 # output is simply discarded. So we exec the FD to /dev/null,
21227 # effectively closing config.log, so it can be properly (re)opened and
21228 # appended to by config.status. When coming back to configure, we
21229 # need to make the FD available again.
21230 if test "$no_create" != yes; then
21232 ac_config_status_args=
21233 test "$silent" = yes &&
21234 ac_config_status_args="$ac_config_status_args --quiet"
21236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21239 # would make configure fail if this is the last instruction.
21240 $ac_cs_success || as_fn_exit 1
21242 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21244 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}