2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status=$1; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
706 # Factoring default headers for most tests.
707 ac_includes_default="\
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
719 # ifdef HAVE_STDLIB_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
744 ac_subst_vars='am__EXEEXT_FALSE
756 XGETTEXT_EXTRA_OPTIONS
764 GETTEXT_MACRO_VERSION
768 ACCT_TOOLS_SETUID_FALSE
769 ACCT_TOOLS_SETUID_TRUE
777 ENABLE_REGENERATE_MAN_FALSE
778 ENABLE_REGENERATE_MAN_TRUE
786 GROUP_NAME_MAX_LENGTH
818 MAINTAINER_MODE_FALSE
847 INSTALL_STRIP_PROGRAM
889 program_transform_name
902 enable_option_checking
903 enable_dependency_tracking
906 enable_maintainer_mode
914 enable_account_tools_setuid
923 with_group_name_max_length
930 ac_precious_vars='build_alias
943 # Initialize some variables set by options.
945 ac_init_version=false
946 ac_unrecognized_opts=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
957 program_transform_name=s,x,x,
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
1003 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 # Accept the important Cygnus configure options, so we can diagnose typos.
1010 case $ac_dashdash$ac_option in
1014 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1017 bindir=$ac_optarg ;;
1019 -build | --build | --buil | --bui | --bu)
1020 ac_prev=build_alias ;;
1021 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1022 build_alias=$ac_optarg ;;
1024 -cache-file | --cache-file | --cache-fil | --cache-fi \
1025 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1026 ac_prev=cache_file ;;
1027 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1028 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1029 cache_file=$ac_optarg ;;
1031 --config-cache | -C)
1032 cache_file=config.cache ;;
1034 -datadir | --datadir | --datadi | --datad)
1036 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1037 datadir=$ac_optarg ;;
1039 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1040 | --dataroo | --dataro | --datar)
1041 ac_prev=datarootdir ;;
1042 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1043 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1044 datarootdir=$ac_optarg ;;
1046 -disable-* | --disable-*)
1047 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050 as_fn_error $? "invalid feature name: $ac_useropt"
1051 ac_useropt_orig=$ac_useropt
1052 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_$ac_useropt"
1057 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1058 ac_unrecognized_sep=', ';;
1060 eval enable_$ac_useropt=no ;;
1062 -docdir | --docdir | --docdi | --doc | --do)
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1072 -enable-* | --enable-*)
1073 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076 as_fn_error $? "invalid feature name: $ac_useropt"
1077 ac_useropt_orig=$ac_useropt
1078 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1081 "enable_$ac_useropt"
1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1084 ac_unrecognized_sep=', ';;
1086 eval enable_$ac_useropt=\$ac_optarg ;;
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 htmldir=$ac_optarg ;;
1119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1131 -libdir | --libdir | --libdi | --libd)
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1148 -localstatedir | --localstatedir | --localstatedi | --localstated \
1149 | --localstate | --localstat | --localsta | --localst | --locals)
1150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153 localstatedir=$ac_optarg ;;
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1222 -psdir | --psdir | --psdi | --psd | --ps)
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 sbindir=$ac_optarg ;;
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 sharedstatedir=$ac_optarg ;;
1248 -site | --site | --sit)
1250 -site=* | --site=* | --sit=*)
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1277 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error $? "invalid package name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1290 eval with_$ac_useropt=\$ac_optarg ;;
1292 -without-* | --without-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1306 eval with_$ac_useropt=no ;;
1309 # Obsolete; use --with-x.
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1326 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1327 Try \`$0 --help' for more information"
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 case $ac_envvar in #(
1334 '' | [0-9]* | *[!_$as_cr_alnum]* )
1335 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 as_fn_error $? "missing argument to $ac_option"
1356 if test -n "$ac_unrecognized_opts"; then
1357 case $enable_option_checking in
1359 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1360 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364 # Check all directory arguments for consistency.
1365 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1366 datadir sysconfdir sharedstatedir localstatedir includedir \
1367 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1368 libdir localedir mandir
1370 eval ac_val=\$$ac_var
1371 # Remove trailing slashes.
1374 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1375 eval $ac_var=\$ac_val;;
1377 # Be sure to have absolute directory names.
1379 [\\/$]* | ?:[\\/]* ) continue;;
1380 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1382 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1390 target=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used" >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406 test "$silent" = yes && exec 6>/dev/null
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error $? "pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1449 ac_srcdir_defaulted=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking ...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --libdir=DIR object code libraries [EPREFIX/lib]
1524 --includedir=DIR C header files [PREFIX/include]
1525 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1528 --infodir=DIR info documentation [DATAROOTDIR/info]
1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1530 --mandir=DIR man documentation [DATAROOTDIR/man]
1531 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1532 --htmldir=DIR html documentation [DOCDIR]
1533 --dvidir=DIR dvi documentation [DOCDIR]
1534 --pdfdir=DIR pdf documentation [DOCDIR]
1535 --psdir=DIR ps documentation [DOCDIR]
1541 --program-prefix=PREFIX prepend PREFIX to installed program names
1542 --program-suffix=SUFFIX append SUFFIX to installed program names
1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 if test -n "$ac_init_help"; then
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --disable-dependency-tracking speeds up one-time build
1560 --enable-dependency-tracking do not reject slow dependency extractors
1561 --enable-shared[=PKGS] build shared libraries [default=no]
1562 --enable-static[=PKGS] build static libraries [default=yes]
1563 --enable-maintainer-mode enable make rules and dependencies not useful
1564 (and sometimes confusing) to the casual installer
1565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1568 --disable-largefile omit support for large files
1569 --enable-shadowgrp enable shadow group support [default=yes]
1570 --enable-man regenerate roff man pages from Docbook [default=no]
1571 --enable-account-tools-setuid
1572 Install the user and group management tools setuid
1573 and authenticate the callers. This requires
1575 --enable-utmpx enable loggin in utmpx / wtmpx [default=no]
1576 --disable-nls do not use Native Language Support
1577 --disable-rpath do not hardcode runtime library paths
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-pic try to use only PIC/non-PIC objects [default=use
1584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1585 --with-audit use auditing support [default=yes if found]
1586 --with-libpam use libpam for PAM support [default=yes if found]
1587 --with-selinux use SELinux support [default=yes if found]
1588 --with-skey use S/Key support [default=no]
1589 --with-libcrack use libcrack [default=yes if found and if PAM not
1591 --with-sha-crypt allow the SHA256 and SHA512 password encryption
1592 algorithms [default=yes]
1593 --with-nscd enable support for nscd [default=yes]
1594 --with-group-name-max-length
1595 set max group name length [default=16]
1596 --with-xml-catalog=CATALOG
1597 path to xml catalog to use
1598 --with-gnu-ld assume the C compiler uses GNU ld default=no
1599 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1600 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1601 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1602 --without-libintl-prefix don't search for libintl in includedir and libdir
1604 Some influential environment variables:
1605 CC C compiler command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
1609 LIBS libraries to pass to the linker, e.g. -l<library>
1610 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1611 you have headers in a nonstandard directory <include dir>
1613 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1614 the first program found out of: `bison -y', `byacc', `yacc'.
1615 YFLAGS The list of arguments that will be passed by default to $YACC.
1616 This script will default YFLAGS to the empty string to avoid a
1617 default value of `-d' given by some make applications.
1619 Use these variables to override the choices made by `configure' or to help
1620 it to find libraries and programs with nonstandard names/locations.
1622 Report bugs to the package provider.
1627 if test "$ac_init_help" = "recursive"; then
1628 # If there are subdirs, report their specific --help.
1629 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1630 test -d "$ac_dir" ||
1631 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1652 .) # We are building in place.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1676 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1686 generated by GNU Autoconf 2.67
1688 Copyright (C) 2010 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1695 ## ------------------------ ##
1696 ## Autoconf initialization. ##
1697 ## ------------------------ ##
1699 # ac_fn_c_try_compile LINENO
1700 # --------------------------
1701 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_compile ()
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733 as_fn_set_status $ac_retval
1735 } # ac_fn_c_try_compile
1737 # ac_fn_c_try_cpp LINENO
1738 # ----------------------
1739 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } > conftest.i && {
1759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 as_fn_set_status $ac_retval
1774 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1775 # -------------------------------------------------------
1776 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1777 # the include files in INCLUDES and setting the cache variable VAR
1779 ac_fn_c_check_header_mongrel ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if eval "test \"\${$3+set}\"" = set; then :
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval "test \"\${$3+set}\"" = set; then :
1786 $as_echo_n "(cached) " >&6
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1792 # Is the header compilable?
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1794 $as_echo_n "checking $2 usability... " >&6; }
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1800 if ac_fn_c_try_compile "$LINENO"; then :
1801 ac_header_compiler=yes
1803 ac_header_compiler=no
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1807 $as_echo "$ac_header_compiler" >&6; }
1809 # Is the header present?
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1811 $as_echo_n "checking $2 presence... " >&6; }
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1816 if ac_fn_c_try_cpp "$LINENO"; then :
1817 ac_header_preproc=yes
1819 ac_header_preproc=no
1821 rm -f conftest.err conftest.i conftest.$ac_ext
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1823 $as_echo "$ac_header_preproc" >&6; }
1825 # So? What about this header?
1826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1829 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1835 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1837 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1839 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1841 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval "test \"\${$3+set}\"" = set; then :
1849 $as_echo_n "(cached) " >&6
1851 eval "$3=\$ac_header_compiler"
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 } # ac_fn_c_check_header_mongrel
1861 # ac_fn_c_try_run LINENO
1862 # ----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1864 # that executables *can* be run.
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if { { ac_try="$ac_link"
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>&5
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1879 { { case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_try") 2>&5
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; }; }; then :
1891 $as_echo "$as_me: program exited with status $ac_status" >&5
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1895 ac_retval=$ac_status
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 as_fn_set_status $ac_retval
1903 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists and can be compiled using the include files in
1906 # INCLUDES, setting the cache variable VAR accordingly.
1907 ac_fn_c_check_header_compile ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if eval "test \"\${$3+set}\"" = set; then :
1913 $as_echo_n "(cached) " >&6
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1920 if ac_fn_c_try_compile "$LINENO"; then :
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932 } # ac_fn_c_check_header_compile
1934 # ac_fn_c_try_link LINENO
1935 # -----------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 rm -f conftest.$ac_objext conftest$ac_exeext
1941 if { { ac_try="$ac_link"
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_link") 2>conftest.err
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && {
1957 test -z "$ac_c_werror_flag" ||
1958 test ! -s conftest.err
1959 } && test -s conftest$ac_exeext && {
1960 test "$cross_compiling" = yes ||
1961 $as_test_x conftest$ac_exeext
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1970 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972 # interfere with the next link command; also delete a directory that is
1973 # left behind by Apple's compiler. We do this before executing the actions.
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 as_fn_set_status $ac_retval
1978 } # ac_fn_c_try_link
1980 # ac_fn_c_check_func LINENO FUNC VAR
1981 # ----------------------------------
1982 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1983 ac_fn_c_check_func ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval "test \"\${$3+set}\"" = set; then :
1989 $as_echo_n "(cached) " >&6
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1993 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1995 #define $2 innocuous_$2
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $2 (); below.
1999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2000 <limits.h> exists even on freestanding compilers. */
2003 # include <limits.h>
2005 # include <assert.h>
2010 /* Override any GCC internal prototype to avoid an error.
2011 Use char because int might match the return type of a GCC
2012 builtin and then its argument prototype would still apply. */
2017 /* The GNU C library defines this for functions which it implements
2018 to always fail with ENOSYS. Some functions are actually named
2019 something starting with __ and the normal name is an alias. */
2020 #if defined __stub_$2 || defined __stub___$2
2032 if ac_fn_c_try_link "$LINENO"; then :
2037 rm -f core conftest.err conftest.$ac_objext \
2038 conftest$ac_exeext conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045 } # ac_fn_c_check_func
2047 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2048 # -------------------------------------------
2049 # Tests whether TYPE exists after having included INCLUDES, setting cache
2050 # variable VAR accordingly.
2051 ac_fn_c_check_type ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval "test \"\${$3+set}\"" = set; then :
2057 $as_echo_n "(cached) " >&6
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2085 if ac_fn_c_try_compile "$LINENO"; then :
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2099 } # ac_fn_c_check_type
2101 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2102 # ----------------------------------------------------
2103 # Tries to find if the field MEMBER exists in type AGGR, after including
2104 # INCLUDES, setting cache variable VAR accordingly.
2105 ac_fn_c_check_member ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2109 $as_echo_n "checking for $2.$3... " >&6; }
2110 if eval "test \"\${$4+set}\"" = set; then :
2111 $as_echo_n "(cached) " >&6
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2126 if ac_fn_c_try_compile "$LINENO"; then :
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2136 if (sizeof ac_aggr.$3)
2142 if ac_fn_c_try_compile "$LINENO"; then :
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2156 } # ac_fn_c_check_member
2158 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2159 # ---------------------------------------------
2160 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2162 ac_fn_c_check_decl ()
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 as_decl_name=`echo $2|sed 's/ *(.*//'`
2166 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2168 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2169 if eval "test \"\${$3+set}\"" = set; then :
2170 $as_echo_n "(cached) " >&6
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2178 #ifndef $as_decl_name
2180 (void) $as_decl_use;
2182 (void) $as_decl_name;
2190 if ac_fn_c_try_compile "$LINENO"; then :
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2202 } # ac_fn_c_check_decl
2203 cat >config.log <<_ACEOF
2204 This file contains any messages produced by compilers while
2205 running configure, to aid debugging if configure makes a mistake.
2207 It was created by $as_me, which was
2208 generated by GNU Autoconf 2.67. Invocation command line was
2220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2229 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2230 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2233 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2234 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2235 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 $as_echo "PATH: $as_dir"
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2268 ac_must_keep_next=false
2274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276 | -silent | --silent | --silen | --sile | --sil)
2279 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2282 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2284 as_fn_append ac_configure_args1 " '$ac_arg'"
2285 if test $ac_must_keep_next = true; then
2286 ac_must_keep_next=false # Got value, back to normal.
2289 *=* | --config-cache | -C | -disable-* | --disable-* \
2290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292 | -with-* | --with-* | -without-* | --without-* | --x)
2293 case "$ac_configure_args0 " in
2294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2297 -* ) ac_must_keep_next=true ;;
2300 as_fn_append ac_configure_args " '$ac_arg'"
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2308 # When interrupted or exit'd, cleanup temporary files, and complete
2309 # config.log. We remove comments because anyway the quotes in there
2310 # would cause problems or look ugly.
2311 # WARNING: Use '\'' to represent an apostrophe within the trap.
2312 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313 trap 'exit_status=$?
2314 # Save into config.log some information that might help in debugging.
2318 $as_echo "## ---------------- ##
2319 ## Cache variables. ##
2320 ## ---------------- ##"
2322 # The following way of writing the cache mishandles newlines in values,
2324 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2325 eval ac_val=\$$ac_var
2329 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2333 _ | IFS | as_nl) ;; #(
2334 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2335 *) { eval $ac_var=; unset $ac_var;} ;;
2340 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2341 *${as_nl}ac_space=\ *)
2343 "s/'\''/'\''\\\\'\'''\''/g;
2344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2347 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2354 $as_echo "## ----------------- ##
2355 ## Output variables. ##
2356 ## ----------------- ##"
2358 for ac_var in $ac_subst_vars
2360 eval ac_val=\$$ac_var
2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364 $as_echo "$ac_var='\''$ac_val'\''"
2368 if test -n "$ac_subst_files"; then
2369 $as_echo "## ------------------- ##
2370 ## File substitutions. ##
2371 ## ------------------- ##"
2373 for ac_var in $ac_subst_files
2375 eval ac_val=\$$ac_var
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 $as_echo "$ac_var='\''$ac_val'\''"
2384 if test -s confdefs.h; then
2385 $as_echo "## ----------- ##
2392 test "$ac_signal" != 0 &&
2393 $as_echo "$as_me: caught signal $ac_signal"
2394 $as_echo "$as_me: exit $exit_status"
2396 rm -f core *.core core.conftest.* &&
2397 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2400 for ac_signal in 1 2 13 15; do
2401 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2405 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2406 rm -f -r conftest* confdefs.h
2408 $as_echo "/* confdefs.h */" > confdefs.h
2410 # Predefined preprocessor variables.
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_NAME "$PACKAGE_NAME"
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_STRING "$PACKAGE_STRING"
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_URL "$PACKAGE_URL"
2437 # Let the site file select an alternate cache file if it wants to.
2438 # Prefer an explicitly selected file to automatically selected ones.
2441 if test -n "$CONFIG_SITE"; then
2442 # We do not want a PATH search for config.site.
2443 case $CONFIG_SITE in #((
2444 -*) ac_site_file1=./$CONFIG_SITE;;
2445 */*) ac_site_file1=$CONFIG_SITE;;
2446 *) ac_site_file1=./$CONFIG_SITE;;
2448 elif test "x$prefix" != xNONE; then
2449 ac_site_file1=$prefix/share/config.site
2450 ac_site_file2=$prefix/etc/config.site
2452 ac_site_file1=$ac_default_prefix/share/config.site
2453 ac_site_file2=$ac_default_prefix/etc/config.site
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2457 test "x$ac_site_file" = xNONE && continue
2458 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2461 sed 's/^/| /' "$ac_site_file" >&5
2463 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2465 as_fn_error $? "failed to load site script $ac_site_file
2466 See \`config.log' for more details" "$LINENO" 5 ; }
2470 if test -r "$cache_file"; then
2471 # Some versions of bash will fail to source /dev/null (special files
2472 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2473 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475 $as_echo "$as_me: loading cache $cache_file" >&6;}
2477 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2478 *) . "./$cache_file";;
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483 $as_echo "$as_me: creating cache $cache_file" >&6;}
2487 as_fn_append ac_header_list " utime.h"
2488 gt_needs="$gt_needs need-ngettext"
2489 # Check that the precious variables saved in the cache have kept the same
2491 ac_cache_corrupted=false
2492 for ac_var in $ac_precious_vars; do
2493 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2494 eval ac_new_set=\$ac_env_${ac_var}_set
2495 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2496 eval ac_new_val=\$ac_env_${ac_var}_value
2497 case $ac_old_set,$ac_new_set in
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2501 ac_cache_corrupted=: ;;
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2504 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2505 ac_cache_corrupted=: ;;
2508 if test "x$ac_old_val" != "x$ac_new_val"; then
2509 # differences in whitespace do not lead to failure.
2510 ac_old_val_w=`echo x $ac_old_val`
2511 ac_new_val_w=`echo x $ac_new_val`
2512 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2514 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2515 ac_cache_corrupted=:
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2518 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2519 eval $ac_var=\$ac_old_val
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2522 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2524 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2527 # Pass precious variables to config.status.
2528 if test "$ac_new_set" = set; then
2530 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2531 *) ac_arg=$ac_var=$ac_new_val ;;
2533 case " $ac_configure_args " in
2534 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2535 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2539 if $ac_cache_corrupted; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2543 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2544 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2546 ## -------------------- ##
2547 ## Main body of script. ##
2548 ## -------------------- ##
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 am__api_version='1.11'
2560 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2561 if test -f "$ac_dir/install-sh"; then
2563 ac_install_sh="$ac_aux_dir/install-sh -c"
2565 elif test -f "$ac_dir/install.sh"; then
2567 ac_install_sh="$ac_aux_dir/install.sh -c"
2569 elif test -f "$ac_dir/shtool"; then
2571 ac_install_sh="$ac_aux_dir/shtool install -c"
2575 if test -z "$ac_aux_dir"; then
2576 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2579 # These three variables are undocumented and unsupported,
2580 # and are intended to be withdrawn in a future Autoconf release.
2581 # They can cause serious problems if a builder's source tree is in a directory
2582 # whose full name contains unusual characters.
2583 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2584 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2585 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2588 # Find a good install program. We prefer a C program (faster),
2589 # so one script is as good as another. But avoid the broken or
2590 # incompatible versions:
2591 # SysV /etc/install, /usr/sbin/install
2592 # SunOS /usr/etc/install
2593 # IRIX /sbin/install
2595 # AmigaOS /C/install, which installs bootblocks on floppy discs
2596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2599 # OS/2's system install, which has a completely different semantic
2600 # ./install, which can be erroneously created by make from ./install.sh.
2601 # Reject install programs that cannot install multiple files.
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2603 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2604 if test -z "$INSTALL"; then
2605 if test "${ac_cv_path_install+set}" = set; then :
2606 $as_echo_n "(cached) " >&6
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 # Account for people who put trailing slashes in PATH elements.
2614 case $as_dir/ in #((
2615 ./ | .// | /[cC]/* | \
2616 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2617 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2620 # OSF1 and SCO ODT 3.0 have their own names for install.
2621 # Don't use installbsd from OSF since it installs stuff as root
2623 for ac_prog in ginstall scoinst install; do
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2626 if test $ac_prog = install &&
2627 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2628 # AIX install. It has an incompatible calling convention.
2630 elif test $ac_prog = install &&
2631 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2632 # program-specific install script used by HP pwplus--don't use.
2635 rm -rf conftest.one conftest.two conftest.dir
2636 echo one > conftest.one
2637 echo two > conftest.two
2639 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2640 test -s conftest.one && test -s conftest.two &&
2641 test -s conftest.dir/conftest.one &&
2642 test -s conftest.dir/conftest.two
2644 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2657 rm -rf conftest.one conftest.two conftest.dir
2660 if test "${ac_cv_path_install+set}" = set; then
2661 INSTALL=$ac_cv_path_install
2663 # As a last resort, use the slow shell script. Don't cache a
2664 # value for INSTALL within a source directory, because that will
2665 # break other packages using the cache if that directory is
2666 # removed, or if the value is a relative name.
2667 INSTALL=$ac_install_sh
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2671 $as_echo "$INSTALL" >&6; }
2673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2674 # It thinks the first close brace ends the variable substitution.
2675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2682 $as_echo_n "checking whether build environment is sane... " >&6; }
2685 echo timestamp > conftest.file
2686 # Reject unsafe characters in $srcdir or the absolute working directory
2687 # name. Accept space and tab only in the latter.
2691 *[\\\"\#\$\&\'\`$am_lf]*)
2692 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2695 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2696 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2699 # Do `set' in a subshell so we don't clobber the current shell's
2700 # arguments. Must try -L first in case configure is actually a
2701 # symlink; some systems play weird games with the mod time of symlinks
2702 # (eg FreeBSD returns the mod time of the symlink's containing
2705 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2706 if test "$*" = "X"; then
2708 set X `ls -t "$srcdir/configure" conftest.file`
2711 if test "$*" != "X $srcdir/configure conftest.file" \
2712 && test "$*" != "X conftest.file $srcdir/configure"; then
2714 # If neither matched, then we have a broken ls. This can happen
2715 # if, for instance, CONFIG_SHELL is bash and it inherits a
2716 # broken ls alias from the environment. This has actually
2717 # happened. Such a system could not be considered "sane".
2718 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2719 alias in your environment" "$LINENO" 5
2722 test "$2" = conftest.file
2728 as_fn_error $? "newly created file is older than distributed files!
2729 Check your system clock" "$LINENO" 5
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2732 $as_echo "yes" >&6; }
2733 test "$program_prefix" != NONE &&
2734 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2735 # Use a double $ so make ignores it.
2736 test "$program_suffix" != NONE &&
2737 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2738 # Double any \ or $.
2739 # By default was `s,x,x', remove it if useless.
2740 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2741 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2743 # expand $ac_aux_dir to an absolute path
2744 am_aux_dir=`cd $ac_aux_dir && pwd`
2746 if test x"${MISSING+set}" != xset; then
2749 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2751 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2754 # Use eval to expand $SHELL
2755 if eval "$MISSING --run true"; then
2756 am_missing_run="$MISSING --run "
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2760 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2763 if test x"${install_sh}" != xset; then
2766 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2768 install_sh="\${SHELL} $am_aux_dir/install-sh"
2772 # Installed binaries are usually stripped using `strip' when the user
2773 # run `make install-strip'. However `strip' might not be the right
2774 # tool to use in cross-compilation environments, therefore Automake
2775 # will honor the `STRIP' environment variable to overrule this program.
2776 if test "$cross_compiling" != no; then
2777 if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}strip; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if test "${ac_cv_prog_STRIP+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2785 if test -n "$STRIP"; then
2786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 STRIP=$ac_cv_prog_STRIP
2806 if test -n "$STRIP"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2808 $as_echo "$STRIP" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2816 if test -z "$ac_cv_prog_STRIP"; then
2818 # Extract the first word of "strip", so it can be a program name with args.
2819 set dummy strip; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$ac_ct_STRIP"; then
2826 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_ac_ct_STRIP="strip"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2846 if test -n "$ac_ct_STRIP"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2848 $as_echo "$ac_ct_STRIP" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2854 if test "x$ac_ct_STRIP" = x; then
2857 case $cross_compiling:$ac_tool_warned in
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2866 STRIP="$ac_cv_prog_STRIP"
2870 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2873 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2874 if test -z "$MKDIR_P"; then
2875 if test "${ac_cv_path_mkdir+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2882 test -z "$as_dir" && as_dir=.
2883 for ac_prog in mkdir gmkdir; do
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2886 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2887 'mkdir (GNU coreutils) '* | \
2888 'mkdir (coreutils) '* | \
2889 'mkdir (fileutils) '4.1*)
2890 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2900 test -d ./--version && rmdir ./--version
2901 if test "${ac_cv_path_mkdir+set}" = set; then
2902 MKDIR_P="$ac_cv_path_mkdir -p"
2904 # As a last resort, use the slow shell script. Don't cache a
2905 # value for MKDIR_P within a source directory, because that will
2906 # break other packages using the cache if that directory is
2907 # removed, or if the value is a relative name.
2908 MKDIR_P="$ac_install_sh -d"
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2912 $as_echo "$MKDIR_P" >&6; }
2916 [\\/$]* | ?:[\\/]*) ;;
2917 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2920 for ac_prog in gawk mawk nawk awk
2922 # Extract the first word of "$ac_prog", so it can be a program name with args.
2923 set dummy $ac_prog; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_AWK+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2929 if test -n "$AWK"; then
2930 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_AWK="$ac_prog"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 if test -n "$AWK"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2952 $as_echo "$AWK" >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2959 test -n "$AWK" && break
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2963 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2965 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2966 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2967 $as_echo_n "(cached) " >&6
2969 cat >conftest.make <<\_ACEOF
2972 @echo '@@@%%%=$(MAKE)=@@@%%%'
2974 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2975 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2977 eval ac_cv_prog_make_${ac_make}_set=yes;;
2979 eval ac_cv_prog_make_${ac_make}_set=no;;
2983 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2985 $as_echo "yes" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 SET_MAKE="MAKE=${MAKE-make}"
2993 rm -rf .tst 2>/dev/null
2994 mkdir .tst 2>/dev/null
2995 if test -d .tst; then
3000 rmdir .tst 2>/dev/null
3002 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3003 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3004 # is not polluted with repeated "-I."
3005 am__isrc=' -I$(srcdir)'
3006 # test to see if srcdir already configured
3007 if test -f $srcdir/config.status; then
3008 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3012 # test whether we have cygpath
3013 if test -z "$CYGPATH_W"; then
3014 if (cygpath --version) >/dev/null 2>/dev/null; then
3015 CYGPATH_W='cygpath -w'
3022 # Define the identity of the package.
3027 cat >>confdefs.h <<_ACEOF
3028 #define PACKAGE "$PACKAGE"
3032 cat >>confdefs.h <<_ACEOF
3033 #define VERSION "$VERSION"
3036 # Some tools Automake needs.
3038 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3041 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3044 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3047 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3050 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3052 # We need awk for the "check" target. The system "awk" is bad on
3054 # Always define AMTAR for backward compatibility.
3056 AMTAR=${AMTAR-"${am_missing_run}tar"}
3058 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3064 ac_config_headers="$ac_config_headers config.h"
3067 test "$prefix" = "NONE" && prefix="/usr"
3068 test "$prefix" = "/usr" && exec_prefix=""
3070 DEPDIR="${am__leading_dot}deps"
3072 ac_config_commands="$ac_config_commands depfiles"
3075 am_make=${MAKE-make}
3076 cat > confinc << 'END'
3078 @echo this is the am__doit target
3081 # If we don't find an include directive, just comment out the code.
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3083 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3087 # First try GNU make style include.
3088 echo "include confinc" > confmf
3089 # Ignore all kinds of additional output from `make'.
3090 case `$am_make -s -f confmf 2> /dev/null` in #(
3091 *the\ am__doit\ target*)
3097 # Now try BSD make style include.
3098 if test "$am__include" = "#"; then
3099 echo '.include "confinc"' > confmf
3100 case `$am_make -s -f confmf 2> /dev/null` in #(
3101 *the\ am__doit\ target*)
3102 am__include=.include
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3111 $as_echo "$_am_result" >&6; }
3112 rm -f confinc confmf
3114 # Check whether --enable-dependency-tracking was given.
3115 if test "${enable_dependency_tracking+set}" = set; then :
3116 enableval=$enable_dependency_tracking;
3119 if test "x$enable_dependency_tracking" != xno; then
3120 am_depcomp="$ac_aux_dir/depcomp"
3123 if test "x$enable_dependency_tracking" != xno; then
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_CC+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3176 if test -z "$ac_cv_prog_CC"; then
3178 # Extract the first word of "gcc", so it can be a program name with args.
3179 set dummy gcc; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
3185 if test -n "$ac_ct_CC"; then
3186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3195 ac_cv_prog_ac_ct_CC="gcc"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3206 if test -n "$ac_ct_CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3208 $as_echo "$ac_ct_CC" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3214 if test "x$ac_ct_CC" = x; then
3217 case $cross_compiling:$ac_tool_warned in
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3229 if test -z "$CC"; then
3230 if test -n "$ac_tool_prefix"; then
3231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3232 set dummy ${ac_tool_prefix}cc; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if test "${ac_cv_prog_CC+set}" = set; then :
3236 $as_echo_n "(cached) " >&6
3238 if test -n "$CC"; then
3239 ac_cv_prog_CC="$CC" # Let the user override the test.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248 ac_cv_prog_CC="${ac_tool_prefix}cc"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259 if test -n "$CC"; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3270 if test -z "$CC"; then
3271 # Extract the first word of "cc", so it can be a program name with args.
3272 set dummy cc; ac_word=$2
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274 $as_echo_n "checking for $ac_word... " >&6; }
3275 if test "${ac_cv_prog_CC+set}" = set; then :
3276 $as_echo_n "(cached) " >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3286 test -z "$as_dir" && as_dir=.
3287 for ac_exec_ext in '' $ac_executable_extensions; do
3288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3290 ac_prog_rejected=yes
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 if test $ac_prog_rejected = yes; then
3302 # We found a bogon in the path, so make sure we never use it.
3303 set dummy $ac_cv_prog_CC
3305 if test $# != 0; then
3306 # We chose a different compiler from the bogus one.
3307 # However, it has the same basename, so the bogon will be chosen
3308 # first if we set CC to just the basename; use the full file name.
3310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3326 if test -z "$CC"; then
3327 if test -n "$ac_tool_prefix"; then
3328 for ac_prog in cl.exe
3330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if test "${ac_cv_prog_CC+set}" = set; then :
3335 $as_echo_n "(cached) " >&6
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3367 test -n "$CC" && break
3370 if test -z "$CC"; then
3372 for ac_prog in cl.exe
3374 # Extract the first word of "$ac_prog", so it can be a program name with args.
3375 set dummy $ac_prog; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
3381 if test -n "$ac_ct_CC"; then
3382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_ac_ct_CC="$ac_prog"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3402 if test -n "$ac_ct_CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3404 $as_echo "$ac_ct_CC" >&6; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3411 test -n "$ac_ct_CC" && break
3414 if test "x$ac_ct_CC" = x; then
3417 case $cross_compiling:$ac_tool_warned in
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned=yes ;;
3430 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "no acceptable C compiler found in \$PATH
3433 See \`config.log' for more details" "$LINENO" 5 ; }
3435 # Provide some information about the compiler.
3436 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3439 for ac_option in --version -v -V -qversion; do
3440 { { ac_try="$ac_compiler $ac_option >&5"
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3449 if test -s conftest.err; then
3451 ... rest of stderr output deleted ...
3452 10q' conftest.err >conftest.er1
3453 cat conftest.er1 >&5
3455 rm -f conftest.er1 conftest.err
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h. */
3471 ac_clean_files_save=$ac_clean_files
3472 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3473 # Try to create an executable without -o first, disregard a.out.
3474 # It will help us diagnose broken compilers, and finding out an intuition
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3477 $as_echo_n "checking whether the C compiler works... " >&6; }
3478 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3480 # The possible output files:
3481 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3484 for ac_file in $ac_files
3487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3493 if { { ac_try="$ac_link_default"
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499 $as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_link_default") 2>&5
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; then :
3504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3505 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3506 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3507 # so that the user can short-circuit this test for compilers unknown to
3509 for ac_file in $ac_files ''
3511 test -f "$ac_file" || continue
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3516 # We found the default executable, but exeext='' is most
3520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524 # We set ac_cv_exeext here because the later test for it is not
3525 # safe: cross compilers may not add the suffix if given an `-o'
3526 # argument, so we may need to know it at that point already.
3527 # Even if this section looks crufty: it has the advantage of
3534 test "$ac_cv_exeext" = no && ac_cv_exeext=
3539 if test -z "$ac_file"; then :
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error 77 "C compiler cannot create executables
3548 See \`config.log' for more details" "$LINENO" 5 ; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3551 $as_echo "yes" >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3554 $as_echo_n "checking for C compiler default output file name... " >&6; }
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3556 $as_echo "$ac_file" >&6; }
3557 ac_exeext=$ac_cv_exeext
3559 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3560 ac_clean_files=$ac_clean_files_save
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3562 $as_echo_n "checking for suffix of executables... " >&6; }
3563 if { { ac_try="$ac_link"
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_link") 2>&5
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }; then :
3574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3575 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3576 # work properly (i.e., refer to `conftest.exe'), while it won't with
3578 for ac_file in conftest.exe conftest conftest.*; do
3579 test -f "$ac_file" || continue
3581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3591 See \`config.log' for more details" "$LINENO" 5 ; }
3593 rm -f conftest conftest$ac_cv_exeext
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3595 $as_echo "$ac_cv_exeext" >&6; }
3597 rm -f conftest.$ac_ext
3598 EXEEXT=$ac_cv_exeext
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3606 FILE *f = fopen ("conftest.out", "w");
3607 return ferror (f) || fclose (f) != 0;
3613 ac_clean_files="$ac_clean_files conftest.out"
3614 # Check that the compiler produces executables we can run. If not, either
3615 # the compiler is broken, or we cross compile.
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3617 $as_echo_n "checking whether we are cross compiling... " >&6; }
3618 if test "$cross_compiling" != yes; then
3619 { { ac_try="$ac_link"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_link") 2>&5
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }
3630 if { ac_try='./conftest$ac_cv_exeext'
3631 { { case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_try") 2>&5
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }; }; then
3643 if test "$cross_compiling" = maybe; then
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "cannot run C compiled programs.
3649 If you meant to cross compile, use \`--host'.
3650 See \`config.log' for more details" "$LINENO" 5 ; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3655 $as_echo "$cross_compiling" >&6; }
3657 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3658 ac_clean_files=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if test "${ac_cv_objext+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try="$ac_compile"
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compile") 2>&5
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 for ac_file in conftest.o conftest.obj conftest.*; do
3688 test -f "$ac_file" || continue;
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error $? "cannot compute suffix of object files: cannot compile
3702 See \`config.log' for more details" "$LINENO" 5 ; }
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3729 if ac_fn_c_try_compile "$LINENO"; then :
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if test "${ac_cv_prog_cc_g+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3752 ac_save_c_werror_flag=$ac_c_werror_flag
3753 ac_c_werror_flag=yes
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3767 if ac_fn_c_try_compile "$LINENO"; then :
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3782 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_c_werror_flag=$ac_save_c_werror_flag
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3798 if ac_fn_c_try_compile "$LINENO"; then :
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3819 if test "$GCC" = yes; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3830 ac_cv_prog_cc_c89=no
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3852 s = g (p, va_arg (v,int));
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3888 CC="$ac_save_CC $ac_arg"
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_prog_cc_c89=$ac_arg
3892 rm -f core conftest.err conftest.$ac_objext
3893 test "x$ac_cv_prog_cc_c89" != "xno" && break
3895 rm -f conftest.$ac_ext
3900 case "x$ac_cv_prog_cc_c89" in
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903 $as_echo "none needed" >&6; } ;;
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906 $as_echo "unsupported" >&6; } ;;
3908 CC="$CC $ac_cv_prog_cc_c89"
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3912 if test "x$ac_cv_prog_cc_c89" != xno; then :
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 depcc="$CC" am_compiler_list=
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3925 $as_echo_n "checking dependency style of $depcc... " >&6; }
3926 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
3929 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3930 # We make a subdir and do the tests there. Otherwise we can end up
3931 # making bogus files that we don't know about and never remove. For
3932 # instance it was reported that on HP-UX the gcc test will end up
3933 # making a dummy file named `D' -- because `-MD' means `put the output
3936 # Copy depcomp to subdir because otherwise we won't find it if we're
3937 # using a relative directory.
3938 cp "$am_depcomp" conftest.dir
3940 # We will build objects and dependencies in a subdirectory because
3941 # it helps to detect inapplicable dependency modes. For instance
3942 # both Tru64's cc and ICC support -MD to output dependencies as a
3943 # side effect of compilation, but ICC will put the dependencies in
3944 # the current directory while Tru64 will put them in the object
3948 am_cv_CC_dependencies_compiler_type=none
3949 if test "$am_compiler_list" = ""; then
3950 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3953 case " $depcc " in #(
3954 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3957 for depmode in $am_compiler_list; do
3958 # Setup a source with many dependencies, because some compilers
3959 # like to wrap large dependency lists on column 80 (with \), and
3960 # we should not choose a depcomp mode which is confused by this.
3962 # We need to recreate these files for each test, as the compiler may
3963 # overwrite some of them when testing with obscure command lines.
3964 # This happens at least with the AIX C compiler.
3966 for i in 1 2 3 4 5 6; do
3967 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3968 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3969 # Solaris 8's {/usr,}/bin/sh.
3970 touch sub/conftst$i.h
3972 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3974 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3975 # mode. It turns out that the SunPro C++ compiler does not properly
3976 # handle `-M -o', and we need to detect this. Also, some Intel
3977 # versions had trouble with output in subdirs
3978 am__obj=sub/conftest.${OBJEXT-o}
3979 am__minus_obj="-o $am__obj"
3982 # This depmode causes a compiler race in universal mode.
3983 test "$am__universal" = false || continue
3986 # after this tag, mechanisms are not by side-effect, so they'll
3987 # only be used when explicitly requested
3988 if test "x$enable_dependency_tracking" = xyes; then
3994 msvisualcpp | msvcmsys)
3995 # This compiler won't grok `-c -o', but also, the minuso test has
3996 # not run yet. These depmodes are late enough in the game, and
3997 # so weak that their functioning should not be impacted.
3998 am__obj=conftest.${OBJEXT-o}
4003 if depmode=$depmode \
4004 source=sub/conftest.c object=$am__obj \
4005 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4006 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4007 >/dev/null 2>conftest.err &&
4008 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4009 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4010 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4011 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4012 # icc doesn't choke on unknown options, it will just issue warnings
4013 # or remarks (even with -Werror). So we grep stderr for any message
4014 # that says an option was ignored or not supported.
4015 # When given -MP, icc 7.0 and 7.1 complain thusly:
4016 # icc: Command line warning: ignoring option '-M'; no argument required
4017 # The diagnosis changed in icc 8.0:
4018 # icc: Command line remark: option '-MP' not supported
4019 if (grep 'ignoring option' conftest.err ||
4020 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4021 am_cv_CC_dependencies_compiler_type=$depmode
4030 am_cv_CC_dependencies_compiler_type=none
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4035 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4036 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4039 test "x$enable_dependency_tracking" != xno \
4040 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4042 am__fastdepCC_FALSE='#'
4044 am__fastdepCC_TRUE='#'
4045 am__fastdepCC_FALSE=
4051 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4056 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4057 # On Suns, sometimes $CPP names a directory.
4058 if test -n "$CPP" && test -d "$CPP"; then
4061 if test -z "$CPP"; then
4062 if test "${ac_cv_prog_CPP+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4065 # Double quotes because CPP needs to be expanded
4066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4069 for ac_c_preproc_warn_flag in '' yes
4071 # Use a header file that comes with gcc, so configuring glibc
4072 # with a fresh cross-compiler works.
4073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4074 # <limits.h> exists even on freestanding compilers.
4075 # On the NeXT, cc -E runs the code through the compiler's parser,
4076 # not just through cpp. "Syntax error" is here to catch this case.
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4080 # include <limits.h>
4082 # include <assert.h>
4086 if ac_fn_c_try_cpp "$LINENO"; then :
4089 # Broken: fails on valid input.
4092 rm -f conftest.err conftest.i conftest.$ac_ext
4094 # OK, works on sane cases. Now check whether nonexistent headers
4095 # can be detected and how.
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098 #include <ac_nonexistent.h>
4100 if ac_fn_c_try_cpp "$LINENO"; then :
4101 # Broken: success on invalid input.
4104 # Passes both tests.
4108 rm -f conftest.err conftest.i conftest.$ac_ext
4111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4112 rm -f conftest.i conftest.err conftest.$ac_ext
4113 if $ac_preproc_ok; then :
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4126 $as_echo "$CPP" >&6; }
4128 for ac_c_preproc_warn_flag in '' yes
4130 # Use a header file that comes with gcc, so configuring glibc
4131 # with a fresh cross-compiler works.
4132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4133 # <limits.h> exists even on freestanding compilers.
4134 # On the NeXT, cc -E runs the code through the compiler's parser,
4135 # not just through cpp. "Syntax error" is here to catch this case.
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4139 # include <limits.h>
4141 # include <assert.h>
4145 if ac_fn_c_try_cpp "$LINENO"; then :
4148 # Broken: fails on valid input.
4151 rm -f conftest.err conftest.i conftest.$ac_ext
4153 # OK, works on sane cases. Now check whether nonexistent headers
4154 # can be detected and how.
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #include <ac_nonexistent.h>
4159 if ac_fn_c_try_cpp "$LINENO"; then :
4160 # Broken: success on invalid input.
4163 # Passes both tests.
4167 rm -f conftest.err conftest.i conftest.$ac_ext
4170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4171 rm -f conftest.i conftest.err conftest.$ac_ext
4172 if $ac_preproc_ok; then :
4175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4177 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4178 See \`config.log' for more details" "$LINENO" 5 ; }
4182 ac_cpp='$CPP $CPPFLAGS'
4183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4189 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4190 if test "${ac_cv_path_GREP+set}" = set; then :
4191 $as_echo_n "(cached) " >&6
4193 if test -z "$GREP"; then
4194 ac_path_GREP_found=false
4195 # Loop through the user's path and test for each of PROGNAME-LIST
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4200 test -z "$as_dir" && as_dir=.
4201 for ac_prog in grep ggrep; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4204 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4205 # Check for GNU ac_path_GREP and select it if it is found.
4206 # Check for GNU $ac_path_GREP
4207 case `"$ac_path_GREP" --version 2>&1` in
4209 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4212 $as_echo_n 0123456789 >"conftest.in"
4215 cat "conftest.in" "conftest.in" >"conftest.tmp"
4216 mv "conftest.tmp" "conftest.in"
4217 cp "conftest.in" "conftest.nl"
4218 $as_echo 'GREP' >> "conftest.nl"
4219 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221 as_fn_arith $ac_count + 1 && ac_count=$as_val
4222 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4223 # Best one so far, save it but keep looking for a better one
4224 ac_cv_path_GREP="$ac_path_GREP"
4225 ac_path_GREP_max=$ac_count
4227 # 10*(2^10) chars as input seems more than enough
4228 test $ac_count -gt 10 && break
4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4233 $ac_path_GREP_found && break 3
4238 if test -z "$ac_cv_path_GREP"; then
4239 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4242 ac_cv_path_GREP=$GREP
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4247 $as_echo "$ac_cv_path_GREP" >&6; }
4248 GREP="$ac_cv_path_GREP"
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4252 $as_echo_n "checking for egrep... " >&6; }
4253 if test "${ac_cv_path_EGREP+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4256 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4257 then ac_cv_path_EGREP="$GREP -E"
4259 if test -z "$EGREP"; then
4260 ac_path_EGREP_found=false
4261 # Loop through the user's path and test for each of PROGNAME-LIST
4262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4266 test -z "$as_dir" && as_dir=.
4267 for ac_prog in egrep; do
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4270 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4271 # Check for GNU ac_path_EGREP and select it if it is found.
4272 # Check for GNU $ac_path_EGREP
4273 case `"$ac_path_EGREP" --version 2>&1` in
4275 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4278 $as_echo_n 0123456789 >"conftest.in"
4281 cat "conftest.in" "conftest.in" >"conftest.tmp"
4282 mv "conftest.tmp" "conftest.in"
4283 cp "conftest.in" "conftest.nl"
4284 $as_echo 'EGREP' >> "conftest.nl"
4285 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4287 as_fn_arith $ac_count + 1 && ac_count=$as_val
4288 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4289 # Best one so far, save it but keep looking for a better one
4290 ac_cv_path_EGREP="$ac_path_EGREP"
4291 ac_path_EGREP_max=$ac_count
4293 # 10*(2^10) chars as input seems more than enough
4294 test $ac_count -gt 10 && break
4296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4299 $ac_path_EGREP_found && break 3
4304 if test -z "$ac_cv_path_EGREP"; then
4305 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4308 ac_cv_path_EGREP=$EGREP
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4314 $as_echo "$ac_cv_path_EGREP" >&6; }
4315 EGREP="$ac_cv_path_EGREP"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4319 $as_echo_n "checking for ANSI C header files... " >&6; }
4320 if test "${ac_cv_header_stdc+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4338 if ac_fn_c_try_compile "$LINENO"; then :
4339 ac_cv_header_stdc=yes
4341 ac_cv_header_stdc=no
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 if test $ac_cv_header_stdc = yes; then
4346 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4353 $EGREP "memchr" >/dev/null 2>&1; then :
4356 ac_cv_header_stdc=no
4362 if test $ac_cv_header_stdc = yes; then
4363 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370 $EGREP "free" >/dev/null 2>&1; then :
4373 ac_cv_header_stdc=no
4379 if test $ac_cv_header_stdc = yes; then
4380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4381 if test "$cross_compiling" = yes; then :
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4388 #if ((' ' & 0x0FF) == 0x020)
4389 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4390 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4392 # define ISLOWER(c) \
4393 (('a' <= (c) && (c) <= 'i') \
4394 || ('j' <= (c) && (c) <= 'r') \
4395 || ('s' <= (c) && (c) <= 'z'))
4396 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4399 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4404 for (i = 0; i < 256; i++)
4405 if (XOR (islower (i), ISLOWER (i))
4406 || toupper (i) != TOUPPER (i))
4411 if ac_fn_c_try_run "$LINENO"; then :
4414 ac_cv_header_stdc=no
4416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4417 conftest.$ac_objext conftest.beam conftest.$ac_ext
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4423 $as_echo "$ac_cv_header_stdc" >&6; }
4424 if test $ac_cv_header_stdc = yes; then
4426 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432 inttypes.h stdint.h unistd.h
4434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4437 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4438 cat >>confdefs.h <<_ACEOF
4439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4448 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4449 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4456 if test "$MINIX" = yes; then
4458 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4461 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4464 $as_echo "#define _MINIX 1" >>confdefs.h
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4470 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4471 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4477 # define __EXTENSIONS__ 1
4478 $ac_includes_default
4487 if ac_fn_c_try_compile "$LINENO"; then :
4488 ac_cv_safe_to_define___extensions__=yes
4490 ac_cv_safe_to_define___extensions__=no
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4495 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4496 test $ac_cv_safe_to_define___extensions__ = yes &&
4497 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4499 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4501 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4503 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4505 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4510 # Check whether --enable-shared was given.
4511 if test "${enable_shared+set}" = set; then :
4512 enableval=$enable_shared; p=${PACKAGE-default}
4514 yes) enable_shared=yes ;;
4515 no) enable_shared=no ;;
4518 # Look at the argument we got. We use all the common list separators.
4519 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4520 for pkg in $enableval; do
4522 if test "X$pkg" = "X$p"; then
4541 # Check whether --enable-static was given.
4542 if test "${enable_static+set}" = set; then :
4543 enableval=$enable_static; p=${PACKAGE-default}
4545 yes) enable_static=yes ;;
4546 no) enable_static=no ;;
4549 # Look at the argument we got. We use all the common list separators.
4550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4551 for pkg in $enableval; do
4553 if test "X$pkg" = "X$p"; then
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4575 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4576 # Check whether --enable-maintainer-mode was given.
4577 if test "${enable_maintainer_mode+set}" = set; then :
4578 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4580 USE_MAINTAINER_MODE=no
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4584 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4585 if test $USE_MAINTAINER_MODE = yes; then
4586 MAINTAINER_MODE_TRUE=
4587 MAINTAINER_MODE_FALSE='#'
4589 MAINTAINER_MODE_TRUE='#'
4590 MAINTAINER_MODE_FALSE=
4593 MAINT=$MAINTAINER_MODE_TRUE
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_CC+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4610 if test -n "$CC"; then
4611 ac_cv_prog_CC="$CC" # Let the user override the test.
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 if test -n "$CC"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4633 $as_echo "$CC" >&6; }
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4641 if test -z "$ac_cv_prog_CC"; then
4643 # Extract the first word of "gcc", so it can be a program name with args.
4644 set dummy gcc; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4650 if test -n "$ac_ct_CC"; then
4651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_ac_ct_CC="gcc"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4671 if test -n "$ac_ct_CC"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4673 $as_echo "$ac_ct_CC" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4679 if test "x$ac_ct_CC" = x; then
4682 case $cross_compiling:$ac_tool_warned in
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4694 if test -z "$CC"; then
4695 if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}cc; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_CC+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4703 if test -n "$CC"; then
4704 ac_cv_prog_CC="$CC" # Let the user override the test.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_CC="${ac_tool_prefix}cc"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 if test -n "$CC"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4726 $as_echo "$CC" >&6; }
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4735 if test -z "$CC"; then
4736 # Extract the first word of "cc", so it can be a program name with args.
4737 set dummy cc; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_CC+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4743 if test -n "$CC"; then
4744 ac_cv_prog_CC="$CC" # Let the user override the test.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4755 ac_prog_rejected=yes
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 if test $ac_prog_rejected = yes; then
4767 # We found a bogon in the path, so make sure we never use it.
4768 set dummy $ac_cv_prog_CC
4770 if test $# != 0; then
4771 # We chose a different compiler from the bogus one.
4772 # However, it has the same basename, so the bogon will be chosen
4773 # first if we set CC to just the basename; use the full file name.
4775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4781 if test -n "$CC"; then
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4783 $as_echo "$CC" >&6; }
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4786 $as_echo "no" >&6; }
4791 if test -z "$CC"; then
4792 if test -n "$ac_tool_prefix"; then
4793 for ac_prog in cl.exe
4795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if test "${ac_cv_prog_CC+set}" = set; then :
4800 $as_echo_n "(cached) " >&6
4802 if test -n "$CC"; then
4803 ac_cv_prog_CC="$CC" # Let the user override the test.
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 if test -n "$CC"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4825 $as_echo "$CC" >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4832 test -n "$CC" && break
4835 if test -z "$CC"; then
4837 for ac_prog in cl.exe
4839 # Extract the first word of "$ac_prog", so it can be a program name with args.
4840 set dummy $ac_prog; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4844 $as_echo_n "(cached) " >&6
4846 if test -n "$ac_ct_CC"; then
4847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_prog_ac_ct_CC="$ac_prog"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4867 if test -n "$ac_ct_CC"; then
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4869 $as_echo "$ac_ct_CC" >&6; }
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4876 test -n "$ac_ct_CC" && break
4879 if test "x$ac_ct_CC" = x; then
4882 case $cross_compiling:$ac_tool_warned in
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4886 ac_tool_warned=yes ;;
4895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4897 as_fn_error $? "no acceptable C compiler found in \$PATH
4898 See \`config.log' for more details" "$LINENO" 5 ; }
4900 # Provide some information about the compiler.
4901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4904 for ac_option in --version -v -V -qversion; do
4905 { { ac_try="$ac_compiler $ac_option >&5"
4907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4908 *) ac_try_echo=$ac_try;;
4910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4911 $as_echo "$ac_try_echo"; } >&5
4912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4914 if test -s conftest.err; then
4916 ... rest of stderr output deleted ...
4917 10q' conftest.err >conftest.er1
4918 cat conftest.er1 >&5
4920 rm -f conftest.er1 conftest.err
4921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4922 test $ac_status = 0; }
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4926 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4927 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4944 if ac_fn_c_try_compile "$LINENO"; then :
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4950 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4954 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4955 if test $ac_compiler_gnu = yes; then
4960 ac_test_CFLAGS=${CFLAGS+set}
4961 ac_save_CFLAGS=$CFLAGS
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4963 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4964 if test "${ac_cv_prog_cc_g+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4967 ac_save_c_werror_flag=$ac_c_werror_flag
4968 ac_c_werror_flag=yes
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4982 if ac_fn_c_try_compile "$LINENO"; then :
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4997 if ac_fn_c_try_compile "$LINENO"; then :
5000 ac_c_werror_flag=$ac_save_c_werror_flag
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5013 if ac_fn_c_try_compile "$LINENO"; then :
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 ac_c_werror_flag=$ac_save_c_werror_flag
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5024 $as_echo "$ac_cv_prog_cc_g" >&6; }
5025 if test "$ac_test_CFLAGS" = set; then
5026 CFLAGS=$ac_save_CFLAGS
5027 elif test $ac_cv_prog_cc_g = yes; then
5028 if test "$GCC" = yes; then
5034 if test "$GCC" = yes; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5041 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5042 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5045 ac_cv_prog_cc_c89=no
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5051 #include <sys/types.h>
5052 #include <sys/stat.h>
5053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5054 struct buf { int x; };
5055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5056 static char *e (p, i)
5062 static char *f (char * (*g) (char **, int), char **p, ...)
5067 s = g (p, va_arg (v,int));
5072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5073 function prototypes and stuff, but not '\xHH' hex character constants.
5074 These don't provoke an error unfortunately, instead are silently treated
5075 as 'x'. The following induces an error, until -std is added to get
5076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5077 array size at least. It's necessary to write '\x00'==0 to get something
5078 that's true only with -std. */
5079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5082 inside strings and character constants. */
5084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5086 int test (int i, double x);
5087 struct s1 {int (*f) (int a);};
5088 struct s2 {int (*f) (double a);};
5089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5103 CC="$ac_save_CC $ac_arg"
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 ac_cv_prog_cc_c89=$ac_arg
5107 rm -f core conftest.err conftest.$ac_objext
5108 test "x$ac_cv_prog_cc_c89" != "xno" && break
5110 rm -f conftest.$ac_ext
5115 case "x$ac_cv_prog_cc_c89" in
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5118 $as_echo "none needed" >&6; } ;;
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5121 $as_echo "unsupported" >&6; } ;;
5123 CC="$CC $ac_cv_prog_cc_c89"
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5127 if test "x$ac_cv_prog_cc_c89" != xno; then :
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137 depcc="$CC" am_compiler_list=
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5140 $as_echo_n "checking dependency style of $depcc... " >&6; }
5141 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5142 $as_echo_n "(cached) " >&6
5144 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5145 # We make a subdir and do the tests there. Otherwise we can end up
5146 # making bogus files that we don't know about and never remove. For
5147 # instance it was reported that on HP-UX the gcc test will end up
5148 # making a dummy file named `D' -- because `-MD' means `put the output
5151 # Copy depcomp to subdir because otherwise we won't find it if we're
5152 # using a relative directory.
5153 cp "$am_depcomp" conftest.dir
5155 # We will build objects and dependencies in a subdirectory because
5156 # it helps to detect inapplicable dependency modes. For instance
5157 # both Tru64's cc and ICC support -MD to output dependencies as a
5158 # side effect of compilation, but ICC will put the dependencies in
5159 # the current directory while Tru64 will put them in the object
5163 am_cv_CC_dependencies_compiler_type=none
5164 if test "$am_compiler_list" = ""; then
5165 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5168 case " $depcc " in #(
5169 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5172 for depmode in $am_compiler_list; do
5173 # Setup a source with many dependencies, because some compilers
5174 # like to wrap large dependency lists on column 80 (with \), and
5175 # we should not choose a depcomp mode which is confused by this.
5177 # We need to recreate these files for each test, as the compiler may
5178 # overwrite some of them when testing with obscure command lines.
5179 # This happens at least with the AIX C compiler.
5181 for i in 1 2 3 4 5 6; do
5182 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5183 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5184 # Solaris 8's {/usr,}/bin/sh.
5185 touch sub/conftst$i.h
5187 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5189 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5190 # mode. It turns out that the SunPro C++ compiler does not properly
5191 # handle `-M -o', and we need to detect this. Also, some Intel
5192 # versions had trouble with output in subdirs
5193 am__obj=sub/conftest.${OBJEXT-o}
5194 am__minus_obj="-o $am__obj"
5197 # This depmode causes a compiler race in universal mode.
5198 test "$am__universal" = false || continue
5201 # after this tag, mechanisms are not by side-effect, so they'll
5202 # only be used when explicitly requested
5203 if test "x$enable_dependency_tracking" = xyes; then
5209 msvisualcpp | msvcmsys)
5210 # This compiler won't grok `-c -o', but also, the minuso test has
5211 # not run yet. These depmodes are late enough in the game, and
5212 # so weak that their functioning should not be impacted.
5213 am__obj=conftest.${OBJEXT-o}
5218 if depmode=$depmode \
5219 source=sub/conftest.c object=$am__obj \
5220 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5221 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5222 >/dev/null 2>conftest.err &&
5223 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5224 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5225 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5226 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5227 # icc doesn't choke on unknown options, it will just issue warnings
5228 # or remarks (even with -Werror). So we grep stderr for any message
5229 # that says an option was ignored or not supported.
5230 # When given -MP, icc 7.0 and 7.1 complain thusly:
5231 # icc: Command line warning: ignoring option '-M'; no argument required
5232 # The diagnosis changed in icc 8.0:
5233 # icc: Command line remark: option '-MP' not supported
5234 if (grep 'ignoring option' conftest.err ||
5235 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5236 am_cv_CC_dependencies_compiler_type=$depmode
5245 am_cv_CC_dependencies_compiler_type=none
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5250 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5251 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5254 test "x$enable_dependency_tracking" != xno \
5255 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5257 am__fastdepCC_FALSE='#'
5259 am__fastdepCC_TRUE='#'
5260 am__fastdepCC_FALSE=
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5265 $as_echo_n "checking for library containing strerror... " >&6; }
5266 if test "${ac_cv_search_strerror+set}" = set; then :
5267 $as_echo_n "(cached) " >&6
5269 ac_func_search_save_LIBS=$LIBS
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5273 /* Override any GCC internal prototype to avoid an error.
5274 Use char because int might match the return type of a GCC
5275 builtin and then its argument prototype would still apply. */
5288 for ac_lib in '' cposix; do
5289 if test -z "$ac_lib"; then
5290 ac_res="none required"
5293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5295 if ac_fn_c_try_link "$LINENO"; then :
5296 ac_cv_search_strerror=$ac_res
5298 rm -f core conftest.err conftest.$ac_objext \
5300 if test "${ac_cv_search_strerror+set}" = set; then :
5304 if test "${ac_cv_search_strerror+set}" = set; then :
5307 ac_cv_search_strerror=no
5310 LIBS=$ac_func_search_save_LIBS
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5313 $as_echo "$ac_cv_search_strerror" >&6; }
5314 ac_res=$ac_cv_search_strerror
5315 if test "$ac_res" != no; then :
5316 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5321 $as_echo_n "checking whether ln -s works... " >&6; }
5323 if test "$LN_S" = "ln -s"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5325 $as_echo "yes" >&6; }
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5328 $as_echo "no, using $LN_S" >&6; }
5331 for ac_prog in 'bison -y' byacc
5333 # Extract the first word of "$ac_prog", so it can be a program name with args.
5334 set dummy $ac_prog; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_YACC+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5340 if test -n "$YACC"; then
5341 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_prog_YACC="$ac_prog"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 YACC=$ac_cv_prog_YACC
5361 if test -n "$YACC"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5363 $as_echo "$YACC" >&6; }
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5370 test -n "$YACC" && break
5372 test -n "$YACC" || YACC="yacc"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5375 $as_echo_n "checking for function prototypes... " >&6; }
5376 if test "$ac_cv_prog_cc_c89" != no; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5378 $as_echo "yes" >&6; }
5380 $as_echo "#define PROTOTYPES 1" >>confdefs.h
5383 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5391 if test "$ac_cv_prog_cc_stdc" != no; then
5394 U=_ ANSI2KNR=./ansi2knr
5396 # Ensure some checks needed by ansi2knr itself.
5398 for ac_header in string.h
5400 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5401 if test "x$ac_cv_header_string_h" = x""yes; then :
5402 cat >>confdefs.h <<_ACEOF
5403 #define HAVE_STRING_H 1
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5414 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5419 macro_version='2.2.6b'
5420 macro_revision='1.3017'
5434 ltmain="$ac_aux_dir/ltmain.sh"
5436 # Make sure we can run config.sub.
5437 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5438 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5441 $as_echo_n "checking build system type... " >&6; }
5442 if test "${ac_cv_build+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
5445 ac_build_alias=$build_alias
5446 test "x$ac_build_alias" = x &&
5447 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5448 test "x$ac_build_alias" = x &&
5449 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5450 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5455 $as_echo "$ac_cv_build" >&6; }
5456 case $ac_cv_build in
5458 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5461 ac_save_IFS=$IFS; IFS='-'
5467 # Remember, the first character of IFS is used to create $*,
5468 # except with old shells:
5471 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5475 $as_echo_n "checking host system type... " >&6; }
5476 if test "${ac_cv_host+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5479 if test "x$host_alias" = x; then
5480 ac_cv_host=$ac_cv_build
5482 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5483 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5488 $as_echo "$ac_cv_host" >&6; }
5491 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5494 ac_save_IFS=$IFS; IFS='-'
5500 # Remember, the first character of IFS is used to create $*,
5501 # except with old shells:
5504 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5508 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5509 if test "${ac_cv_path_SED+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5513 for ac_i in 1 2 3 4 5 6 7; do
5514 ac_script="$ac_script$as_nl$ac_script"
5516 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5517 { ac_script=; unset ac_script;}
5518 if test -z "$SED"; then
5519 ac_path_SED_found=false
5520 # Loop through the user's path and test for each of PROGNAME-LIST
5521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir=.
5526 for ac_prog in sed gsed; do
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5529 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5530 # Check for GNU ac_path_SED and select it if it is found.
5531 # Check for GNU $ac_path_SED
5532 case `"$ac_path_SED" --version 2>&1` in
5534 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5537 $as_echo_n 0123456789 >"conftest.in"
5540 cat "conftest.in" "conftest.in" >"conftest.tmp"
5541 mv "conftest.tmp" "conftest.in"
5542 cp "conftest.in" "conftest.nl"
5543 $as_echo '' >> "conftest.nl"
5544 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5546 as_fn_arith $ac_count + 1 && ac_count=$as_val
5547 if test $ac_count -gt ${ac_path_SED_max-0}; then
5548 # Best one so far, save it but keep looking for a better one
5549 ac_cv_path_SED="$ac_path_SED"
5550 ac_path_SED_max=$ac_count
5552 # 10*(2^10) chars as input seems more than enough
5553 test $ac_count -gt 10 && break
5555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5558 $ac_path_SED_found && break 3
5563 if test -z "$ac_cv_path_SED"; then
5564 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5572 $as_echo "$ac_cv_path_SED" >&6; }
5573 SED="$ac_cv_path_SED"
5576 test -z "$SED" && SED=sed
5577 Xsed="$SED -e 1s/^X//"
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5590 $as_echo_n "checking for fgrep... " >&6; }
5591 if test "${ac_cv_path_FGREP+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5594 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5595 then ac_cv_path_FGREP="$GREP -F"
5597 if test -z "$FGREP"; then
5598 ac_path_FGREP_found=false
5599 # Loop through the user's path and test for each of PROGNAME-LIST
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5604 test -z "$as_dir" && as_dir=.
5605 for ac_prog in fgrep; do
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5608 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5609 # Check for GNU ac_path_FGREP and select it if it is found.
5610 # Check for GNU $ac_path_FGREP
5611 case `"$ac_path_FGREP" --version 2>&1` in
5613 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5616 $as_echo_n 0123456789 >"conftest.in"
5619 cat "conftest.in" "conftest.in" >"conftest.tmp"
5620 mv "conftest.tmp" "conftest.in"
5621 cp "conftest.in" "conftest.nl"
5622 $as_echo 'FGREP' >> "conftest.nl"
5623 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5625 as_fn_arith $ac_count + 1 && ac_count=$as_val
5626 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5627 # Best one so far, save it but keep looking for a better one
5628 ac_cv_path_FGREP="$ac_path_FGREP"
5629 ac_path_FGREP_max=$ac_count
5631 # 10*(2^10) chars as input seems more than enough
5632 test $ac_count -gt 10 && break
5634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5637 $ac_path_FGREP_found && break 3
5642 if test -z "$ac_cv_path_FGREP"; then
5643 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5646 ac_cv_path_FGREP=$FGREP
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5652 $as_echo "$ac_cv_path_FGREP" >&6; }
5653 FGREP="$ac_cv_path_FGREP"
5656 test -z "$GREP" && GREP=grep
5676 # Check whether --with-gnu-ld was given.
5677 if test "${with_gnu_ld+set}" = set; then :
5678 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5684 if test "$GCC" = yes; then
5685 # Check if gcc -print-prog-name=ld gives a path.
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5687 $as_echo_n "checking for ld used by $CC... " >&6; }
5690 # gcc leaves a trailing carriage return which upsets mingw
5691 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5693 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5696 # Accept absolute paths.
5698 re_direlt='/[^/][^/]*/\.\./'
5699 # Canonicalize the pathname of ld
5700 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5701 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5702 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5704 test -z "$LD" && LD="$ac_prog"
5707 # If it fails, then pretend we aren't using GCC.
5711 # If it is relative, then search for the first ld in PATH.
5715 elif test "$with_gnu_ld" = yes; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5717 $as_echo_n "checking for GNU ld... " >&6; }
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5720 $as_echo_n "checking for non-GNU ld... " >&6; }
5722 if test "${lt_cv_path_LD+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5725 if test -z "$LD"; then
5726 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5727 for ac_dir in $PATH; do
5729 test -z "$ac_dir" && ac_dir=.
5730 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5731 lt_cv_path_LD="$ac_dir/$ac_prog"
5732 # Check to see if the program is GNU ld. I'd rather use --version,
5733 # but apparently some variants of GNU ld only accept -v.
5734 # Break only if it was the GNU/non-GNU ld that we prefer.
5735 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5736 *GNU* | *'with BFD'*)
5737 test "$with_gnu_ld" != no && break
5740 test "$with_gnu_ld" != yes && break
5747 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5752 if test -n "$LD"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5754 $as_echo "$LD" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5759 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5761 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5762 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5763 $as_echo_n "(cached) " >&6
5765 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5766 case `$LD -v 2>&1 </dev/null` in
5767 *GNU* | *'with BFD'*)
5768 lt_cv_prog_gnu_ld=yes
5771 lt_cv_prog_gnu_ld=no
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5776 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5777 with_gnu_ld=$lt_cv_prog_gnu_ld
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5788 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5789 if test "${lt_cv_path_NM+set}" = set; then :
5790 $as_echo_n "(cached) " >&6
5792 if test -n "$NM"; then
5793 # Let the user override the test.
5796 lt_nm_to_check="${ac_tool_prefix}nm"
5797 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5798 lt_nm_to_check="$lt_nm_to_check nm"
5800 for lt_tmp_nm in $lt_nm_to_check; do
5801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5804 test -z "$ac_dir" && ac_dir=.
5805 tmp_nm="$ac_dir/$lt_tmp_nm"
5806 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5807 # Check to see if the nm accepts a BSD-compat flag.
5808 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5809 # nm: unknown option "B" ignored
5810 # Tru64's nm complains that /dev/null is an invalid object file
5811 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5812 */dev/null* | *'Invalid file or object type'*)
5813 lt_cv_path_NM="$tmp_nm -B"
5817 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5819 lt_cv_path_NM="$tmp_nm -p"
5823 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5824 continue # so that we can try to find one that supports BSD flags
5833 : ${lt_cv_path_NM=no}
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5837 $as_echo "$lt_cv_path_NM" >&6; }
5838 if test "$lt_cv_path_NM" != "no"; then
5841 # Didn't find any BSD compatible name lister, look for dumpbin.
5842 if test -n "$ac_tool_prefix"; then
5843 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5852 if test -n "$DUMPBIN"; then
5853 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 DUMPBIN=$ac_cv_prog_DUMPBIN
5873 if test -n "$DUMPBIN"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5875 $as_echo "$DUMPBIN" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5882 test -n "$DUMPBIN" && break
5885 if test -z "$DUMPBIN"; then
5886 ac_ct_DUMPBIN=$DUMPBIN
5887 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5889 # Extract the first word of "$ac_prog", so it can be a program name with args.
5890 set dummy $ac_prog; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5896 if test -n "$ac_ct_DUMPBIN"; then
5897 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5917 if test -n "$ac_ct_DUMPBIN"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5919 $as_echo "$ac_ct_DUMPBIN" >&6; }
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5926 test -n "$ac_ct_DUMPBIN" && break
5929 if test "x$ac_ct_DUMPBIN" = x; then
5932 case $cross_compiling:$ac_tool_warned in
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5938 DUMPBIN=$ac_ct_DUMPBIN
5943 if test "$DUMPBIN" != ":"; then
5947 test -z "$NM" && NM=nm
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5955 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5956 if test "${lt_cv_nm_interface+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5959 lt_cv_nm_interface="BSD nm"
5960 echo "int some_variable = 0;" > conftest.$ac_ext
5961 (eval echo "\"\$as_me:5961: $ac_compile\"" >&5)
5962 (eval "$ac_compile" 2>conftest.err)
5963 cat conftest.err >&5
5964 (eval echo "\"\$as_me:5964: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5965 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5966 cat conftest.err >&5
5967 (eval echo "\"\$as_me:5967: output\"" >&5)
5968 cat conftest.out >&5
5969 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5970 lt_cv_nm_interface="MS dumpbin"
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5975 $as_echo "$lt_cv_nm_interface" >&6; }
5977 # find the maximum length of command line arguments
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5979 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5980 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5988 # On DJGPP, this test can blow up pretty badly due to problems in libc
5989 # (any single argument exceeding 2000 bytes causes a buffer overrun
5990 # during glob expansion). Even if it were fixed, the result of this
5991 # check would be larger than it should be.
5992 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5996 # Under GNU Hurd, this test is not required because there is
5997 # no limit to the length of command line arguments.
5998 # Libtool will interpret -1 as no limit whatsoever
5999 lt_cv_sys_max_cmd_len=-1;
6002 cygwin* | mingw* | cegcc*)
6003 # On Win9x/ME, this test blows up -- it succeeds, but takes
6004 # about 5 minutes as the teststring grows exponentially.
6005 # Worse, since 9x/ME are not pre-emptively multitasking,
6006 # you end up with a "frozen" computer, even though with patience
6007 # the test eventually succeeds (with a max line length of 256k).
6008 # Instead, let's just punt: use the minimum linelength reported by
6009 # all of the supported platforms: 8192 (on NT/2K/XP).
6010 lt_cv_sys_max_cmd_len=8192;
6014 # On AmigaOS with pdksh, this test takes hours, literally.
6015 # So we just punt and use a minimum line length of 8192.
6016 lt_cv_sys_max_cmd_len=8192;
6019 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6020 # This has been around since 386BSD, at least. Likely further.
6021 if test -x /sbin/sysctl; then
6022 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6023 elif test -x /usr/sbin/sysctl; then
6024 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6026 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6028 # And add a safety zone
6029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6034 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6035 lt_cv_sys_max_cmd_len=196608
6039 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6040 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6041 # nice to cause kernel panics so lets avoid the loop below.
6042 # First set a reasonable default.
6043 lt_cv_sys_max_cmd_len=16384
6045 if test -x /sbin/sysconfig; then
6046 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6047 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6052 lt_cv_sys_max_cmd_len=102400
6054 sysv5* | sco5v6* | sysv4.2uw2*)
6055 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6056 if test -n "$kargmax"; then
6057 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6059 lt_cv_sys_max_cmd_len=32768
6063 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6064 if test -n "$lt_cv_sys_max_cmd_len"; then
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6068 # Make teststring a little bigger before we do anything with it.
6069 # a 1K string should be a reasonable start.
6070 for i in 1 2 3 4 5 6 7 8 ; do
6071 teststring=$teststring$teststring
6073 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6074 # If test is not a shell built-in, we'll probably end up computing a
6075 # maximum length that is only half of the actual maximum length, but
6077 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6078 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6079 test $i != 17 # 1/2 MB should be enough
6082 teststring=$teststring$teststring
6084 # Only check the string length outside the loop.
6085 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6087 # Add a significant safety factor because C++ compilers can tack on
6088 # massive amounts of additional arguments before passing them to the
6089 # linker. It appears as though 1/2 is a usable value.
6090 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6097 if test -n $lt_cv_sys_max_cmd_len ; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6099 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6102 $as_echo "none" >&6; }
6104 max_cmd_len=$lt_cv_sys_max_cmd_len
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6116 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6117 # Try some XSI features
6120 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6122 && eval 'test $(( 1 + 1 )) -eq 2 \
6123 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6126 $as_echo "$xsi_shell" >&6; }
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6130 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6132 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6134 && lt_shell_append=yes
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6136 $as_echo "$lt_shell_append" >&6; }
6139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6149 # test EBCDIC or ASCII
6150 case `echo X|tr X '\101'` in
6151 A) # ASCII based system
6152 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6153 lt_SP2NL='tr \040 \012'
6154 lt_NL2SP='tr \015\012 \040\040'
6156 *) # EBCDIC based system
6157 lt_SP2NL='tr \100 \n'
6158 lt_NL2SP='tr \r\n \100\100'
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6171 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6172 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6175 lt_cv_ld_reload_flag='-r'
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6178 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6179 reload_flag=$lt_cv_ld_reload_flag
6180 case $reload_flag in
6182 *) reload_flag=" $reload_flag" ;;
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187 if test "$GCC" = yes; then
6188 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6190 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6203 if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6211 if test -n "$OBJDUMP"; then
6212 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 OBJDUMP=$ac_cv_prog_OBJDUMP
6232 if test -n "$OBJDUMP"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6234 $as_echo "$OBJDUMP" >&6; }
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6242 if test -z "$ac_cv_prog_OBJDUMP"; then
6243 ac_ct_OBJDUMP=$OBJDUMP
6244 # Extract the first word of "objdump", so it can be a program name with args.
6245 set dummy objdump; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6251 if test -n "$ac_ct_OBJDUMP"; then
6252 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6272 if test -n "$ac_ct_OBJDUMP"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6274 $as_echo "$ac_ct_OBJDUMP" >&6; }
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6280 if test "x$ac_ct_OBJDUMP" = x; then
6283 case $cross_compiling:$ac_tool_warned in
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned=yes ;;
6289 OBJDUMP=$ac_ct_OBJDUMP
6292 OBJDUMP="$ac_cv_prog_OBJDUMP"
6295 test -z "$OBJDUMP" && OBJDUMP=objdump
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6306 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6307 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6308 $as_echo_n "(cached) " >&6
6310 lt_cv_file_magic_cmd='$MAGIC_CMD'
6311 lt_cv_file_magic_test_file=
6312 lt_cv_deplibs_check_method='unknown'
6313 # Need to set the preceding variable on all platforms that support
6314 # interlibrary dependencies.
6315 # 'none' -- dependencies not supported.
6316 # `unknown' -- same as none, but documents that we really don't know.
6317 # 'pass_all' -- all dependencies passed with no checks.
6318 # 'test_compile' -- check by making test program.
6319 # 'file_magic [[regex]]' -- check by looking for files in library path
6320 # which responds to the $file_magic_cmd with a given extended regex.
6321 # If you have `file' or equivalent on your system and you're not sure
6322 # whether `pass_all' will *always* work, you probably want this one.
6326 lt_cv_deplibs_check_method=pass_all
6330 lt_cv_deplibs_check_method=pass_all
6334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6335 lt_cv_file_magic_cmd='/usr/bin/file -L'
6336 lt_cv_file_magic_test_file=/shlib/libc.so
6340 # func_win32_libid is a shell function defined in ltmain.sh
6341 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6342 lt_cv_file_magic_cmd='func_win32_libid'
6346 # Base MSYS/MinGW do not provide the 'file' command needed by
6347 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6348 # unless we find 'file', for example because we are cross-compiling.
6349 if ( file / ) >/dev/null 2>&1; then
6350 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6351 lt_cv_file_magic_cmd='func_win32_libid'
6353 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6354 lt_cv_file_magic_cmd='$OBJDUMP -f'
6359 # use the weaker test based on 'objdump'. See mingw*.
6360 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6361 lt_cv_file_magic_cmd='$OBJDUMP -f'
6364 darwin* | rhapsody*)
6365 lt_cv_deplibs_check_method=pass_all
6368 freebsd* | dragonfly*)
6369 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6372 # Not sure whether the presence of OpenBSD here was a mistake.
6373 # Let's accept both of them until this is cleared up.
6374 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6375 lt_cv_file_magic_cmd=/usr/bin/file
6376 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6380 lt_cv_deplibs_check_method=pass_all
6385 lt_cv_deplibs_check_method=pass_all
6388 hpux10.20* | hpux11*)
6389 lt_cv_file_magic_cmd=/usr/bin/file
6392 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6393 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6396 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6397 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6400 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6401 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6407 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6411 irix5* | irix6* | nonstopux*)
6413 *-32|*"-32 ") libmagic=32-bit;;
6414 *-n32|*"-n32 ") libmagic=N32;;
6415 *-64|*"-64 ") libmagic=64-bit;;
6416 *) libmagic=never-match;;
6418 lt_cv_deplibs_check_method=pass_all
6421 # This must be Linux ELF.
6422 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6423 lt_cv_deplibs_check_method=pass_all
6426 netbsd* | netbsdelf*-gnu)
6427 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6436 lt_cv_file_magic_cmd=/usr/bin/file
6437 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6441 lt_cv_deplibs_check_method=pass_all
6445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6452 osf3* | osf4* | osf5*)
6453 lt_cv_deplibs_check_method=pass_all
6457 lt_cv_deplibs_check_method=pass_all
6461 lt_cv_deplibs_check_method=pass_all
6464 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6465 lt_cv_deplibs_check_method=pass_all
6469 case $host_vendor in
6471 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]'
6472 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6475 lt_cv_deplibs_check_method=pass_all
6478 lt_cv_file_magic_cmd='/bin/file'
6479 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6482 lt_cv_file_magic_cmd='/bin/file'
6483 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6484 lt_cv_file_magic_test_file=/lib/libc.so
6487 lt_cv_deplibs_check_method=pass_all
6490 lt_cv_deplibs_check_method=pass_all
6496 lt_cv_deplibs_check_method=pass_all
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6502 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6503 file_magic_cmd=$lt_cv_file_magic_cmd
6504 deplibs_check_method=$lt_cv_deplibs_check_method
6505 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6518 if test -n "$ac_tool_prefix"; then
6519 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6520 set dummy ${ac_tool_prefix}ar; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if test "${ac_cv_prog_AR+set}" = set; then :
6524 $as_echo_n "(cached) " >&6
6526 if test -n "$AR"; then
6527 ac_cv_prog_AR="$AR" # Let the user override the test.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_prog_AR="${ac_tool_prefix}ar"
6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 if test -n "$AR"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6549 $as_echo "$AR" >&6; }
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552 $as_echo "no" >&6; }
6557 if test -z "$ac_cv_prog_AR"; then
6559 # Extract the first word of "ar", so it can be a program name with args.
6560 set dummy ar; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6564 $as_echo_n "(cached) " >&6
6566 if test -n "$ac_ct_AR"; then
6567 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_prog_ac_ct_AR="ar"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6586 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6587 if test -n "$ac_ct_AR"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6589 $as_echo "$ac_ct_AR" >&6; }
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6595 if test "x$ac_ct_AR" = x; then
6598 case $cross_compiling:$ac_tool_warned in
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6602 ac_tool_warned=yes ;;
6610 test -z "$AR" && AR=ar
6611 test -z "$AR_FLAGS" && AR_FLAGS=cru
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}strip; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if test "${ac_cv_prog_STRIP+set}" = set; then :
6629 $as_echo_n "(cached) " >&6
6631 if test -n "$STRIP"; then
6632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 STRIP=$ac_cv_prog_STRIP
6652 if test -n "$STRIP"; then
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6654 $as_echo "$STRIP" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6662 if test -z "$ac_cv_prog_STRIP"; then
6664 # Extract the first word of "strip", so it can be a program name with args.
6665 set dummy strip; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6669 $as_echo_n "(cached) " >&6
6671 if test -n "$ac_ct_STRIP"; then
6672 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_prog_ac_ct_STRIP="strip"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6692 if test -n "$ac_ct_STRIP"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6694 $as_echo "$ac_ct_STRIP" >&6; }
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6700 if test "x$ac_ct_STRIP" = x; then
6703 case $cross_compiling:$ac_tool_warned in
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6712 STRIP="$ac_cv_prog_STRIP"
6715 test -z "$STRIP" && STRIP=:
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6728 $as_echo_n "(cached) " >&6
6730 if test -n "$RANLIB"; then
6731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 RANLIB=$ac_cv_prog_RANLIB
6751 if test -n "$RANLIB"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6753 $as_echo "$RANLIB" >&6; }
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6761 if test -z "$ac_cv_prog_RANLIB"; then
6762 ac_ct_RANLIB=$RANLIB
6763 # Extract the first word of "ranlib", so it can be a program name with args.
6764 set dummy ranlib; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6768 $as_echo_n "(cached) " >&6
6770 if test -n "$ac_ct_RANLIB"; then
6771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_ac_ct_RANLIB="ranlib"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6791 if test -n "$ac_ct_RANLIB"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6793 $as_echo "$ac_ct_RANLIB" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6799 if test "x$ac_ct_RANLIB" = x; then
6802 case $cross_compiling:$ac_tool_warned in
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6808 RANLIB=$ac_ct_RANLIB
6811 RANLIB="$ac_cv_prog_RANLIB"
6814 test -z "$RANLIB" && RANLIB=:
6821 # Determine commands to create old-style static archives.
6822 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6823 old_postinstall_cmds='chmod 644 $oldlib'
6824 old_postuninstall_cmds=
6826 if test -n "$RANLIB"; then
6829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6835 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6871 # If no C compiler was specified, use CC.
6874 # If no C compiler flags were specified, use CFLAGS.
6875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6877 # Allow CC to be a program name with arguments.
6881 # Check for command to grab the raw symbol name followed by C symbol from nm.
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6883 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6884 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6888 # These are sane defaults that work on at least a few old systems.
6889 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6891 # Character class describing NM global symbol codes.
6892 symcode='[BCDEGRST]'
6894 # Regexp to match symbols that can be accessed directly from C.
6895 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6897 # Define system-specific variables.
6902 cygwin* | mingw* | pw32* | cegcc*)
6903 symcode='[ABCDGISTW]'
6906 if test "$host_cpu" = ia64; then
6907 symcode='[ABCDEGRST]'
6911 symcode='[BCDEGRST]'
6914 symcode='[BCDEGQRST]'
6925 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6933 # If we're using GNU nm, then use its standard symbol codes.
6934 case `$NM -V 2>&1` in
6935 *GNU* | *'with BFD'*)
6936 symcode='[ABCDGIRSTW]' ;;
6939 # Transform an extracted symbol line into a proper C declaration.
6940 # Some systems (esp. on ia64) link data and code symbols differently,
6941 # so use this general approach.
6942 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6944 # Transform an extracted symbol line into symbol name and symbol address
6945 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6946 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'"
6948 # Handle CRLF in mingw tool chain
6952 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6956 # Try without a prefix underscore, then with it.
6957 for ac_symprfx in "" "_"; do
6959 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6960 symxfrm="\\1 $ac_symprfx\\2 \\2"
6962 # Write the raw and C identifiers.
6963 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6964 # Fake it for dumpbin and say T for any non-static function
6965 # and D for any global variable.
6966 # Also find C++ and __fastcall symbols from MSVC++,
6967 # which start with @ or ?.
6968 lt_cv_sys_global_symbol_pipe="$AWK '"\
6969 " {last_section=section; section=\$ 3};"\
6970 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6971 " \$ 0!~/External *\|/{next};"\
6972 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6973 " {if(hide[section]) next};"\
6974 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6975 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6976 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6977 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6978 " ' prfx=^$ac_symprfx"
6980 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6983 # Check to see that the pipe works correctly.
6987 cat > conftest.$ac_ext <<_LT_EOF
6992 void nm_test_func(void);
6993 void nm_test_func(void){}
6997 int main(){nm_test_var='a';nm_test_func();return(0);}
7000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001 (eval $ac_compile) 2>&5
7003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004 test $ac_status = 0; }; then
7005 # Now try to grab the symbols.
7007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7008 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7011 test $ac_status = 0; } && test -s "$nlist"; then
7012 # Try sorting and uniquifying the output.
7013 if sort "$nlist" | uniq > "$nlist"T; then
7014 mv -f "$nlist"T "$nlist"
7019 # Make sure that we snagged all the symbols we need.
7020 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7021 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7022 cat <<_LT_EOF > conftest.$ac_ext
7028 # Now generate the symbol file.
7029 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7031 cat <<_LT_EOF >> conftest.$ac_ext
7033 /* The mapping between symbol names and symbols. */
7038 lt__PROGRAM__LTX_preloaded_symbols[] =
7040 { "@PROGRAM@", (void *) 0 },
7042 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7043 cat <<\_LT_EOF >> conftest.$ac_ext
7047 /* This works around a problem in FreeBSD linker */
7048 #ifdef FREEBSD_WORKAROUND
7049 static const void *lt_preloaded_setup() {
7050 return lt__PROGRAM__LTX_preloaded_symbols;
7058 # Now try linking the two files.
7059 mv conftest.$ac_objext conftstm.$ac_objext
7060 lt_save_LIBS="$LIBS"
7061 lt_save_CFLAGS="$CFLAGS"
7062 LIBS="conftstm.$ac_objext"
7063 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7065 (eval $ac_link) 2>&5
7067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7068 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7071 LIBS="$lt_save_LIBS"
7072 CFLAGS="$lt_save_CFLAGS"
7074 echo "cannot find nm_test_func in $nlist" >&5
7077 echo "cannot find nm_test_var in $nlist" >&5
7080 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7083 echo "$progname: failed program was:" >&5
7084 cat conftest.$ac_ext >&5
7086 rm -rf conftest* conftst*
7088 # Do not use the global_symbol_pipe unless it works.
7089 if test "$pipe_works" = yes; then
7092 lt_cv_sys_global_symbol_pipe=
7098 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7099 lt_cv_sys_global_symbol_to_cdecl=
7101 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7103 $as_echo "failed" >&6; }
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7106 $as_echo "ok" >&6; }
7130 # Check whether --enable-libtool-lock was given.
7131 if test "${enable_libtool_lock+set}" = set; then :
7132 enableval=$enable_libtool_lock;
7135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7137 # Some flags need to be propagated to the compiler or linker for good
7141 # Find out which ABI we are using.
7142 echo 'int i;' > conftest.$ac_ext
7143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7144 (eval $ac_compile) 2>&5
7146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7147 test $ac_status = 0; }; then
7148 case `/usr/bin/file conftest.$ac_objext` in
7160 # Find out which ABI we are using.
7161 echo '#line 7161 "configure"' > conftest.$ac_ext
7162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7163 (eval $ac_compile) 2>&5
7165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7166 test $ac_status = 0; }; then
7167 if test "$lt_cv_prog_gnu_ld" = yes; then
7168 case `/usr/bin/file conftest.$ac_objext` in
7170 LD="${LD-ld} -melf32bsmip"
7173 LD="${LD-ld} -melf32bmipn32"
7176 LD="${LD-ld} -melf64bmip"
7180 case `/usr/bin/file conftest.$ac_objext` in
7196 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7197 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7198 # Find out which ABI we are using.
7199 echo 'int i;' > conftest.$ac_ext
7200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7201 (eval $ac_compile) 2>&5
7203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7204 test $ac_status = 0; }; then
7205 case `/usr/bin/file conftest.o` in
7208 x86_64-*kfreebsd*-gnu)
7209 LD="${LD-ld} -m elf_i386_fbsd"
7212 LD="${LD-ld} -m elf_i386"
7214 ppc64-*linux*|powerpc64-*linux*)
7215 LD="${LD-ld} -m elf32ppclinux"
7218 LD="${LD-ld} -m elf_s390"
7221 LD="${LD-ld} -m elf32_sparc"
7227 x86_64-*kfreebsd*-gnu)
7228 LD="${LD-ld} -m elf_x86_64_fbsd"
7231 LD="${LD-ld} -m elf_x86_64"
7233 ppc*-*linux*|powerpc*-*linux*)
7234 LD="${LD-ld} -m elf64ppc"
7236 s390*-*linux*|s390*-*tpf*)
7237 LD="${LD-ld} -m elf64_s390"
7240 LD="${LD-ld} -m elf64_sparc"
7250 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7251 SAVE_CFLAGS="$CFLAGS"
7252 CFLAGS="$CFLAGS -belf"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7254 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7255 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
7259 ac_cpp='$CPP $CPPFLAGS'
7260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7275 if ac_fn_c_try_link "$LINENO"; then :
7276 lt_cv_cc_needs_belf=yes
7278 lt_cv_cc_needs_belf=no
7280 rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7283 ac_cpp='$CPP $CPPFLAGS'
7284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7290 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7291 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7292 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7293 CFLAGS="$SAVE_CFLAGS"
7297 # Find out which ABI we are using.
7298 echo 'int i;' > conftest.$ac_ext
7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7300 (eval $ac_compile) 2>&5
7302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; }; then
7304 case `/usr/bin/file conftest.o` in
7306 case $lt_cv_prog_gnu_ld in
7307 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7309 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7321 need_locks="$enable_libtool_lock"
7325 rhapsody* | darwin*)
7326 if test -n "$ac_tool_prefix"; then
7327 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7328 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
7334 if test -n "$DSYMUTIL"; then
7335 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7355 if test -n "$DSYMUTIL"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7357 $as_echo "$DSYMUTIL" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7365 if test -z "$ac_cv_prog_DSYMUTIL"; then
7366 ac_ct_DSYMUTIL=$DSYMUTIL
7367 # Extract the first word of "dsymutil", so it can be a program name with args.
7368 set dummy dsymutil; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7372 $as_echo_n "(cached) " >&6
7374 if test -n "$ac_ct_DSYMUTIL"; then
7375 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7395 if test -n "$ac_ct_DSYMUTIL"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7397 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7403 if test "x$ac_ct_DSYMUTIL" = x; then
7406 case $cross_compiling:$ac_tool_warned in
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7410 ac_tool_warned=yes ;;
7412 DSYMUTIL=$ac_ct_DSYMUTIL
7415 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7418 if test -n "$ac_tool_prefix"; then
7419 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7420 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7426 if test -n "$NMEDIT"; then
7427 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7436 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 NMEDIT=$ac_cv_prog_NMEDIT
7447 if test -n "$NMEDIT"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7449 $as_echo "$NMEDIT" >&6; }
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7457 if test -z "$ac_cv_prog_NMEDIT"; then
7458 ac_ct_NMEDIT=$NMEDIT
7459 # Extract the first word of "nmedit", so it can be a program name with args.
7460 set dummy nmedit; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7466 if test -n "$ac_ct_NMEDIT"; then
7467 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7487 if test -n "$ac_ct_NMEDIT"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7489 $as_echo "$ac_ct_NMEDIT" >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7495 if test "x$ac_ct_NMEDIT" = x; then
7498 case $cross_compiling:$ac_tool_warned in
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7502 ac_tool_warned=yes ;;
7504 NMEDIT=$ac_ct_NMEDIT
7507 NMEDIT="$ac_cv_prog_NMEDIT"
7510 if test -n "$ac_tool_prefix"; then
7511 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7512 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if test "${ac_cv_prog_LIPO+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7518 if test -n "$LIPO"; then
7519 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 LIPO=$ac_cv_prog_LIPO
7539 if test -n "$LIPO"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7541 $as_echo "$LIPO" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7549 if test -z "$ac_cv_prog_LIPO"; then
7551 # Extract the first word of "lipo", so it can be a program name with args.
7552 set dummy lipo; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7558 if test -n "$ac_ct_LIPO"; then
7559 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
7567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568 ac_cv_prog_ac_ct_LIPO="lipo"
7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7579 if test -n "$ac_ct_LIPO"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7581 $as_echo "$ac_ct_LIPO" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7587 if test "x$ac_ct_LIPO" = x; then
7590 case $cross_compiling:$ac_tool_warned in
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7594 ac_tool_warned=yes ;;
7599 LIPO="$ac_cv_prog_LIPO"
7602 if test -n "$ac_tool_prefix"; then
7603 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7604 set dummy ${ac_tool_prefix}otool; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
7610 if test -n "$OTOOL"; then
7611 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7620 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 OTOOL=$ac_cv_prog_OTOOL
7631 if test -n "$OTOOL"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7633 $as_echo "$OTOOL" >&6; }
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7641 if test -z "$ac_cv_prog_OTOOL"; then
7643 # Extract the first word of "otool", so it can be a program name with args.
7644 set dummy otool; ac_word=$2
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646 $as_echo_n "checking for $ac_word... " >&6; }
7647 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7648 $as_echo_n "(cached) " >&6
7650 if test -n "$ac_ct_OTOOL"; then
7651 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_prog_ac_ct_OTOOL="otool"
7661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7671 if test -n "$ac_ct_OTOOL"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7673 $as_echo "$ac_ct_OTOOL" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7679 if test "x$ac_ct_OTOOL" = x; then
7682 case $cross_compiling:$ac_tool_warned in
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7686 ac_tool_warned=yes ;;
7691 OTOOL="$ac_cv_prog_OTOOL"
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7700 $as_echo_n "(cached) " >&6
7702 if test -n "$OTOOL64"; then
7703 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 OTOOL64=$ac_cv_prog_OTOOL64
7723 if test -n "$OTOOL64"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7725 $as_echo "$OTOOL64" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7733 if test -z "$ac_cv_prog_OTOOL64"; then
7734 ac_ct_OTOOL64=$OTOOL64
7735 # Extract the first word of "otool64", so it can be a program name with args.
7736 set dummy otool64; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7742 if test -n "$ac_ct_OTOOL64"; then
7743 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752 ac_cv_prog_ac_ct_OTOOL64="otool64"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7763 if test -n "$ac_ct_OTOOL64"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7765 $as_echo "$ac_ct_OTOOL64" >&6; }
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7771 if test "x$ac_ct_OTOOL64" = x; then
7774 case $cross_compiling:$ac_tool_warned in
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778 ac_tool_warned=yes ;;
7780 OTOOL64=$ac_ct_OTOOL64
7783 OTOOL64="$ac_cv_prog_OTOOL64"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7813 $as_echo_n "checking for -single_module linker flag... " >&6; }
7814 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7817 lt_cv_apple_cc_single_mod=no
7818 if test -z "${LT_MULTI_MODULE}"; then
7819 # By default we will add the -single_module flag. You can override
7820 # by either setting the environment variable LT_MULTI_MODULE
7821 # non-empty at configure time, or by adding -multi_module to the
7823 rm -rf libconftest.dylib*
7824 echo "int foo(void){return 1;}" > conftest.c
7825 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7826 -dynamiclib -Wl,-single_module conftest.c" >&5
7827 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7828 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7830 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7831 lt_cv_apple_cc_single_mod=yes
7833 cat conftest.err >&5
7835 rm -rf libconftest.dylib*
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7840 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7842 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7843 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7846 lt_cv_ld_exported_symbols_list=no
7847 save_LDFLAGS=$LDFLAGS
7848 echo "_main" > conftest.sym
7849 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7861 if ac_fn_c_try_link "$LINENO"; then :
7862 lt_cv_ld_exported_symbols_list=yes
7864 lt_cv_ld_exported_symbols_list=no
7866 rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 LDFLAGS="$save_LDFLAGS"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7872 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7874 rhapsody* | darwin1.[012])
7875 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7877 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7878 darwin*) # darwin 5.x on
7879 # if running on 10.5 or later, the deployment target defaults
7880 # to the OS version, if on x86, and 10.4, the deployment
7881 # target defaults to 10.4. Don't you love it?
7882 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7883 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7884 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7886 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7888 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7892 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7893 _lt_dar_single_mod='$single_module'
7895 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7896 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7898 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7900 if test "$DSYMUTIL" != ":"; then
7901 _lt_dsymutil='~$DSYMUTIL $lib || :'
7908 for ac_header in dlfcn.h
7910 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7912 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7913 cat >>confdefs.h <<_ACEOF
7914 #define HAVE_DLFCN_H 1
7936 # Check whether --with-pic was given.
7937 if test "${with_pic+set}" = set; then :
7938 withval=$with_pic; pic_mode="$withval"
7944 test -z "$pic_mode" && pic_mode=default
7952 # Check whether --enable-fast-install was given.
7953 if test "${enable_fast_install+set}" = set; then :
7954 enableval=$enable_fast_install; p=${PACKAGE-default}
7956 yes) enable_fast_install=yes ;;
7957 no) enable_fast_install=no ;;
7959 enable_fast_install=no
7960 # Look at the argument we got. We use all the common list separators.
7961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7962 for pkg in $enableval; do
7964 if test "X$pkg" = "X$p"; then
7965 enable_fast_install=yes
7972 enable_fast_install=yes
7985 # This can be used to rebuild libtool when needed
7986 LIBTOOL_DEPS="$ltmain"
7988 # Always use our own libtool.
7989 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8015 test -z "$LN_S" && LN_S="ln -s"
8030 if test -n "${ZSH_VERSION+set}" ; then
8031 setopt NO_GLOB_SUBST
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8035 $as_echo_n "checking for objdir... " >&6; }
8036 if test "${lt_cv_objdir+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8039 rm -f .libs 2>/dev/null
8040 mkdir .libs 2>/dev/null
8041 if test -d .libs; then
8044 # MS-DOS does not allow filenames that begin with a dot.
8047 rmdir .libs 2>/dev/null
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8050 $as_echo "$lt_cv_objdir" >&6; }
8051 objdir=$lt_cv_objdir
8057 cat >>confdefs.h <<_ACEOF
8058 #define LT_OBJDIR "$lt_cv_objdir/"
8079 # AIX sometimes has problems with the GCC collect2 program. For some
8080 # reason, if we set the COLLECT_NAMES environment variable, the problems
8081 # vanish in a puff of smoke.
8082 if test "X${COLLECT_NAMES+set}" != Xset; then
8084 export COLLECT_NAMES
8089 # Sed substitution that helps us do robust quoting. It backslashifies
8090 # metacharacters that are still active within double-quoted strings.
8091 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8093 # Same as above, but do not quote variable references.
8094 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8096 # Sed substitution to delay expansion of an escaped shell variable in a
8097 # double_quote_subst'ed string.
8098 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8100 # Sed substitution to delay expansion of an escaped single quote.
8101 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8103 # Sed substitution to avoid accidental globbing in evaled expressions
8104 no_glob_subst='s/\*/\\\*/g'
8108 can_build_shared=yes
8110 # All known linkers require a `.a' archive for static linking (except MSVC,
8111 # which needs '.lib').
8114 with_gnu_ld="$lt_cv_prog_gnu_ld"
8117 old_CFLAGS="$CFLAGS"
8119 # Set sane defaults for various variables
8120 test -z "$CC" && CC=cc
8121 test -z "$LTCC" && LTCC=$CC
8122 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8123 test -z "$LD" && LD=ld
8124 test -z "$ac_objext" && ac_objext=o
8126 for cc_temp in $compiler""; do
8128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8134 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8137 # Only perform the check for file, if the check method requires it
8138 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8139 case $deplibs_check_method in
8141 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8143 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8144 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8149 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8152 lt_save_MAGIC_CMD="$MAGIC_CMD"
8153 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8154 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8155 for ac_dir in $ac_dummy; do
8157 test -z "$ac_dir" && ac_dir=.
8158 if test -f $ac_dir/${ac_tool_prefix}file; then
8159 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8160 if test -n "$file_magic_test_file"; then
8161 case $deplibs_check_method in
8163 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8164 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8165 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8166 $EGREP "$file_magic_regex" > /dev/null; then
8171 *** Warning: the command libtool uses to detect shared libraries,
8172 *** $file_magic_cmd, produces output that libtool cannot recognize.
8173 *** The result is that libtool may fail to recognize shared libraries
8174 *** as such. This will affect the creation of libtool libraries that
8175 *** depend on shared libraries, but programs linked with such libtool
8176 *** libraries will work regardless of this problem. Nevertheless, you
8177 *** may want to report the problem to your system manager and/or to
8178 *** bug-libtool@gnu.org
8188 MAGIC_CMD="$lt_save_MAGIC_CMD"
8193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8194 if test -n "$MAGIC_CMD"; then
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8196 $as_echo "$MAGIC_CMD" >&6; }
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8206 if test -z "$lt_cv_path_MAGIC_CMD"; then
8207 if test -n "$ac_tool_prefix"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8209 $as_echo_n "checking for file... " >&6; }
8210 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8218 lt_save_MAGIC_CMD="$MAGIC_CMD"
8219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8221 for ac_dir in $ac_dummy; do
8223 test -z "$ac_dir" && ac_dir=.
8224 if test -f $ac_dir/file; then
8225 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8226 if test -n "$file_magic_test_file"; then
8227 case $deplibs_check_method in
8229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8232 $EGREP "$file_magic_regex" > /dev/null; then
8237 *** Warning: the command libtool uses to detect shared libraries,
8238 *** $file_magic_cmd, produces output that libtool cannot recognize.
8239 *** The result is that libtool may fail to recognize shared libraries
8240 *** as such. This will affect the creation of libtool libraries that
8241 *** depend on shared libraries, but programs linked with such libtool
8242 *** libraries will work regardless of this problem. Nevertheless, you
8243 *** may want to report the problem to your system manager and/or to
8244 *** bug-libtool@gnu.org
8254 MAGIC_CMD="$lt_save_MAGIC_CMD"
8259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260 if test -n "$MAGIC_CMD"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8262 $as_echo "$MAGIC_CMD" >&6; }
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8278 # Use C for the default configuration in the libtool script
8282 ac_cpp='$CPP $CPPFLAGS'
8283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8288 # Source file extension for C test sources.
8291 # Object file extension for compiled C test sources.
8295 # Code to be used in simple compile tests
8296 lt_simple_compile_test_code="int some_variable = 0;"
8298 # Code to be used in simple link tests
8299 lt_simple_link_test_code='int main(){return(0);}'
8307 # If no C compiler was specified, use CC.
8310 # If no C compiler flags were specified, use CFLAGS.
8311 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8313 # Allow CC to be a program name with arguments.
8316 # Save the default compiler, since it gets overwritten when the other
8317 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8318 compiler_DEFAULT=$CC
8320 # save warnings/boilerplate of simple test code
8321 ac_outfile=conftest.$ac_objext
8322 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8323 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8324 _lt_compiler_boilerplate=`cat conftest.err`
8327 ac_outfile=conftest.$ac_objext
8328 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8329 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8330 _lt_linker_boilerplate=`cat conftest.err`
8334 if test -n "$compiler"; then
8336 lt_prog_compiler_no_builtin_flag=
8338 if test "$GCC" = yes; then
8339 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8342 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8343 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8346 lt_cv_prog_compiler_rtti_exceptions=no
8347 ac_outfile=conftest.$ac_objext
8348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349 lt_compiler_flag="-fno-rtti -fno-exceptions"
8350 # Insert the option either (1) after the last *FLAGS variable, or
8351 # (2) before a word containing "conftest.", or (3) at the end.
8352 # Note that $ac_compile itself does not contain backslashes and begins
8353 # with a dollar sign (not a hyphen), so the echo should work correctly.
8354 # The option is referenced via a variable to avoid confusing sed.
8355 lt_compile=`echo "$ac_compile" | $SED \
8356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358 -e 's:$: $lt_compiler_flag:'`
8359 (eval echo "\"\$as_me:8359: $lt_compile\"" >&5)
8360 (eval "$lt_compile" 2>conftest.err)
8362 cat conftest.err >&5
8363 echo "$as_me:8363: \$? = $ac_status" >&5
8364 if (exit $ac_status) && test -s "$ac_outfile"; then
8365 # The compiler can only warn and ignore the option if not recognized
8366 # So say no if there are warnings other than the usual output.
8367 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8370 lt_cv_prog_compiler_rtti_exceptions=yes
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8377 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8379 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8380 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8392 lt_prog_compiler_wl=
8393 lt_prog_compiler_pic=
8394 lt_prog_compiler_static=
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8397 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8399 if test "$GCC" = yes; then
8400 lt_prog_compiler_wl='-Wl,'
8401 lt_prog_compiler_static='-static'
8405 # All AIX code is PIC.
8406 if test "$host_cpu" = ia64; then
8407 # AIX 5 now supports IA64 processor
8408 lt_prog_compiler_static='-Bstatic'
8415 # see comment about AmigaOS4 .so support
8416 lt_prog_compiler_pic='-fPIC'
8419 # FIXME: we need at least 68020 code to build shared libraries, but
8420 # adding the `-m68020' flag to GCC prevents building anything better,
8422 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8428 # PIC is the default for these OSes.
8431 mingw* | cygwin* | pw32* | os2* | cegcc*)
8432 # This hack is so that the source file can tell whether it is being
8433 # built for inclusion in a dll (and should export symbols for example).
8434 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8435 # (--disable-auto-import) libraries
8436 lt_prog_compiler_pic='-DDLL_EXPORT'
8439 darwin* | rhapsody*)
8440 # PIC is the default on this platform
8441 # Common symbols not allowed in MH_DYLIB files
8442 lt_prog_compiler_pic='-fno-common'
8446 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8447 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8448 # sets the default TLS model and affects inlining.
8454 lt_prog_compiler_pic='-fPIC'
8460 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8461 # Instead, we relocate shared libraries at runtime.
8465 # Just because we use GCC doesn't mean we suddenly get shared libraries
8466 # on systems that don't support them.
8467 lt_prog_compiler_can_build_shared=no
8472 # QNX uses GNU C++, but need to define -shared option too, otherwise
8474 lt_prog_compiler_pic='-fPIC -shared'
8478 if test -d /usr/nec; then
8479 lt_prog_compiler_pic=-Kconform_pic
8484 lt_prog_compiler_pic='-fPIC'
8488 # PORTME Check for flag to pass linker flags through the system compiler.
8491 lt_prog_compiler_wl='-Wl,'
8492 if test "$host_cpu" = ia64; then
8493 # AIX 5 now supports IA64 processor
8494 lt_prog_compiler_static='-Bstatic'
8496 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8500 mingw* | cygwin* | pw32* | os2* | cegcc*)
8501 # This hack is so that the source file can tell whether it is being
8502 # built for inclusion in a dll (and should export symbols for example).
8503 lt_prog_compiler_pic='-DDLL_EXPORT'
8506 hpux9* | hpux10* | hpux11*)
8507 lt_prog_compiler_wl='-Wl,'
8508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8515 lt_prog_compiler_pic='+Z'
8518 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8519 lt_prog_compiler_static='${wl}-a ${wl}archive'
8522 irix5* | irix6* | nonstopux*)
8523 lt_prog_compiler_wl='-Wl,'
8524 # PIC (with -KPIC) is the default.
8525 lt_prog_compiler_static='-non_shared'
8528 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8529 case $cc_basename in
8530 # old Intel for x86_64 which still supported -KPIC.
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_pic='-KPIC'
8534 lt_prog_compiler_static='-static'
8536 # icc used to be incompatible with GCC.
8537 # ICC 10 doesn't accept -KPIC any more.
8539 lt_prog_compiler_wl='-Wl,'
8540 lt_prog_compiler_pic='-fPIC'
8541 lt_prog_compiler_static='-static'
8543 # Lahey Fortran 8.1.
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_pic='--shared'
8547 lt_prog_compiler_static='--static'
8549 pgcc* | pgf77* | pgf90* | pgf95*)
8550 # Portland Group compilers (*not* the Pentium gcc compiler,
8551 # which looks to be a dead project)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-fpic'
8554 lt_prog_compiler_static='-Bstatic'
8557 lt_prog_compiler_wl='-Wl,'
8558 # All Alpha code is PIC.
8559 lt_prog_compiler_static='-non_shared'
8562 # IBM XL C 8.0/Fortran 10.1 on PPC
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-qpic'
8565 lt_prog_compiler_static='-qstaticlink'
8568 case `$CC -V 2>&1 | sed 5q` in
8571 lt_prog_compiler_pic='-KPIC'
8572 lt_prog_compiler_static='-Bstatic'
8573 lt_prog_compiler_wl='-Wl,'
8576 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8577 lt_prog_compiler_pic='-KPIC'
8578 lt_prog_compiler_static='-Bstatic'
8579 lt_prog_compiler_wl=''
8587 lt_prog_compiler_pic='-KPIC'
8588 lt_prog_compiler_static='-Bstatic'
8592 # QNX uses GNU C++, but need to define -shared option too, otherwise
8594 lt_prog_compiler_pic='-fPIC -shared'
8597 osf3* | osf4* | osf5*)
8598 lt_prog_compiler_wl='-Wl,'
8599 # All OSF/1 code is PIC.
8600 lt_prog_compiler_static='-non_shared'
8604 lt_prog_compiler_static='-non_shared'
8608 lt_prog_compiler_pic='-KPIC'
8609 lt_prog_compiler_static='-Bstatic'
8610 case $cc_basename in
8612 lt_prog_compiler_wl='-Qoption ld ';;
8614 lt_prog_compiler_wl='-Wl,';;
8619 lt_prog_compiler_wl='-Qoption ld '
8620 lt_prog_compiler_pic='-PIC'
8621 lt_prog_compiler_static='-Bstatic'
8624 sysv4 | sysv4.2uw2* | sysv4.3*)
8625 lt_prog_compiler_wl='-Wl,'
8626 lt_prog_compiler_pic='-KPIC'
8627 lt_prog_compiler_static='-Bstatic'
8631 if test -d /usr/nec ;then
8632 lt_prog_compiler_pic='-Kconform_pic'
8633 lt_prog_compiler_static='-Bstatic'
8637 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8638 lt_prog_compiler_wl='-Wl,'
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8644 lt_prog_compiler_wl='-Wl,'
8645 lt_prog_compiler_can_build_shared=no
8649 lt_prog_compiler_pic='-pic'
8650 lt_prog_compiler_static='-Bstatic'
8654 lt_prog_compiler_can_build_shared=no
8660 # For platforms which do not support PIC, -DPIC is meaningless:
8662 lt_prog_compiler_pic=
8665 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8669 $as_echo "$lt_prog_compiler_pic" >&6; }
8677 # Check to make sure the PIC flag actually works.
8679 if test -n "$lt_prog_compiler_pic"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8681 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8682 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8685 lt_cv_prog_compiler_pic_works=no
8686 ac_outfile=conftest.$ac_objext
8687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8688 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8689 # Insert the option either (1) after the last *FLAGS variable, or
8690 # (2) before a word containing "conftest.", or (3) at the end.
8691 # Note that $ac_compile itself does not contain backslashes and begins
8692 # with a dollar sign (not a hyphen), so the echo should work correctly.
8693 # The option is referenced via a variable to avoid confusing sed.
8694 lt_compile=`echo "$ac_compile" | $SED \
8695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8697 -e 's:$: $lt_compiler_flag:'`
8698 (eval echo "\"\$as_me:8698: $lt_compile\"" >&5)
8699 (eval "$lt_compile" 2>conftest.err)
8701 cat conftest.err >&5
8702 echo "$as_me:8702: \$? = $ac_status" >&5
8703 if (exit $ac_status) && test -s "$ac_outfile"; then
8704 # The compiler can only warn and ignore the option if not recognized
8705 # So say no if there are warnings other than the usual output.
8706 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8707 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8708 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8709 lt_cv_prog_compiler_pic_works=yes
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8716 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8718 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8719 case $lt_prog_compiler_pic in
8721 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8724 lt_prog_compiler_pic=
8725 lt_prog_compiler_can_build_shared=no
8736 # Check to make sure the static flag actually works.
8738 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8741 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8742 $as_echo_n "(cached) " >&6
8744 lt_cv_prog_compiler_static_works=no
8745 save_LDFLAGS="$LDFLAGS"
8746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8749 # The linker can only warn and ignore the option if not recognized
8750 # So say no if there are warnings
8751 if test -s conftest.err; then
8752 # Append any errors to the config.log.
8753 cat conftest.err 1>&5
8754 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8756 if diff conftest.exp conftest.er2 >/dev/null; then
8757 lt_cv_prog_compiler_static_works=yes
8760 lt_cv_prog_compiler_static_works=yes
8764 LDFLAGS="$save_LDFLAGS"
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8768 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8770 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8773 lt_prog_compiler_static=
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8783 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8784 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8787 lt_cv_prog_compiler_c_o=no
8788 $RM -r conftest 2>/dev/null
8792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8794 lt_compiler_flag="-o out/conftest2.$ac_objext"
8795 # Insert the option either (1) after the last *FLAGS variable, or
8796 # (2) before a word containing "conftest.", or (3) at the end.
8797 # Note that $ac_compile itself does not contain backslashes and begins
8798 # with a dollar sign (not a hyphen), so the echo should work correctly.
8799 lt_compile=`echo "$ac_compile" | $SED \
8800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8802 -e 's:$: $lt_compiler_flag:'`
8803 (eval echo "\"\$as_me:8803: $lt_compile\"" >&5)
8804 (eval "$lt_compile" 2>out/conftest.err)
8806 cat out/conftest.err >&5
8807 echo "$as_me:8807: \$? = $ac_status" >&5
8808 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8810 # The compiler can only warn and ignore the option if not recognized
8811 # So say no if there are warnings
8812 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8813 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8814 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8815 lt_cv_prog_compiler_c_o=yes
8820 # SGI C++ compiler will create directory out/ii_files/ for
8821 # template instantiation
8822 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8823 $RM out/* && rmdir out
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8830 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8838 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8839 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8840 $as_echo_n "(cached) " >&6
8842 lt_cv_prog_compiler_c_o=no
8843 $RM -r conftest 2>/dev/null
8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849 lt_compiler_flag="-o out/conftest2.$ac_objext"
8850 # Insert the option either (1) after the last *FLAGS variable, or
8851 # (2) before a word containing "conftest.", or (3) at the end.
8852 # Note that $ac_compile itself does not contain backslashes and begins
8853 # with a dollar sign (not a hyphen), so the echo should work correctly.
8854 lt_compile=`echo "$ac_compile" | $SED \
8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857 -e 's:$: $lt_compiler_flag:'`
8858 (eval echo "\"\$as_me:8858: $lt_compile\"" >&5)
8859 (eval "$lt_compile" 2>out/conftest.err)
8861 cat out/conftest.err >&5
8862 echo "$as_me:8862: \$? = $ac_status" >&5
8863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8865 # The compiler can only warn and ignore the option if not recognized
8866 # So say no if there are warnings
8867 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870 lt_cv_prog_compiler_c_o=yes
8875 # SGI C++ compiler will create directory out/ii_files/ for
8876 # template instantiation
8877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8878 $RM out/* && rmdir out
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8885 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8890 hard_links="nottested"
8891 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8892 # do not overwrite the value of need_locks provided by the user
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8894 $as_echo_n "checking if we can lock with hard links... " >&6; }
8897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899 ln conftest.a conftest.b 2>&5 || hard_links=no
8900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8902 $as_echo "$hard_links" >&6; }
8903 if test "$hard_links" = no; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8905 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8918 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8921 allow_undefined_flag=
8922 always_export_symbols=no
8924 archive_expsym_cmds=
8925 compiler_needs_object=no
8926 enable_shared_with_static_runtimes=no
8927 export_dynamic_flag_spec=
8928 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8929 hardcode_automatic=no
8931 hardcode_direct_absolute=no
8932 hardcode_libdir_flag_spec=
8933 hardcode_libdir_flag_spec_ld=
8934 hardcode_libdir_separator=
8936 hardcode_shlibpath_var=unsupported
8938 link_all_deplibs=unknown
8941 old_archive_from_new_cmds=
8942 old_archive_from_expsyms_cmds=
8943 thread_safe_flag_spec=
8944 whole_archive_flag_spec=
8945 # include_expsyms should be a list of space-separated symbols to be *always*
8946 # included in the symbol list
8948 # exclude_expsyms can be an extended regexp of symbols to exclude
8949 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8950 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8951 # as well as any symbol that contains `d'.
8952 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8953 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8954 # platforms (ab)use it in PIC code, but their linkers get confused if
8955 # the symbol is explicitly referenced. Since portable code cannot
8956 # rely on this symbol name, it's probably fine to never include it in
8957 # preloaded symbol tables.
8958 # Exclude shared library initialization/finalization symbols.
8959 extract_expsyms_cmds=
8962 cygwin* | mingw* | pw32* | cegcc*)
8963 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8964 # When not using gcc, we currently assume that we are using
8965 # Microsoft Visual C++.
8966 if test "$GCC" != yes; then
8971 # we just hope/assume this is gcc and not c89 (= MSVC++)
8977 linux* | k*bsd*-gnu)
8983 if test "$with_gnu_ld" = yes; then
8984 # If archive_cmds runs LD, not CC, wlarc should be empty
8987 # Set some defaults for GNU ld with shared library support. These
8988 # are reset later if shared libraries are not supported. Putting them
8989 # here allows them to be overridden if necessary.
8990 runpath_var=LD_RUN_PATH
8991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8992 export_dynamic_flag_spec='${wl}--export-dynamic'
8993 # ancient GNU ld didn't support --whole-archive et. al.
8994 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8995 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8997 whole_archive_flag_spec=
8999 supports_anon_versioning=no
9000 case `$LD -v 2>&1` in
9001 *GNU\ gold*) supports_anon_versioning=yes ;;
9002 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9003 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9004 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9005 *\ 2.11.*) ;; # other 2.11 versions
9006 *) supports_anon_versioning=yes ;;
9009 # See if GNU ld supports shared libraries.
9012 # On AIX/PPC, the GNU linker is very broken
9013 if test "$host_cpu" != ia64; then
9017 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9018 *** to be unable to reliably create shared libraries on AIX.
9019 *** Therefore, libtool is disabling shared libraries support. If you
9020 *** really care for shared libraries, you may want to modify your PATH
9021 *** so that a non-GNU linker is found, and then restart.
9030 # see comment about AmigaOS4 .so support
9031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032 archive_expsym_cmds=''
9035 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)'
9036 hardcode_libdir_flag_spec='-L$libdir'
9037 hardcode_minus_L=yes
9043 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9044 allow_undefined_flag=unsupported
9045 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9046 # support --undefined. This deserves some investigation. FIXME
9047 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9053 cygwin* | mingw* | pw32* | cegcc*)
9054 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9055 # as there is no search path for DLLs.
9056 hardcode_libdir_flag_spec='-L$libdir'
9057 allow_undefined_flag=unsupported
9058 always_export_symbols=no
9059 enable_shared_with_static_runtimes=yes
9060 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9062 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9063 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9064 # If the export-symbols file already is a .def file (1st line
9065 # is EXPORTS), use it as is; otherwise, prepend...
9066 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9067 cp $export_symbols $output_objdir/$soname.def;
9069 echo EXPORTS > $output_objdir/$soname.def;
9070 cat $export_symbols >> $output_objdir/$soname.def;
9072 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9080 hardcode_shlibpath_var=no
9081 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9082 export_dynamic_flag_spec='${wl}-E'
9083 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9084 # Instead, shared libraries are loaded at an image base (0x10000000 by
9085 # default) and relocated if they conflict, which is a slow very memory
9086 # consuming and fragmenting process. To avoid this, we pick a random,
9087 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9088 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9089 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9090 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'
9093 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9095 if test "$host_os" = linux-dietlibc; then
9096 case $cc_basename in
9097 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9100 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9101 && test "$tmp_diet" = no
9104 tmp_sharedflag='-shared'
9105 case $cc_basename,$host_cpu in
9106 pgcc*) # Portland Group C compiler
9107 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9108 tmp_addflag=' $pic_flag'
9110 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9111 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9112 tmp_addflag=' $pic_flag -Mnomain' ;;
9113 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9114 tmp_addflag=' -i_dynamic' ;;
9115 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9116 tmp_addflag=' -i_dynamic -nofor_main' ;;
9117 ifc* | ifort*) # Intel Fortran compiler
9118 tmp_addflag=' -nofor_main' ;;
9119 lf95*) # Lahey Fortran 8.1
9120 whole_archive_flag_spec=
9121 tmp_sharedflag='--shared' ;;
9122 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9123 tmp_sharedflag='-qmkshrobj'
9126 case `$CC -V 2>&1 | sed 5q` in
9127 *Sun\ C*) # Sun C 5.9
9128 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9129 compiler_needs_object=yes
9130 tmp_sharedflag='-G' ;;
9131 *Sun\ F*) # Sun Fortran 8.3
9132 tmp_sharedflag='-G' ;;
9134 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9136 if test "x$supports_anon_versioning" = xyes; then
9137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9139 echo "local: *; };" >> $output_objdir/$libname.ver~
9140 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9143 case $cc_basename in
9145 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9146 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9147 hardcode_libdir_flag_spec=
9148 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9149 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9150 if test "x$supports_anon_versioning" = xyes; then
9151 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9153 echo "local: *; };" >> $output_objdir/$libname.ver~
9154 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9163 netbsd* | netbsdelf*-gnu)
9164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9165 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9174 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9178 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9179 *** create shared libraries on Solaris systems. Therefore, libtool
9180 *** is disabling shared libraries support. We urge you to upgrade GNU
9181 *** binutils to release 2.9.1 or newer. Another option is to modify
9182 *** your PATH or compiler configuration so that the native linker is
9183 *** used, and then restart.
9186 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9195 case `$LD -v 2>&1` in
9196 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9200 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9201 *** reliably create shared libraries on SCO systems. Therefore, libtool
9202 *** is disabling shared libraries support. We urge you to upgrade GNU
9203 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9204 *** your PATH or compiler configuration so that the native linker is
9205 *** used, and then restart.
9210 # For security reasons, it is highly recommended that you always
9211 # use absolute paths for naming shared libraries, and exclude the
9212 # DT_RUNPATH tag from executables and libraries. But doing so
9213 # requires that you compile everything twice, which is a pain.
9214 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9226 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9229 hardcode_shlibpath_var=no
9233 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9242 if test "$ld_shlibs" = no; then
9244 hardcode_libdir_flag_spec=
9245 export_dynamic_flag_spec=
9246 whole_archive_flag_spec=
9249 # PORTME fill in a description of your system's linker (not GNU ld)
9252 allow_undefined_flag=unsupported
9253 always_export_symbols=yes
9254 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'
9255 # Note: this linker hardcodes the directories in LIBPATH if there
9256 # are no directories specified by -L.
9257 hardcode_minus_L=yes
9258 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9259 # Neither direct hardcoding nor static linking is supported with a
9261 hardcode_direct=unsupported
9266 if test "$host_cpu" = ia64; then
9267 # On IA64, the linker does run time linking by default, so we don't
9268 # have to do anything special.
9269 aix_use_runtimelinking=no
9270 exp_sym_flag='-Bexport'
9273 # If we're using GNU nm, then we don't want the "-C" option.
9274 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9275 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9276 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9278 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'
9280 aix_use_runtimelinking=no
9282 # Test if we are trying to use run time linking or normal
9283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9284 # need to do runtime linking.
9285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9286 for ld_flag in $LDFLAGS; do
9287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9288 aix_use_runtimelinking=yes
9295 exp_sym_flag='-bexport'
9296 no_entry_flag='-bnoentry'
9299 # When large executables or shared objects are built, AIX ld can
9300 # have problems creating the table of contents. If linking a library
9301 # or program results in "error TOC overflow" add -mminimal-toc to
9302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9307 hardcode_direct_absolute=yes
9308 hardcode_libdir_separator=':'
9309 link_all_deplibs=yes
9310 file_list_spec='${wl}-f,'
9312 if test "$GCC" = yes; then
9313 case $host_os in aix4.[012]|aix4.[012].*)
9314 # We only want to do this on AIX 4.2 and lower, the check
9315 # below for broken collect2 doesn't work under 4.3+
9316 collect2name=`${CC} -print-prog-name=collect2`
9317 if test -f "$collect2name" &&
9318 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9320 # We have reworked collect2
9323 # We have old collect2
9324 hardcode_direct=unsupported
9325 # It fails to find uninstalled libraries when the uninstalled
9326 # path is not listed in the libpath. Setting hardcode_minus_L
9327 # to unsupported forces relinking
9328 hardcode_minus_L=yes
9329 hardcode_libdir_flag_spec='-L$libdir'
9330 hardcode_libdir_separator=
9334 shared_flag='-shared'
9335 if test "$aix_use_runtimelinking" = yes; then
9336 shared_flag="$shared_flag "'${wl}-G'
9341 if test "$host_cpu" = ia64; then
9342 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9343 # chokes on -Wl,-G. The following line is correct:
9346 if test "$aix_use_runtimelinking" = yes; then
9347 shared_flag='${wl}-G'
9349 shared_flag='${wl}-bM:SRE'
9354 export_dynamic_flag_spec='${wl}-bexpall'
9355 # It seems that -bexpall does not export symbols beginning with
9356 # underscore (_), so it is better to generate a list of symbols to export.
9357 always_export_symbols=yes
9358 if test "$aix_use_runtimelinking" = yes; then
9359 # Warning - without using the other runtime loading flags (-brtl),
9360 # -berok will link without error, but may produce a broken library.
9361 allow_undefined_flag='-berok'
9362 # Determine the default libpath from the value encoded in an
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9375 if ac_fn_c_try_link "$LINENO"; then :
9377 lt_aix_libpath_sed='
9378 /Import File Strings/,/^$/ {
9384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9385 # Check for a 64-bit object if we didn't find anything.
9386 if test -z "$aix_libpath"; then
9387 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9390 rm -f core conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
9392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9394 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9395 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9397 if test "$host_cpu" = ia64; then
9398 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9399 allow_undefined_flag="-z nodefs"
9400 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"
9402 # Determine the default libpath from the value encoded in an
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9415 if ac_fn_c_try_link "$LINENO"; then :
9417 lt_aix_libpath_sed='
9418 /Import File Strings/,/^$/ {
9424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9425 # Check for a 64-bit object if we didn't find anything.
9426 if test -z "$aix_libpath"; then
9427 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9430 rm -f core conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9434 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9435 # Warning - without using the other run time loading flags,
9436 # -berok will link without error, but may produce a broken library.
9437 no_undefined_flag=' ${wl}-bernotok'
9438 allow_undefined_flag=' ${wl}-berok'
9439 # Exported symbols can be pulled into shared objects from archives
9440 whole_archive_flag_spec='$convenience'
9441 archive_cmds_need_lc=yes
9442 # This is similar to how AIX traditionally builds its shared libraries.
9443 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'
9451 # see comment about AmigaOS4 .so support
9452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9453 archive_expsym_cmds=''
9456 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)'
9457 hardcode_libdir_flag_spec='-L$libdir'
9458 hardcode_minus_L=yes
9464 export_dynamic_flag_spec=-rdynamic
9467 cygwin* | mingw* | pw32* | cegcc*)
9468 # When not using gcc, we currently assume that we are using
9469 # Microsoft Visual C++.
9470 # hardcode_libdir_flag_spec is actually meaningless, as there is
9471 # no search path for DLLs.
9472 hardcode_libdir_flag_spec=' '
9473 allow_undefined_flag=unsupported
9474 # Tell ltmain to make .lib files, not .a files.
9476 # Tell ltmain to make .dll files, not .so files.
9478 # FIXME: Setting linknames here is a bad hack.
9479 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9480 # The linker will automatically build a .lib file if we build a DLL.
9481 old_archive_from_new_cmds='true'
9482 # FIXME: Should let the user specify the lib program.
9483 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9484 fix_srcfile_path='`cygpath -w "$srcfile"`'
9485 enable_shared_with_static_runtimes=yes
9488 darwin* | rhapsody*)
9491 archive_cmds_need_lc=no
9493 hardcode_automatic=yes
9494 hardcode_shlibpath_var=unsupported
9495 whole_archive_flag_spec=''
9496 link_all_deplibs=yes
9497 allow_undefined_flag="$_lt_dar_allow_undefined"
9498 case $cc_basename in
9499 ifort*) _lt_dar_can_shared=yes ;;
9500 *) _lt_dar_can_shared=$GCC ;;
9502 if test "$_lt_dar_can_shared" = "yes"; then
9503 output_verbose_link_cmd=echo
9504 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9505 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9506 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}"
9507 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}"
9516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9517 hardcode_libdir_flag_spec='-L$libdir'
9518 hardcode_shlibpath_var=no
9525 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9526 # support. Future versions do this automatically, but an explicit c++rt0.o
9527 # does not break anything, and helps significantly (at the cost of a little
9530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9531 hardcode_libdir_flag_spec='-R$libdir'
9533 hardcode_shlibpath_var=no
9536 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9538 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9540 hardcode_minus_L=yes
9541 hardcode_shlibpath_var=no
9544 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9545 freebsd* | dragonfly*)
9546 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9547 hardcode_libdir_flag_spec='-R$libdir'
9549 hardcode_shlibpath_var=no
9553 if test "$GCC" = yes; then
9554 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9556 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'
9558 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9559 hardcode_libdir_separator=:
9562 # hardcode_minus_L: Not really in the search PATH,
9563 # but as the default location of the library.
9564 hardcode_minus_L=yes
9565 export_dynamic_flag_spec='${wl}-E'
9569 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9570 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9572 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9574 if test "$with_gnu_ld" = no; then
9575 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9576 hardcode_libdir_flag_spec_ld='+b $libdir'
9577 hardcode_libdir_separator=:
9579 hardcode_direct_absolute=yes
9580 export_dynamic_flag_spec='${wl}-E'
9581 # hardcode_minus_L: Not really in the search PATH,
9582 # but as the default location of the library.
9583 hardcode_minus_L=yes
9588 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9591 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9594 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9603 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9606 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9609 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9613 if test "$with_gnu_ld" = no; then
9614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9615 hardcode_libdir_separator=:
9620 hardcode_shlibpath_var=no
9624 hardcode_direct_absolute=yes
9625 export_dynamic_flag_spec='${wl}-E'
9627 # hardcode_minus_L: Not really in the search PATH,
9628 # but as the default location of the library.
9629 hardcode_minus_L=yes
9635 irix5* | irix6* | nonstopux*)
9636 if test "$GCC" = yes; then
9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9638 # Try to use the -exported_symbol ld option, if it does not
9639 # work, assume that -exports_file does not work either and
9640 # implicitly export all symbols.
9641 save_LDFLAGS="$LDFLAGS"
9642 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9647 if ac_fn_c_try_link "$LINENO"; then :
9648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9651 rm -f core conftest.err conftest.$ac_objext \
9652 conftest$ac_exeext conftest.$ac_ext
9653 LDFLAGS="$save_LDFLAGS"
9655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9658 archive_cmds_need_lc='no'
9659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9660 hardcode_libdir_separator=:
9662 link_all_deplibs=yes
9665 netbsd* | netbsdelf*-gnu)
9666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9669 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9671 hardcode_libdir_flag_spec='-R$libdir'
9673 hardcode_shlibpath_var=no
9677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9680 hardcode_libdir_separator=:
9681 hardcode_shlibpath_var=no
9688 if test -f /usr/libexec/ld.so; then
9690 hardcode_shlibpath_var=no
9691 hardcode_direct_absolute=yes
9692 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9693 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9694 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9695 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9696 export_dynamic_flag_spec='${wl}-E'
9699 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9700 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9701 hardcode_libdir_flag_spec='-R$libdir'
9704 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9705 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9715 hardcode_libdir_flag_spec='-L$libdir'
9716 hardcode_minus_L=yes
9717 allow_undefined_flag=unsupported
9718 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'
9719 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9723 if test "$GCC" = yes; then
9724 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9725 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9727 allow_undefined_flag=' -expect_unresolved \*'
9728 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9730 archive_cmds_need_lc='no'
9731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9732 hardcode_libdir_separator=:
9735 osf4* | osf5*) # as osf3* with the addition of -msym flag
9736 if test "$GCC" = yes; then
9737 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9738 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9739 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9741 allow_undefined_flag=' -expect_unresolved \*'
9742 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9743 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~
9744 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9746 # Both c and cxx compiler support -rpath directly
9747 hardcode_libdir_flag_spec='-rpath $libdir'
9749 archive_cmds_need_lc='no'
9750 hardcode_libdir_separator=:
9754 no_undefined_flag=' -z defs'
9755 if test "$GCC" = yes; then
9757 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9759 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9761 case `$CC -V 2>&1` in
9764 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9765 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9766 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9770 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9771 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9772 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9776 hardcode_libdir_flag_spec='-R$libdir'
9777 hardcode_shlibpath_var=no
9779 solaris2.[0-5] | solaris2.[0-5].*) ;;
9781 # The compiler driver will combine and reorder linker options,
9782 # but understands `-z linker_flag'. GCC discards it without `$wl',
9783 # but is careful enough not to reorder.
9784 # Supported since Solaris 2.6 (maybe 2.5.1?)
9785 if test "$GCC" = yes; then
9786 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9788 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9792 link_all_deplibs=yes
9796 if test "x$host_vendor" = xsequent; then
9797 # Use $CC to link under sequent, because it throws in some extra .o
9798 # files that make .init and .fini sections work.
9799 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9801 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9803 hardcode_libdir_flag_spec='-L$libdir'
9805 hardcode_minus_L=yes
9806 hardcode_shlibpath_var=no
9810 case $host_vendor in
9812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9813 hardcode_direct=yes # is this really true???
9816 ## LD is ld it makes a PLAMLIB
9817 ## CC just makes a GrossModule.
9818 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9819 reload_cmds='$CC -r -o $output$reload_objs'
9823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9824 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9827 runpath_var='LD_RUN_PATH'
9828 hardcode_shlibpath_var=no
9832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9833 hardcode_shlibpath_var=no
9834 export_dynamic_flag_spec='-Bexport'
9838 if test -d /usr/nec; then
9839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9840 hardcode_shlibpath_var=no
9841 runpath_var=LD_RUN_PATH
9842 hardcode_runpath_var=yes
9847 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9848 no_undefined_flag='${wl}-z,text'
9849 archive_cmds_need_lc=no
9850 hardcode_shlibpath_var=no
9851 runpath_var='LD_RUN_PATH'
9853 if test "$GCC" = yes; then
9854 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9855 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9857 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9858 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 sysv5* | sco3.2v5* | sco5v6*)
9863 # Note: We can NOT use -z defs as we might desire, because we do not
9864 # link with -lc, and that would cause any symbols used from libc to
9865 # always be unresolved, which means just about no library would
9866 # ever link correctly. If we're not using GNU ld we use -z text
9867 # though, which does catch some bad symbols but isn't as heavy-handed
9869 no_undefined_flag='${wl}-z,text'
9870 allow_undefined_flag='${wl}-z,nodefs'
9871 archive_cmds_need_lc=no
9872 hardcode_shlibpath_var=no
9873 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9874 hardcode_libdir_separator=':'
9875 link_all_deplibs=yes
9876 export_dynamic_flag_spec='${wl}-Bexport'
9877 runpath_var='LD_RUN_PATH'
9879 if test "$GCC" = yes; then
9880 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9881 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9883 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9884 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9890 hardcode_libdir_flag_spec='-L$libdir'
9891 hardcode_shlibpath_var=no
9899 if test x$host_vendor = xsni; then
9901 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9902 export_dynamic_flag_spec='${wl}-Blargedynsym'
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9909 $as_echo "$ld_shlibs" >&6; }
9910 test "$ld_shlibs" = no && can_build_shared=no
9912 with_gnu_ld=$with_gnu_ld
9929 # Do we need to explicitly link libc?
9931 case "x$archive_cmds_need_lc" in
9933 # Assume -lc should be added
9934 archive_cmds_need_lc=yes
9936 if test "$enable_shared" = yes && test "$GCC" = yes; then
9937 case $archive_cmds in
9939 # FIXME: we may have to deal with multi-command sequences.
9942 # Test whether the compiler implicitly links with -lc since on some
9943 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9944 # to ld, don't add -lc before -lgcc.
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9946 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9951 (eval $ac_compile) 2>&5
9953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954 test $ac_status = 0; } 2>conftest.err; then
9957 libobjs=conftest.$ac_objext
9959 wl=$lt_prog_compiler_wl
9960 pic_flag=$lt_prog_compiler_pic
9966 lt_save_allow_undefined_flag=$allow_undefined_flag
9967 allow_undefined_flag=
9968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9969 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9972 test $ac_status = 0; }
9974 archive_cmds_need_lc=no
9976 archive_cmds_need_lc=yes
9978 allow_undefined_flag=$lt_save_allow_undefined_flag
9980 cat conftest.err 1>&5
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9984 $as_echo "$archive_cmds_need_lc" >&6; }
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10148 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10150 if test "$GCC" = yes; then
10152 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10153 *) lt_awk_arg="/^libraries:/" ;;
10155 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10156 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10157 # if the path contains ";" then we assume it to be the separator
10158 # otherwise default to the standard path separator (i.e. ":") - it is
10159 # assumed that no part of a normal pathname contains ";" but that should
10160 # okay in the real world where ";" in dirpaths is itself problematic.
10161 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10163 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10165 # Ok, now we have the path, separated by spaces, we can step through it
10166 # and add multilib dir if necessary.
10167 lt_tmp_lt_search_path_spec=
10168 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10169 for lt_sys_path in $lt_search_path_spec; do
10170 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10171 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10173 test -d "$lt_sys_path" && \
10174 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10177 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10178 BEGIN {RS=" "; FS="/|\n";} {
10181 for (lt_i = NF; lt_i > 0; lt_i--) {
10182 if ($lt_i != "" && $lt_i != ".") {
10183 if ($lt_i == "..") {
10186 if (lt_count == 0) {
10187 lt_foo="/" $lt_i lt_foo;
10194 if (lt_foo != "") { lt_freq[lt_foo]++; }
10195 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10197 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10199 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10201 library_names_spec=
10202 libname_spec='lib$name'
10206 postuninstall_cmds=
10210 shlibpath_overrides_runpath=unknown
10212 dynamic_linker="$host_os ld.so"
10213 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10214 need_lib_prefix=unknown
10215 hardcode_into_libs=no
10217 # when you set need_version to no, make sure it does not cause -set_version
10218 # flags to be left without arguments
10219 need_version=unknown
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10225 shlibpath_var=LIBPATH
10227 # AIX 3 has no versioning support, so we append a major version to the name.
10228 soname_spec='${libname}${release}${shared_ext}$major'
10235 hardcode_into_libs=yes
10236 if test "$host_cpu" = ia64; then
10237 # AIX 5 supports IA64
10238 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10239 shlibpath_var=LD_LIBRARY_PATH
10241 # With GCC up to 2.95.x, collect2 would create an import file
10242 # for dependence libraries. The import file would start with
10243 # the line `#! .'. This would cause the generated library to
10244 # depend on `.', always an invalid library. This was fixed in
10245 # development snapshots of GCC prior to 3.0.
10247 aix4 | aix4.[01] | aix4.[01].*)
10248 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10250 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10253 can_build_shared=no
10257 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10258 # soname into executable. Probably we can add versioning support to
10259 # collect2, so additional links can be useful in future.
10260 if test "$aix_use_runtimelinking" = yes; then
10261 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10262 # instead of lib<name>.a to let people know that these are not
10263 # typical AIX shared libraries.
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266 # We preserve .a as extension for shared libraries through AIX4.2
10267 # and later when we are not doing run time linking.
10268 library_names_spec='${libname}${release}.a $libname.a'
10269 soname_spec='${libname}${release}${shared_ext}$major'
10271 shlibpath_var=LIBPATH
10278 # Since July 2007 AmigaOS4 officially supports .so libraries.
10279 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283 library_names_spec='$libname.ixlibrary $libname.a'
10284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10285 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10291 library_names_spec='${libname}${shared_ext}'
10292 dynamic_linker="$host_os ld.so"
10293 shlibpath_var=LIBRARY_PATH
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10304 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10305 # the default ld.so.conf also contains /usr/contrib/lib and
10306 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10307 # libtool to hard-code these into programs
10310 cygwin* | mingw* | pw32* | cegcc*)
10311 version_type=windows
10316 case $GCC,$host_os in
10317 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10318 library_names_spec='$libname.dll.a'
10319 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10320 postinstall_cmds='base_file=`basename \${file}`~
10321 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10322 dldir=$destdir/`dirname \$dlpath`~
10323 test -d \$dldir || mkdir -p \$dldir~
10324 $install_prog $dir/$dlname \$dldir/$dlname~
10325 chmod a+x \$dldir/$dlname~
10326 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10327 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10329 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10330 dlpath=$dir/\$dldll~
10332 shlibpath_overrides_runpath=yes
10336 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10337 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10338 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10341 # MinGW DLLs use traditional 'lib' prefix
10342 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10343 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10344 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10345 # It is most probably a Windows format PATH printed by
10346 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10347 # path with ; separators, and with drive letters. We can handle the
10348 # drive letters (cygwin fileutils understands them), so leave them,
10349 # especially as we might pass files found there to a mingw objdump,
10350 # which wouldn't understand a cygwinified path. Ahh.
10351 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10353 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10357 # pw32 DLLs use 'pw' prefix rather than 'lib'
10358 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10364 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10367 dynamic_linker='Win32 ld.exe'
10368 # FIXME: first we should search . and the directory the executable is in
10372 darwin* | rhapsody*)
10373 dynamic_linker="$host_os dyld"
10374 version_type=darwin
10377 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10378 soname_spec='${libname}${release}${major}$shared_ext'
10379 shlibpath_overrides_runpath=yes
10380 shlibpath_var=DYLD_LIBRARY_PATH
10381 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10383 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 shlibpath_var=LD_LIBRARY_PATH
10400 freebsd* | dragonfly*)
10401 # DragonFly does not have aout. When/if they implement a new
10402 # versioning mechanism, adjust this.
10403 if test -x /usr/bin/objformat; then
10404 objformat=`/usr/bin/objformat`
10407 freebsd[123]*) objformat=aout ;;
10408 *) objformat=elf ;;
10411 version_type=freebsd-$objformat
10412 case $version_type in
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10423 shlibpath_var=LD_LIBRARY_PATH
10426 shlibpath_overrides_runpath=yes
10428 freebsd3.[01]* | freebsdelf3.[01]*)
10429 shlibpath_overrides_runpath=yes
10430 hardcode_into_libs=yes
10432 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10433 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10434 shlibpath_overrides_runpath=no
10435 hardcode_into_libs=yes
10437 *) # from 4.6 on, and DragonFly
10438 shlibpath_overrides_runpath=yes
10439 hardcode_into_libs=yes
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10449 soname_spec='${libname}${release}${shared_ext}$major'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 hardcode_into_libs=yes
10454 hpux9* | hpux10* | hpux11*)
10455 # Give a soname corresponding to the major version so that dld.sl refuses to
10456 # link against other versions.
10463 hardcode_into_libs=yes
10464 dynamic_linker="$host_os dld.so"
10465 shlibpath_var=LD_LIBRARY_PATH
10466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468 soname_spec='${libname}${release}${shared_ext}$major'
10469 if test "X$HPUX_IA64_MODE" = X32; then
10470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10478 hardcode_into_libs=yes
10479 dynamic_linker="$host_os dld.sl"
10480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483 soname_spec='${libname}${release}${shared_ext}$major'
10484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10489 dynamic_linker="$host_os dld.sl"
10490 shlibpath_var=SHLIB_PATH
10491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493 soname_spec='${libname}${release}${shared_ext}$major'
10496 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10497 postinstall_cmds='chmod 555 $lib'
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10505 soname_spec='${libname}${release}${shared_ext}$major'
10506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10507 shlibpath_var=LD_LIBRARY_PATH
10508 shlibpath_overrides_runpath=no
10509 hardcode_into_libs=yes
10512 irix5* | irix6* | nonstopux*)
10514 nonstopux*) version_type=nonstopux ;;
10516 if test "$lt_cv_prog_gnu_ld" = yes; then
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10527 irix5* | nonstopux*)
10528 libsuff= shlibsuff=
10531 case $LD in # libtool.m4 will add one of these switches to LD
10532 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10533 libsuff= shlibsuff= libmagic=32-bit;;
10534 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10535 libsuff=32 shlibsuff=N32 libmagic=N32;;
10536 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10537 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10538 *) libsuff= shlibsuff= libmagic=never-match;;
10542 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10543 shlibpath_overrides_runpath=no
10544 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10545 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10546 hardcode_into_libs=yes
10549 # No shared lib support for Linux oldld, aout, or coff.
10550 linux*oldld* | linux*aout* | linux*coff*)
10554 # This must be Linux ELF.
10555 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 shlibpath_overrides_runpath=no
10564 # Some binutils ld are patched to set DT_RUNPATH
10565 save_LDFLAGS=$LDFLAGS
10566 save_libdir=$libdir
10567 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10568 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10580 if ac_fn_c_try_link "$LINENO"; then :
10581 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10582 shlibpath_overrides_runpath=yes
10585 rm -f core conftest.err conftest.$ac_objext \
10586 conftest$ac_exeext conftest.$ac_ext
10587 LDFLAGS=$save_LDFLAGS
10588 libdir=$save_libdir
10590 # This implies no fast_install, which is unacceptable.
10591 # Some rework will be needed to allow for fast_install
10592 # before this can be enabled.
10593 hardcode_into_libs=yes
10595 # Append ld.so.conf contents to the search path
10596 if test -f /etc/ld.so.conf; then
10597 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10598 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10601 # We used to test for /lib/ld.so.1 and disable shared libraries on
10602 # powerpc, because MkLinux only supported shared libraries with the
10603 # GNU dynamic linker. Since this was broken with cross compilers,
10604 # most powerpc-linux boxes support dynamic linking these days and
10605 # people can always --disable-shared, the test was removed, and we
10606 # assume the GNU/Linux dynamic linker is in use.
10607 dynamic_linker='GNU/Linux ld.so'
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=no
10618 hardcode_into_libs=yes
10619 dynamic_linker='NetBSD ld.elf_so'
10626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10629 dynamic_linker='NetBSD (a.out) ld.so'
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 dynamic_linker='NetBSD ld.elf_so'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10637 hardcode_into_libs=yes
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 shlibpath_overrides_runpath=yes
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 shlibpath_overrides_runpath=no
10655 hardcode_into_libs=yes
10656 dynamic_linker='ldqnx.so'
10661 sys_lib_dlsearch_path_spec="/usr/lib"
10663 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10665 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10666 *) need_version=no ;;
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10670 shlibpath_var=LD_LIBRARY_PATH
10671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10673 openbsd2.[89] | openbsd2.[89].*)
10674 shlibpath_overrides_runpath=no
10677 shlibpath_overrides_runpath=yes
10681 shlibpath_overrides_runpath=yes
10686 libname_spec='$name'
10689 library_names_spec='$libname${shared_ext} $libname.a'
10690 dynamic_linker='OS/2 ld.exe'
10691 shlibpath_var=LIBPATH
10694 osf3* | osf4* | osf5*)
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700 shlibpath_var=LD_LIBRARY_PATH
10701 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10702 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 shlibpath_var=LD_LIBRARY_PATH
10716 shlibpath_overrides_runpath=yes
10717 hardcode_into_libs=yes
10718 # ldd complains unless libraries are executable
10719 postinstall_cmds='chmod +x $lib'
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10725 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 shlibpath_overrides_runpath=yes
10728 if test "$with_gnu_ld" = yes; then
10736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 soname_spec='${libname}${release}${shared_ext}$major'
10738 shlibpath_var=LD_LIBRARY_PATH
10739 case $host_vendor in
10741 shlibpath_overrides_runpath=no
10743 runpath_var=LD_RUN_PATH
10751 shlibpath_overrides_runpath=no
10752 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10758 if test -d /usr/nec ;then
10760 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10761 soname_spec='$libname${shared_ext}.$major'
10762 shlibpath_var=LD_LIBRARY_PATH
10766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10767 version_type=freebsd-elf
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10772 shlibpath_var=LD_LIBRARY_PATH
10773 shlibpath_overrides_runpath=yes
10774 hardcode_into_libs=yes
10775 if test "$with_gnu_ld" = yes; then
10776 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10778 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10781 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10785 sys_lib_dlsearch_path_spec='/usr/lib'
10789 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 shlibpath_overrides_runpath=no
10796 hardcode_into_libs=yes
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10803 shlibpath_var=LD_LIBRARY_PATH
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10811 $as_echo "$dynamic_linker" >&6; }
10812 test "$dynamic_linker" = no && can_build_shared=no
10814 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10815 if test "$GCC" = yes; then
10816 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10819 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10820 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10822 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10823 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10913 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10915 if test -n "$hardcode_libdir_flag_spec" ||
10916 test -n "$runpath_var" ||
10917 test "X$hardcode_automatic" = "Xyes" ; then
10919 # We can hardcode non-existent directories.
10920 if test "$hardcode_direct" != no &&
10921 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10922 # have to relink, otherwise we might link with an installed library
10923 # when we should be linking with a yet-to-be-installed one
10924 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10925 test "$hardcode_minus_L" != no; then
10926 # Linking always hardcodes the temporary library directory.
10927 hardcode_action=relink
10929 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10930 hardcode_action=immediate
10933 # We cannot hardcode anything, or else we can only hardcode existing
10935 hardcode_action=unsupported
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10938 $as_echo "$hardcode_action" >&6; }
10940 if test "$hardcode_action" = relink ||
10941 test "$inherit_rpath" = yes; then
10942 # Fast installation is not supported
10943 enable_fast_install=no
10944 elif test "$shlibpath_overrides_runpath" = yes ||
10945 test "$enable_shared" = no; then
10946 # Fast installation is not necessary
10947 enable_fast_install=needless
10955 if test "x$enable_dlopen" != xyes; then
10956 enable_dlopen=unknown
10957 enable_dlopen_self=unknown
10958 enable_dlopen_self_static=unknown
10965 lt_cv_dlopen="load_add_on"
10967 lt_cv_dlopen_self=yes
10970 mingw* | pw32* | cegcc*)
10971 lt_cv_dlopen="LoadLibrary"
10976 lt_cv_dlopen="dlopen"
10981 # if libdl is installed we need to link against it
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10983 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10987 ac_check_lib_save_LIBS=$LIBS
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
11007 if ac_fn_c_try_link "$LINENO"; then :
11008 ac_cv_lib_dl_dlopen=yes
11010 ac_cv_lib_dl_dlopen=no
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_lib_save_LIBS
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11017 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11018 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11022 lt_cv_dlopen="dyld"
11024 lt_cv_dlopen_self=yes
11031 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11032 if test "x$ac_cv_func_shl_load" = x""yes; then :
11033 lt_cv_dlopen="shl_load"
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11036 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11037 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11040 ac_check_lib_save_LIBS=$LIBS
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11055 return shl_load ();
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 ac_cv_lib_dld_shl_load=yes
11063 ac_cv_lib_dld_shl_load=no
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11070 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11071 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11072 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11074 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11075 if test "x$ac_cv_func_dlopen" = x""yes; then :
11076 lt_cv_dlopen="dlopen"
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11079 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11080 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
11083 ac_check_lib_save_LIBS=$LIBS
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11088 /* Override any GCC internal prototype to avoid an error.
11089 Use char because int might match the return type of a GCC
11090 builtin and then its argument prototype would still apply. */
11103 if ac_fn_c_try_link "$LINENO"; then :
11104 ac_cv_lib_dl_dlopen=yes
11106 ac_cv_lib_dl_dlopen=no
11108 rm -f core conftest.err conftest.$ac_objext \
11109 conftest$ac_exeext conftest.$ac_ext
11110 LIBS=$ac_check_lib_save_LIBS
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11113 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11114 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11118 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11119 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11122 ac_check_lib_save_LIBS=$LIBS
11123 LIBS="-lsvld $LIBS"
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11127 /* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11142 if ac_fn_c_try_link "$LINENO"; then :
11143 ac_cv_lib_svld_dlopen=yes
11145 ac_cv_lib_svld_dlopen=no
11147 rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
11149 LIBS=$ac_check_lib_save_LIBS
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11152 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11153 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11154 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11157 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11158 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
11161 ac_check_lib_save_LIBS=$LIBS
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11176 return dld_link ();
11181 if ac_fn_c_try_link "$LINENO"; then :
11182 ac_cv_lib_dld_dld_link=yes
11184 ac_cv_lib_dld_dld_link=no
11186 rm -f core conftest.err conftest.$ac_objext \
11187 conftest$ac_exeext conftest.$ac_ext
11188 LIBS=$ac_check_lib_save_LIBS
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11191 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11192 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11193 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11214 if test "x$lt_cv_dlopen" != xno; then
11220 case $lt_cv_dlopen in
11222 save_CPPFLAGS="$CPPFLAGS"
11223 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11225 save_LDFLAGS="$LDFLAGS"
11226 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11229 LIBS="$lt_cv_dlopen_libs $LIBS"
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11232 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11233 if test "${lt_cv_dlopen_self+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11236 if test "$cross_compiling" = yes; then :
11237 lt_cv_dlopen_self=cross
11239 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11240 lt_status=$lt_dlunknown
11241 cat > conftest.$ac_ext <<_LT_EOF
11242 #line 11242 "configure"
11243 #include "confdefs.h"
11252 # define LT_DLGLOBAL RTLD_GLOBAL
11255 # define LT_DLGLOBAL DL_GLOBAL
11257 # define LT_DLGLOBAL 0
11261 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11262 find out it does not work in some platform. */
11263 #ifndef LT_DLLAZY_OR_NOW
11265 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11268 # define LT_DLLAZY_OR_NOW DL_LAZY
11271 # define LT_DLLAZY_OR_NOW RTLD_NOW
11274 # define LT_DLLAZY_OR_NOW DL_NOW
11276 # define LT_DLLAZY_OR_NOW 0
11283 void fnord() { int i=42;}
11286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11287 int status = $lt_dlunknown;
11291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11292 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11293 /* dlclose (self); */
11301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11302 (eval $ac_link) 2>&5
11304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11306 (./conftest; exit; ) >&5 2>/dev/null
11308 case x$lt_status in
11309 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11310 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11311 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11314 # compilation failed
11315 lt_cv_dlopen_self=no
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11323 $as_echo "$lt_cv_dlopen_self" >&6; }
11325 if test "x$lt_cv_dlopen_self" = xyes; then
11326 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11328 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11329 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11330 $as_echo_n "(cached) " >&6
11332 if test "$cross_compiling" = yes; then :
11333 lt_cv_dlopen_self_static=cross
11335 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11336 lt_status=$lt_dlunknown
11337 cat > conftest.$ac_ext <<_LT_EOF
11338 #line 11338 "configure"
11339 #include "confdefs.h"
11348 # define LT_DLGLOBAL RTLD_GLOBAL
11351 # define LT_DLGLOBAL DL_GLOBAL
11353 # define LT_DLGLOBAL 0
11357 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11358 find out it does not work in some platform. */
11359 #ifndef LT_DLLAZY_OR_NOW
11361 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11364 # define LT_DLLAZY_OR_NOW DL_LAZY
11367 # define LT_DLLAZY_OR_NOW RTLD_NOW
11370 # define LT_DLLAZY_OR_NOW DL_NOW
11372 # define LT_DLLAZY_OR_NOW 0
11379 void fnord() { int i=42;}
11382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11383 int status = $lt_dlunknown;
11387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11388 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11389 /* dlclose (self); */
11397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11398 (eval $ac_link) 2>&5
11400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11401 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11402 (./conftest; exit; ) >&5 2>/dev/null
11404 case x$lt_status in
11405 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11406 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11407 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11410 # compilation failed
11411 lt_cv_dlopen_self_static=no
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11419 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11422 CPPFLAGS="$save_CPPFLAGS"
11423 LDFLAGS="$save_LDFLAGS"
11428 case $lt_cv_dlopen_self in
11429 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11430 *) enable_dlopen_self=unknown ;;
11433 case $lt_cv_dlopen_self_static in
11434 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11435 *) enable_dlopen_self_static=unknown ;;
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11458 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11459 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11460 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11461 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11463 $as_echo "yes" >&6; }
11465 # FIXME - insert some real tests, host_os isn't really good enough
11468 if test -n "$STRIP" ; then
11469 striplib="$STRIP -x"
11470 old_striplib="$STRIP -S"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11472 $as_echo "yes" >&6; }
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11475 $as_echo "no" >&6; }
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11496 # Report which library types will actually be built
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11498 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11500 $as_echo "$can_build_shared" >&6; }
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11503 $as_echo_n "checking whether to build shared libraries... " >&6; }
11504 test "$can_build_shared" = "no" && enable_shared=no
11506 # On AIX, shared libraries and static libraries use the same namespace, and
11507 # are all built from PIC.
11510 test "$enable_shared" = yes && enable_static=no
11511 if test -n "$RANLIB"; then
11512 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11513 postinstall_cmds='$RANLIB $lib'
11518 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11519 test "$enable_shared" = yes && enable_static=no
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11524 $as_echo "$enable_shared" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11527 $as_echo_n "checking whether to build static libraries... " >&6; }
11528 # Make sure either enable_shared or enable_static is yes.
11529 test "$enable_shared" = yes || enable_static=yes
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11531 $as_echo "$enable_static" >&6; }
11538 ac_cpp='$CPP $CPPFLAGS'
11539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11557 ac_config_commands="$ac_config_commands libtool"
11562 # Only expand once:
11567 ac_header_dirent=no
11568 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11569 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11571 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11572 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
11573 $as_echo_n "(cached) " >&6
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577 #include <sys/types.h>
11589 if ac_fn_c_try_compile "$LINENO"; then :
11590 eval "$as_ac_Header=yes"
11592 eval "$as_ac_Header=no"
11594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596 eval ac_res=\$$as_ac_Header
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11598 $as_echo "$ac_res" >&6; }
11599 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11600 cat >>confdefs.h <<_ACEOF
11601 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11604 ac_header_dirent=$ac_hdr; break
11608 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11609 if test $ac_header_dirent = dirent.h; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11611 $as_echo_n "checking for library containing opendir... " >&6; }
11612 if test "${ac_cv_search_opendir+set}" = set; then :
11613 $as_echo_n "(cached) " >&6
11615 ac_func_search_save_LIBS=$LIBS
11616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11619 /* Override any GCC internal prototype to avoid an error.
11620 Use char because int might match the return type of a GCC
11621 builtin and then its argument prototype would still apply. */
11634 for ac_lib in '' dir; do
11635 if test -z "$ac_lib"; then
11636 ac_res="none required"
11639 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_search_opendir=$ac_res
11644 rm -f core conftest.err conftest.$ac_objext \
11646 if test "${ac_cv_search_opendir+set}" = set; then :
11650 if test "${ac_cv_search_opendir+set}" = set; then :
11653 ac_cv_search_opendir=no
11655 rm conftest.$ac_ext
11656 LIBS=$ac_func_search_save_LIBS
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11659 $as_echo "$ac_cv_search_opendir" >&6; }
11660 ac_res=$ac_cv_search_opendir
11661 if test "$ac_res" != no; then :
11662 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11668 $as_echo_n "checking for library containing opendir... " >&6; }
11669 if test "${ac_cv_search_opendir+set}" = set; then :
11670 $as_echo_n "(cached) " >&6
11672 ac_func_search_save_LIBS=$LIBS
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11676 /* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11691 for ac_lib in '' x; do
11692 if test -z "$ac_lib"; then
11693 ac_res="none required"
11696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11698 if ac_fn_c_try_link "$LINENO"; then :
11699 ac_cv_search_opendir=$ac_res
11701 rm -f core conftest.err conftest.$ac_objext \
11703 if test "${ac_cv_search_opendir+set}" = set; then :
11707 if test "${ac_cv_search_opendir+set}" = set; then :
11710 ac_cv_search_opendir=no
11712 rm conftest.$ac_ext
11713 LIBS=$ac_func_search_save_LIBS
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11716 $as_echo "$ac_cv_search_opendir" >&6; }
11717 ac_res=$ac_cv_search_opendir
11718 if test "$ac_res" != no; then :
11719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11726 $as_echo_n "checking for ANSI C header files... " >&6; }
11727 if test "${ac_cv_header_stdc+set}" = set; then :
11728 $as_echo_n "(cached) " >&6
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11732 #include <stdlib.h>
11733 #include <stdarg.h>
11734 #include <string.h>
11745 if ac_fn_c_try_compile "$LINENO"; then :
11746 ac_cv_header_stdc=yes
11748 ac_cv_header_stdc=no
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752 if test $ac_cv_header_stdc = yes; then
11753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 #include <string.h>
11759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11760 $EGREP "memchr" >/dev/null 2>&1; then :
11763 ac_cv_header_stdc=no
11769 if test $ac_cv_header_stdc = yes; then
11770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h. */
11773 #include <stdlib.h>
11776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11777 $EGREP "free" >/dev/null 2>&1; then :
11780 ac_cv_header_stdc=no
11786 if test $ac_cv_header_stdc = yes; then
11787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11788 if test "$cross_compiling" = yes; then :
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11794 #include <stdlib.h>
11795 #if ((' ' & 0x0FF) == 0x020)
11796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11799 # define ISLOWER(c) \
11800 (('a' <= (c) && (c) <= 'i') \
11801 || ('j' <= (c) && (c) <= 'r') \
11802 || ('s' <= (c) && (c) <= 'z'))
11803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11811 for (i = 0; i < 256; i++)
11812 if (XOR (islower (i), ISLOWER (i))
11813 || toupper (i) != TOUPPER (i))
11818 if ac_fn_c_try_run "$LINENO"; then :
11821 ac_cv_header_stdc=no
11823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11824 conftest.$ac_objext conftest.beam conftest.$ac_ext
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11830 $as_echo "$ac_cv_header_stdc" >&6; }
11831 if test $ac_cv_header_stdc = yes; then
11833 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11838 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11839 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11844 #include <sys/types.h>
11845 #include <sys/wait.h>
11846 #ifndef WEXITSTATUS
11847 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11850 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11858 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11863 if ac_fn_c_try_compile "$LINENO"; then :
11864 ac_cv_header_sys_wait_h=yes
11866 ac_cv_header_sys_wait_h=no
11868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11871 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11872 if test $ac_cv_header_sys_wait_h = yes; then
11874 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11879 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11880 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11886 #include <stdbool.h>
11888 "error: bool is not defined"
11891 "error: false is not defined"
11894 "error: false is not 0"
11897 "error: true is not defined"
11900 "error: true is not 1"
11902 #ifndef __bool_true_false_are_defined
11903 "error: __bool_true_false_are_defined is not defined"
11906 struct s { _Bool s: 1; _Bool t; } s;
11908 char a[true == 1 ? 1 : -1];
11909 char b[false == 0 ? 1 : -1];
11910 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11911 char d[(bool) 0.5 == true ? 1 : -1];
11913 char f[(_Bool) 0.0 == false ? 1 : -1];
11915 char h[sizeof (_Bool)];
11916 char i[sizeof s.t];
11917 enum { j = false, k = true, l = false * true, m = true * 256 };
11918 /* The following fails for
11919 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11921 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11922 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11923 # if defined __xlc__ || defined __GNUC__
11924 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11925 reported by James Lemley on 2005-10-05; see
11926 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11927 This test is not quite right, since xlc is allowed to
11928 reject this program, as the initializer for xlcbug is
11929 not one of the forms that C requires support for.
11930 However, doing the test right would require a runtime
11931 test, and that would make cross-compilation harder.
11932 Let us hope that IBM fixes the xlc bug, and also adds
11933 support for this kind of constant expression. In the
11934 meantime, this test will reject xlc, which is OK, since
11935 our stdbool.h substitute should suffice. We also test
11936 this with GCC, where it should work, to detect more
11937 quickly whether someone messes up the test in the
11939 char digs[] = "0123456789";
11940 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11942 /* Catch a bug in an HP-UX C compiler. See
11943 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11944 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11955 /* Refer to every declared value, to avoid compiler optimizations. */
11956 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11957 + !m + !n + !o + !p + !q + !pq);
11963 if ac_fn_c_try_compile "$LINENO"; then :
11964 ac_cv_header_stdbool_h=yes
11966 ac_cv_header_stdbool_h=no
11968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11971 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11972 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11973 if test "x$ac_cv_type__Bool" = x""yes; then :
11975 cat >>confdefs.h <<_ACEOF
11976 #define HAVE__BOOL 1
11982 if test $ac_cv_header_stdbool_h = yes; then
11984 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
11989 for ac_header in errno.h fcntl.h limits.h unistd.h sys/time.h utmp.h \
11990 utmpx.h termios.h termio.h sgtty.h sys/ioctl.h syslog.h paths.h \
11991 utime.h ulimit.h sys/resource.h gshadow.h lastlog.h \
11992 locale.h rpc/key_prot.h netdb.h
11994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11995 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11997 cat >>confdefs.h <<_ACEOF
11998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12006 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
12007 if test "x$ac_cv_header_shadow_h" = x""yes; then :
12010 as_fn_error $? "You need a libc with shadow.h" "$LINENO" 5
12015 for ac_func in l64a fchmod fchown fsync futimes getgroups gethostname getspnam \
12016 gettimeofday getusershell getutent initgroups lchown lckpwdf lstat \
12017 lutimes memcpy memset setgroups sigaction strchr updwtmp updwtmpx innetgr \
12018 getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r getaddrinfo
12020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12022 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12023 cat >>confdefs.h <<_ACEOF
12024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12030 # Check whether --enable-largefile was given.
12031 if test "${enable_largefile+set}" = set; then :
12032 enableval=$enable_largefile;
12035 if test "$enable_largefile" != no; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12038 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12039 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
12042 ac_cv_sys_largefile_CC=no
12043 if test "$GCC" != yes; then
12046 # IRIX 6.2 and later do not support large files by default,
12047 # so use the C compiler's -n32 option if that helps.
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 #include <sys/types.h>
12051 /* Check that off_t can represent 2**63 - 1 correctly.
12052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12053 since some C++ compilers masquerading as C compilers
12054 incorrectly reject 9223372036854775807. */
12055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12057 && LARGE_OFF_T % 2147483647 == 1)
12067 if ac_fn_c_try_compile "$LINENO"; then :
12070 rm -f core conftest.err conftest.$ac_objext
12072 if ac_fn_c_try_compile "$LINENO"; then :
12073 ac_cv_sys_largefile_CC=' -n32'; break
12075 rm -f core conftest.err conftest.$ac_objext
12079 rm -f conftest.$ac_ext
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12083 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12084 if test "$ac_cv_sys_largefile_CC" != no; then
12085 CC=$CC$ac_cv_sys_largefile_CC
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12089 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12090 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
12091 $as_echo_n "(cached) " >&6
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 #include <sys/types.h>
12097 /* Check that off_t can represent 2**63 - 1 correctly.
12098 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12099 since some C++ compilers masquerading as C compilers
12100 incorrectly reject 9223372036854775807. */
12101 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12102 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12103 && LARGE_OFF_T % 2147483647 == 1)
12113 if ac_fn_c_try_compile "$LINENO"; then :
12114 ac_cv_sys_file_offset_bits=no; break
12116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119 #define _FILE_OFFSET_BITS 64
12120 #include <sys/types.h>
12121 /* Check that off_t can represent 2**63 - 1 correctly.
12122 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12123 since some C++ compilers masquerading as C compilers
12124 incorrectly reject 9223372036854775807. */
12125 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12127 && LARGE_OFF_T % 2147483647 == 1)
12137 if ac_fn_c_try_compile "$LINENO"; then :
12138 ac_cv_sys_file_offset_bits=64; break
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141 ac_cv_sys_file_offset_bits=unknown
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12146 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12147 case $ac_cv_sys_file_offset_bits in #(
12150 cat >>confdefs.h <<_ACEOF
12151 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12156 if test $ac_cv_sys_file_offset_bits = unknown; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12158 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12159 if test "${ac_cv_sys_large_files+set}" = set; then :
12160 $as_echo_n "(cached) " >&6
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12165 #include <sys/types.h>
12166 /* Check that off_t can represent 2**63 - 1 correctly.
12167 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12168 since some C++ compilers masquerading as C compilers
12169 incorrectly reject 9223372036854775807. */
12170 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12171 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12172 && LARGE_OFF_T % 2147483647 == 1)
12182 if ac_fn_c_try_compile "$LINENO"; then :
12183 ac_cv_sys_large_files=no; break
12185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12187 /* end confdefs.h. */
12188 #define _LARGE_FILES 1
12189 #include <sys/types.h>
12190 /* Check that off_t can represent 2**63 - 1 correctly.
12191 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12192 since some C++ compilers masquerading as C compilers
12193 incorrectly reject 9223372036854775807. */
12194 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12195 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12196 && LARGE_OFF_T % 2147483647 == 1)
12206 if ac_fn_c_try_compile "$LINENO"; then :
12207 ac_cv_sys_large_files=1; break
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210 ac_cv_sys_large_files=unknown
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12215 $as_echo "$ac_cv_sys_large_files" >&6; }
12216 case $ac_cv_sys_large_files in #(
12219 cat >>confdefs.h <<_ACEOF
12220 #define _LARGE_FILES $ac_cv_sys_large_files
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12230 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12231 if test "${ac_cv_c_const+set}" = set; then :
12232 $as_echo_n "(cached) " >&6
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12240 /* FIXME: Include the comments suggested by Paul. */
12241 #ifndef __cplusplus
12242 /* Ultrix mips cc rejects this. */
12243 typedef int charset[2];
12245 /* SunOS 4.1.1 cc rejects this. */
12246 char const *const *pcpcc;
12248 /* NEC SVR4.0.2 mips cc rejects this. */
12249 struct point {int x, y;};
12250 static struct point const zero = {0,0};
12251 /* AIX XL C 1.02.0.0 rejects this.
12252 It does not let you subtract one const X* pointer from another in
12253 an arm of an if-expression whose if-part is not a constant
12255 const char *g = "string";
12256 pcpcc = &g + (g ? g-g : 0);
12257 /* HPUX 7.0 cc rejects these. */
12259 ppc = (char**) pcpcc;
12260 pcpcc = (char const *const *) ppc;
12261 { /* SCO 3.2v4 cc rejects this. */
12263 char const *s = 0 ? (char *) 0 : (char const *) 0;
12268 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12269 int x[] = {25, 17};
12270 const int *foo = &x[0];
12273 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12274 typedef const int *iptr;
12278 { /* AIX XL C 1.02.0.0 rejects this saying
12279 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12280 struct s { int j; const int *ap[3]; };
12281 struct s *b; b->j = 5;
12283 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12284 const int foo = 10;
12285 if (!foo) return 0;
12287 return !cs[0] && !zero.x;
12294 if ac_fn_c_try_compile "$LINENO"; then :
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12302 $as_echo "$ac_cv_c_const" >&6; }
12303 if test $ac_cv_c_const = no; then
12305 $as_echo "#define const /**/" >>confdefs.h
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12310 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12311 if test "${ac_cv_type_uid_t+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315 /* end confdefs.h. */
12316 #include <sys/types.h>
12319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12320 $EGREP "uid_t" >/dev/null 2>&1; then :
12321 ac_cv_type_uid_t=yes
12323 ac_cv_type_uid_t=no
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12329 $as_echo "$ac_cv_type_uid_t" >&6; }
12330 if test $ac_cv_type_uid_t = no; then
12332 $as_echo "#define uid_t int" >>confdefs.h
12335 $as_echo "#define gid_t int" >>confdefs.h
12339 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12340 if test "x$ac_cv_type_off_t" = x""yes; then :
12344 cat >>confdefs.h <<_ACEOF
12345 #define off_t long int
12350 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12351 if test "x$ac_cv_type_pid_t" = x""yes; then :
12355 cat >>confdefs.h <<_ACEOF
12361 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12362 if test "x$ac_cv_type_mode_t" = x""yes; then :
12366 cat >>confdefs.h <<_ACEOF
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12373 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
12374 if test "${ac_cv_header_stat_broken+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12379 #include <sys/types.h>
12380 #include <sys/stat.h>
12382 #if defined S_ISBLK && defined S_IFDIR
12383 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12386 #if defined S_ISBLK && defined S_IFCHR
12387 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12390 #if defined S_ISLNK && defined S_IFREG
12391 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12394 #if defined S_ISSOCK && defined S_IFREG
12395 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12399 if ac_fn_c_try_compile "$LINENO"; then :
12400 ac_cv_header_stat_broken=no
12402 ac_cv_header_stat_broken=yes
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12407 $as_echo "$ac_cv_header_stat_broken" >&6; }
12408 if test $ac_cv_header_stat_broken = yes; then
12410 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12414 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
12415 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
12417 cat >>confdefs.h <<_ACEOF
12418 #define HAVE_STRUCT_STAT_ST_RDEV 1
12424 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12425 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
12427 cat >>confdefs.h <<_ACEOF
12428 #define HAVE_STRUCT_STAT_ST_ATIM 1
12434 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
12435 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then :
12437 cat >>confdefs.h <<_ACEOF
12438 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
12444 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
12445 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
12447 cat >>confdefs.h <<_ACEOF
12448 #define HAVE_STRUCT_STAT_ST_MTIM 1
12454 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
12455 if test "x$ac_cv_member_struct_stat_st_mtimensec" = x""yes; then :
12457 cat >>confdefs.h <<_ACEOF
12458 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12465 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12466 if test "${ac_cv_header_time+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12471 #include <sys/types.h>
12472 #include <sys/time.h>
12478 if ((struct tm *) 0)
12484 if ac_fn_c_try_compile "$LINENO"; then :
12485 ac_cv_header_time=yes
12487 ac_cv_header_time=no
12489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12492 $as_echo "$ac_cv_header_time" >&6; }
12493 if test $ac_cv_header_time = yes; then
12495 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12500 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12501 if test "${ac_cv_struct_tm+set}" = set; then :
12502 $as_echo_n "(cached) " >&6
12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12506 #include <sys/types.h>
12513 int *p = &tm.tm_sec;
12519 if ac_fn_c_try_compile "$LINENO"; then :
12520 ac_cv_struct_tm=time.h
12522 ac_cv_struct_tm=sys/time.h
12524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12527 $as_echo "$ac_cv_struct_tm" >&6; }
12528 if test $ac_cv_struct_tm = sys/time.h; then
12530 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12535 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "#include <utmp.h>
12537 if test "x$ac_cv_member_struct_utmp_ut_type" = x""yes; then :
12539 cat >>confdefs.h <<_ACEOF
12540 #define HAVE_STRUCT_UTMP_UT_TYPE 1
12545 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "#include <utmp.h>
12547 if test "x$ac_cv_member_struct_utmp_ut_id" = x""yes; then :
12549 cat >>confdefs.h <<_ACEOF
12550 #define HAVE_STRUCT_UTMP_UT_ID 1
12555 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_name" "ac_cv_member_struct_utmp_ut_name" "#include <utmp.h>
12557 if test "x$ac_cv_member_struct_utmp_ut_name" = x""yes; then :
12559 cat >>confdefs.h <<_ACEOF
12560 #define HAVE_STRUCT_UTMP_UT_NAME 1
12565 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "#include <utmp.h>
12567 if test "x$ac_cv_member_struct_utmp_ut_user" = x""yes; then :
12569 cat >>confdefs.h <<_ACEOF
12570 #define HAVE_STRUCT_UTMP_UT_USER 1
12575 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "#include <utmp.h>
12577 if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then :
12579 cat >>confdefs.h <<_ACEOF
12580 #define HAVE_STRUCT_UTMP_UT_HOST 1
12585 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_syslen" "ac_cv_member_struct_utmp_ut_syslen" "#include <utmp.h>
12587 if test "x$ac_cv_member_struct_utmp_ut_syslen" = x""yes; then :
12589 cat >>confdefs.h <<_ACEOF
12590 #define HAVE_STRUCT_UTMP_UT_SYSLEN 1
12595 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr" "ac_cv_member_struct_utmp_ut_addr" "#include <utmp.h>
12597 if test "x$ac_cv_member_struct_utmp_ut_addr" = x""yes; then :
12599 cat >>confdefs.h <<_ACEOF
12600 #define HAVE_STRUCT_UTMP_UT_ADDR 1
12605 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_addr_v6" "ac_cv_member_struct_utmp_ut_addr_v6" "#include <utmp.h>
12607 if test "x$ac_cv_member_struct_utmp_ut_addr_v6" = x""yes; then :
12609 cat >>confdefs.h <<_ACEOF
12610 #define HAVE_STRUCT_UTMP_UT_ADDR_V6 1
12615 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_time" "ac_cv_member_struct_utmp_ut_time" "#include <utmp.h>
12617 if test "x$ac_cv_member_struct_utmp_ut_time" = x""yes; then :
12619 cat >>confdefs.h <<_ACEOF
12620 #define HAVE_STRUCT_UTMP_UT_TIME 1
12625 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_xtime" "ac_cv_member_struct_utmp_ut_xtime" "#include <utmp.h>
12627 if test "x$ac_cv_member_struct_utmp_ut_xtime" = x""yes; then :
12629 cat >>confdefs.h <<_ACEOF
12630 #define HAVE_STRUCT_UTMP_UT_XTIME 1
12635 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "#include <utmp.h>
12637 if test "x$ac_cv_member_struct_utmp_ut_tv" = x""yes; then :
12639 cat >>confdefs.h <<_ACEOF
12640 #define HAVE_STRUCT_UTMP_UT_TV 1
12646 if test "$ac_cv_header_utmpx_h" = "yes" &&
12647 test "$ac_cv_member_struct_utmp_ut_id" != "yes"; then
12648 as_fn_error $? "Systems with UTMPX and no ut_id field in the utmp structure are not supported" "$LINENO" 5
12651 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_name" "ac_cv_member_struct_utmpx_ut_name" "#include <utmpx.h>
12653 if test "x$ac_cv_member_struct_utmpx_ut_name" = x""yes; then :
12655 cat >>confdefs.h <<_ACEOF
12656 #define HAVE_STRUCT_UTMPX_UT_NAME 1
12661 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "#include <utmpx.h>
12663 if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then :
12665 cat >>confdefs.h <<_ACEOF
12666 #define HAVE_STRUCT_UTMPX_UT_HOST 1
12671 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "#include <utmpx.h>
12673 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = x""yes; then :
12675 cat >>confdefs.h <<_ACEOF
12676 #define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
12681 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr" "ac_cv_member_struct_utmpx_ut_addr" "#include <utmpx.h>
12683 if test "x$ac_cv_member_struct_utmpx_ut_addr" = x""yes; then :
12685 cat >>confdefs.h <<_ACEOF
12686 #define HAVE_STRUCT_UTMPX_UT_ADDR 1
12691 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_addr_v6" "ac_cv_member_struct_utmpx_ut_addr_v6" "#include <utmpx.h>
12693 if test "x$ac_cv_member_struct_utmpx_ut_addr_v6" = x""yes; then :
12695 cat >>confdefs.h <<_ACEOF
12696 #define HAVE_STRUCT_UTMPX_UT_ADDR_V6 1
12701 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_time" "ac_cv_member_struct_utmpx_ut_time" "#include <utmpx.h>
12703 if test "x$ac_cv_member_struct_utmpx_ut_time" = x""yes; then :
12705 cat >>confdefs.h <<_ACEOF
12706 #define HAVE_STRUCT_UTMPX_UT_TIME 1
12711 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_xtime" "ac_cv_member_struct_utmpx_ut_xtime" "#include <utmpx.h>
12713 if test "x$ac_cv_member_struct_utmpx_ut_xtime" = x""yes; then :
12715 cat >>confdefs.h <<_ACEOF
12716 #define HAVE_STRUCT_UTMPX_UT_XTIME 1
12723 if test "$ac_cv_header_lastlog_h" = "yes"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ll_host in struct lastlog" >&5
12725 $as_echo_n "checking for ll_host in struct lastlog... " >&6; }
12726 if test "${ac_cv_struct_lastlog_ll_host+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12731 #include <lastlog.h>
12735 struct lastlog ll; char *cp = ll.ll_host;
12741 if ac_fn_c_try_compile "$LINENO"; then :
12742 ac_cv_struct_lastlog_ll_host=yes
12744 ac_cv_struct_lastlog_ll_host=no
12747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_lastlog_ll_host" >&5
12751 $as_echo "$ac_cv_struct_lastlog_ll_host" >&6; }
12753 if test "$ac_cv_struct_lastlog_ll_host" = "yes"; then
12755 $as_echo "#define HAVE_LL_HOST 1" >>confdefs.h
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
12761 $as_echo_n "checking type of array argument to getgroups... " >&6; }
12762 if test "${ac_cv_type_getgroups+set}" = set; then :
12763 $as_echo_n "(cached) " >&6
12765 if test "$cross_compiling" = yes; then :
12766 ac_cv_type_getgroups=cross
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12770 /* Thanks to Mike Rendell for this test. */
12771 $ac_includes_default
12774 #define MAX(x, y) ((x) > (y) ? (x) : (y))
12779 gid_t gidset[NGID];
12781 union { gid_t gval; long int lval; } val;
12784 for (i = 0; i < NGID; i++)
12785 gidset[i] = val.gval;
12786 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
12788 /* Exit non-zero if getgroups seems to require an array of ints. This
12789 happens when gid_t is short int but getgroups modifies an array
12791 return n > 0 && gidset[n] != val.gval;
12794 if ac_fn_c_try_run "$LINENO"; then :
12795 ac_cv_type_getgroups=gid_t
12797 ac_cv_type_getgroups=int
12799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12800 conftest.$ac_objext conftest.beam conftest.$ac_ext
12803 if test $ac_cv_type_getgroups = cross; then
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12806 #include <unistd.h>
12809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12810 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
12811 ac_cv_type_getgroups=gid_t
12813 ac_cv_type_getgroups=int
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
12820 $as_echo "$ac_cv_type_getgroups" >&6; }
12822 cat >>confdefs.h <<_ACEOF
12823 #define GETGROUPS_T $ac_cv_type_getgroups
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
12828 $as_echo_n "checking return type of signal handlers... " >&6; }
12829 if test "${ac_cv_type_signal+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h. */
12834 #include <sys/types.h>
12835 #include <signal.h>
12840 return *(signal (0, 0)) (0) == 1;
12845 if ac_fn_c_try_compile "$LINENO"; then :
12846 ac_cv_type_signal=int
12848 ac_cv_type_signal=void
12850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
12853 $as_echo "$ac_cv_type_signal" >&6; }
12855 cat >>confdefs.h <<_ACEOF
12856 #define RETSIGTYPE $ac_cv_type_signal
12863 for ac_header in $ac_header_list
12865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12866 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12868 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12869 cat >>confdefs.h <<_ACEOF
12870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
12881 $as_echo_n "checking whether utime accepts a null argument... " >&6; }
12882 if test "${ac_cv_func_utime_null+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12885 rm -f conftest.data; >conftest.data
12886 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
12887 if test "$cross_compiling" = yes; then :
12888 ac_cv_func_utime_null='guessing yes'
12890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12891 /* end confdefs.h. */
12892 $ac_includes_default
12893 #ifdef HAVE_UTIME_H
12894 # include <utime.h>
12900 return ! (stat ("conftest.data", &s) == 0
12901 && utime ("conftest.data", 0) == 0
12902 && stat ("conftest.data", &t) == 0
12903 && t.st_mtime >= s.st_mtime
12904 && t.st_mtime - s.st_mtime < 120);
12909 if ac_fn_c_try_run "$LINENO"; then :
12910 ac_cv_func_utime_null=yes
12912 ac_cv_func_utime_null=no
12914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12915 conftest.$ac_objext conftest.beam conftest.$ac_ext
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
12920 $as_echo "$ac_cv_func_utime_null" >&6; }
12921 if test "x$ac_cv_func_utime_null" != xno; then
12922 ac_cv_func_utime_null=yes
12924 $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
12927 rm -f conftest.data
12929 for ac_func in strftime
12931 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12932 if test "x$ac_cv_func_strftime" = x""yes; then :
12933 cat >>confdefs.h <<_ACEOF
12934 #define HAVE_STRFTIME 1
12938 # strftime is in -lintl on SCO UNIX.
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12940 $as_echo_n "checking for strftime in -lintl... " >&6; }
12941 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12942 $as_echo_n "(cached) " >&6
12944 ac_check_lib_save_LIBS=$LIBS
12945 LIBS="-lintl $LIBS"
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12949 /* Override any GCC internal prototype to avoid an error.
12950 Use char because int might match the return type of a GCC
12951 builtin and then its argument prototype would still apply. */
12959 return strftime ();
12964 if ac_fn_c_try_link "$LINENO"; then :
12965 ac_cv_lib_intl_strftime=yes
12967 ac_cv_lib_intl_strftime=no
12969 rm -f core conftest.err conftest.$ac_objext \
12970 conftest$ac_exeext conftest.$ac_ext
12971 LIBS=$ac_check_lib_save_LIBS
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12974 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12975 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12976 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12978 LIBS="-lintl $LIBS"
12984 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
12985 if test "x$ac_cv_func_mkdir" = x""yes; then :
12986 $as_echo "#define HAVE_MKDIR 1" >>confdefs.h
12989 case " $LIBOBJS " in
12990 *" mkdir.$ac_objext "* ) ;;
12991 *) LIBOBJS="$LIBOBJS mkdir.$ac_objext"
12997 ac_fn_c_check_func "$LINENO" "putgrent" "ac_cv_func_putgrent"
12998 if test "x$ac_cv_func_putgrent" = x""yes; then :
12999 $as_echo "#define HAVE_PUTGRENT 1" >>confdefs.h
13002 case " $LIBOBJS " in
13003 *" putgrent.$ac_objext "* ) ;;
13004 *) LIBOBJS="$LIBOBJS putgrent.$ac_objext"
13010 ac_fn_c_check_func "$LINENO" "putpwent" "ac_cv_func_putpwent"
13011 if test "x$ac_cv_func_putpwent" = x""yes; then :
13012 $as_echo "#define HAVE_PUTPWENT 1" >>confdefs.h
13015 case " $LIBOBJS " in
13016 *" putpwent.$ac_objext "* ) ;;
13017 *) LIBOBJS="$LIBOBJS putpwent.$ac_objext"
13023 ac_fn_c_check_func "$LINENO" "putspent" "ac_cv_func_putspent"
13024 if test "x$ac_cv_func_putspent" = x""yes; then :
13025 $as_echo "#define HAVE_PUTSPENT 1" >>confdefs.h
13028 case " $LIBOBJS " in
13029 *" putspent.$ac_objext "* ) ;;
13030 *) LIBOBJS="$LIBOBJS putspent.$ac_objext"
13036 ac_fn_c_check_func "$LINENO" "rename" "ac_cv_func_rename"
13037 if test "x$ac_cv_func_rename" = x""yes; then :
13038 $as_echo "#define HAVE_RENAME 1" >>confdefs.h
13041 case " $LIBOBJS " in
13042 *" rename.$ac_objext "* ) ;;
13043 *) LIBOBJS="$LIBOBJS rename.$ac_objext"
13049 ac_fn_c_check_func "$LINENO" "rmdir" "ac_cv_func_rmdir"
13050 if test "x$ac_cv_func_rmdir" = x""yes; then :
13051 $as_echo "#define HAVE_RMDIR 1" >>confdefs.h
13054 case " $LIBOBJS " in
13055 *" rmdir.$ac_objext "* ) ;;
13056 *) LIBOBJS="$LIBOBJS rmdir.$ac_objext"
13063 ac_fn_c_check_func "$LINENO" "sgetgrent" "ac_cv_func_sgetgrent"
13064 if test "x$ac_cv_func_sgetgrent" = x""yes; then :
13065 $as_echo "#define HAVE_SGETGRENT 1" >>confdefs.h
13068 case " $LIBOBJS " in
13069 *" sgetgrent.$ac_objext "* ) ;;
13070 *) LIBOBJS="$LIBOBJS sgetgrent.$ac_objext"
13076 ac_fn_c_check_func "$LINENO" "sgetpwent" "ac_cv_func_sgetpwent"
13077 if test "x$ac_cv_func_sgetpwent" = x""yes; then :
13078 $as_echo "#define HAVE_SGETPWENT 1" >>confdefs.h
13081 case " $LIBOBJS " in
13082 *" sgetpwent.$ac_objext "* ) ;;
13083 *) LIBOBJS="$LIBOBJS sgetpwent.$ac_objext"
13089 ac_fn_c_check_func "$LINENO" "sgetspent" "ac_cv_func_sgetspent"
13090 if test "x$ac_cv_func_sgetspent" = x""yes; then :
13091 $as_echo "#define HAVE_SGETSPENT 1" >>confdefs.h
13094 case " $LIBOBJS " in
13095 *" sgetspent.$ac_objext "* ) ;;
13096 *) LIBOBJS="$LIBOBJS sgetspent.$ac_objext"
13103 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13104 if test "x$ac_cv_func_snprintf" = x""yes; then :
13105 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
13108 case " $LIBOBJS " in
13109 *" snprintf.$ac_objext "* ) ;;
13110 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
13116 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13117 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
13118 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
13121 case " $LIBOBJS " in
13122 *" strcasecmp.$ac_objext "* ) ;;
13123 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
13129 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13130 if test "x$ac_cv_func_strdup" = x""yes; then :
13131 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h
13134 case " $LIBOBJS " in
13135 *" strdup.$ac_objext "* ) ;;
13136 *) LIBOBJS="$LIBOBJS strdup.$ac_objext"
13142 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13143 if test "x$ac_cv_func_strerror" = x""yes; then :
13144 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
13147 case " $LIBOBJS " in
13148 *" strerror.$ac_objext "* ) ;;
13149 *) LIBOBJS="$LIBOBJS strerror.$ac_objext"
13155 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
13156 if test "x$ac_cv_func_strstr" = x""yes; then :
13157 $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
13160 case " $LIBOBJS " in
13161 *" strstr.$ac_objext "* ) ;;
13162 *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
13170 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp"
13171 if test "x$ac_cv_func_setpgrp" = x""yes; then :
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13176 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13177 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13178 $as_echo_n "(cached) " >&6
13180 if test "$cross_compiling" = yes; then :
13181 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185 $ac_includes_default
13189 /* If this system has a BSD-style setpgrp which takes arguments,
13190 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13191 exit successfully. */
13192 return setpgrp (1,1) != -1;
13197 if ac_fn_c_try_run "$LINENO"; then :
13198 ac_cv_func_setpgrp_void=no
13200 ac_cv_func_setpgrp_void=yes
13202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13203 conftest.$ac_objext conftest.beam conftest.$ac_ext
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13208 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13209 if test $ac_cv_func_setpgrp_void = yes; then
13211 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13216 if test "$ac_cv_header_shadow_h" = "yes"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working shadow group support" >&5
13218 $as_echo_n "checking for working shadow group support... " >&6; }
13219 if test "${ac_cv_libc_shadowgrp+set}" = set; then :
13220 $as_echo_n "(cached) " >&6
13222 if test "$cross_compiling" = yes; then :
13223 ac_cv_libc_shadowgrp=no
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13229 #include <shadow.h>
13232 struct sgrp *sg = sgetsgent("test:x::");
13233 /* NYS libc on Red Hat 3.0.3 has broken shadow group support */
13234 return !sg || !sg->sg_adm || !sg->sg_mem;
13238 if ac_fn_c_try_run "$LINENO"; then :
13239 ac_cv_libc_shadowgrp=yes
13241 ac_cv_libc_shadowgrp=no
13243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13244 conftest.$ac_objext conftest.beam conftest.$ac_ext
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libc_shadowgrp" >&5
13250 $as_echo "$ac_cv_libc_shadowgrp" >&6; }
13252 if test "$ac_cv_libc_shadowgrp" = "yes"; then
13254 $as_echo "#define HAVE_SHADOWGRP 1" >>confdefs.h
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of shared mail directory" >&5
13260 $as_echo_n "checking location of shared mail directory... " >&6; }
13261 if test "${shadow_cv_maildir+set}" = set; then :
13262 $as_echo_n "(cached) " >&6
13264 for shadow_cv_maildir in /var/mail /var/spool/mail /usr/spool/mail /usr/mail none; do
13265 if test -d $shadow_cv_maildir; then
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $shadow_cv_maildir" >&5
13271 $as_echo "$shadow_cv_maildir" >&6; }
13272 if test $shadow_cv_maildir != none; then
13274 cat >>confdefs.h <<_ACEOF
13275 #define MAIL_SPOOL_DIR "$shadow_cv_maildir"
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of user mail file" >&5
13281 $as_echo_n "checking location of user mail file... " >&6; }
13282 if test "${shadow_cv_mailfile+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13285 for shadow_cv_mailfile in Mailbox mailbox Mail mail .mail none; do
13286 if test -f $HOME/$shadow_cv_mailfile; then
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $shadow_cv_mailfile" >&5
13292 $as_echo "$shadow_cv_mailfile" >&6; }
13293 if test $shadow_cv_mailfile != none; then
13295 cat >>confdefs.h <<_ACEOF
13296 #define MAIL_SPOOL_FILE "$shadow_cv_mailfile"
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of utmp" >&5
13302 $as_echo_n "checking location of utmp... " >&6; }
13303 if test "${shadow_cv_utmpdir+set}" = set; then :
13304 $as_echo_n "(cached) " >&6
13306 for shadow_cv_utmpdir in /var/run /var/adm /usr/adm /etc none; do
13307 if test -f $shadow_cv_utmpdir/utmp; then
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $shadow_cv_utmpdir" >&5
13313 $as_echo "$shadow_cv_utmpdir" >&6; }
13314 if test "$shadow_cv_utmpdir" = "none"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: utmp file not found" >&5
13316 $as_echo "$as_me: WARNING: utmp file not found" >&2;}
13319 cat >>confdefs.h <<_ACEOF
13320 #define _UTMP_FILE "$shadow_cv_utmpdir/utmp"
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of faillog/lastlog/wtmp" >&5
13325 $as_echo_n "checking location of faillog/lastlog/wtmp... " >&6; }
13326 if test "${shadow_cv_logdir+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
13329 for shadow_cv_logdir in /var/log /var/adm /usr/adm /etc; do
13330 if test -d $shadow_cv_logdir; then
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $shadow_cv_logdir" >&5
13336 $as_echo "$shadow_cv_logdir" >&6; }
13338 cat >>confdefs.h <<_ACEOF
13339 #define _WTMP_FILE "$shadow_cv_logdir/wtmp"
13343 cat >>confdefs.h <<_ACEOF
13344 #define LASTLOG_FILE "$shadow_cv_logdir/lastlog"
13348 cat >>confdefs.h <<_ACEOF
13349 #define FAILLOG_FILE "$shadow_cv_logdir/faillog"
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of the passwd program" >&5
13354 $as_echo_n "checking location of the passwd program... " >&6; }
13355 if test "${shadow_cv_passwd_dir+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
13358 if test -f /usr/bin/passwd; then
13359 shadow_cv_passwd_dir=/usr/bin
13361 shadow_cv_passwd_dir=/bin
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $shadow_cv_passwd_dir" >&5
13365 $as_echo "$shadow_cv_passwd_dir" >&6; }
13367 cat >>confdefs.h <<_ACEOF
13368 #define PASSWD_PROGRAM "$shadow_cv_passwd_dir/passwd"
13373 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13376 $as_echo "#define RLOGIN 1" >>confdefs.h
13379 $as_echo "#define RUSEROK 0" >>confdefs.h
13382 # Check whether --enable-shadowgrp was given.
13383 if test "${enable_shadowgrp+set}" = set; then :
13384 enableval=$enable_shadowgrp; case "${enableval}" in
13385 yes) enable_shadowgrp="yes" ;;
13386 no) enable_shadowgrp="no" ;;
13387 *) as_fn_error $? "bad value ${enableval} for --enable-shadowgrp" "$LINENO" 5 ;;
13390 enable_shadowgrp="yes"
13395 # Check whether --enable-man was given.
13396 if test "${enable_man+set}" = set; then :
13397 enableval=$enable_man; enable_man="${enableval}"
13404 # Check whether --enable-account-tools-setuid was given.
13405 if test "${enable_account_tools_setuid+set}" = set; then :
13406 enableval=$enable_account_tools_setuid; case "${enableval}" in
13407 yes) enable_acct_tools_setuid="yes" ;;
13408 no) enable_acct_tools_setuid="no" ;;
13409 *) as_fn_error $? "bad value ${enableval} for --enable-account-tools-setuid" "$LINENO" 5
13413 enable_acct_tools_setuid="maybe"
13418 # Check whether --enable-utmpx was given.
13419 if test "${enable_utmpx+set}" = set; then :
13420 enableval=$enable_utmpx; case "${enableval}" in
13421 yes) enable_utmpx="yes" ;;
13422 no) enable_utmpx="no" ;;
13423 *) as_fn_error $? "bad value ${enableval} for --enable-utmpx" "$LINENO" 5 ;;
13432 # Check whether --with-audit was given.
13433 if test "${with_audit+set}" = set; then :
13434 withval=$with_audit; with_audit=$withval
13440 # Check whether --with-libpam was given.
13441 if test "${with_libpam+set}" = set; then :
13442 withval=$with_libpam; with_libpam=$withval
13448 # Check whether --with-selinux was given.
13449 if test "${with_selinux+set}" = set; then :
13450 withval=$with_selinux; with_selinux=$withval
13456 # Check whether --with-skey was given.
13457 if test "${with_skey+set}" = set; then :
13458 withval=$with_skey; with_skey=$withval
13464 # Check whether --with-libcrack was given.
13465 if test "${with_libcrack+set}" = set; then :
13466 withval=$with_libcrack; with_libcrack=$withval
13472 # Check whether --with-sha-crypt was given.
13473 if test "${with_sha_crypt+set}" = set; then :
13474 withval=$with_sha_crypt; with_sha_crypt=$withval
13480 # Check whether --with-nscd was given.
13481 if test "${with_nscd+set}" = set; then :
13482 withval=$with_nscd; with_nscd=$withval
13488 # Check whether --with-group-name-max-length was given.
13489 if test "${with_group_name_max_length+set}" = set; then :
13490 withval=$with_group_name_max_length; with_group_name_max_length=$withval
13492 with_group_name_max_length=yes
13496 if test "$with_group_name_max_length" = "no" ; then
13497 with_group_name_max_length=0
13498 elif test "$with_group_name_max_length" = "yes" ; then
13499 with_group_name_max_length=16
13502 cat >>confdefs.h <<_ACEOF
13503 #define GROUP_NAME_MAX_LENGTH $with_group_name_max_length
13507 GROUP_NAME_MAX_LENGTH="$with_group_name_max_length"
13509 if test "x$with_sha_crypt" = "xyes"; then
13510 USE_SHA_CRYPT_TRUE=
13511 USE_SHA_CRYPT_FALSE='#'
13513 USE_SHA_CRYPT_TRUE='#'
13514 USE_SHA_CRYPT_FALSE=
13517 if test "$with_sha_crypt" = "yes"; then
13519 $as_echo "#define USE_SHA_CRYPT 1" >>confdefs.h
13523 if test "$with_nscd" = "yes"; then
13524 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
13525 if test "x$ac_cv_func_posix_spawn" = x""yes; then :
13527 $as_echo "#define USE_NSCD 1" >>confdefs.h
13530 as_fn_error $? "posix_spawn is needed for nscd support" "$LINENO" 5
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13537 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13538 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
13539 $as_echo_n "(cached) " >&6
13541 ac_func_search_save_LIBS=$LIBS
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13545 /* Override any GCC internal prototype to avoid an error.
13546 Use char because int might match the return type of a GCC
13547 builtin and then its argument prototype would still apply. */
13555 return inet_ntoa ();
13560 for ac_lib in '' inet; do
13561 if test -z "$ac_lib"; then
13562 ac_res="none required"
13565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13567 if ac_fn_c_try_link "$LINENO"; then :
13568 ac_cv_search_inet_ntoa=$ac_res
13570 rm -f core conftest.err conftest.$ac_objext \
13572 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
13576 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
13579 ac_cv_search_inet_ntoa=no
13581 rm conftest.$ac_ext
13582 LIBS=$ac_func_search_save_LIBS
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13585 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13586 ac_res=$ac_cv_search_inet_ntoa
13587 if test "$ac_res" != no; then :
13588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13593 $as_echo_n "checking for library containing socket... " >&6; }
13594 if test "${ac_cv_search_socket+set}" = set; then :
13595 $as_echo_n "(cached) " >&6
13597 ac_func_search_save_LIBS=$LIBS
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13616 for ac_lib in '' socket; do
13617 if test -z "$ac_lib"; then
13618 ac_res="none required"
13621 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13623 if ac_fn_c_try_link "$LINENO"; then :
13624 ac_cv_search_socket=$ac_res
13626 rm -f core conftest.err conftest.$ac_objext \
13628 if test "${ac_cv_search_socket+set}" = set; then :
13632 if test "${ac_cv_search_socket+set}" = set; then :
13635 ac_cv_search_socket=no
13637 rm conftest.$ac_ext
13638 LIBS=$ac_func_search_save_LIBS
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13641 $as_echo "$ac_cv_search_socket" >&6; }
13642 ac_res=$ac_cv_search_socket
13643 if test "$ac_res" != no; then :
13644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13649 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13650 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13651 $as_echo_n "(cached) " >&6
13653 ac_func_search_save_LIBS=$LIBS
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13657 /* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13663 char gethostbyname ();
13667 return gethostbyname ();
13672 for ac_lib in '' nsl; do
13673 if test -z "$ac_lib"; then
13674 ac_res="none required"
13677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13679 if ac_fn_c_try_link "$LINENO"; then :
13680 ac_cv_search_gethostbyname=$ac_res
13682 rm -f core conftest.err conftest.$ac_objext \
13684 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13688 if test "${ac_cv_search_gethostbyname+set}" = set; then :
13691 ac_cv_search_gethostbyname=no
13693 rm conftest.$ac_ext
13694 LIBS=$ac_func_search_save_LIBS
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13697 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13698 ac_res=$ac_cv_search_gethostbyname
13699 if test "$ac_res" != no; then :
13700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13705 if test "$enable_shadowgrp" = "yes"; then
13707 $as_echo "#define SHADOWGRP 1" >>confdefs.h
13710 if test "x$enable_shadowgrp" = "xyes"; then
13712 SHADOWGRP_FALSE='#'
13719 if test "$enable_man" = "yes"; then
13720 # Extract the first word of "xsltproc", so it can be a program name with args.
13721 set dummy xsltproc; ac_word=$2
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723 $as_echo_n "checking for $ac_word... " >&6; }
13724 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
13725 $as_echo_n "(cached) " >&6
13729 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733 for as_dir in $PATH
13736 test -z "$as_dir" && as_dir=.
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13739 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 XSLTPROC=$ac_cv_path_XSLTPROC
13751 if test -n "$XSLTPROC"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13753 $as_echo "$XSLTPROC" >&6; }
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756 $as_echo "no" >&6; }
13760 if test -z "$XSLTPROC"; then
13765 # check for the presence of the XML catalog
13767 # Check whether --with-xml-catalog was given.
13768 if test "${with_xml_catalog+set}" = set; then :
13769 withval=$with_xml_catalog;
13771 with_xml_catalog=/etc/xml/catalog
13774 jh_found_xmlcatalog=true
13775 XML_CATALOG_FILE="$with_xml_catalog"
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
13778 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
13779 if test -f "$XML_CATALOG_FILE"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13781 $as_echo "found" >&6; }
13783 jh_found_xmlcatalog=false
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13785 $as_echo "not found" >&6; }
13788 # check for the xmlcatalog program
13789 # Extract the first word of "xmlcatalog", so it can be a program name with args.
13790 set dummy xmlcatalog; ac_word=$2
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13792 $as_echo_n "checking for $ac_word... " >&6; }
13793 if test "${ac_cv_path_XMLCATALOG+set}" = set; then :
13794 $as_echo_n "(cached) " >&6
13796 case $XMLCATALOG in
13798 ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
13801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802 for as_dir in $PATH
13805 test -z "$as_dir" && as_dir=.
13806 for ac_exec_ext in '' $ac_executable_extensions; do
13807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13808 ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
13809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13816 test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
13820 XMLCATALOG=$ac_cv_path_XMLCATALOG
13821 if test -n "$XMLCATALOG"; then
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
13823 $as_echo "$XMLCATALOG" >&6; }
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 $as_echo "no" >&6; }
13830 if test "x$XMLCATALOG" = xno; then
13831 jh_found_xmlcatalog=false
13834 if $jh_found_xmlcatalog; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5
13842 $as_echo_n "checking for DocBook XML DTD V4.1.2 in XML catalog... " >&6; }
13843 if $jh_found_xmlcatalog && \
13844 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2"; } >&5
13845 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5
13847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13848 test $ac_status = 0; }; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13850 $as_echo "found" >&6; }
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13853 $as_echo "not found" >&6; }
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets >= 1.70.1 in XML catalog" >&5
13859 $as_echo_n "checking for DocBook XSL Stylesheets >= 1.70.1 in XML catalog... " >&6; }
13860 if $jh_found_xmlcatalog && \
13861 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
13862 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
13864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13865 test $ac_status = 0; }; then
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13867 $as_echo "found" >&6; }
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13870 $as_echo "not found" >&6; }
13875 if test "x$enable_man" != "xno"; then
13876 ENABLE_REGENERATE_MAN_TRUE=
13877 ENABLE_REGENERATE_MAN_FALSE='#'
13879 ENABLE_REGENERATE_MAN_TRUE='#'
13880 ENABLE_REGENERATE_MAN_FALSE=
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
13886 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
13887 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
13888 $as_echo_n "(cached) " >&6
13890 ac_check_lib_save_LIBS=$LIBS
13891 LIBS="-lcrypt $LIBS"
13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h. */
13895 /* Override any GCC internal prototype to avoid an error.
13896 Use char because int might match the return type of a GCC
13897 builtin and then its argument prototype would still apply. */
13910 if ac_fn_c_try_link "$LINENO"; then :
13911 ac_cv_lib_crypt_crypt=yes
13913 ac_cv_lib_crypt_crypt=no
13915 rm -f core conftest.err conftest.$ac_objext \
13916 conftest$ac_exeext conftest.$ac_ext
13917 LIBS=$ac_check_lib_save_LIBS
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
13920 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
13921 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
13924 as_fn_error $? "crypt() not found" "$LINENO" 5
13929 if test "$with_audit" != "no"; then
13930 ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
13931 if test "x$ac_cv_header_libaudit_h" = x""yes; then :
13938 if test "$audit_header$with_audit" = "noyes" ; then
13939 as_fn_error $? "libaudit.h is missing" "$LINENO" 5
13940 elif test "$audit_header" = "yes"; then
13941 ac_fn_c_check_decl "$LINENO" "AUDIT_ADD_USER" "ac_cv_have_decl_AUDIT_ADD_USER" "#include <libaudit.h>
13943 if test "x$ac_cv_have_decl_AUDIT_ADD_USER" = x""yes; then :
13949 ac_fn_c_check_decl "$LINENO" "AUDIT_DEL_USER" "ac_cv_have_decl_AUDIT_DEL_USER" "#include <libaudit.h>
13951 if test "x$ac_cv_have_decl_AUDIT_DEL_USER" = x""yes; then :
13957 ac_fn_c_check_decl "$LINENO" "AUDIT_ADD_GROUP" "ac_cv_have_decl_AUDIT_ADD_GROUP" "#include <libaudit.h>
13959 if test "x$ac_cv_have_decl_AUDIT_ADD_GROUP" = x""yes; then :
13965 ac_fn_c_check_decl "$LINENO" "AUDIT_DEL_GROUP" "ac_cv_have_decl_AUDIT_DEL_GROUP" "#include <libaudit.h>
13967 if test "x$ac_cv_have_decl_AUDIT_DEL_GROUP" = x""yes; then :
13973 if test "$audit_header$with_audit" = "noyes" ; then
13974 as_fn_error $? "AUDIT_ADD_USER AUDIT_DEL_USER AUDIT_ADD_GROUP or AUDIT_DEL_GROUP missing from libaudit.h" "$LINENO" 5
13977 if test "$audit_header" = "yes"; then
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_acct_message in -laudit" >&5
13979 $as_echo_n "checking for audit_log_acct_message in -laudit... " >&6; }
13980 if test "${ac_cv_lib_audit_audit_log_acct_message+set}" = set; then :
13981 $as_echo_n "(cached) " >&6
13983 ac_check_lib_save_LIBS=$LIBS
13984 LIBS="-laudit $LIBS"
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986 /* end confdefs.h. */
13988 /* Override any GCC internal prototype to avoid an error.
13989 Use char because int might match the return type of a GCC
13990 builtin and then its argument prototype would still apply. */
13994 char audit_log_acct_message ();
13998 return audit_log_acct_message ();
14003 if ac_fn_c_try_link "$LINENO"; then :
14004 ac_cv_lib_audit_audit_log_acct_message=yes
14006 ac_cv_lib_audit_audit_log_acct_message=no
14008 rm -f core conftest.err conftest.$ac_objext \
14009 conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_acct_message" >&5
14013 $as_echo "$ac_cv_lib_audit_audit_log_acct_message" >&6; }
14014 if test "x$ac_cv_lib_audit_audit_log_acct_message" = x""yes; then :
14020 if test "$audit_lib$with_audit" = "noyes" ; then
14021 as_fn_error $? "libaudit not found" "$LINENO" 5
14022 elif test "$audit_lib" = "no" ; then
14026 $as_echo "#define WITH_AUDIT 1" >>confdefs.h
14037 if test "$with_libcrack" = "yes"; then
14038 echo "checking cracklib flavour, don't be surprised by the results"
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FascistCheck in -lcrack" >&5
14040 $as_echo_n "checking for FascistCheck in -lcrack... " >&6; }
14041 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then :
14042 $as_echo_n "(cached) " >&6
14044 ac_check_lib_save_LIBS=$LIBS
14045 LIBS="-lcrack $LIBS"
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14049 /* Override any GCC internal prototype to avoid an error.
14050 Use char because int might match the return type of a GCC
14051 builtin and then its argument prototype would still apply. */
14055 char FascistCheck ();
14059 return FascistCheck ();
14064 if ac_fn_c_try_link "$LINENO"; then :
14065 ac_cv_lib_crack_FascistCheck=yes
14067 ac_cv_lib_crack_FascistCheck=no
14069 rm -f core conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_FascistCheck" >&5
14074 $as_echo "$ac_cv_lib_crack_FascistCheck" >&6; }
14075 if test "x$ac_cv_lib_crack_FascistCheck" = x""yes; then :
14077 $as_echo "#define HAVE_LIBCRACK 1" >>confdefs.h
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FascistHistory in -lcrack" >&5
14082 $as_echo_n "checking for FascistHistory in -lcrack... " >&6; }
14083 if test "${ac_cv_lib_crack_FascistHistory+set}" = set; then :
14084 $as_echo_n "(cached) " >&6
14086 ac_check_lib_save_LIBS=$LIBS
14087 LIBS="-lcrack $LIBS"
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14091 /* Override any GCC internal prototype to avoid an error.
14092 Use char because int might match the return type of a GCC
14093 builtin and then its argument prototype would still apply. */
14097 char FascistHistory ();
14101 return FascistHistory ();
14106 if ac_fn_c_try_link "$LINENO"; then :
14107 ac_cv_lib_crack_FascistHistory=yes
14109 ac_cv_lib_crack_FascistHistory=no
14111 rm -f core conftest.err conftest.$ac_objext \
14112 conftest$ac_exeext conftest.$ac_ext
14113 LIBS=$ac_check_lib_save_LIBS
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_FascistHistory" >&5
14116 $as_echo "$ac_cv_lib_crack_FascistHistory" >&6; }
14117 if test "x$ac_cv_lib_crack_FascistHistory" = x""yes; then :
14119 $as_echo "#define HAVE_LIBCRACK_HIST 1" >>confdefs.h
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FascistHistoryPw in -lcrack" >&5
14124 $as_echo_n "checking for FascistHistoryPw in -lcrack... " >&6; }
14125 if test "${ac_cv_lib_crack_FascistHistoryPw+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14128 ac_check_lib_save_LIBS=$LIBS
14129 LIBS="-lcrack $LIBS"
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14133 /* Override any GCC internal prototype to avoid an error.
14134 Use char because int might match the return type of a GCC
14135 builtin and then its argument prototype would still apply. */
14139 char FascistHistoryPw ();
14143 return FascistHistoryPw ();
14148 if ac_fn_c_try_link "$LINENO"; then :
14149 ac_cv_lib_crack_FascistHistoryPw=yes
14151 ac_cv_lib_crack_FascistHistoryPw=no
14153 rm -f core conftest.err conftest.$ac_objext \
14154 conftest$ac_exeext conftest.$ac_ext
14155 LIBS=$ac_check_lib_save_LIBS
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_FascistHistoryPw" >&5
14158 $as_echo "$ac_cv_lib_crack_FascistHistoryPw" >&6; }
14159 if test "x$ac_cv_lib_crack_FascistHistoryPw" = x""yes; then :
14161 $as_echo "#define HAVE_LIBCRACK_PW 1" >>confdefs.h
14168 if test "$with_selinux" != "no"; then
14169 for ac_header in selinux/selinux.h
14171 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14172 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
14173 cat >>confdefs.h <<_ACEOF
14174 #define HAVE_SELINUX_SELINUX_H 1
14176 selinux_header="yes"
14178 selinux_header="no"
14183 if test "$selinux_header$with_selinux" = "noyes" ; then
14184 as_fn_error $? "selinux/selinux.h is missing" "$LINENO" 5
14185 elif test "$selinux_header" = "yes" ; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
14187 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
14188 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
14189 $as_echo_n "(cached) " >&6
14191 ac_check_lib_save_LIBS=$LIBS
14192 LIBS="-lselinux $LIBS"
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14196 /* Override any GCC internal prototype to avoid an error.
14197 Use char because int might match the return type of a GCC
14198 builtin and then its argument prototype would still apply. */
14202 char is_selinux_enabled ();
14206 return is_selinux_enabled ();
14211 if ac_fn_c_try_link "$LINENO"; then :
14212 ac_cv_lib_selinux_is_selinux_enabled=yes
14214 ac_cv_lib_selinux_is_selinux_enabled=no
14216 rm -f core conftest.err conftest.$ac_objext \
14217 conftest$ac_exeext conftest.$ac_ext
14218 LIBS=$ac_check_lib_save_LIBS
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
14221 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
14222 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
14228 if test "$selinux_lib$with_selinux" = "noyes" ; then
14229 as_fn_error $? "libselinux not found" "$LINENO" 5
14230 elif test "$selinux_lib" = "no" ; then
14234 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
14236 LIBSELINUX="-lselinux"
14245 if test "$with_libpam" != "no"; then
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
14247 $as_echo_n "checking for pam_start in -lpam... " >&6; }
14248 if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
14249 $as_echo_n "(cached) " >&6
14251 ac_check_lib_save_LIBS=$LIBS
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14256 /* Override any GCC internal prototype to avoid an error.
14257 Use char because int might match the return type of a GCC
14258 builtin and then its argument prototype would still apply. */
14266 return pam_start ();
14271 if ac_fn_c_try_link "$LINENO"; then :
14272 ac_cv_lib_pam_pam_start=yes
14274 ac_cv_lib_pam_pam_start=no
14276 rm -f core conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278 LIBS=$ac_check_lib_save_LIBS
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
14281 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
14282 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then :
14288 if test "$pam_lib$with_libpam" = "noyes" ; then
14289 as_fn_error $? "libpam not found" "$LINENO" 5
14293 pam_conv_function="no"
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpam_ttyconv in -lpam" >&5
14296 $as_echo_n "checking for openpam_ttyconv in -lpam... " >&6; }
14297 if test "${ac_cv_lib_pam_openpam_ttyconv+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
14300 ac_check_lib_save_LIBS=$LIBS
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14305 /* Override any GCC internal prototype to avoid an error.
14306 Use char because int might match the return type of a GCC
14307 builtin and then its argument prototype would still apply. */
14311 char openpam_ttyconv ();
14315 return openpam_ttyconv ();
14320 if ac_fn_c_try_link "$LINENO"; then :
14321 ac_cv_lib_pam_openpam_ttyconv=yes
14323 ac_cv_lib_pam_openpam_ttyconv=no
14325 rm -f core conftest.err conftest.$ac_objext \
14326 conftest$ac_exeext conftest.$ac_ext
14327 LIBS=$ac_check_lib_save_LIBS
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_openpam_ttyconv" >&5
14330 $as_echo "$ac_cv_lib_pam_openpam_ttyconv" >&6; }
14331 if test "x$ac_cv_lib_pam_openpam_ttyconv" = x""yes; then :
14332 pam_conv_function="openpam_ttyconv"
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for misc_conv in -lpam_misc" >&5
14335 $as_echo_n "checking for misc_conv in -lpam_misc... " >&6; }
14336 if test "${ac_cv_lib_pam_misc_misc_conv+set}" = set; then :
14337 $as_echo_n "(cached) " >&6
14339 ac_check_lib_save_LIBS=$LIBS
14340 LIBS="-lpam_misc $LIBS"
14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h. */
14344 /* Override any GCC internal prototype to avoid an error.
14345 Use char because int might match the return type of a GCC
14346 builtin and then its argument prototype would still apply. */
14354 return misc_conv ();
14359 if ac_fn_c_try_link "$LINENO"; then :
14360 ac_cv_lib_pam_misc_misc_conv=yes
14362 ac_cv_lib_pam_misc_misc_conv=no
14364 rm -f core conftest.err conftest.$ac_objext \
14365 conftest$ac_exeext conftest.$ac_ext
14366 LIBS=$ac_check_lib_save_LIBS
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_misc_misc_conv" >&5
14369 $as_echo "$ac_cv_lib_pam_misc_misc_conv" >&6; }
14370 if test "x$ac_cv_lib_pam_misc_misc_conv" = x""yes; then :
14371 pam_conv_function="misc_conv"; LIBPAM="$LIBPAM -lpam_misc"
14378 if test "$pam_conv_function$with_libpam" = "noyes" ; then
14379 as_fn_error $? "PAM conversation function not found" "$LINENO" 5
14382 pam_headers_found=no
14383 for ac_header in security/openpam.h security/pam_misc.h
14385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " #include <security/pam_appl.h>
14388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14389 cat >>confdefs.h <<_ACEOF
14390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14392 pam_headers_found=yes ; break
14397 if test "$pam_headers_found$with_libpam" = "noyes" ; then
14398 as_fn_error $? "PAM headers not found" "$LINENO" 5
14402 if test "$pam_lib$pam_headers_found" = "yesyes" -a "$pam_conv_function" != "no" ; then
14409 if test "$with_libpam" = "yes"; then
14410 ac_fn_c_check_decl "$LINENO" "PAM_ESTABLISH_CRED" "ac_cv_have_decl_PAM_ESTABLISH_CRED" "#include <security/pam_appl.h>
14412 if test "x$ac_cv_have_decl_PAM_ESTABLISH_CRED" = x""yes; then :
14418 cat >>confdefs.h <<_ACEOF
14419 #define HAVE_DECL_PAM_ESTABLISH_CRED $ac_have_decl
14421 ac_fn_c_check_decl "$LINENO" "PAM_DELETE_CRED" "ac_cv_have_decl_PAM_DELETE_CRED" "#include <security/pam_appl.h>
14423 if test "x$ac_cv_have_decl_PAM_DELETE_CRED" = x""yes; then :
14429 cat >>confdefs.h <<_ACEOF
14430 #define HAVE_DECL_PAM_DELETE_CRED $ac_have_decl
14432 ac_fn_c_check_decl "$LINENO" "PAM_NEW_AUTHTOK_REQD" "ac_cv_have_decl_PAM_NEW_AUTHTOK_REQD" "#include <security/pam_appl.h>
14434 if test "x$ac_cv_have_decl_PAM_NEW_AUTHTOK_REQD" = x""yes; then :
14440 cat >>confdefs.h <<_ACEOF
14441 #define HAVE_DECL_PAM_NEW_AUTHTOK_REQD $ac_have_decl
14443 ac_fn_c_check_decl "$LINENO" "PAM_DATA_SILENT" "ac_cv_have_decl_PAM_DATA_SILENT" "#include <security/pam_appl.h>
14445 if test "x$ac_cv_have_decl_PAM_DATA_SILENT" = x""yes; then :
14451 cat >>confdefs.h <<_ACEOF
14452 #define HAVE_DECL_PAM_DATA_SILENT $ac_have_decl
14458 LIBS="$LIBS $LIBPAM"
14459 # We do not use AC_CHECK_FUNCS to avoid duplicated definition with
14461 ac_fn_c_check_func "$LINENO" "pam_fail_delay" "ac_cv_func_pam_fail_delay"
14462 if test "x$ac_cv_func_pam_fail_delay" = x""yes; then :
14464 $as_echo "#define HAS_PAM_FAIL_DELAY 1" >>confdefs.h
14471 $as_echo "#define USE_PAM 1" >>confdefs.h
14474 cat >>confdefs.h <<_ACEOF
14475 #define SHADOW_PAM_CONVERSATION $pam_conv_function
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking use login and su access checking if PAM not used" >&5
14488 $as_echo_n "checking use login and su access checking if PAM not used... " >&6; }
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14490 $as_echo "no" >&6; }
14493 $as_echo "#define SU_ACCESS 1" >>confdefs.h
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking use login and su access checking if PAM not used" >&5
14504 $as_echo_n "checking use login and su access checking if PAM not used... " >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14506 $as_echo "yes" >&6; }
14509 if test "$enable_acct_tools_setuid" != "no"; then
14510 if test "$with_libpam" != "yes"; then
14511 if test "$enable_acct_tools_setuid" = "yes"; then
14512 as_fn_error $? "PAM support is required for --enable-account-tools-setuid" "$LINENO" 5
14514 enable_acct_tools_setuid="no"
14517 enable_acct_tools_setuid="yes"
14519 if test "$enable_acct_tools_setuid" = "yes"; then
14521 $as_echo "#define ACCT_TOOLS_SETUID 1" >>confdefs.h
14525 if test "x$enable_acct_tools_setuid" = "xyes"; then
14526 ACCT_TOOLS_SETUID_TRUE=
14527 ACCT_TOOLS_SETUID_FALSE='#'
14529 ACCT_TOOLS_SETUID_TRUE='#'
14530 ACCT_TOOLS_SETUID_FALSE=
14536 if test "$with_skey" = "yes"; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5Init in -lmd" >&5
14538 $as_echo_n "checking for MD5Init in -lmd... " >&6; }
14539 if test "${ac_cv_lib_md_MD5Init+set}" = set; then :
14540 $as_echo_n "(cached) " >&6
14542 ac_check_lib_save_LIBS=$LIBS
14544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545 /* end confdefs.h. */
14547 /* Override any GCC internal prototype to avoid an error.
14548 Use char because int might match the return type of a GCC
14549 builtin and then its argument prototype would still apply. */
14562 if ac_fn_c_try_link "$LINENO"; then :
14563 ac_cv_lib_md_MD5Init=yes
14565 ac_cv_lib_md_MD5Init=no
14567 rm -f core conftest.err conftest.$ac_objext \
14568 conftest$ac_exeext conftest.$ac_ext
14569 LIBS=$ac_check_lib_save_LIBS
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_MD5Init" >&5
14572 $as_echo "$ac_cv_lib_md_MD5Init" >&6; }
14573 if test "x$ac_cv_lib_md_MD5Init" = x""yes; then :
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeychallenge in -lskey" >&5
14578 $as_echo_n "checking for skeychallenge in -lskey... " >&6; }
14579 if test "${ac_cv_lib_skey_skeychallenge+set}" = set; then :
14580 $as_echo_n "(cached) " >&6
14582 ac_check_lib_save_LIBS=$LIBS
14583 LIBS="-lskey $LIBS"
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14587 /* Override any GCC internal prototype to avoid an error.
14588 Use char because int might match the return type of a GCC
14589 builtin and then its argument prototype would still apply. */
14593 char skeychallenge ();
14597 return skeychallenge ();
14602 if ac_fn_c_try_link "$LINENO"; then :
14603 ac_cv_lib_skey_skeychallenge=yes
14605 ac_cv_lib_skey_skeychallenge=no
14607 rm -f core conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
14609 LIBS=$ac_check_lib_save_LIBS
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeychallenge" >&5
14612 $as_echo "$ac_cv_lib_skey_skeychallenge" >&6; }
14613 if test "x$ac_cv_lib_skey_skeychallenge" = x""yes; then :
14616 as_fn_error $? "liskey missing. You can download S/Key source code from http://rsync1.it.gentoo.org/gentoo/distfiles/skey-1.1.5.tar.bz2" "$LINENO" 5
14620 $as_echo "#define SKEY 1" >>confdefs.h
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14632 skeychallenge((void*)0, (void*)0, (void*)0, 0);
14638 if ac_fn_c_try_compile "$LINENO"; then :
14640 $as_echo "#define SKEY_BSD_STYLE 1" >>confdefs.h
14643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14646 if test "$enable_utmpx" = "yes"; then
14647 if test "$ac_cv_header_utmpx_h" != "yes"; then
14648 as_fn_error $? "The utmpx.h header file is required for utmpx support." "$LINENO" 5
14651 $as_echo "#define USE_UTMPX 1" >>confdefs.h
14656 cat >>confdefs.h <<_ACEOF
14657 #define SHELL "$SHELL"
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14664 $as_echo_n "checking whether NLS is requested... " >&6; }
14665 # Check whether --enable-nls was given.
14666 if test "${enable_nls+set}" = set; then :
14667 enableval=$enable_nls; USE_NLS=$enableval
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14673 $as_echo "$USE_NLS" >&6; }
14678 GETTEXT_MACRO_VERSION=0.18
14683 # Prepare PATH_SEPARATOR.
14684 # The user is always right.
14685 if test "${PATH_SEPARATOR+set}" != set; then
14686 echo "#! /bin/sh" >conf$$.sh
14687 echo "exit 0" >>conf$$.sh
14689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14697 # Find out how to test for executable files. Don't use a zero-byte file,
14698 # as systems may use methods other than mode bits to determine executability.
14699 cat >conf$$.file <<_ASEOF
14703 chmod +x conf$$.file
14704 if test -x conf$$.file >/dev/null 2>&1; then
14705 ac_executable_p="test -x"
14707 ac_executable_p="test -f"
14711 # Extract the first word of "msgfmt", so it can be a program name with args.
14712 set dummy msgfmt; ac_word=$2
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14714 $as_echo_n "checking for $ac_word... " >&6; }
14715 if test "${ac_cv_path_MSGFMT+set}" = set; then :
14716 $as_echo_n "(cached) " >&6
14720 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14723 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14724 for ac_dir in $PATH; do
14726 test -z "$ac_dir" && ac_dir=.
14727 for ac_exec_ext in '' $ac_executable_extensions; do
14728 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14729 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14730 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14731 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14732 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14739 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14743 MSGFMT="$ac_cv_path_MSGFMT"
14744 if test "$MSGFMT" != ":"; then
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14746 $as_echo "$MSGFMT" >&6; }
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749 $as_echo "no" >&6; }
14752 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14753 set dummy gmsgfmt; ac_word=$2
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14755 $as_echo_n "checking for $ac_word... " >&6; }
14756 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
14757 $as_echo_n "(cached) " >&6
14761 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14765 for as_dir in $PATH
14768 test -z "$as_dir" && as_dir=.
14769 for ac_exec_ext in '' $ac_executable_extensions; do
14770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14771 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14779 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14783 GMSGFMT=$ac_cv_path_GMSGFMT
14784 if test -n "$GMSGFMT"; then
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14786 $as_echo "$GMSGFMT" >&6; }
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789 $as_echo "no" >&6; }
14794 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14795 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14796 *) MSGFMT_015=$MSGFMT ;;
14799 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14800 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14801 *) GMSGFMT_015=$GMSGFMT ;;
14806 # Prepare PATH_SEPARATOR.
14807 # The user is always right.
14808 if test "${PATH_SEPARATOR+set}" != set; then
14809 echo "#! /bin/sh" >conf$$.sh
14810 echo "exit 0" >>conf$$.sh
14812 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14820 # Find out how to test for executable files. Don't use a zero-byte file,
14821 # as systems may use methods other than mode bits to determine executability.
14822 cat >conf$$.file <<_ASEOF
14826 chmod +x conf$$.file
14827 if test -x conf$$.file >/dev/null 2>&1; then
14828 ac_executable_p="test -x"
14830 ac_executable_p="test -f"
14834 # Extract the first word of "xgettext", so it can be a program name with args.
14835 set dummy xgettext; ac_word=$2
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14837 $as_echo_n "checking for $ac_word... " >&6; }
14838 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
14839 $as_echo_n "(cached) " >&6
14841 case "$XGETTEXT" in
14843 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14846 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14847 for ac_dir in $PATH; do
14849 test -z "$ac_dir" && ac_dir=.
14850 for ac_exec_ext in '' $ac_executable_extensions; do
14851 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14852 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14853 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14854 (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
14855 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14862 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14866 XGETTEXT="$ac_cv_path_XGETTEXT"
14867 if test "$XGETTEXT" != ":"; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14869 $as_echo "$XGETTEXT" >&6; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 $as_echo "no" >&6; }
14877 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14878 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14879 *) XGETTEXT_015=$XGETTEXT ;;
14884 # Prepare PATH_SEPARATOR.
14885 # The user is always right.
14886 if test "${PATH_SEPARATOR+set}" != set; then
14887 echo "#! /bin/sh" >conf$$.sh
14888 echo "exit 0" >>conf$$.sh
14890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14898 # Find out how to test for executable files. Don't use a zero-byte file,
14899 # as systems may use methods other than mode bits to determine executability.
14900 cat >conf$$.file <<_ASEOF
14904 chmod +x conf$$.file
14905 if test -x conf$$.file >/dev/null 2>&1; then
14906 ac_executable_p="test -x"
14908 ac_executable_p="test -f"
14912 # Extract the first word of "msgmerge", so it can be a program name with args.
14913 set dummy msgmerge; ac_word=$2
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14915 $as_echo_n "checking for $ac_word... " >&6; }
14916 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
14917 $as_echo_n "(cached) " >&6
14919 case "$MSGMERGE" in
14921 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14924 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14925 for ac_dir in $PATH; do
14927 test -z "$ac_dir" && ac_dir=.
14928 for ac_exec_ext in '' $ac_executable_extensions; do
14929 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14930 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14931 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14932 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14939 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14943 MSGMERGE="$ac_cv_path_MSGMERGE"
14944 if test "$MSGMERGE" != ":"; then
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14946 $as_echo "$MSGMERGE" >&6; }
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949 $as_echo "no" >&6; }
14953 test -n "$localedir" || localedir='${datadir}/locale'
14956 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
14959 ac_config_commands="$ac_config_commands po-directories"
14963 if test "X$prefix" = "XNONE"; then
14964 acl_final_prefix="$ac_default_prefix"
14966 acl_final_prefix="$prefix"
14968 if test "X$exec_prefix" = "XNONE"; then
14969 acl_final_exec_prefix='${prefix}'
14971 acl_final_exec_prefix="$exec_prefix"
14973 acl_save_prefix="$prefix"
14974 prefix="$acl_final_prefix"
14975 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14976 prefix="$acl_save_prefix"
14979 # Check whether --with-gnu-ld was given.
14980 if test "${with_gnu_ld+set}" = set; then :
14981 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14986 # Prepare PATH_SEPARATOR.
14987 # The user is always right.
14988 if test "${PATH_SEPARATOR+set}" != set; then
14989 echo "#! /bin/sh" >conf$$.sh
14990 echo "exit 0" >>conf$$.sh
14992 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15000 if test "$GCC" = yes; then
15001 # Check if gcc -print-prog-name=ld gives a path.
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15003 $as_echo_n "checking for ld used by GCC... " >&6; }
15006 # gcc leaves a trailing carriage return which upsets mingw
15007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15012 # Accept absolute paths.
15013 [\\/]* | [A-Za-z]:[\\/]*)
15014 re_direlt='/[^/][^/]*/\.\./'
15015 # Canonicalize the path of ld
15016 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15017 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15018 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15020 test -z "$LD" && LD="$ac_prog"
15023 # If it fails, then pretend we aren't using GCC.
15027 # If it is relative, then search for the first ld in PATH.
15028 with_gnu_ld=unknown
15031 elif test "$with_gnu_ld" = yes; then
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15033 $as_echo_n "checking for GNU ld... " >&6; }
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15036 $as_echo_n "checking for non-GNU ld... " >&6; }
15038 if test "${acl_cv_path_LD+set}" = set; then :
15039 $as_echo_n "(cached) " >&6
15041 if test -z "$LD"; then
15042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15043 for ac_dir in $PATH; do
15044 test -z "$ac_dir" && ac_dir=.
15045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15046 acl_cv_path_LD="$ac_dir/$ac_prog"
15047 # Check to see if the program is GNU ld. I'd rather use --version,
15048 # but apparently some GNU ld's only accept -v.
15049 # Break only if it was the GNU/non-GNU ld that we prefer.
15050 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15051 *GNU* | *'with BFD'*)
15052 test "$with_gnu_ld" != no && break ;;
15054 test "$with_gnu_ld" != yes && break ;;
15060 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15064 LD="$acl_cv_path_LD"
15065 if test -n "$LD"; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15067 $as_echo "$LD" >&6; }
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15070 $as_echo "no" >&6; }
15072 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15074 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15075 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
15076 $as_echo_n "(cached) " >&6
15078 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15079 case `$LD -v 2>&1 </dev/null` in
15080 *GNU* | *'with BFD'*)
15081 acl_cv_prog_gnu_ld=yes ;;
15083 acl_cv_prog_gnu_ld=no ;;
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15087 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15088 with_gnu_ld=$acl_cv_prog_gnu_ld
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15094 $as_echo_n "checking for shared library run path origin... " >&6; }
15095 if test "${acl_cv_rpath+set}" = set; then :
15096 $as_echo_n "(cached) " >&6
15099 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15100 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15102 rm -f ./conftest.sh
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15107 $as_echo "$acl_cv_rpath" >&6; }
15109 acl_libext="$acl_cv_libext"
15110 acl_shlibext="$acl_cv_shlibext"
15111 acl_libname_spec="$acl_cv_libname_spec"
15112 acl_library_names_spec="$acl_cv_library_names_spec"
15113 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15114 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15115 acl_hardcode_direct="$acl_cv_hardcode_direct"
15116 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15117 # Check whether --enable-rpath was given.
15118 if test "${enable_rpath+set}" = set; then :
15119 enableval=$enable_rpath; :
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15132 $as_echo_n "checking for 64-bit host... " >&6; }
15133 if test "${gl_cv_solaris_64bit+set}" = set; then :
15134 $as_echo_n "(cached) " >&6
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h. */
15144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15145 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
15146 gl_cv_solaris_64bit=yes
15148 gl_cv_solaris_64bit=no
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15155 $as_echo "$gl_cv_solaris_64bit" >&6; }
15156 if test $gl_cv_solaris_64bit = yes; then
15157 acl_libdirstem=lib/64
15158 case "$host_cpu" in
15159 sparc*) acl_libdirstem2=lib/sparcv9 ;;
15160 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15165 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15166 if test -n "$searchpath"; then
15167 acl_save_IFS="${IFS= }"; IFS=":"
15168 for searchdir in $searchpath; do
15169 if test -d "$searchdir"; then
15170 case "$searchdir" in
15171 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15173 # Better ignore directories of this form. They are misleading.
15175 *) searchdir=`cd "$searchdir" && pwd`
15176 case "$searchdir" in
15177 */lib64 ) acl_libdirstem=lib64 ;;
15182 IFS="$acl_save_IFS"
15186 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15201 acl_save_prefix="$prefix"
15202 prefix="$acl_final_prefix"
15203 acl_save_exec_prefix="$exec_prefix"
15204 exec_prefix="$acl_final_exec_prefix"
15206 eval additional_includedir=\"$includedir\"
15207 eval additional_libdir=\"$libdir\"
15209 exec_prefix="$acl_save_exec_prefix"
15210 prefix="$acl_save_prefix"
15213 # Check whether --with-libiconv-prefix was given.
15214 if test "${with_libiconv_prefix+set}" = set; then :
15215 withval=$with_libiconv_prefix;
15216 if test "X$withval" = "Xno"; then
15219 if test "X$withval" = "X"; then
15221 acl_save_prefix="$prefix"
15222 prefix="$acl_final_prefix"
15223 acl_save_exec_prefix="$exec_prefix"
15224 exec_prefix="$acl_final_exec_prefix"
15226 eval additional_includedir=\"$includedir\"
15227 eval additional_libdir=\"$libdir\"
15229 exec_prefix="$acl_save_exec_prefix"
15230 prefix="$acl_save_prefix"
15233 additional_includedir="$withval/include"
15234 additional_libdir="$withval/$acl_libdirstem"
15235 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15236 && ! test -d "$withval/$acl_libdirstem"; then
15237 additional_libdir="$withval/$acl_libdirstem2"
15251 names_already_handled=
15252 names_next_round='iconv '
15253 while test -n "$names_next_round"; do
15254 names_this_round="$names_next_round"
15256 for name in $names_this_round; do
15258 for n in $names_already_handled; do
15259 if test "$n" = "$name"; then
15260 already_handled=yes
15264 if test -z "$already_handled"; then
15265 names_already_handled="$names_already_handled $name"
15266 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15267 eval value=\"\$HAVE_LIB$uppername\"
15268 if test -n "$value"; then
15269 if test "$value" = yes; then
15270 eval value=\"\$LIB$uppername\"
15271 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15272 eval value=\"\$LTLIB$uppername\"
15273 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15282 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15283 if test -n "$acl_shlibext"; then
15284 shrext=".$acl_shlibext" # typically: shrext=.so
15288 if test $use_additional = yes; then
15289 dir="$additional_libdir"
15290 if test -n "$acl_shlibext"; then
15291 if test -f "$dir/$libname$shrext"; then
15293 found_so="$dir/$libname$shrext"
15295 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15296 ver=`(cd "$dir" && \
15297 for f in "$libname$shrext".*; do echo "$f"; done \
15298 | sed -e "s,^$libname$shrext\\\\.,," \
15299 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15300 | sed 1q ) 2>/dev/null`
15301 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15303 found_so="$dir/$libname$shrext.$ver"
15306 eval library_names=\"$acl_library_names_spec\"
15307 for f in $library_names; do
15308 if test -f "$dir/$f"; then
15317 if test "X$found_dir" = "X"; then
15318 if test -f "$dir/$libname.$acl_libext"; then
15320 found_a="$dir/$libname.$acl_libext"
15323 if test "X$found_dir" != "X"; then
15324 if test -f "$dir/$libname.la"; then
15325 found_la="$dir/$libname.la"
15329 if test "X$found_dir" = "X"; then
15330 for x in $LDFLAGS $LTLIBICONV; do
15332 acl_save_prefix="$prefix"
15333 prefix="$acl_final_prefix"
15334 acl_save_exec_prefix="$exec_prefix"
15335 exec_prefix="$acl_final_exec_prefix"
15337 exec_prefix="$acl_save_exec_prefix"
15338 prefix="$acl_save_prefix"
15342 dir=`echo "X$x" | sed -e 's/^X-L//'`
15343 if test -n "$acl_shlibext"; then
15344 if test -f "$dir/$libname$shrext"; then
15346 found_so="$dir/$libname$shrext"
15348 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15349 ver=`(cd "$dir" && \
15350 for f in "$libname$shrext".*; do echo "$f"; done \
15351 | sed -e "s,^$libname$shrext\\\\.,," \
15352 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15353 | sed 1q ) 2>/dev/null`
15354 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15356 found_so="$dir/$libname$shrext.$ver"
15359 eval library_names=\"$acl_library_names_spec\"
15360 for f in $library_names; do
15361 if test -f "$dir/$f"; then
15370 if test "X$found_dir" = "X"; then
15371 if test -f "$dir/$libname.$acl_libext"; then
15373 found_a="$dir/$libname.$acl_libext"
15376 if test "X$found_dir" != "X"; then
15377 if test -f "$dir/$libname.la"; then
15378 found_la="$dir/$libname.la"
15383 if test "X$found_dir" != "X"; then
15388 if test "X$found_dir" != "X"; then
15389 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15390 if test "X$found_so" != "X"; then
15391 if test "$enable_rpath" = no \
15392 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15393 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15394 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15397 for x in $ltrpathdirs; do
15398 if test "X$x" = "X$found_dir"; then
15403 if test -z "$haveit"; then
15404 ltrpathdirs="$ltrpathdirs $found_dir"
15406 if test "$acl_hardcode_direct" = yes; then
15407 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15409 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15410 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15412 for x in $rpathdirs; do
15413 if test "X$x" = "X$found_dir"; then
15418 if test -z "$haveit"; then
15419 rpathdirs="$rpathdirs $found_dir"
15423 for x in $LDFLAGS $LIBICONV; do
15425 acl_save_prefix="$prefix"
15426 prefix="$acl_final_prefix"
15427 acl_save_exec_prefix="$exec_prefix"
15428 exec_prefix="$acl_final_exec_prefix"
15430 exec_prefix="$acl_save_exec_prefix"
15431 prefix="$acl_save_prefix"
15433 if test "X$x" = "X-L$found_dir"; then
15438 if test -z "$haveit"; then
15439 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15441 if test "$acl_hardcode_minus_L" != no; then
15442 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15444 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15450 if test "X$found_a" != "X"; then
15451 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15453 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15456 additional_includedir=
15457 case "$found_dir" in
15458 */$acl_libdirstem | */$acl_libdirstem/)
15459 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15460 if test "$name" = 'iconv'; then
15461 LIBICONV_PREFIX="$basedir"
15463 additional_includedir="$basedir/include"
15465 */$acl_libdirstem2 | */$acl_libdirstem2/)
15466 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15467 if test "$name" = 'iconv'; then
15468 LIBICONV_PREFIX="$basedir"
15470 additional_includedir="$basedir/include"
15473 if test "X$additional_includedir" != "X"; then
15474 if test "X$additional_includedir" != "X/usr/include"; then
15476 if test "X$additional_includedir" = "X/usr/local/include"; then
15477 if test -n "$GCC"; then
15479 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15483 if test -z "$haveit"; then
15484 for x in $CPPFLAGS $INCICONV; do
15486 acl_save_prefix="$prefix"
15487 prefix="$acl_final_prefix"
15488 acl_save_exec_prefix="$exec_prefix"
15489 exec_prefix="$acl_final_exec_prefix"
15491 exec_prefix="$acl_save_exec_prefix"
15492 prefix="$acl_save_prefix"
15494 if test "X$x" = "X-I$additional_includedir"; then
15499 if test -z "$haveit"; then
15500 if test -d "$additional_includedir"; then
15501 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15507 if test -n "$found_la"; then
15508 save_libdir="$libdir"
15509 case "$found_la" in
15510 */* | *\\*) . "$found_la" ;;
15511 *) . "./$found_la" ;;
15513 libdir="$save_libdir"
15514 for dep in $dependency_libs; do
15517 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15518 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15519 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15521 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15522 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15523 if test -n "$GCC"; then
15525 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15529 if test -z "$haveit"; then
15531 for x in $LDFLAGS $LIBICONV; do
15533 acl_save_prefix="$prefix"
15534 prefix="$acl_final_prefix"
15535 acl_save_exec_prefix="$exec_prefix"
15536 exec_prefix="$acl_final_exec_prefix"
15538 exec_prefix="$acl_save_exec_prefix"
15539 prefix="$acl_save_prefix"
15541 if test "X$x" = "X-L$additional_libdir"; then
15546 if test -z "$haveit"; then
15547 if test -d "$additional_libdir"; then
15548 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15552 for x in $LDFLAGS $LTLIBICONV; do
15554 acl_save_prefix="$prefix"
15555 prefix="$acl_final_prefix"
15556 acl_save_exec_prefix="$exec_prefix"
15557 exec_prefix="$acl_final_exec_prefix"
15559 exec_prefix="$acl_save_exec_prefix"
15560 prefix="$acl_save_prefix"
15562 if test "X$x" = "X-L$additional_libdir"; then
15567 if test -z "$haveit"; then
15568 if test -d "$additional_libdir"; then
15569 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15576 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15577 if test "$enable_rpath" != no; then
15579 for x in $rpathdirs; do
15580 if test "X$x" = "X$dir"; then
15585 if test -z "$haveit"; then
15586 rpathdirs="$rpathdirs $dir"
15589 for x in $ltrpathdirs; do
15590 if test "X$x" = "X$dir"; then
15595 if test -z "$haveit"; then
15596 ltrpathdirs="$ltrpathdirs $dir"
15601 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15604 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15607 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15608 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15614 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15621 if test "X$rpathdirs" != "X"; then
15622 if test -n "$acl_hardcode_libdir_separator"; then
15624 for found_dir in $rpathdirs; do
15625 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15627 acl_save_libdir="$libdir"
15629 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15630 libdir="$acl_save_libdir"
15631 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15633 for found_dir in $rpathdirs; do
15634 acl_save_libdir="$libdir"
15635 libdir="$found_dir"
15636 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15637 libdir="$acl_save_libdir"
15638 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15642 if test "X$ltrpathdirs" != "X"; then
15643 for found_dir in $ltrpathdirs; do
15644 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15679 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15680 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
15681 $as_echo_n "(cached) " >&6
15683 gt_save_LIBS="$LIBS"
15684 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687 #include <CoreFoundation/CFPreferences.h>
15691 CFPreferencesCopyAppValue(NULL, NULL)
15696 if ac_fn_c_try_link "$LINENO"; then :
15697 gt_cv_func_CFPreferencesCopyAppValue=yes
15699 gt_cv_func_CFPreferencesCopyAppValue=no
15701 rm -f core conftest.err conftest.$ac_objext \
15702 conftest$ac_exeext conftest.$ac_ext
15703 LIBS="$gt_save_LIBS"
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15706 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15707 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15709 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
15713 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
15714 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
15715 $as_echo_n "(cached) " >&6
15717 gt_save_LIBS="$LIBS"
15718 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 #include <CoreFoundation/CFLocale.h>
15725 CFLocaleCopyCurrent();
15730 if ac_fn_c_try_link "$LINENO"; then :
15731 gt_cv_func_CFLocaleCopyCurrent=yes
15733 gt_cv_func_CFLocaleCopyCurrent=no
15735 rm -f core conftest.err conftest.$ac_objext \
15736 conftest$ac_exeext conftest.$ac_ext
15737 LIBS="$gt_save_LIBS"
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
15740 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
15741 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15743 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
15747 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
15748 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
15760 case " $gt_needs " in
15761 *" need-formatstring-macros "*) gt_api_version=3 ;;
15762 *" need-ngettext "*) gt_api_version=2 ;;
15763 *) gt_api_version=1 ;;
15765 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
15766 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
15768 if test "$USE_NLS" = "yes"; then
15769 gt_use_preinstalled_gnugettext=no
15772 if test $gt_api_version -ge 3; then
15773 gt_revision_test_code='
15774 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
15775 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
15777 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
15780 gt_revision_test_code=
15782 if test $gt_api_version -ge 2; then
15783 gt_expression_test_code=' + * ngettext ("", "", 0)'
15785 gt_expression_test_code=
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
15789 $as_echo_n "checking for GNU gettext in libc... " >&6; }
15790 if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then :
15791 $as_echo_n "(cached) " >&6
15793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794 /* end confdefs.h. */
15795 #include <libintl.h>
15796 $gt_revision_test_code
15797 extern int _nl_msg_cat_cntr;
15798 extern int *_nl_domain_bindings;
15802 bindtextdomain ("", "");
15803 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
15808 if ac_fn_c_try_link "$LINENO"; then :
15809 eval "$gt_func_gnugettext_libc=yes"
15811 eval "$gt_func_gnugettext_libc=no"
15813 rm -f core conftest.err conftest.$ac_objext \
15814 conftest$ac_exeext conftest.$ac_ext
15816 eval ac_res=\$$gt_func_gnugettext_libc
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15818 $as_echo "$ac_res" >&6; }
15820 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
15826 am_save_CPPFLAGS="$CPPFLAGS"
15828 for element in $INCICONV; do
15830 for x in $CPPFLAGS; do
15832 acl_save_prefix="$prefix"
15833 prefix="$acl_final_prefix"
15834 acl_save_exec_prefix="$exec_prefix"
15835 exec_prefix="$acl_final_exec_prefix"
15837 exec_prefix="$acl_save_exec_prefix"
15838 prefix="$acl_save_prefix"
15840 if test "X$x" = "X$element"; then
15845 if test -z "$haveit"; then
15846 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15852 $as_echo_n "checking for iconv... " >&6; }
15853 if test "${am_cv_func_iconv+set}" = set; then :
15854 $as_echo_n "(cached) " >&6
15857 am_cv_func_iconv="no, consider installing GNU libiconv"
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15861 #include <stdlib.h>
15866 iconv_t cd = iconv_open("","");
15867 iconv(cd,NULL,NULL,NULL,NULL);
15873 if ac_fn_c_try_link "$LINENO"; then :
15874 am_cv_func_iconv=yes
15876 rm -f core conftest.err conftest.$ac_objext \
15877 conftest$ac_exeext conftest.$ac_ext
15878 if test "$am_cv_func_iconv" != yes; then
15879 am_save_LIBS="$LIBS"
15880 LIBS="$LIBS $LIBICONV"
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15883 #include <stdlib.h>
15888 iconv_t cd = iconv_open("","");
15889 iconv(cd,NULL,NULL,NULL,NULL);
15895 if ac_fn_c_try_link "$LINENO"; then :
15896 am_cv_lib_iconv=yes
15897 am_cv_func_iconv=yes
15899 rm -f core conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
15901 LIBS="$am_save_LIBS"
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15906 $as_echo "$am_cv_func_iconv" >&6; }
15907 if test "$am_cv_func_iconv" = yes; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15909 $as_echo_n "checking for working iconv... " >&6; }
15910 if test "${am_cv_func_iconv_works+set}" = set; then :
15911 $as_echo_n "(cached) " >&6
15914 am_save_LIBS="$LIBS"
15915 if test $am_cv_lib_iconv = yes; then
15916 LIBS="$LIBS $LIBICONV"
15918 if test "$cross_compiling" = yes; then :
15920 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15921 *) am_cv_func_iconv_works="guessing yes" ;;
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15928 #include <string.h>
15931 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15934 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15935 if (cd_utf8_to_88591 != (iconv_t)(-1))
15937 static const char input[] = "\342\202\254"; /* EURO SIGN */
15939 const char *inptr = input;
15940 size_t inbytesleft = strlen (input);
15941 char *outptr = buf;
15942 size_t outbytesleft = sizeof (buf);
15943 size_t res = iconv (cd_utf8_to_88591,
15944 (char **) &inptr, &inbytesleft,
15945 &outptr, &outbytesleft);
15950 /* Test against Solaris 10 bug: Failures are not distinguishable from
15951 successful returns. */
15953 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15954 if (cd_ascii_to_88591 != (iconv_t)(-1))
15956 static const char input[] = "\263";
15958 const char *inptr = input;
15959 size_t inbytesleft = strlen (input);
15960 char *outptr = buf;
15961 size_t outbytesleft = sizeof (buf);
15962 size_t res = iconv (cd_ascii_to_88591,
15963 (char **) &inptr, &inbytesleft,
15964 &outptr, &outbytesleft);
15969 #if 0 /* This bug could be worked around by the caller. */
15970 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15972 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15973 if (cd_88591_to_utf8 != (iconv_t)(-1))
15975 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15977 const char *inptr = input;
15978 size_t inbytesleft = strlen (input);
15979 char *outptr = buf;
15980 size_t outbytesleft = sizeof (buf);
15981 size_t res = iconv (cd_88591_to_utf8,
15982 (char **) &inptr, &inbytesleft,
15983 &outptr, &outbytesleft);
15989 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15991 if (/* Try standardized names. */
15992 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15993 /* Try IRIX, OSF/1 names. */
15994 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15995 /* Try AIX names. */
15996 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15997 /* Try HP-UX names. */
15998 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16003 if ac_fn_c_try_run "$LINENO"; then :
16004 am_cv_func_iconv_works=yes
16006 am_cv_func_iconv_works=no
16008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16009 conftest.$ac_objext conftest.beam conftest.$ac_ext
16012 LIBS="$am_save_LIBS"
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16016 $as_echo "$am_cv_func_iconv_works" >&6; }
16017 case "$am_cv_func_iconv_works" in
16018 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16019 *) am_func_iconv=yes ;;
16022 am_func_iconv=no am_cv_lib_iconv=no
16024 if test "$am_func_iconv" = yes; then
16026 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16029 if test "$am_cv_lib_iconv" = yes; then
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16031 $as_echo_n "checking how to link with libiconv... " >&6; }
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16033 $as_echo "$LIBICONV" >&6; }
16035 CPPFLAGS="$am_save_CPPFLAGS"
16052 acl_save_prefix="$prefix"
16053 prefix="$acl_final_prefix"
16054 acl_save_exec_prefix="$exec_prefix"
16055 exec_prefix="$acl_final_exec_prefix"
16057 eval additional_includedir=\"$includedir\"
16058 eval additional_libdir=\"$libdir\"
16060 exec_prefix="$acl_save_exec_prefix"
16061 prefix="$acl_save_prefix"
16064 # Check whether --with-libintl-prefix was given.
16065 if test "${with_libintl_prefix+set}" = set; then :
16066 withval=$with_libintl_prefix;
16067 if test "X$withval" = "Xno"; then
16070 if test "X$withval" = "X"; then
16072 acl_save_prefix="$prefix"
16073 prefix="$acl_final_prefix"
16074 acl_save_exec_prefix="$exec_prefix"
16075 exec_prefix="$acl_final_exec_prefix"
16077 eval additional_includedir=\"$includedir\"
16078 eval additional_libdir=\"$libdir\"
16080 exec_prefix="$acl_save_exec_prefix"
16081 prefix="$acl_save_prefix"
16084 additional_includedir="$withval/include"
16085 additional_libdir="$withval/$acl_libdirstem"
16086 if test "$acl_libdirstem2" != "$acl_libdirstem" \
16087 && ! test -d "$withval/$acl_libdirstem"; then
16088 additional_libdir="$withval/$acl_libdirstem2"
16102 names_already_handled=
16103 names_next_round='intl '
16104 while test -n "$names_next_round"; do
16105 names_this_round="$names_next_round"
16107 for name in $names_this_round; do
16109 for n in $names_already_handled; do
16110 if test "$n" = "$name"; then
16111 already_handled=yes
16115 if test -z "$already_handled"; then
16116 names_already_handled="$names_already_handled $name"
16117 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16118 eval value=\"\$HAVE_LIB$uppername\"
16119 if test -n "$value"; then
16120 if test "$value" = yes; then
16121 eval value=\"\$LIB$uppername\"
16122 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16123 eval value=\"\$LTLIB$uppername\"
16124 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16133 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
16134 if test -n "$acl_shlibext"; then
16135 shrext=".$acl_shlibext" # typically: shrext=.so
16139 if test $use_additional = yes; then
16140 dir="$additional_libdir"
16141 if test -n "$acl_shlibext"; then
16142 if test -f "$dir/$libname$shrext"; then
16144 found_so="$dir/$libname$shrext"
16146 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16147 ver=`(cd "$dir" && \
16148 for f in "$libname$shrext".*; do echo "$f"; done \
16149 | sed -e "s,^$libname$shrext\\\\.,," \
16150 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16151 | sed 1q ) 2>/dev/null`
16152 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16154 found_so="$dir/$libname$shrext.$ver"
16157 eval library_names=\"$acl_library_names_spec\"
16158 for f in $library_names; do
16159 if test -f "$dir/$f"; then
16168 if test "X$found_dir" = "X"; then
16169 if test -f "$dir/$libname.$acl_libext"; then
16171 found_a="$dir/$libname.$acl_libext"
16174 if test "X$found_dir" != "X"; then
16175 if test -f "$dir/$libname.la"; then
16176 found_la="$dir/$libname.la"
16180 if test "X$found_dir" = "X"; then
16181 for x in $LDFLAGS $LTLIBINTL; do
16183 acl_save_prefix="$prefix"
16184 prefix="$acl_final_prefix"
16185 acl_save_exec_prefix="$exec_prefix"
16186 exec_prefix="$acl_final_exec_prefix"
16188 exec_prefix="$acl_save_exec_prefix"
16189 prefix="$acl_save_prefix"
16193 dir=`echo "X$x" | sed -e 's/^X-L//'`
16194 if test -n "$acl_shlibext"; then
16195 if test -f "$dir/$libname$shrext"; then
16197 found_so="$dir/$libname$shrext"
16199 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
16200 ver=`(cd "$dir" && \
16201 for f in "$libname$shrext".*; do echo "$f"; done \
16202 | sed -e "s,^$libname$shrext\\\\.,," \
16203 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
16204 | sed 1q ) 2>/dev/null`
16205 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
16207 found_so="$dir/$libname$shrext.$ver"
16210 eval library_names=\"$acl_library_names_spec\"
16211 for f in $library_names; do
16212 if test -f "$dir/$f"; then
16221 if test "X$found_dir" = "X"; then
16222 if test -f "$dir/$libname.$acl_libext"; then
16224 found_a="$dir/$libname.$acl_libext"
16227 if test "X$found_dir" != "X"; then
16228 if test -f "$dir/$libname.la"; then
16229 found_la="$dir/$libname.la"
16234 if test "X$found_dir" != "X"; then
16239 if test "X$found_dir" != "X"; then
16240 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16241 if test "X$found_so" != "X"; then
16242 if test "$enable_rpath" = no \
16243 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
16244 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
16245 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16248 for x in $ltrpathdirs; do
16249 if test "X$x" = "X$found_dir"; then
16254 if test -z "$haveit"; then
16255 ltrpathdirs="$ltrpathdirs $found_dir"
16257 if test "$acl_hardcode_direct" = yes; then
16258 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16260 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
16261 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16263 for x in $rpathdirs; do
16264 if test "X$x" = "X$found_dir"; then
16269 if test -z "$haveit"; then
16270 rpathdirs="$rpathdirs $found_dir"
16274 for x in $LDFLAGS $LIBINTL; do
16276 acl_save_prefix="$prefix"
16277 prefix="$acl_final_prefix"
16278 acl_save_exec_prefix="$exec_prefix"
16279 exec_prefix="$acl_final_exec_prefix"
16281 exec_prefix="$acl_save_exec_prefix"
16282 prefix="$acl_save_prefix"
16284 if test "X$x" = "X-L$found_dir"; then
16289 if test -z "$haveit"; then
16290 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16292 if test "$acl_hardcode_minus_L" != no; then
16293 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16295 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16301 if test "X$found_a" != "X"; then
16302 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16304 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16307 additional_includedir=
16308 case "$found_dir" in
16309 */$acl_libdirstem | */$acl_libdirstem/)
16310 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16311 if test "$name" = 'intl'; then
16312 LIBINTL_PREFIX="$basedir"
16314 additional_includedir="$basedir/include"
16316 */$acl_libdirstem2 | */$acl_libdirstem2/)
16317 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
16318 if test "$name" = 'intl'; then
16319 LIBINTL_PREFIX="$basedir"
16321 additional_includedir="$basedir/include"
16324 if test "X$additional_includedir" != "X"; then
16325 if test "X$additional_includedir" != "X/usr/include"; then
16327 if test "X$additional_includedir" = "X/usr/local/include"; then
16328 if test -n "$GCC"; then
16330 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16334 if test -z "$haveit"; then
16335 for x in $CPPFLAGS $INCINTL; do
16337 acl_save_prefix="$prefix"
16338 prefix="$acl_final_prefix"
16339 acl_save_exec_prefix="$exec_prefix"
16340 exec_prefix="$acl_final_exec_prefix"
16342 exec_prefix="$acl_save_exec_prefix"
16343 prefix="$acl_save_prefix"
16345 if test "X$x" = "X-I$additional_includedir"; then
16350 if test -z "$haveit"; then
16351 if test -d "$additional_includedir"; then
16352 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16358 if test -n "$found_la"; then
16359 save_libdir="$libdir"
16360 case "$found_la" in
16361 */* | *\\*) . "$found_la" ;;
16362 *) . "./$found_la" ;;
16364 libdir="$save_libdir"
16365 for dep in $dependency_libs; do
16368 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16369 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
16370 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
16372 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
16373 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
16374 if test -n "$GCC"; then
16376 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16380 if test -z "$haveit"; then
16382 for x in $LDFLAGS $LIBINTL; do
16384 acl_save_prefix="$prefix"
16385 prefix="$acl_final_prefix"
16386 acl_save_exec_prefix="$exec_prefix"
16387 exec_prefix="$acl_final_exec_prefix"
16389 exec_prefix="$acl_save_exec_prefix"
16390 prefix="$acl_save_prefix"
16392 if test "X$x" = "X-L$additional_libdir"; then
16397 if test -z "$haveit"; then
16398 if test -d "$additional_libdir"; then
16399 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16403 for x in $LDFLAGS $LTLIBINTL; do
16405 acl_save_prefix="$prefix"
16406 prefix="$acl_final_prefix"
16407 acl_save_exec_prefix="$exec_prefix"
16408 exec_prefix="$acl_final_exec_prefix"
16410 exec_prefix="$acl_save_exec_prefix"
16411 prefix="$acl_save_prefix"
16413 if test "X$x" = "X-L$additional_libdir"; then
16418 if test -z "$haveit"; then
16419 if test -d "$additional_libdir"; then
16420 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16427 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16428 if test "$enable_rpath" != no; then
16430 for x in $rpathdirs; do
16431 if test "X$x" = "X$dir"; then
16436 if test -z "$haveit"; then
16437 rpathdirs="$rpathdirs $dir"
16440 for x in $ltrpathdirs; do
16441 if test "X$x" = "X$dir"; then
16446 if test -z "$haveit"; then
16447 ltrpathdirs="$ltrpathdirs $dir"
16452 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16455 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16458 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16459 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16465 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16466 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16472 if test "X$rpathdirs" != "X"; then
16473 if test -n "$acl_hardcode_libdir_separator"; then
16475 for found_dir in $rpathdirs; do
16476 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
16478 acl_save_libdir="$libdir"
16480 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16481 libdir="$acl_save_libdir"
16482 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16484 for found_dir in $rpathdirs; do
16485 acl_save_libdir="$libdir"
16486 libdir="$found_dir"
16487 eval flag=\"$acl_hardcode_libdir_flag_spec\"
16488 libdir="$acl_save_libdir"
16489 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16493 if test "X$ltrpathdirs" != "X"; then
16494 for found_dir in $ltrpathdirs; do
16495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16505 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16506 if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then :
16507 $as_echo_n "(cached) " >&6
16509 gt_save_CPPFLAGS="$CPPFLAGS"
16510 CPPFLAGS="$CPPFLAGS $INCINTL"
16511 gt_save_LIBS="$LIBS"
16512 LIBS="$LIBS $LIBINTL"
16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16515 #include <libintl.h>
16516 $gt_revision_test_code
16517 extern int _nl_msg_cat_cntr;
16522 const char *_nl_expand_alias (const char *);
16526 bindtextdomain ("", "");
16527 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16532 if ac_fn_c_try_link "$LINENO"; then :
16533 eval "$gt_func_gnugettext_libintl=yes"
16535 eval "$gt_func_gnugettext_libintl=no"
16537 rm -f core conftest.err conftest.$ac_objext \
16538 conftest$ac_exeext conftest.$ac_ext
16539 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
16540 LIBS="$LIBS $LIBICONV"
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h. */
16543 #include <libintl.h>
16544 $gt_revision_test_code
16545 extern int _nl_msg_cat_cntr;
16550 const char *_nl_expand_alias (const char *);
16554 bindtextdomain ("", "");
16555 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16560 if ac_fn_c_try_link "$LINENO"; then :
16561 LIBINTL="$LIBINTL $LIBICONV"
16562 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16563 eval "$gt_func_gnugettext_libintl=yes"
16566 rm -f core conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16569 CPPFLAGS="$gt_save_CPPFLAGS"
16570 LIBS="$gt_save_LIBS"
16572 eval ac_res=\$$gt_func_gnugettext_libintl
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16574 $as_echo "$ac_res" >&6; }
16577 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
16578 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
16579 && test "$PACKAGE" != gettext-runtime \
16580 && test "$PACKAGE" != gettext-tools; }; then
16581 gt_use_preinstalled_gnugettext=yes
16590 if test -n "$INTL_MACOSX_LIBS"; then
16591 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16592 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16593 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16594 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16598 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16599 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16601 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16609 $as_echo_n "checking whether to use NLS... " >&6; }
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16611 $as_echo "$USE_NLS" >&6; }
16612 if test "$USE_NLS" = "yes"; then
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16614 $as_echo_n "checking where the gettext function comes from... " >&6; }
16615 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16616 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16617 gt_source="external libintl"
16622 gt_source="included intl directory"
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16625 $as_echo "$gt_source" >&6; }
16628 if test "$USE_NLS" = "yes"; then
16630 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16631 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16633 $as_echo_n "checking how to link with libintl... " >&6; }
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16635 $as_echo "$LIBINTL" >&6; }
16637 for element in $INCINTL; do
16639 for x in $CPPFLAGS; do
16641 acl_save_prefix="$prefix"
16642 prefix="$acl_final_prefix"
16643 acl_save_exec_prefix="$exec_prefix"
16644 exec_prefix="$acl_final_exec_prefix"
16646 exec_prefix="$acl_save_exec_prefix"
16647 prefix="$acl_save_prefix"
16649 if test "X$x" = "X$element"; then
16654 if test -z "$haveit"; then
16655 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16662 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16665 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16674 INTLLIBS="$LIBINTL"
16681 if test "x$USE_NLS" = "xyes"; then
16690 ac_config_files="$ac_config_files Makefile po/Makefile.in doc/Makefile man/Makefile man/config.xml man/po/Makefile man/cs/Makefile man/de/Makefile man/es/Makefile man/fi/Makefile man/fr/Makefile man/hu/Makefile man/id/Makefile man/it/Makefile man/ja/Makefile man/ko/Makefile man/pl/Makefile man/pt_BR/Makefile man/ru/Makefile man/sv/Makefile man/tr/Makefile man/zh_CN/Makefile man/zh_TW/Makefile libmisc/Makefile lib/Makefile src/Makefile contrib/Makefile etc/Makefile etc/pam.d/Makefile shadow.spec"
16692 cat >confcache <<\_ACEOF
16693 # This file is a shell script that caches the results of configure
16694 # tests run on this system so they can be shared between configure
16695 # scripts and configure runs, see configure's option --config-cache.
16696 # It is not useful on other systems. If it contains results you don't
16697 # want to keep, you may remove or edit it.
16699 # config.status only pays attention to the cache file if you give it
16700 # the --recheck option to rerun configure.
16702 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16703 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16704 # following values.
16708 # The following way of writing the cache mishandles newlines in values,
16709 # but we know of no workaround that is simple, portable, and efficient.
16710 # So, we kill variables containing newlines.
16711 # Ultrix sh set writes to stderr and can't be redirected directly,
16712 # and sets the high bit in the cache file unless we assign to the vars.
16714 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16715 eval ac_val=\$$ac_var
16719 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16720 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16723 _ | IFS | as_nl) ;; #(
16724 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16725 *) { eval $ac_var=; unset $ac_var;} ;;
16731 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16732 *${as_nl}ac_space=\ *)
16733 # `set' does not quote correctly, so add quotes: double-quote
16734 # substitution turns \\\\ into \\, and sed turns \\ into \.
16737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16740 # `set' quotes correctly as required by POSIX, so do not add quotes.
16741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16750 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16755 if test -w "$cache_file"; then
16756 test "x$cache_file" != "x/dev/null" &&
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16758 $as_echo "$as_me: updating cache $cache_file" >&6;}
16759 cat confcache >$cache_file
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16762 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16768 # Let make expand exec_prefix.
16769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16771 DEFS=-DHAVE_CONFIG_H
16775 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16776 # 1. Remove the extension, and $U if already installed.
16777 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16778 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16779 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16780 # will be set to the directory where LIBOBJS objects are built.
16781 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16782 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16784 LIBOBJS=$ac_libobjs
16786 LTLIBOBJS=$ac_ltlibobjs
16789 if test -n "$EXEEXT"; then
16791 am__EXEEXT_FALSE='#'
16793 am__EXEEXT_TRUE='#'
16797 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16798 as_fn_error $? "conditional \"AMDEP\" was never defined.
16799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16801 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16802 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16805 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16806 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16809 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16810 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16813 if test -z "${USE_SHA_CRYPT_TRUE}" && test -z "${USE_SHA_CRYPT_FALSE}"; then
16814 as_fn_error $? "conditional \"USE_SHA_CRYPT\" was never defined.
16815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16817 if test -z "${SHADOWGRP_TRUE}" && test -z "${SHADOWGRP_FALSE}"; then
16818 as_fn_error $? "conditional \"SHADOWGRP\" was never defined.
16819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16821 if test -z "${ENABLE_REGENERATE_MAN_TRUE}" && test -z "${ENABLE_REGENERATE_MAN_FALSE}"; then
16822 as_fn_error $? "conditional \"ENABLE_REGENERATE_MAN\" was never defined.
16823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16825 if test -z "${USE_PAM_TRUE}" && test -z "${USE_PAM_FALSE}"; then
16826 as_fn_error $? "conditional \"USE_PAM\" was never defined.
16827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16829 if test -z "${USE_PAM_TRUE}" && test -z "${USE_PAM_FALSE}"; then
16830 as_fn_error $? "conditional \"USE_PAM\" was never defined.
16831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16833 if test -z "${ACCT_TOOLS_SETUID_TRUE}" && test -z "${ACCT_TOOLS_SETUID_FALSE}"; then
16834 as_fn_error $? "conditional \"ACCT_TOOLS_SETUID\" was never defined.
16835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16837 if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then
16838 as_fn_error $? "conditional \"USE_NLS\" was never defined.
16839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16842 : ${CONFIG_STATUS=./config.status}
16844 ac_clean_files_save=$ac_clean_files
16845 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16847 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16849 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16851 # Generated by $as_me.
16852 # Run this file to recreate the current configuration.
16853 # Compiler output produced by configure, useful for debugging
16854 # configure, is in config.log if it exists.
16857 ac_cs_recheck=false
16860 SHELL=\${CONFIG_SHELL-$SHELL}
16863 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16864 ## -------------------- ##
16865 ## M4sh Initialization. ##
16866 ## -------------------- ##
16868 # Be more Bourne compatible
16869 DUALCASE=1; export DUALCASE # for MKS sh
16870 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16873 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16874 # is contrary to our usage. Disable this feature.
16875 alias -g '${1+"$@"}'='"$@"'
16876 setopt NO_GLOB_SUBST
16878 case `(set -o) 2>/dev/null` in #(
16890 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16891 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16892 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16893 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16894 # Prefer a ksh shell builtin over an external printf program on Solaris,
16895 # but without wasting forks for bash or zsh.
16896 if test -z "$BASH_VERSION$ZSH_VERSION" \
16897 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16898 as_echo='print -r --'
16899 as_echo_n='print -rn --'
16900 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16901 as_echo='printf %s\n'
16902 as_echo_n='printf %s'
16904 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16905 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16906 as_echo_n='/usr/ucb/echo -n'
16908 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16909 as_echo_n_body='eval
16913 expr "X$arg" : "X\\(.*\\)$as_nl";
16914 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16916 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16918 export as_echo_n_body
16919 as_echo_n='sh -c $as_echo_n_body as_echo'
16921 export as_echo_body
16922 as_echo='sh -c $as_echo_body as_echo'
16925 # The user is always right.
16926 if test "${PATH_SEPARATOR+set}" != set; then
16928 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16929 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16936 # We need space, tab and new line, in precisely that order. Quoting is
16937 # there to prevent editors from complaining about space-tab.
16938 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16939 # splitting by setting IFS to empty value.)
16942 # Find who we are. Look in the path if we contain no directory separator.
16944 *[\\/]* ) as_myself=$0 ;;
16945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16946 for as_dir in $PATH
16949 test -z "$as_dir" && as_dir=.
16950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16956 # We did not find ourselves, most probably we were run as `sh COMMAND'
16957 # in which case we are not to be found in the path.
16958 if test "x$as_myself" = x; then
16961 if test ! -f "$as_myself"; then
16962 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16966 # Unset variables that we do not need and which cause bugs (e.g. in
16967 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16968 # suppresses any "Segmentation fault" message there. '((' could
16969 # trigger a bug in pdksh 5.2.14.
16970 for as_var in BASH_ENV ENV MAIL MAILPATH
16971 do eval test x\${$as_var+set} = xset \
16972 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16985 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16988 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16989 # ----------------------------------------
16990 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16991 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16992 # script with STATUS, using 1 if that was 0.
16995 as_status=$1; test $as_status -eq 0 && as_status=1
16997 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16998 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17000 $as_echo "$as_me: error: $2" >&2
17001 as_fn_exit $as_status
17005 # as_fn_set_status STATUS
17006 # -----------------------
17007 # Set $? to STATUS, without forking.
17008 as_fn_set_status ()
17011 } # as_fn_set_status
17013 # as_fn_exit STATUS
17014 # -----------------
17015 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17019 as_fn_set_status $1
17025 # Portably unset VAR.
17028 { eval $1=; unset $1;}
17030 as_unset=as_fn_unset
17031 # as_fn_append VAR VALUE
17032 # ----------------------
17033 # Append the text in VALUE to the end of the definition contained in VAR. Take
17034 # advantage of any shell optimizations that allow amortized linear growth over
17035 # repeated appends, instead of the typical quadratic growth present in naive
17037 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17038 eval 'as_fn_append ()
17049 # as_fn_arith ARG...
17050 # ------------------
17051 # Perform arithmetic evaluation on the ARGs, and store the result in the
17052 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17053 # must be portable across $(()) and expr.
17054 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17055 eval 'as_fn_arith ()
17062 as_val=`expr "$@" || test $? -eq 1`
17067 if expr a : '\(a\)' >/dev/null 2>&1 &&
17068 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17074 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17075 as_basename=basename
17080 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17086 as_me=`$as_basename -- "$0" ||
17087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17088 X"$0" : 'X\(//\)$' \| \
17089 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17091 sed '/^.*\/\([^/][^/]*\)\/*$/{
17105 # Avoid depending upon Character Ranges.
17106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17109 as_cr_digits='0123456789'
17110 as_cr_alnum=$as_cr_Letters$as_cr_digits
17112 ECHO_C= ECHO_N= ECHO_T=
17113 case `echo -n x` in #(((((
17115 case `echo 'xy\c'` in
17116 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17118 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17125 rm -f conf$$ conf$$.exe conf$$.file
17126 if test -d conf$$.dir; then
17127 rm -f conf$$.dir/conf$$.file
17130 mkdir conf$$.dir 2>/dev/null
17132 if (echo >conf$$.file) 2>/dev/null; then
17133 if ln -s conf$$.file conf$$ 2>/dev/null; then
17135 # ... but there are two gotchas:
17136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17138 # In both cases, we have to default to `cp -p'.
17139 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17141 elif ln conf$$.file conf$$ 2>/dev/null; then
17149 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17150 rmdir conf$$.dir 2>/dev/null
17155 # Create "$as_dir" as a directory, including parents if necessary.
17160 -*) as_dir=./$as_dir;;
17162 test -d "$as_dir" || eval $as_mkdir_p || {
17166 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17167 *) as_qdir=$as_dir;;
17169 as_dirs="'$as_qdir' $as_dirs"
17170 as_dir=`$as_dirname -- "$as_dir" ||
17171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17172 X"$as_dir" : 'X\(//\)[^/]' \| \
17173 X"$as_dir" : 'X\(//\)$' \| \
17174 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17175 $as_echo X"$as_dir" |
17176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17180 /^X\(\/\/\)[^/].*/{
17193 test -d "$as_dir" && break
17195 test -z "$as_dirs" || eval "mkdir $as_dirs"
17196 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17200 if mkdir -p . 2>/dev/null; then
17201 as_mkdir_p='mkdir -p "$as_dir"'
17203 test -d ./-p && rmdir ./-p
17207 if test -x / >/dev/null 2>&1; then
17208 as_test_x='test -x'
17210 if ls -dL / >/dev/null 2>&1; then
17217 if test -d "$1"; then
17223 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17224 ???[sx]*):;;*)false;;esac;fi
17228 as_executable_p=$as_test_x
17230 # Sed expression to map a string onto a valid CPP name.
17231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17233 # Sed expression to map a string onto a valid variable name.
17234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17238 ## ----------------------------------- ##
17239 ## Main body of $CONFIG_STATUS script. ##
17240 ## ----------------------------------- ##
17242 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17245 # Save the log message, to keep $0 and so on meaningful, and to
17246 # report actual input values of CONFIG_FILES etc. instead of their
17247 # values after options handling.
17249 This file was extended by $as_me, which was
17250 generated by GNU Autoconf 2.67. Invocation command line was
17252 CONFIG_FILES = $CONFIG_FILES
17253 CONFIG_HEADERS = $CONFIG_HEADERS
17254 CONFIG_LINKS = $CONFIG_LINKS
17255 CONFIG_COMMANDS = $CONFIG_COMMANDS
17258 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17263 case $ac_config_files in *"
17264 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17267 case $ac_config_headers in *"
17268 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17273 # Files that config.status was made for.
17274 config_files="$ac_config_files"
17275 config_headers="$ac_config_headers"
17276 config_commands="$ac_config_commands"
17280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17282 \`$as_me' instantiates files and other configuration actions
17283 from templates according to the current configuration. Unless the files
17284 and actions are specified as TAGs, all are instantiated by default.
17286 Usage: $0 [OPTION]... [TAG]...
17288 -h, --help print this help, then exit
17289 -V, --version print version number and configuration settings, then exit
17290 --config print configuration, then exit
17291 -q, --quiet, --silent
17292 do not print progress messages
17293 -d, --debug don't remove temporary files
17294 --recheck update $as_me by reconfiguring in the same conditions
17295 --file=FILE[:TEMPLATE]
17296 instantiate the configuration file FILE
17297 --header=FILE[:TEMPLATE]
17298 instantiate the configuration header FILE
17300 Configuration files:
17303 Configuration headers:
17306 Configuration commands:
17309 Report bugs to the package provider."
17312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17313 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17316 configured by $0, generated by GNU Autoconf 2.67,
17317 with options \\"\$ac_cs_config\\"
17319 Copyright (C) 2010 Free Software Foundation, Inc.
17320 This config.status script is free software; the Free Software Foundation
17321 gives unlimited permission to copy, distribute and modify it."
17328 test -n "\$AWK" || AWK=awk
17331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17332 # The default lists apply if the user does not specify any file.
17338 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17339 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17343 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17355 # Handling of the options.
17356 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17358 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17359 $as_echo "$ac_cs_version"; exit ;;
17360 --config | --confi | --conf | --con | --co | --c )
17361 $as_echo "$ac_cs_config"; exit ;;
17362 --debug | --debu | --deb | --de | --d | -d )
17364 --file | --fil | --fi | --f )
17367 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17368 '') as_fn_error $? "missing file argument" ;;
17370 as_fn_append CONFIG_FILES " '$ac_optarg'"
17371 ac_need_defaults=false;;
17372 --header | --heade | --head | --hea )
17375 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17377 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17378 ac_need_defaults=false;;
17380 # Conflict between --help and --header
17381 as_fn_error $? "ambiguous option: \`$1'
17382 Try \`$0 --help' for more information.";;
17383 --help | --hel | -h )
17384 $as_echo "$ac_cs_usage"; exit ;;
17385 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17386 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17389 # This is an error.
17390 -*) as_fn_error $? "unrecognized option: \`$1'
17391 Try \`$0 --help' for more information." ;;
17393 *) as_fn_append ac_config_targets " $1"
17394 ac_need_defaults=false ;;
17400 ac_configure_extra_args=
17402 if $ac_cs_silent; then
17404 ac_configure_extra_args="$ac_configure_extra_args --silent"
17408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17409 if \$ac_cs_recheck; then
17410 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17412 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17413 CONFIG_SHELL='$SHELL'
17414 export CONFIG_SHELL
17419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17423 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17424 ## Running $as_me. ##
17430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17434 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17437 # The HP-UX ksh and POSIX shell print the target directory to stdout
17438 # if CDPATH is set.
17439 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17441 sed_quote_subst='$sed_quote_subst'
17442 double_quote_subst='$double_quote_subst'
17443 delay_variable_subst='$delay_variable_subst'
17444 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17445 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17446 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17447 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17448 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17449 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17450 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17451 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17452 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17453 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17454 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17455 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17456 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17457 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17458 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17459 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17460 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17461 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17462 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17463 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17464 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17465 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17466 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17467 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17468 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17469 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17470 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17471 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17472 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17473 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17474 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17475 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17476 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17477 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17478 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17479 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17480 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17481 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17482 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17483 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17484 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17485 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17486 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17487 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17488 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17489 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17490 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17491 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17492 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17493 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17494 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17495 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17496 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17497 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17498 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17499 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17500 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17501 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17502 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17503 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17504 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17505 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17506 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17507 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17508 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17509 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17510 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17511 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17512 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17513 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17514 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17515 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17516 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17517 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17518 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17519 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17520 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17521 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17522 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17523 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17524 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17525 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17526 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17527 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17528 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17529 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17530 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17531 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17532 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17533 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17534 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17535 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17536 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17537 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17538 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17539 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17540 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17541 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17542 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17543 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17544 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17545 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17546 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17547 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17548 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17549 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17550 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17551 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17552 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17553 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17554 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17555 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17556 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17557 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17558 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17559 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17560 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17561 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17564 LTCFLAGS='$LTCFLAGS'
17565 compiler='$compiler_DEFAULT'
17567 # Quote evaled strings.
17579 deplibs_check_method \
17588 lt_cv_sys_global_symbol_pipe \
17589 lt_cv_sys_global_symbol_to_cdecl \
17590 lt_cv_sys_global_symbol_to_c_name_address \
17591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17594 lt_prog_compiler_no_builtin_flag \
17595 lt_prog_compiler_wl \
17596 lt_prog_compiler_pic \
17597 lt_prog_compiler_static \
17598 lt_cv_prog_compiler_c_o \
17606 export_dynamic_flag_spec \
17607 whole_archive_flag_spec \
17608 compiler_needs_object \
17610 allow_undefined_flag \
17611 no_undefined_flag \
17612 hardcode_libdir_flag_spec \
17613 hardcode_libdir_flag_spec_ld \
17614 hardcode_libdir_separator \
17619 variables_saved_for_relink \
17621 library_names_spec \
17626 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17627 *[\\\\\\\`\\"\\\$]*)
17628 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17631 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17636 # Double-quote double-evaled strings.
17637 for var in reload_cmds \
17638 old_postinstall_cmds \
17639 old_postuninstall_cmds \
17641 extract_expsyms_cmds \
17642 old_archive_from_new_cmds \
17643 old_archive_from_expsyms_cmds \
17645 archive_expsym_cmds \
17647 module_expsym_cmds \
17648 export_symbols_cmds \
17651 postuninstall_cmds \
17653 sys_lib_search_path_spec \
17654 sys_lib_dlsearch_path_spec; do
17655 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17656 *[\\\\\\\`\\"\\\$]*)
17657 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17660 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17665 # Fix-up fallback echo if it was mangled by the above quoting rules.
17667 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17671 ac_aux_dir='$ac_aux_dir'
17672 xsi_shell='$xsi_shell'
17673 lt_shell_append='$lt_shell_append'
17675 # See if we are running on zsh, and set the options which allow our
17676 # commands through without removal of \ escapes INIT.
17677 if test -n "\${ZSH_VERSION+set}" ; then
17678 setopt NO_GLOB_SUBST
17684 TIMESTAMP='$TIMESTAMP'
17690 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17691 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17692 # from automake < 1.5.
17693 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17694 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17695 LINGUAS="${LINGUAS-%UNSET%}"
17700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17702 # Handling of arguments.
17703 for ac_config_target in $ac_config_targets
17705 case $ac_config_target in
17706 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17707 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17708 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17709 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17710 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17711 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17712 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17713 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17714 "man/config.xml") CONFIG_FILES="$CONFIG_FILES man/config.xml" ;;
17715 "man/po/Makefile") CONFIG_FILES="$CONFIG_FILES man/po/Makefile" ;;
17716 "man/cs/Makefile") CONFIG_FILES="$CONFIG_FILES man/cs/Makefile" ;;
17717 "man/de/Makefile") CONFIG_FILES="$CONFIG_FILES man/de/Makefile" ;;
17718 "man/es/Makefile") CONFIG_FILES="$CONFIG_FILES man/es/Makefile" ;;
17719 "man/fi/Makefile") CONFIG_FILES="$CONFIG_FILES man/fi/Makefile" ;;
17720 "man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;;
17721 "man/hu/Makefile") CONFIG_FILES="$CONFIG_FILES man/hu/Makefile" ;;
17722 "man/id/Makefile") CONFIG_FILES="$CONFIG_FILES man/id/Makefile" ;;
17723 "man/it/Makefile") CONFIG_FILES="$CONFIG_FILES man/it/Makefile" ;;
17724 "man/ja/Makefile") CONFIG_FILES="$CONFIG_FILES man/ja/Makefile" ;;
17725 "man/ko/Makefile") CONFIG_FILES="$CONFIG_FILES man/ko/Makefile" ;;
17726 "man/pl/Makefile") CONFIG_FILES="$CONFIG_FILES man/pl/Makefile" ;;
17727 "man/pt_BR/Makefile") CONFIG_FILES="$CONFIG_FILES man/pt_BR/Makefile" ;;
17728 "man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES man/ru/Makefile" ;;
17729 "man/sv/Makefile") CONFIG_FILES="$CONFIG_FILES man/sv/Makefile" ;;
17730 "man/tr/Makefile") CONFIG_FILES="$CONFIG_FILES man/tr/Makefile" ;;
17731 "man/zh_CN/Makefile") CONFIG_FILES="$CONFIG_FILES man/zh_CN/Makefile" ;;
17732 "man/zh_TW/Makefile") CONFIG_FILES="$CONFIG_FILES man/zh_TW/Makefile" ;;
17733 "libmisc/Makefile") CONFIG_FILES="$CONFIG_FILES libmisc/Makefile" ;;
17734 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17735 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17736 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
17737 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
17738 "etc/pam.d/Makefile") CONFIG_FILES="$CONFIG_FILES etc/pam.d/Makefile" ;;
17739 "shadow.spec") CONFIG_FILES="$CONFIG_FILES shadow.spec" ;;
17741 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17746 # If the user did not use the arguments to specify the items to instantiate,
17747 # then the envvar interface is used. Set only those that are not.
17748 # We use the long form for the default assignment because of an extremely
17749 # bizarre bug on SunOS 4.1.3.
17750 if $ac_need_defaults; then
17751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17756 # Have a temporary directory for convenience. Make it in the build tree
17757 # simply because there is no reason against having it here, and in addition,
17758 # creating and moving files from /tmp can sometimes cause problems.
17759 # Hook for its removal unless debugging.
17760 # Note that there is a small window in which the directory will not be cleaned:
17761 # after its creation but before its name has been assigned to `$tmp'.
17765 trap 'exit_status=$?
17766 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17768 trap 'as_fn_exit 1' 1 2 13 15
17770 # Create a (secure) tmp directory for tmp files.
17773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17774 test -n "$tmp" && test -d "$tmp"
17777 tmp=./conf$$-$RANDOM
17778 (umask 077 && mkdir "$tmp")
17779 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17781 # Set up the scripts for CONFIG_FILES section.
17782 # No need to generate them if there are no CONFIG_FILES.
17783 # This happens for instance with `./config.status config.h'.
17784 if test -n "$CONFIG_FILES"; then
17787 ac_cr=`echo X | tr X '\015'`
17788 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17789 # But we know of no other shell where ac_cr would be empty at this
17790 # point, so we can use a bashism as a fallback.
17791 if test "x$ac_cr" = x; then
17792 eval ac_cr=\$\'\\r\'
17794 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17795 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17798 ac_cs_awk_cr=$ac_cr
17801 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17806 echo "cat >conf$$subs.awk <<_ACEOF" &&
17807 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17809 } >conf$$subs.sh ||
17810 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17811 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17813 for ac_last_try in false false false false false :; do
17814 . ./conf$$subs.sh ||
17815 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17817 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17818 if test $ac_delim_n = $ac_delim_num; then
17820 elif $ac_last_try; then
17821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17823 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17826 rm -f conf$$subs.sh
17828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17829 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17833 s/^/S["/; s/!.*/"]=/
17843 s/\(.\{148\}\)..*/\1/
17845 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17850 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17857 s/\(.\{148\}\)..*/\1/
17859 s/["\\]/\\&/g; s/^/"/; s/$/"/
17863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17868 ' <conf$$subs.awk | sed '
17873 ' >>$CONFIG_STATUS || ac_write_fail=1
17874 rm -f conf$$subs.awk
17875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17877 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17878 for (key in S) S_is_set[key] = 1
17884 nfields = split(line, field, "@")
17886 len = length(field[1])
17887 for (i = 2; i < nfields; i++) {
17889 keylen = length(key)
17890 if (S_is_set[key]) {
17892 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17893 len += length(value) + length(field[++i])
17904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17905 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17906 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17909 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17910 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17913 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17914 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17915 # trailing colons and then remove the whole line if VPATH becomes empty
17916 # (actually we leave an empty line to preserve line numbers).
17917 if test "x$srcdir" = x.; then
17918 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17937 fi # test -n "$CONFIG_FILES"
17939 # Set up the scripts for CONFIG_HEADERS section.
17940 # No need to generate them if there are no CONFIG_HEADERS.
17941 # This happens for instance with `./config.status Makefile'.
17942 if test -n "$CONFIG_HEADERS"; then
17943 cat >"$tmp/defines.awk" <<\_ACAWK ||
17947 # Transform confdefs.h into an awk script `defines.awk', embedded as
17948 # here-document in config.status, that substitutes the proper values into
17949 # config.h.in to produce config.h.
17951 # Create a delimiter string that does not exist in confdefs.h, to ease
17952 # handling of long lines.
17954 for ac_last_try in false false :; do
17955 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17956 if test -z "$ac_t"; then
17958 elif $ac_last_try; then
17959 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17965 # For the awk script, D is an array of macro values keyed by name,
17966 # likewise P contains macro parameters if any. Preserve backslash
17967 # newline sequences.
17969 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17971 s/.\{148\}/&'"$ac_delim"'/g
17974 s/^[ ]*#[ ]*define[ ][ ]*/ /
17981 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17983 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17987 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17988 D["\1"]=" \3\\\\\\n"\\/p
17990 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17995 s/.\{148\}/&'"$ac_delim"'/g
18000 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18003 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18005 ' <confdefs.h | sed '
18006 s/'"$ac_delim"'/"\\\
18007 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18010 for (key in D) D_is_set[key] = 1
18013 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18015 split(line, arg, " ")
18016 if (arg[1] == "#") {
18020 defundef = substr(arg[1], 2)
18023 split(mac1, mac2, "(") #)
18025 prefix = substr(line, 1, index(line, defundef) - 1)
18026 if (D_is_set[macro]) {
18027 # Preserve the white space surrounding the "#".
18028 print prefix "define", macro P[macro] D[macro]
18031 # Replace #undef with comments. This is necessary, for example,
18032 # in the case of _POSIX_SOURCE, which is predefined and required
18033 # on some systems where configure will not decide to define it.
18034 if (defundef == "undef") {
18035 print "/*", prefix defundef, macro, "*/"
18043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18044 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18045 fi # test -n "$CONFIG_HEADERS"
18048 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18053 :[FHLC]) ac_mode=$ac_tag; continue;;
18055 case $ac_mode$ac_tag in
18057 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18058 :[FH]-) ac_tag=-:-;;
18059 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18076 -) ac_f="$tmp/stdin";;
18077 *) # Look for the file first in the build tree, then in the source tree
18078 # (if the path is not absolute). The absolute path cannot be DOS-style,
18079 # because $ac_f cannot contain `:'.
18083 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18085 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18087 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18088 as_fn_append ac_file_inputs " '$ac_f'"
18091 # Let's still pretend it is `configure' which instantiates (i.e., don't
18092 # use $as_me), people would be surprised to read:
18093 # /* config.h. Generated by config.status. */
18094 configure_input='Generated from '`
18095 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18097 if test x"$ac_file" != x-; then
18098 configure_input="$ac_file. $configure_input"
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18100 $as_echo "$as_me: creating $ac_file" >&6;}
18102 # Neutralize special characters interpreted by sed in replacement strings.
18103 case $configure_input in #(
18104 *\&* | *\|* | *\\* )
18105 ac_sed_conf_input=`$as_echo "$configure_input" |
18106 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18107 *) ac_sed_conf_input=$configure_input;;
18111 *:-:* | *:-) cat >"$tmp/stdin" \
18112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18117 ac_dir=`$as_dirname -- "$ac_file" ||
18118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18119 X"$ac_file" : 'X\(//\)[^/]' \| \
18120 X"$ac_file" : 'X\(//\)$' \| \
18121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18122 $as_echo X"$ac_file" |
18123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18127 /^X\(\/\/\)[^/].*/{
18140 as_dir="$ac_dir"; as_fn_mkdir_p
18144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18146 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18147 # A ".." for each directory in $ac_dir_suffix.
18148 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18149 case $ac_top_builddir_sub in
18150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18154 ac_abs_top_builddir=$ac_pwd
18155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18156 # for backward compatibility:
18157 ac_top_builddir=$ac_top_build_prefix
18160 .) # We are building in place.
18162 ac_top_srcdir=$ac_top_builddir_sub
18163 ac_abs_top_srcdir=$ac_pwd ;;
18164 [\\/]* | ?:[\\/]* ) # Absolute name.
18165 ac_srcdir=$srcdir$ac_dir_suffix;
18166 ac_top_srcdir=$srcdir
18167 ac_abs_top_srcdir=$srcdir ;;
18168 *) # Relative name.
18169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18170 ac_top_srcdir=$ac_top_build_prefix$srcdir
18171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18183 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18184 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18186 ac_MKDIR_P=$MKDIR_P
18188 [\\/$]* | ?:[\\/]* ) ;;
18189 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18194 # If the template does not know about datarootdir, expand it.
18195 # FIXME: This hack should be removed a few years after 2.60.
18196 ac_datarootdir_hack=; ac_datarootdir_seen=
18207 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18208 *datarootdir*) ac_datarootdir_seen=yes;;
18209 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18211 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18214 ac_datarootdir_hack='
18215 s&@datadir@&$datadir&g
18216 s&@docdir@&$docdir&g
18217 s&@infodir@&$infodir&g
18218 s&@localedir@&$localedir&g
18219 s&@mandir@&$mandir&g
18220 s&\\\${datarootdir}&$datarootdir&g' ;;
18224 # Neutralize VPATH when `$srcdir' = `.'.
18225 # Shell code in configure.ac might set extrasub.
18226 # FIXME: do we really want to maintain this feature?
18227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18228 ac_sed_extra="$ac_vpsub
18231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18234 s|@configure_input@|$ac_sed_conf_input|;t t
18235 s&@top_builddir@&$ac_top_builddir_sub&;t t
18236 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18237 s&@srcdir@&$ac_srcdir&;t t
18238 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18239 s&@top_srcdir@&$ac_top_srcdir&;t t
18240 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18241 s&@builddir@&$ac_builddir&;t t
18242 s&@abs_builddir@&$ac_abs_builddir&;t t
18243 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18244 s&@INSTALL@&$ac_INSTALL&;t t
18245 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18246 $ac_datarootdir_hack
18248 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18249 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18251 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18252 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18253 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18255 which seems to be undefined. Please make sure it is defined" >&5
18256 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18257 which seems to be undefined. Please make sure it is defined" >&2;}
18261 -) cat "$tmp/out" && rm -f "$tmp/out";;
18262 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18264 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18270 if test x"$ac_file" != x-; then
18272 $as_echo "/* $configure_input */" \
18273 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18274 } >"$tmp/config.h" \
18275 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18276 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18278 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18281 mv "$tmp/config.h" "$ac_file" \
18282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18285 $as_echo "/* $configure_input */" \
18286 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18287 || as_fn_error $? "could not create -" "$LINENO" 5
18289 # Compute "$ac_file"'s index in $config_headers.
18292 for _am_header in $config_headers :; do
18293 case $_am_header in
18294 $_am_arg | $_am_arg:* )
18297 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18300 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18301 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18302 X"$_am_arg" : 'X\(//\)[^/]' \| \
18303 X"$_am_arg" : 'X\(//\)$' \| \
18304 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18305 $as_echo X"$_am_arg" |
18306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18310 /^X\(\/\/\)[^/].*/{
18322 s/.*/./; q'`/stamp-h$_am_stamp_count
18325 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18326 $as_echo "$as_me: executing $ac_file commands" >&6;}
18331 case $ac_file$ac_mode in
18332 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18333 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18334 # are listed without --file. Let's play safe and only enable the eval
18335 # if we detect the quoting.
18336 case $CONFIG_FILES in
18337 *\'*) eval set x "$CONFIG_FILES" ;;
18338 *) set x $CONFIG_FILES ;;
18343 # Strip MF so we end up with the name of the file.
18344 mf=`echo "$mf" | sed -e 's/:.*$//'`
18345 # Check whether this is an Automake generated Makefile or not.
18346 # We used to match only the files named `Makefile.in', but
18347 # some people rename them; so instead we look at the file content.
18348 # Grep'ing the first line is not enough: some people post-process
18349 # each Makefile.in and add a new line on top of each file to say so.
18350 # Grep'ing the whole file is not good either: AIX grep has a line
18351 # limit of 2048, but all sed's we know have understand at least 4000.
18352 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18353 dirpart=`$as_dirname -- "$mf" ||
18354 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18355 X"$mf" : 'X\(//\)[^/]' \| \
18356 X"$mf" : 'X\(//\)$' \| \
18357 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18363 /^X\(\/\/\)[^/].*/{
18379 # Extract the definition of DEPDIR, am__include, and am__quote
18380 # from the Makefile without running `make'.
18381 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18382 test -z "$DEPDIR" && continue
18383 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18384 test -z "am__include" && continue
18385 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18386 # When using ansi2knr, U may be empty or an underscore; expand it
18387 U=`sed -n 's/^U = //p' < "$mf"`
18388 # Find all dependency output files, they are included files with
18389 # $(DEPDIR) in their names. We invoke sed twice because it is the
18390 # simplest approach to changing $(DEPDIR) to its actual value in the
18392 for file in `sed -n "
18393 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18394 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18395 # Make sure the directory exists.
18396 test -f "$dirpart/$file" && continue
18397 fdir=`$as_dirname -- "$file" ||
18398 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18399 X"$file" : 'X\(//\)[^/]' \| \
18400 X"$file" : 'X\(//\)$' \| \
18401 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18402 $as_echo X"$file" |
18403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18407 /^X\(\/\/\)[^/].*/{
18420 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18421 # echo "creating $dirpart/$file"
18422 echo '# dummy' > "$dirpart/$file"
18429 # See if we are running on zsh, and set the options which allow our
18430 # commands through without removal of \ escapes.
18431 if test -n "${ZSH_VERSION+set}" ; then
18432 setopt NO_GLOB_SUBST
18435 cfgfile="${ofile}T"
18436 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18439 cat <<_LT_EOF >> "$cfgfile"
18442 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18443 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18444 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18445 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18447 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18448 # 2006, 2007, 2008 Free Software Foundation, Inc.
18449 # Written by Gordon Matzigkeit, 1996
18451 # This file is part of GNU Libtool.
18453 # GNU Libtool is free software; you can redistribute it and/or
18454 # modify it under the terms of the GNU General Public License as
18455 # published by the Free Software Foundation; either version 2 of
18456 # the License, or (at your option) any later version.
18458 # As a special exception to the GNU General Public License,
18459 # if you distribute this file as part of a program or library that
18460 # is built using GNU Libtool, you may include this file under the
18461 # same distribution terms that you use for the rest of that program.
18463 # GNU Libtool is distributed in the hope that it will be useful,
18464 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18465 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18466 # GNU General Public License for more details.
18468 # You should have received a copy of the GNU General Public License
18469 # along with GNU Libtool; see the file COPYING. If not, a copy
18470 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18471 # obtained by writing to the Free Software Foundation, Inc.,
18472 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18475 # The names of the tagged configurations supported by this script.
18478 # ### BEGIN LIBTOOL CONFIG
18480 # Whether or not to build shared libraries.
18481 build_libtool_libs=$enable_shared
18483 # Whether or not to build static libraries.
18484 build_old_libs=$enable_static
18486 # Which release of libtool.m4 was used?
18487 macro_version=$macro_version
18488 macro_revision=$macro_revision
18490 # What type of objects to build.
18493 # Whether or not to optimize for fast installation.
18494 fast_install=$enable_fast_install
18497 host_alias=$host_alias
18501 # The build system.
18502 build_alias=$build_alias
18506 # A sed program that does not truncate output.
18509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18510 Xsed="\$SED -e 1s/^X//"
18512 # A grep program that handles long lines.
18518 # A literal string matcher.
18521 # A BSD- or MS-compatible name lister.
18524 # Whether we need soft or hard links.
18527 # What is the maximum length of a command?
18528 max_cmd_len=$max_cmd_len
18530 # Object file suffix (normally "o").
18533 # Executable file suffix (normally "").
18536 # whether the shell understands "unset".
18539 # turn spaces into newlines.
18542 # turn newlines into spaces.
18545 # How to create reloadable object files.
18546 reload_flag=$lt_reload_flag
18547 reload_cmds=$lt_reload_cmds
18549 # An object symbol dumper.
18550 OBJDUMP=$lt_OBJDUMP
18552 # Method to check whether dependent libraries are shared objects.
18553 deplibs_check_method=$lt_deplibs_check_method
18555 # Command to use when deplibs_check_method == "file_magic".
18556 file_magic_cmd=$lt_file_magic_cmd
18560 AR_FLAGS=$lt_AR_FLAGS
18562 # A symbol stripping program.
18565 # Commands used to install an old-style archive.
18567 old_postinstall_cmds=$lt_old_postinstall_cmds
18568 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18573 # LTCC compiler flags.
18574 LTCFLAGS=$lt_CFLAGS
18576 # Take the output of nm and produce a listing of raw symbols and C names.
18577 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18579 # Transform the output of nm in a proper C declaration.
18580 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18582 # Transform the output of nm in a C name address pair.
18583 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18585 # Transform the output of nm in a C name address pair when lib prefix is needed.
18586 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18588 # The name of the directory that contains temporary libtool files.
18591 # Shell to use when invoking shell scripts.
18594 # An echo program that does not interpret backslashes.
18597 # Used to examine libraries when file_magic_cmd begins with "file".
18598 MAGIC_CMD=$MAGIC_CMD
18600 # Must we lock files when doing compilation?
18601 need_locks=$lt_need_locks
18603 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18604 DSYMUTIL=$lt_DSYMUTIL
18606 # Tool to change global to local symbols on Mac OS X.
18609 # Tool to manipulate fat objects and archives on Mac OS X.
18612 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18615 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18616 OTOOL64=$lt_OTOOL64
18618 # Old archive suffix (normally "a").
18621 # Shared library suffix (normally ".so").
18622 shrext_cmds=$lt_shrext_cmds
18624 # The commands to extract the exported symbol list from a shared archive.
18625 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18627 # Variables whose values should be saved in libtool wrapper scripts and
18628 # restored at link time.
18629 variables_saved_for_relink=$lt_variables_saved_for_relink
18631 # Do we need the "lib" prefix for modules?
18632 need_lib_prefix=$need_lib_prefix
18634 # Do we need a version for libraries?
18635 need_version=$need_version
18637 # Library versioning type.
18638 version_type=$version_type
18640 # Shared library runtime path variable.
18641 runpath_var=$runpath_var
18643 # Shared library path variable.
18644 shlibpath_var=$shlibpath_var
18646 # Is shlibpath searched before the hard-coded library search path?
18647 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18649 # Format of library name prefix.
18650 libname_spec=$lt_libname_spec
18652 # List of archive names. First name is the real one, the rest are links.
18653 # The last name is the one that the linker finds with -lNAME
18654 library_names_spec=$lt_library_names_spec
18656 # The coded name of the library, if different from the real name.
18657 soname_spec=$lt_soname_spec
18659 # Command to use after installation of a shared archive.
18660 postinstall_cmds=$lt_postinstall_cmds
18662 # Command to use after uninstallation of a shared archive.
18663 postuninstall_cmds=$lt_postuninstall_cmds
18665 # Commands used to finish a libtool library installation in a directory.
18666 finish_cmds=$lt_finish_cmds
18668 # As "finish_cmds", except a single script fragment to be evaled but
18670 finish_eval=$lt_finish_eval
18672 # Whether we should hardcode library paths into libraries.
18673 hardcode_into_libs=$hardcode_into_libs
18675 # Compile-time system search path for libraries.
18676 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18678 # Run-time system search path for libraries.
18679 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18681 # Whether dlopen is supported.
18682 dlopen_support=$enable_dlopen
18684 # Whether dlopen of programs is supported.
18685 dlopen_self=$enable_dlopen_self
18687 # Whether dlopen of statically linked programs is supported.
18688 dlopen_self_static=$enable_dlopen_self_static
18690 # Commands to strip libraries.
18691 old_striplib=$lt_old_striplib
18692 striplib=$lt_striplib
18695 # The linker used to build libraries.
18698 # Commands used to build an old-style archive.
18699 old_archive_cmds=$lt_old_archive_cmds
18701 # A language specific compiler.
18704 # Is the compiler the GNU compiler?
18707 # Compiler flag to turn off builtin functions.
18708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18710 # How to pass a linker flag through the compiler.
18711 wl=$lt_lt_prog_compiler_wl
18713 # Additional compiler flags for building library objects.
18714 pic_flag=$lt_lt_prog_compiler_pic
18716 # Compiler flag to prevent dynamic linking.
18717 link_static_flag=$lt_lt_prog_compiler_static
18719 # Does compiler simultaneously support -c and -o options?
18720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18722 # Whether or not to add -lc for building shared libraries.
18723 build_libtool_need_lc=$archive_cmds_need_lc
18725 # Whether or not to disallow shared libs when runtime libs are static.
18726 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18728 # Compiler flag to allow reflexive dlopens.
18729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18731 # Compiler flag to generate shared objects directly from archives.
18732 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18734 # Whether the compiler copes with passing no objects directly.
18735 compiler_needs_object=$lt_compiler_needs_object
18737 # Create an old-style archive from a shared archive.
18738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18740 # Create a temporary old-style archive to link instead of a shared archive.
18741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18743 # Commands used to build a shared archive.
18744 archive_cmds=$lt_archive_cmds
18745 archive_expsym_cmds=$lt_archive_expsym_cmds
18747 # Commands used to build a loadable module if different from building
18748 # a shared archive.
18749 module_cmds=$lt_module_cmds
18750 module_expsym_cmds=$lt_module_expsym_cmds
18752 # Whether we are building with GNU ld or not.
18753 with_gnu_ld=$lt_with_gnu_ld
18755 # Flag that allows shared libraries with undefined symbols to be built.
18756 allow_undefined_flag=$lt_allow_undefined_flag
18758 # Flag that enforces no undefined symbols.
18759 no_undefined_flag=$lt_no_undefined_flag
18761 # Flag to hardcode \$libdir into a binary during linking.
18762 # This must work even if \$libdir does not exist
18763 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18765 # If ld is used when linking, flag to hardcode \$libdir into a binary
18766 # during linking. This must work even if \$libdir does not exist.
18767 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18769 # Whether we need a single "-rpath" flag with a separated argument.
18770 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18772 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18773 # DIR into the resulting binary.
18774 hardcode_direct=$hardcode_direct
18776 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18777 # DIR into the resulting binary and the resulting library dependency is
18778 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18779 # library is relocated.
18780 hardcode_direct_absolute=$hardcode_direct_absolute
18782 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18783 # into the resulting binary.
18784 hardcode_minus_L=$hardcode_minus_L
18786 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18787 # into the resulting binary.
18788 hardcode_shlibpath_var=$hardcode_shlibpath_var
18790 # Set to "yes" if building a shared library automatically hardcodes DIR
18791 # into the library and all subsequent libraries and executables linked
18793 hardcode_automatic=$hardcode_automatic
18795 # Set to yes if linker adds runtime paths of dependent libraries
18796 # to runtime path list.
18797 inherit_rpath=$inherit_rpath
18799 # Whether libtool must link a program against all its dependency libraries.
18800 link_all_deplibs=$link_all_deplibs
18802 # Fix the shell variable \$srcfile for the compiler.
18803 fix_srcfile_path=$lt_fix_srcfile_path
18805 # Set to "yes" if exported symbols are required.
18806 always_export_symbols=$always_export_symbols
18808 # The commands to list exported symbols.
18809 export_symbols_cmds=$lt_export_symbols_cmds
18811 # Symbols that should not be listed in the preloaded symbols.
18812 exclude_expsyms=$lt_exclude_expsyms
18814 # Symbols that must always be exported.
18815 include_expsyms=$lt_include_expsyms
18817 # Commands necessary for linking programs (against libraries) with templates.
18818 prelink_cmds=$lt_prelink_cmds
18820 # Specify filename containing input files.
18821 file_list_spec=$lt_file_list_spec
18823 # How to hardcode a shared library path into an executable.
18824 hardcode_action=$hardcode_action
18826 # ### END LIBTOOL CONFIG
18832 cat <<\_LT_EOF >> "$cfgfile"
18833 # AIX sometimes has problems with the GCC collect2 program. For some
18834 # reason, if we set the COLLECT_NAMES environment variable, the problems
18835 # vanish in a puff of smoke.
18836 if test "X${COLLECT_NAMES+set}" != Xset; then
18838 export COLLECT_NAMES
18845 ltmain="$ac_aux_dir/ltmain.sh"
18848 # We use sed instead of cat because bash on DJGPP gets confused if
18849 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18850 # text mode, it properly converts lines to CR/LF. This bash problem
18851 # is reportedly fixed, but why not run on old versions too?
18852 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18853 || (rm -f "$cfgfile"; exit 1)
18857 cat << \_LT_EOF >> "$cfgfile"
18859 # func_dirname file append nondir_replacement
18860 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18861 # otherwise set result to NONDIR_REPLACEMENT.
18865 */*) func_dirname_result="${1%/*}${2}" ;;
18866 * ) func_dirname_result="${3}" ;;
18870 # func_basename file
18873 func_basename_result="${1##*/}"
18876 # func_dirname_and_basename file append nondir_replacement
18877 # perform func_basename and func_dirname in a single function
18879 # dirname: Compute the dirname of FILE. If nonempty,
18880 # add APPEND to the result, otherwise set result
18881 # to NONDIR_REPLACEMENT.
18882 # value returned in "$func_dirname_result"
18883 # basename: Compute filename of FILE.
18884 # value retuned in "$func_basename_result"
18885 # Implementation must be kept synchronized with func_dirname
18886 # and func_basename. For efficiency, we do not delegate to
18887 # those functions but instead duplicate the functionality here.
18888 func_dirname_and_basename ()
18891 */*) func_dirname_result="${1%/*}${2}" ;;
18892 * ) func_dirname_result="${3}" ;;
18894 func_basename_result="${1##*/}"
18897 # func_stripname prefix suffix name
18898 # strip PREFIX and SUFFIX off of NAME.
18899 # PREFIX and SUFFIX must not contain globbing or regex special
18900 # characters, hashes, percent signs, but SUFFIX may contain a leading
18901 # dot (in which case that matches only a dot).
18904 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18905 # positional parameters, so assign one to ordinary parameter first.
18906 func_stripname_result=${3}
18907 func_stripname_result=${func_stripname_result#"${1}"}
18908 func_stripname_result=${func_stripname_result%"${2}"}
18914 func_opt_split_opt=${1%%=*}
18915 func_opt_split_arg=${1#*=}
18922 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18923 *) func_lo2o_result=${1} ;;
18927 # func_xform libobj-or-source
18930 func_xform_result=${1%.*}.lo
18933 # func_arith arithmetic-term...
18936 func_arith_result=$(( $* ))
18940 # STRING may not start with a hyphen.
18943 func_len_result=${#1}
18948 *) # Bourne compatible functions.
18949 cat << \_LT_EOF >> "$cfgfile"
18951 # func_dirname file append nondir_replacement
18952 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18953 # otherwise set result to NONDIR_REPLACEMENT.
18956 # Extract subdirectory from the argument.
18957 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18958 if test "X$func_dirname_result" = "X${1}"; then
18959 func_dirname_result="${3}"
18961 func_dirname_result="$func_dirname_result${2}"
18965 # func_basename file
18968 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18972 # func_stripname prefix suffix name
18973 # strip PREFIX and SUFFIX off of NAME.
18974 # PREFIX and SUFFIX must not contain globbing or regex special
18975 # characters, hashes, percent signs, but SUFFIX may contain a leading
18976 # dot (in which case that matches only a dot).
18977 # func_strip_suffix prefix name
18981 .*) func_stripname_result=`$ECHO "X${3}" \
18982 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18983 *) func_stripname_result=`$ECHO "X${3}" \
18984 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18989 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18990 my_sed_long_arg='1s/^-[^=]*=//'
18995 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18996 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19002 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19005 # func_xform libobj-or-source
19008 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19011 # func_arith arithmetic-term...
19014 func_arith_result=`expr "$@"`
19018 # STRING may not start with a hyphen.
19021 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19027 case $lt_shell_append in
19029 cat << \_LT_EOF >> "$cfgfile"
19031 # func_append var value
19032 # Append VALUE to the end of shell variable VAR.
19040 cat << \_LT_EOF >> "$cfgfile"
19042 # func_append var value
19043 # Append VALUE to the end of shell variable VAR.
19054 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19055 || (rm -f "$cfgfile"; exit 1)
19057 mv -f "$cfgfile" "$ofile" ||
19058 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19062 "po-directories":C)
19063 for ac_file in $CONFIG_FILES; do
19064 # Support "outfile[:infile[:infile...]]"
19066 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19068 # PO directories have a Makefile.in generated from Makefile.in.in.
19069 case "$ac_file" in */Makefile.in)
19070 # Adjust a relative srcdir.
19071 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19072 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19073 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19074 # In autoconf-2.13 it is called $ac_given_srcdir.
19075 # In autoconf-2.50 it is called $srcdir.
19076 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19077 case "$ac_given_srcdir" in
19078 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19079 /*) top_srcdir="$ac_given_srcdir" ;;
19080 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19082 # Treat a directory as a PO directory if and only if it has a
19083 # POTFILES.in file. This allows packages to have multiple PO
19084 # directories under different names or in different locations.
19085 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19086 rm -f "$ac_dir/POTFILES"
19087 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19088 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19089 POMAKEFILEDEPS="POTFILES.in"
19090 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19091 # on $ac_dir but don't depend on user-specified configuration
19093 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19094 # The LINGUAS file contains the set of available languages.
19095 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19096 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19098 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19099 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19100 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19101 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19103 # The set of available languages was given in configure.in.
19104 # Hide the ALL_LINGUAS assigment from automake < 1.5.
19105 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19108 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19109 # Compute UPDATEPOFILES
19110 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19111 # Compute DUMMYPOFILES
19112 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19114 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19115 case "$ac_given_srcdir" in
19117 *) srcdirpre='$(srcdir)/' ;;
19123 for lang in $ALL_LINGUAS; do
19124 POFILES="$POFILES $srcdirpre$lang.po"
19125 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19126 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19127 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19129 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19130 # environment variable.
19132 if test -n "$ALL_LINGUAS"; then
19133 for presentlang in $ALL_LINGUAS; do
19135 if test "%UNSET%" != "$LINGUAS"; then
19136 desiredlanguages="$LINGUAS"
19138 desiredlanguages="$ALL_LINGUAS"
19140 for desiredlang in $desiredlanguages; do
19141 # Use the presentlang catalog if desiredlang is
19142 # a. equal to presentlang, or
19143 # b. a variant of presentlang (because in this case,
19144 # presentlang can be used as a fallback for messages
19145 # which are not translated in the desiredlang catalog).
19146 case "$desiredlang" in
19147 "$presentlang"*) useit=yes;;
19150 if test $useit = yes; then
19151 INST_LINGUAS="$INST_LINGUAS $presentlang"
19156 if test -n "$INST_LINGUAS"; then
19157 for lang in $INST_LINGUAS; do
19158 CATALOGS="$CATALOGS $lang.gmo"
19161 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19162 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"
19163 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19164 if test -f "$f"; then
19166 *.orig | *.bak | *~) ;;
19167 *) cat "$f" >> "$ac_dir/Makefile" ;;
19182 ac_clean_files=$ac_clean_files_save
19184 test $ac_write_fail = 0 ||
19185 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19188 # configure is writing to config.log, and then calls config.status.
19189 # config.status does its own redirection, appending to config.log.
19190 # Unfortunately, on DOS this fails, as config.log is still kept open
19191 # by configure, so config.status won't be able to write to it; its
19192 # output is simply discarded. So we exec the FD to /dev/null,
19193 # effectively closing config.log, so it can be properly (re)opened and
19194 # appended to by config.status. When coming back to configure, we
19195 # need to make the FD available again.
19196 if test "$no_create" != yes; then
19198 ac_config_status_args=
19199 test "$silent" = yes &&
19200 ac_config_status_args="$ac_config_status_args --quiet"
19202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19205 # would make configure fail if this is the last instruction.
19206 $ac_cs_success || as_fn_exit 1
19208 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19210 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19215 echo "shadow will be compiled with the following features:"
19217 echo " auditing support: $with_audit"
19218 echo " CrackLib support: $with_libcrack"
19219 echo " PAM support: $with_libpam"
19220 if test "$with_libpam" = "yes"; then
19221 echo " suid account management tools: $enable_acct_tools_setuid"
19223 echo " SELinux support: $with_selinux"
19224 echo " shadow group support: $enable_shadowgrp"
19225 echo " S/Key support: $with_skey"
19226 echo " SHA passwords encryption: $with_sha_crypt"
19227 echo " nscd support: $with_nscd"